Ranging or SL positioning method and device and storage medium

By obtaining information on whether the terminal device supports ranging or SL positioning functions and performing related operations, the problem that the target user equipment and reference user equipment do not have SL positioning service functions is solved, and the success rate of the secondary link positioning and ranging process is improved. and efficiency, reducing privacy and security risks.

CN119012129APending Publication Date: 2024-11-22VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310573746.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the secondary link positioning and ranging scenarios, the target user equipment and the reference user equipment may not have the SL positioning service function, resulting in positioning failure or prolonging the process time.

Method used

By obtaining and using information indicating whether the terminal device supports ranging or SL positioning functions, perform ranging or SL positioning related operations, avoiding the introduction of SL Positioning Server UE when supporting functions, reducing privacy and security risks, and improving success rate and efficiency.

Benefits of technology

Improves the success rate and efficiency of the secondary link positioning and ranging process, reduces potential privacy and security risks, and avoids unnecessary participation of SL Positioning Server UE.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012129A_ABST
    Figure CN119012129A_ABST
Patent Text Reader

Abstract

The invention discloses a distance measurement or SL positioning method and device and a storage medium, and belongs to the technical field of communication, and the distance measurement or SL positioning method comprises the steps that a first terminal obtains first information; the first terminal executes a distance measurement or SL positioning related operation based on the first information; wherein the first information is used for indicating at least one of the following items: whether a service network of the first terminal supports a ranging or SL positioning function; whether the second terminal supports a ranging or SL positioning function is determined; whether the service network of the second terminal supports a ranging or SL positioning function is determined; wherein the second terminal is a reference terminal which is found by the first terminal and is used for executing distance measurement or SL positioning related operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a ranging or SL positioning method, device and storage medium. Background Art

[0002] In the sidelink (SL) positioning (Positioning) and / or ranging (Ranging) scenario, the target (Target) User Equipment (UE) and the reference (Reference) UE (or anchor UE) may not have the functions of the SL Positioning service (Server) UE, for example, they may not have the related functions of the SL Positioning Server UE, such as providing the determination method of SL Positioning or Ranging, distribution of auxiliary data, or positioning calculation.

[0003] In the above cases, Ranging / SL positioning may fail and / or extend the time of the SL Positioning and / or Ranging process. Summary of the invention

[0004] The embodiments of the present application provide a ranging or SL positioning method, device and storage medium, which can improve the success rate of the Ranging and / or SL positioning process and / or improve the efficiency of the Ranging and / or SL positioning process.

[0005] In a first aspect, a ranging or secondary link SL positioning method is provided, which is performed by a first terminal, and the method includes:

[0006] The first terminal obtains first information;

[0007] The first terminal performs ranging or SL positioning related operations based on the first information;

[0008] The first information is used to indicate at least one of the following:

[0009] Whether the service network of the first terminal supports ranging or SL positioning function;

[0010] Whether the second terminal supports ranging or SL positioning function;

[0011] Whether the service network of the second terminal supports ranging or SL positioning function;

[0012] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0013] In a second aspect, a ranging or secondary link SL positioning method is provided, which is performed by a second terminal, and the method includes:

[0014] The second terminal sends first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0015] or,

[0016] The second terminal receives the first information from the first terminal; the second terminal performs ranging or SL positioning related operations based on the first information;

[0017] The first information is used to indicate at least one of the following:

[0018] Whether the service network of the first terminal supports ranging or SL positioning function;

[0019] Whether the second terminal supports ranging or SL positioning function;

[0020] Whether the service network of the second terminal supports ranging or SL positioning function;

[0021] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0022] In a third aspect, a ranging or secondary link SL positioning method is provided, which is performed by a network side device, and the method includes:

[0023] The network side device sends first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0024] or,

[0025] The network side device sends second information to the second terminal, where the second information is used to generate the first information, and the first information is used to perform ranging or SL positioning related operations; the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the secondary link positioning service user equipment SL Positioning Server UE; whether the service network of the second terminal supports ranging or SL positioning function; whether the second terminal is in the service area; whether the second terminal is in a restricted area;

[0026] The first information is used to indicate at least one of the following:

[0027] Whether the service network of the first terminal supports ranging or SL positioning function;

[0028] Whether the second terminal supports ranging or SL positioning function;

[0029] Whether the service network of the second terminal supports ranging or SL positioning function;

[0030] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0031] In a fourth aspect, a ranging or secondary link SL positioning device is provided, comprising:

[0032] An acquisition module, used for acquiring first information;

[0033] An execution module, configured to perform ranging or SL positioning related operations based on the first information;

[0034] The first information is used to indicate at least one of the following:

[0035] Whether the service network of the first terminal supports ranging or SL positioning function;

[0036] Whether the second terminal supports ranging or SL positioning function;

[0037] Whether the service network of the second terminal supports ranging or SL positioning function;

[0038] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0039] In a fifth aspect, a ranging or secondary link SL positioning device is provided, including:

[0040] Communication modules for:

[0041] Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0042] or,

[0043] Receiving first information from a first terminal; performing ranging or SL positioning related operations based on the first information;

[0044] The first information is used to indicate at least one of the following:

[0045] Whether the service network of the first terminal supports ranging or SL positioning function;

[0046] Whether the second terminal supports ranging or SL positioning function;

[0047] Whether the service network of the second terminal supports ranging or SL positioning function;

[0048] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0049] In a sixth aspect, a ranging or secondary link SL positioning device is provided, including:

[0050] Sending module, used for:

[0051] Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0052] or,

[0053] Sending second information to a second terminal, where the second information is used to generate the first information, and the first information is used to perform ranging or SL positioning related operations; the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the secondary link positioning service user equipment SL Positioning Server UE; whether the service network of the second terminal supports ranging or SL positioning function; whether the second terminal is in the service area; whether the second terminal is in a restricted area;

[0054] The first information is used to indicate at least one of the following:

[0055] Whether the service network of the first terminal supports ranging or SL positioning function;

[0056] Whether the second terminal supports ranging or SL positioning function;

[0057] Whether the service network of the second terminal supports ranging or SL positioning function;

[0058] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0059] In a seventh aspect, a first terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be executed on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0060] In an eighth aspect, a first terminal is provided, including a processor and a communication interface, wherein the processor is configured to:

[0061] Obtaining first information;

[0062] Based on the first information, perform ranging or SL positioning related operations;

[0063] The first information is used to indicate at least one of the following:

[0064] Whether the service network of the first terminal supports ranging or SL positioning function;

[0065] Whether the second terminal supports ranging or SL positioning function;

[0066] Whether the service network of the second terminal supports ranging or SL positioning function;

[0067] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0068] In a ninth aspect, a second terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be executed on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the second aspect are implemented.

[0069] In a tenth aspect, a second terminal is provided, including a processor and a communication interface, wherein the communication interface is used to:

[0070] Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0071] or,

[0072] Receiving first information from the first terminal; the second terminal performs ranging or SL positioning related operations based on the first information;

[0073] The first information is used to indicate at least one of the following:

[0074] Whether the service network of the first terminal supports ranging or SL positioning function;

[0075] Whether the second terminal supports ranging or SL positioning function;

[0076] Whether the service network of the second terminal supports ranging or SL positioning function;

[0077] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0078] In the eleventh aspect, a network side device is provided, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the third aspect are implemented.

[0079] In a twelfth aspect, a network side device is provided, including a processor and a communication interface, wherein the communication interface is used to:

[0080] Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0081] or,

[0082] Sending second information to a second terminal, where the second information is used to generate the first information, and the first information is used to perform ranging or SL positioning related operations; the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the secondary link positioning service user equipment SL Positioning Server UE; whether the service network of the second terminal supports ranging or SL positioning function; whether the second terminal is in the service area; whether the second terminal is in a restricted area;

[0083] The first information is used to indicate at least one of the following:

[0084] Whether the service network of the first terminal supports ranging or SL positioning function;

[0085] Whether the second terminal supports ranging or SL positioning function;

[0086] Whether the service network of the second terminal supports ranging or SL positioning function;

[0087] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0088] In the thirteenth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented, or the steps of the method described in the third aspect are implemented.

[0089] In the fourteenth aspect, a wireless communication system is provided, including: a first terminal, a second terminal and a network side device, wherein the first terminal can be used to execute the steps of the method described in the first aspect, the second terminal can be used to execute the steps of the method described in the second aspect, and the network side device can be used to execute the steps of the method described in the third aspect.

[0090] In the fifteenth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the method as described in the first aspect, or the method as described in the second aspect, or the method as described in the third aspect.

[0091] In the sixteenth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the steps of the ranging or sub-link SL positioning method as described in the first aspect, or to implement the steps of the ranging or sub-link SL positioning method as described in the second aspect, or to implement the steps of the ranging or sub-link SL positioning method as described in the third aspect.

[0092] In an embodiment of the present application, the first terminal can obtain the first information about the service network of the first terminal, the second terminal, and whether the service network of the second terminal supports ranging or SL positioning functions, and then refer to the first information to perform ranging or SL positioning related operations. Since the first terminal in the present application can obtain and refer to the first information, the success rate of the Ranging and / or SL positioning process can be improved and / or the efficiency of the Ranging and / or SL positioning process can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1 is a schematic diagram of a wireless communication system to which an embodiment of the present application can be applied;

[0094] Figure 2 It is one of the flowcharts of the ranging or SL positioning method provided in the embodiment of the present application;

[0095] Figure 3 This is the second flow chart of the ranging or SL positioning method provided in the embodiment of the present application;

[0096] Figure 4 This is the third flow chart of the ranging or SL positioning method provided in the embodiment of the present application;

[0097] Figure 5 It is one of the signaling interaction diagrams of the ranging or SL positioning method provided in the embodiment of the present application;

[0098] Figure 6 This is the second signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0099] Figure 7 This is the third signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0100] Figure 8 This is the fourth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0101] Fig. 9 This is the fifth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0102] Fig.10 This is the sixth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0103] Fig.11 This is the seventh signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0104] Fig.12 This is the eighth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0105] Fig.13 This is the ninth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0106] Fig.14 This is the tenth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0107] Fig.15 This is the eleventh signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0108] Fig.16 This is the twelfth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application;

[0109] Fig.17 It is one of the structural schematic diagrams of the ranging or SL positioning device provided in the embodiments of the present application;

[0110] Fig.18 This is the second structural schematic diagram of the distance measurement or SL positioning device provided in the embodiment of the present application;

[0111] Fig.19 This is the third structural schematic diagram of the distance measurement or SL positioning device provided in the embodiment of the present application;

[0112] Fig. 20 It is a structural diagram of a communication device provided in an embodiment of the present application;

[0113] Fig.21 is a schematic diagram of the hardware structure of a first terminal provided in an embodiment of the present application;

[0114] Fig. 22 is a schematic diagram of the hardware structure of a second terminal provided in an embodiment of the present application;

[0115] Fig.23 It is a structural diagram of a network side device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0116] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.

[0117] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, "A or B" covers three schemes, namely, Scheme 1: including A but not including B; Scheme 2: including B but not including A; Scheme 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0118] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, operations to be performed, or request results in the sent indication; an indirect indication can be understood as the receiver determining the corresponding information according to the indication sent by the sender, or making a judgment and determining the operation to be performed or the request result according to the judgment result.

[0119] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency-Division Multiple Access (SC-FDMA) or other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the systems and radio technologies mentioned above as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for illustrative purposes, and NR terminology is used in most of the following descriptions, but these technologies can also be applied to systems other than NR systems, such as the 6th generation (6 th Generation, 6G) communication system.

[0120] Figure 1 is a schematic diagram of a wireless communication system to which an embodiment of the present application can be applied, Figure 1A block diagram of a wireless communication system applicable to an embodiment of the present application is shown. The wireless communication system includes a terminal 11 and a network side device 12. Among them, the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR), a virtual reality (Virtual Reality, VR) device, a robot, a wearable device (Wearable Device), an aircraft (flight vehicle), a vehicle-mounted device (Vehicle User Equipment, VUE), a ship-mounted device, a pedestrian terminal (Pedestrian User Equipment, PUE), a smart home (home appliances with wireless communication functions, such as refrigerators, televisions, washing machines or furniture, etc.), a game console, a personal computer (Personal Computer, PC), a teller machine or a self-service machine and other terminal side devices. Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among them, the vehicle-mounted device can also be called a vehicle-mounted terminal, a vehicle-mounted controller, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit, etc. It should be noted that the specific type of the terminal 11 is not limited in the embodiment of the present application. The network side device 12 may include an access network device or a core network device, wherein the access network device may also be referred to as a radio access network (Radio Access Network, RAN) device, a radio access network function or a radio access network unit. The access network device may include a base station, a wireless local area network (Wireless Local Area Network, WLAN) access point (Access Point, AP) or a wireless fidelity (Wireless Fidelity, WiFi) node, etc.Among them, the base station may be referred to as a Node B (NB), an evolved Node B (eNB), a next generation Node B (gNB), a New Radio Node B (NR Node B), an access point, a Relay Base Station (RBS), a Serving Base Station (SBS), a Base Transceiver Station (BTS), a radio base station, a radio transceiver, a Basic Service Set (BSS), an Extended Service Set (ESS), a Home Node B (HNB), a Home Evolved Node B, a Transmission Reception Point (TRP) or other appropriate terms in the field. As long as the same technical effect is achieved, the base station is not limited to specific technical vocabulary. It should be noted that in the embodiment of the present application, only the base station in the NR system is used as an example for introduction, and the specific type of the base station is not limited.

[0121] The core network equipment may include but is not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), user plane function (User Plane Function, UPF), policy control function (Policy Control Function, PCF), policy and charging rules function unit (Policy and Charging Rules Function, PCRF), edge application service discovery function (Edge Application Server Discovery Function, EASDF), unified data management (Unified Data Management, UDM), unified data storage (Unified Data Repository, UDR), home user server (Home Subscriber Server, HSS), centralized network configuration (CNC), network storage function (Network Repository Function, NRF), network exposure function (Network Exposure Function, NEF), local NEF (Local NEF, or L-NEF), binding support function (Binding Support Function, BSF), application function (Application Function, AF), etc. It should be noted that in the embodiments of the present application, only the core network device in the NR system is introduced as an example, and the specific type of the core network device is not limited.

[0122] In order to facilitate a clearer understanding of the technical solutions provided by the embodiments of the present application, some relevant background knowledge is first introduced as follows.

[0123] (i) In the SL Positioning and / or Ranging scenario, the target UE and the reference UE may not have the functionality of the SL Positioning Server UE, that is, the target UE and the reference UE may not have the functionality of the SL Positioning Server UE, such as the determination method of SL Positioning and / or Ranging, the distribution of auxiliary data, or the positioning calculation. In this case, the target UE or the reference UE needs to discover and select a SL Positioning Server UE to help the target UE implement the above functions and provide the target UE's SL Positioning and / or Ranging results.

[0124] However, if one of the target UE or reference UE is currently in coverage and its service network, such as location management function (LMF), supports SLPositioning and / or Ranging functions, then there is no need to discover and select a SL Positioning ServerUE. If it does not support SL Positioning and / or Ranging functions, then the SL Positioning ServerUE is introduced. This raises the following two questions:

[0125] First, how does the target UE determine that a discovered SL reference UE has no serving network;

[0126] Second, how does the target UE determine that its service network does not support Ranging or SL Positioning, and how does the SL reference UE discovered by the target UE determine that its service network does not support Ranging or SL Positioning.

[0127] (2)SL Positioning Server UE;

[0128] SL Positioning Server UE refers to: a UE used for determining methods, distributing auxiliary data and / or positioning calculation functions based on SL Positioning and / or Ranging services. It interacts with other UEs through a direct communication interface (PC5) when necessary to determine the Ranging or SL Positioning method, distribute auxiliary data and calculate the position of the target UE. If all the above functions are supported, the target UE or SL reference UE can act as a SL Positioning Server UE.

[0129] In the following, in combination with the accompanying drawings, the ranging or SL positioning method, device and storage medium provided in the embodiments of the present application are described in detail through some embodiments and their application scenarios.

[0130] The ranging or SL positioning method provided in the embodiments of the present application can be applied to the first terminal, and the first terminal can be used as a target UE for performing ranging or SL positioning related operations.

[0131] Figure 2 This is one of the flow charts of the ranging or SL positioning method provided in the embodiment of the present application, such as Figure 2 As shown, the method includes step 201 and step 202; wherein:

[0132] Step 201: The first terminal obtains first information, wherein the first information is used to indicate at least one of the following: whether the service network of the first terminal supports ranging or SL positioning function; whether the second terminal supports ranging or SL positioning function; whether the service network of the second terminal supports ranging or SL positioning function; wherein the second terminal is a reference terminal discovered by the first terminal for performing ranging or SL positioning related operations.

[0133] Step 202: The first terminal performs ranging or SL positioning related operations based on the first information.

[0134] It should be noted that the embodiments of the present application can be applied to scenarios where ranging or SL positioning related operations are performed. The terminals include but are not limited to the types of terminals 11 listed above, and the network side devices include but are not limited to the types of network side devices 12 listed above. The embodiments of the present application do not limit this.

[0135] Considering the following implementation, the target UE or reference UE usually needs to discover and select a SL PositioningServer UE to help the target UE implement the above functions and provide the target UE's SL Positioning and / or Ranging results. However, this implementation may have potential privacy and security risks.

[0136] If the target UE or the service network of the reference UE discovered by the target UE supports the Ranging or SLPositioning function, the SLPositioning Server UE may not be involved in the Ranging or SL Positioning process. This leads to the following two problems that need to be solved:

[0137] (1) How does the target UE know whether the serving network of the reference UE supports the Ranging or SL Positioning function?

[0138] (2) How does the target UE or reference UE know whether its serving network supports Ranging or SLPositioning functions?

[0139] In response to the above-mentioned problems that need to be solved urgently, an embodiment of the present application provides a ranging or SL positioning method.

[0140] In an embodiment of the present application, the first terminal may obtain first information, and the first information may indicate whether the service network of the first terminal, the second terminal, or at least one of the service networks of the second terminal supports ranging or SL positioning functions.

[0141] Optionally, the above-mentioned ranging or SL positioning function may include: at least one of a determination method based on SL Positioning and / or Ranging service, auxiliary data distribution and positioning calculation function.

[0142] After acquiring the first information, the first terminal may perform ranging or SL positioning related operations based on the first information. It should be noted that the ranging operation mentioned above may specifically be a ranging operation in a SL scenario.

[0143] In the ranging or SL positioning method provided in the embodiment of the present application, the first terminal can obtain the first information whether the service network of the first terminal, the second terminal, and the service network of the second terminal support the ranging or SL positioning function, and then refer to the first information to perform ranging or SL positioning related operations. Compared with the target UE or the reference UE directly discovering and selecting a SL Positioning Server UE to help the target UE achieve the ranging or SL positioning function, the first terminal in the present application refers to the first information to avoid introducing a new SL Positioning Server UE to perform ranging or SL positioning related operations when the service network of the first terminal, the second terminal, or the service network of the second terminal supports the ranging or SL positioning function, thereby effectively reducing potential privacy and security risks. In addition, the method of this embodiment can improve the success rate of the Ranging and / or SLpositioning process and / or improve the efficiency of the Ranging and / or SL positioning process.

[0144] The following is a detailed description of the operations related to ranging or SL positioning.

[0145] Optionally, the ranging or SL positioning related operations may include at least one of the following:

[0146] 1) Initiate a secondary link mobile originating location request (MobileOriginalLocation Request, SL-MO-LR) to the service network of the first terminal;

[0147] 2) Discovery and selection of the secondary link positioning service user equipment (SL Positioning Server UE);

[0148] 3) Requesting positioning assistance data or positioning measurement information from the second terminal.

[0149] Optionally, the implementation manner in which the first terminal performs ranging or SL positioning related operations based on the first information may include:

[0150] (1) When the first terminal does not support ranging or SL positioning function, and the first information indicates that at least one of the second terminal, the service network of the second terminal and the service network of the first terminal supports ranging or SL positioning function, the first terminal performs at least one of the following operations: initiating SL-MO-LR to the service network of the first terminal; requesting positioning assistance data or positioning measurement information from the second terminal;

[0151] Specifically, when the first terminal does not support ranging or SL positioning functions, but the first information indicates that there is at least one function that supports ranging or SL positioning among the second terminal, the service network of the second terminal and the service network of the first terminal, the first terminal can initiate SL-MO-LR to the service network of the first terminal, and can also request positioning assistance data or positioning measurement information from the second terminal. At this time, there is no need to perform discovery and selection operations on the SL Positioning Server UE, that is, in this case, there is no need to introduce the SL Positioning Server UE to perform ranging or SL positioning.

[0152] Optionally, when the first terminal does not support the ranging or SL positioning function, and the first information indicates that at least one of the second terminal, the service network of the second terminal, and the service network of the first terminal supports the ranging or SL positioning function, performing ranging or SL positioning related operations may also include at least one of the following:

[0153] 1) When the first terminal does not support ranging or SL positioning function, and the first information indicates that the second terminal supports ranging or SL positioning function, the first terminal requests positioning assistance data or positioning measurement information from the second terminal;

[0154] 2) When the first terminal does not support ranging or SL positioning function, and the first information indicates that the service network of the second terminal supports ranging or SL positioning function, the first terminal requests positioning assistance data or positioning measurement information from the second terminal;

[0155] Specifically, when the first terminal does not support ranging or SL positioning functions, and the first information indicates that the second terminal or the service network of the second terminal supports ranging or SL positioning functions, the first terminal can request positioning assistance data or positioning measurement information from the second terminal to use the positioning assistance data or positioning measurement information of the second terminal to perform ranging or SL positioning.

[0156] 3) When the first terminal does not support ranging or SL positioning function, and the first information indicates that the second terminal and the service network of the second terminal do not support ranging or SL positioning function, and the service network of the first terminal supports ranging or SL positioning function, the first terminal initiates SL-MO-LR to the service network of the first terminal.

[0157] Specifically, when the first terminal does not support ranging or SL positioning functions, and the first information indicates that only the service network of the first terminal supports ranging or SL positioning functions, the first terminal can initiate SL-MO-LR to the service network of the first terminal to use the service network of the first terminal for ranging or SL positioning.

[0158] Optionally, when the first information indicates that the service network of the first terminal supports ranging or SL positioning functions, the first terminal may preferentially initiate SL-MO-LR to the service network of the first terminal, regardless of whether the second terminal and the service network of the second terminal support ranging or SL positioning functions, so as to preferentially use the service network of the first terminal for ranging or SL positioning.

[0159] (2) When the first terminal does not support ranging or SL positioning functions, and the first information indicates that the second terminal, the service network of the second terminal and the service network of the first terminal do not support ranging or SL positioning functions, the first terminal performs discovery and selection operations of the SLPositioning Server UE.

[0160] Specifically, when the first terminal does not support ranging or SL positioning functions, and the first information indicates that the second terminal, the service network of the second terminal and the service network of the first terminal do not support ranging or SL positioning functions, that is, when the first terminal, the service network of the first terminal, the second terminal and the service network of the second terminal do not support ranging or SL positioning functions, the first terminal again performs the discovery and selection operation of the SL Positioning Server UE to introduce a new SLPositioning Server UE for ranging or SL positioning.

[0161] The following is a detailed description of the manner in which the first terminal obtains the first information.

[0162] Optionally, the implementation manner in which the first terminal obtains the first information may include at least one of the following:

[0163] (1) The first terminal receives first information from the second terminal;

[0164] (2) The first terminal receives first information from a network-side device, where the network-side device is related to a service network of the first terminal.

[0165] Specifically, the first information may be obtained from the second terminal or from a network-side device.

[0166] Among them, the first terminal can learn from the first information from the second terminal whether the second terminal supports the ranging or SL positioning function, and can also learn whether the service network of the second terminal supports the ranging or SL positioning function.

[0167] In addition, since the network side device is related to the service network of the first terminal, the first terminal can also learn from the first information from the network side device whether the service network of the first terminal supports ranging or SL positioning functions.

[0168] Optionally, the network side device may include at least one of the following: a) AMF; b) LMF.

[0169] In the case where the first information is obtained from the second terminal, the second terminal may carry the first information in a discovery message between the second terminal and the first terminal or in a capability interaction process.

[0170] Optionally, the implementation manner in which the first terminal receives the first information from the second terminal may include at least one of the following:

[0171] 1) The first terminal receives a discovery message from the second terminal, where the discovery message carries first information, and the discovery message includes at least one of the following: a notification message in a model A discovery scenario, and a reply message in a model B discovery scenario;

[0172] Specifically, in Model A discovery, the second terminal sends a notification message (announcement message) to the first terminal, and the notification message may carry the first information.

[0173] In Model B discovery, the first terminal may send a solicitation message to the second terminal, and carry the first information in the solicitation message. After receiving the solicitation message, the second terminal may fall into the following situations:

[0174] Case 1: If the first information carried in the request message indicates that the service network of the first terminal supports ranging or SL positioning functions, the second terminal can send a reply message to the first terminal without considering whether its service network supports ranging or SL positioning functions, and the reply message can carry the first information.

[0175] Case 2: If the first information carried in the request message indicates that the service network of the first terminal does not support ranging or SL positioning functions, the second terminal may send a reply message to the first terminal if the service network of the second terminal supports ranging or SL positioning functions. The reply message may carry the first information, and the first information may indicate the functions supported by the service network of the second terminal.

[0176] 2) The first terminal receives a capability interaction message from the second terminal, where the capability interaction message carries the first information, and the capability interaction message includes at least one of a capability response message and a capability distribution message.

[0177] Specifically, the embodiments of the present application can be divided into the following situations:

[0178] Case 1: The first terminal first sends a ranging or SL positioning capability request (Ranging / SLPositioning capability request) message to the second terminal, and then receives a ranging or SL positioning capability response (Ranging / SL Positioning capability response) message from the second terminal, and the capability response message carries the first information.

[0179] Case 2: The first terminal receives a ranging or SL positioning capability distribution (Ranging / SLPositioning capability providing) message from the second terminal, and the capability distribution message carries the first information.

[0180] In the case where the first information is obtained from a network side device, optionally, the implementation manner in which the first terminal receives the first information from the network side device may include:

[0181] 1) When the first terminal sends a first registration request message to the network side device, the first terminal receives a first registration response message from the network side device; wherein the first registration request message carries first capability information corresponding to the first terminal, the first capability information is used to indicate the first capability supported by the first terminal in the ranging or SL positioning process, and the first registration response message carries the first information;

[0182] Specifically, during the registration phase of the first terminal to the network side device, a first registration request message can be sent to the network side device. The first registration request message carries the first capability information corresponding to the first terminal. The network side device can also obtain the first contract information of the first terminal. The first contract information is used to indicate whether the ranging or SL positioning function of the first terminal is authorized. For example, the first contract information can be obtained from the unified data management (UDM) functional network element. Then, the network side device can generate the first information based on the first capability information and / or the first contract information, and then send it to the first terminal through a first registration response message carrying the first information.

[0183] Optionally, the first capability may include at least one of the following capabilities:

[0184] a. Target UE;

[0185] b. Reference UE;

[0186] c. Proxy (client) UE;

[0187] d.SL Positioning Server UE;

[0188] e. SL locates the UE;

[0189] f.Assistant UE.

[0190] 2) When the first terminal sends the SL-MO-LR to the network side device, the first terminal receives a first response message from the network side device; wherein the first response message is used to indicate the first information.

[0191] Specifically, the first terminal may also send SL-MO-LR to the network side device, and implicitly indicate the first information according to the first response message fed back by the network side device, which may be specifically divided into the following two cases:

[0192] Case 1: If the first response message to SL-MO-LR is a rejection message, the first information can be used to indicate that the service network of the first terminal does not support ranging or SL positioning functions.

[0193] Case 2: If the first response message to SL-MO-LR is an acceptance message, the first information can be used to indicate that the service network of the first terminal supports ranging or SL positioning functions.

[0194] The ranging or SL positioning method provided in the embodiment of the present application can also be applied to the second terminal. If the first terminal is used as the target UE for performing ranging or SL positioning related operations, the second terminal is the reference terminal discovered by the first terminal for performing ranging or SL positioning related operations.

[0195] Figure 3 This is the second flow chart of the ranging or SL positioning method provided in the embodiment of the present application, such as Figure 3 As shown, the method includes step 301; wherein:

[0196] Step 301: The second terminal sends first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations; or,

[0197] The second terminal receives the first information from the first terminal; the second terminal performs ranging or SL positioning related operations based on the first information;

[0198] The first information is used to indicate at least one of the following: whether the service network of the first terminal supports ranging or SL positioning functions; whether the second terminal supports ranging or SL positioning functions; whether the service network of the second terminal supports ranging or SL positioning functions; wherein the second terminal is a reference terminal discovered by the first terminal for performing ranging or SL positioning related operations.

[0199] Specifically, the embodiments of the present application can be divided into the following two cases:

[0200] Case 1: The second terminal sends first information to the first terminal, and the first terminal performs ranging or SL positioning related operations based on the first information.

[0201] Case 2: The second terminal may also receive the first information from the first terminal, and then perform ranging or SL positioning related operations based on the first information.

[0202] In the ranging or SL positioning method provided in the embodiment of the present application, the second terminal can send the first information to the first terminal, or receive the first information from the first terminal, and perform ranging or SL positioning related operations based on the first information. The first terminal or the second terminal can obtain whether the service network of the first terminal, the second terminal, and the service network of the second terminal support ranging or SL positioning functions through the first information, and then refer to the first information to perform ranging or SL positioning related operations. Compared with the related art, the target UE or the reference UE directly discovers and selects a SL Positioning Server UE to help the target UE realize the ranging or SL positioning function. The first terminal or the second terminal in the present application refers to the first information, which can avoid introducing a new SL Positioning Server UE to perform ranging or SL positioning related operations when the service network of the first terminal, the second terminal, or the service network of the second terminal supports ranging or SL positioning functions, effectively reducing potential privacy and security risks. In addition, the method of this embodiment can improve the success rate of the Ranging and / or SL positioning process and / or improve the efficiency of the Ranging and / or SL positioning process.

[0203] Optionally, the implementation manner in which the second terminal sends the first information to the first terminal may include at least one of the following:

[0204] 1) The second terminal sends a discovery message to the first terminal, where the discovery message carries the first information, and the discovery message includes at least one of the following: a notification message in the Model A discovery scenario, and a reply message in the Model B discovery scenario;

[0205] 2) The second terminal sends a capability interaction message to the first terminal, where the capability interaction message carries the first information, and the capability interaction message includes at least one of a capability response message and a capability distribution message.

[0206] Optionally, the implementation manner in which the second terminal receives the first information from the first terminal may include:

[0207] The second terminal receives a positioning assistance data request or a positioning measurement information request from the first terminal, where the positioning assistance data request or the positioning measurement information request carries the first information.

[0208] Specifically, the first terminal may send a positioning assistance data request or a positioning measurement information request to the second terminal, which carries the first information, and the second terminal may perform ranging or SL positioning related operations based on the first information.

[0209] Optionally, the implementation manner in which the second terminal performs ranging or SL positioning related operations based on the first information may include:

[0210] 1) When the first information only indicates that the service network of the first terminal does not support ranging or SL positioning functions, the second terminal initiates SL-MO-LR to the service network of the second terminal;

[0211] Specifically, when the first information only indicates that the service network of the first terminal does not support ranging or SL positioning functions, the second terminal initiates SL-MO-LR to the service network of the second terminal to determine whether the service network of the second terminal supports ranging or SL positioning functions. If an acceptance message is received, it indicates that the service network of the second terminal supports ranging or SL positioning functions; if a rejection message is received, it indicates that the service network of the second terminal does not support ranging or SL positioning functions.

[0212] Optionally, if the second terminal determines that the service network of the second terminal supports ranging or SL positioning functions, the service network of the second terminal performs ranging or SL positioning; if the second terminal determines that the service network of the second terminal does not support ranging or SL positioning functions, it can perform SL Positioning Server UE discovery and selection operations to use SLPositioning Server UE to perform ranging or SL positioning.

[0213] 2) When the first information indicates that the service network of the first terminal and the service network of the second terminal do not support ranging or SL positioning functions, the second terminal performs discovery and selection operations of the SL Positioning Server UE.

[0214] Specifically, if the first information indicates that the service network of the first terminal and the service network of the second terminal do not support ranging or SL positioning functions, the second terminal can directly perform discovery and selection operations on the SL Positioning Server UE to use the SL Positioning Server UE for ranging or SL positioning.

[0215] Optionally, the second terminal may obtain the second information;

[0216] The second terminal generates the first information based on the second information;

[0217] The second information is used to indicate at least one of the following:

[0218] a. Whether the second terminal supports the function corresponding to the SL Positioning Server UE;

[0219] b. Whether the service network of the second terminal supports ranging or SL positioning function;

[0220] c. Whether the second terminal is within the service area;

[0221] d. Whether the second terminal is in the restricted area.

[0222] Optionally, the implementation manner in which the second terminal generates the first information based on the second information may include:

[0223] 1) When the second information indicates that the second terminal supports a function corresponding to the SL Positioning Server UE, the second terminal generates first information for indicating that the second terminal supports a ranging or SL positioning function;

[0224] 2) When the second information indicates that the second terminal does not support the function corresponding to the SL Positioning Server UE, the second terminal generates first information for indicating that the second terminal does not support the ranging or SL positioning function;

[0225] 3) When the second information indicates that the service network of the second terminal supports ranging or SL positioning function, the second terminal generates first information for indicating that the service network of the second terminal supports ranging or SL positioning function;

[0226] 4) When the second information indicates that the service network of the second terminal does not support the ranging or SL positioning function, the second terminal generates first information for indicating that the service network of the second terminal does not support the ranging or SL positioning function;

[0227] 5) When the second information indicates that the second terminal is not in the service area, the second terminal generates first information for indicating that the service network of the second terminal does not support ranging or SL positioning function;

[0228] 6) When the second information indicates that the second terminal is within the restricted area, the second terminal generates first information for indicating that the service network of the second terminal does not support ranging or SL positioning functions.

[0229] Specifically, when the second terminal is in the restricted area, it can be considered that the service network of the second terminal does not support ranging or SL positioning functions, so first information can be generated based on this to indicate that the service network of the second terminal does not support ranging or SL positioning functions.

[0230] Optionally, the implementation manner in which the second terminal obtains the second information may include:

[0231] 1) When the second terminal sends a second registration request message to the network side device, the second terminal receives a second registration response message from the network side device; wherein the network side device is related to the service network of the second terminal, the second registration request message carries second capability information corresponding to the second terminal, the second capability information is used to indicate the second capability supported by the second terminal in the ranging or SL positioning process, and the second registration response message carries the second information;

[0232] Specifically, during the registration phase of the second terminal to the network side device, a second registration request message can be sent to the network side device. The second registration request message carries the second capability information corresponding to the second terminal. The network side device can also obtain the second contract information of the second terminal. The second contract information is used to indicate whether the ranging or SL positioning function of the second terminal is authorized. For example, the second contract information can be obtained from the UDM functional network element. Then, the network side device can generate the second information based on the second capability information and / or the second contract information, and then send it to the second terminal through a second registration response message carrying the second information.

[0233] Optionally, the network side device may include at least one of the following: a) AMF; b) LMF.

[0234] Optionally, the second capability may include at least one of the following capabilities:

[0235] a. Target UE;

[0236] b. Reference UE;

[0237] c.client UE;

[0238] d.SL Positioning Server UE;

[0239] e.SL located in UE;

[0240] f.Assistant UE.

[0241] 2) When the second terminal sends SL-MO-LR to the network side device, the second terminal receives a second response message from the network side device; wherein the network side device is related to the service network of the second terminal, and the second response message is used to indicate the second information.

[0242] Specifically, the second terminal may also send SL-MO-LR to the network side device, and implicitly indicate the second information according to the second response message fed back by the network side device, which may be specifically divided into the following two cases:

[0243] Case 1: If the second response message to SL-MO-LR is a rejection message, the second information can be used to indicate that the service network of the second terminal does not support ranging or SL positioning functions.

[0244] Case 2: If the second response message to SL-MO-LR is an acceptance message, the second information can be used to indicate that the service network of the second terminal supports ranging or SL positioning functions.

[0245] The ranging or SL positioning method provided in the embodiments of the present application can also be applied to network side devices, such as at least one of AMF and LMF.

[0246] Figure 4 This is the third flow chart of the ranging or SL positioning method provided in the embodiment of the present application, such as Figure 4 As shown, the method includes step 401; wherein:

[0247] Step 401, the network side device sends first information to the first terminal, and the first information is used to perform ranging or SL positioning related operations; or, the network side device sends second information to the second terminal, and the second information is used to generate the first information, and the first information is used to perform ranging or SL positioning related operations; the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the SL Positioning Server UE; whether the service network of the second terminal supports ranging or SL positioning functions; whether the second terminal is in the service area; whether the second terminal is in a restricted area; wherein, the first information is used to indicate at least one of the following: whether the service network of the first terminal supports ranging or SL positioning functions; whether the second terminal supports ranging or SL positioning functions; whether the service network of the second terminal supports ranging or SL positioning functions; wherein the second terminal is a reference terminal discovered by the first terminal for performing ranging or SL positioning related operations.

[0248] Specifically, the embodiments of the present application can be divided into the following two cases:

[0249] Case 1: The network side device sends first information to the first terminal, so that the first terminal performs ranging or SL positioning related operations based on the first information.

[0250] Case 2: The network side device sends the second information to the second terminal, so that the second terminal generates the first information based on the second information, and then the first terminal or the second terminal performs ranging or SL positioning related operations based on the first information.

[0251] In the ranging or SL positioning method provided in the embodiment of the present application, the network side device can send the first information to the first terminal, or send the second information used to generate the first information to the second terminal, and then the first terminal or the second terminal can obtain the first information through the first information whether the service network of the first terminal, the second terminal, and the service network of the second terminal support the ranging or SL positioning function, and then refer to the first information to perform ranging or SL positioning related operations. Compared with the related art, the target UE or the reference UE directly discovers and selects an SL Positioning Server UE to help the target UE realize the ranging or SL positioning function. The first terminal or the second terminal in the present application refers to the first information to avoid introducing a new SLPositioning Server UE to perform ranging or SL positioning related operations when the service network of the first terminal, the second terminal, or the service network of the second terminal supports the ranging or SL positioning function, which effectively reduces potential privacy and security risks.

[0252] For the first terminal, optionally, the network side device may receive a first registration request message from the first terminal, where the first registration request message carries first capability information corresponding to the first terminal, where the first capability information is used to indicate a first capability supported by the first terminal in a ranging or SL positioning process;

[0253] The network side device generates first information based on the first capability information and / or the first subscription information, where the first subscription information is used to indicate whether the ranging or SL positioning function of the first terminal is authorized;

[0254] The implementation manner in which the network side device sends the first information to the first terminal may include:

[0255] The network side device sends a first registration response message to the first terminal, where the first registration response message carries first information.

[0256] For example, AMF can send a first registration response message carrying the first information to the first terminal based on the first capability information reported by the first terminal through the first registration request message and the Ranging or SL Positioning subscription information (first subscription information) of the first terminal. The first information can be used to indicate whether the service network of the first terminal supports ranging or SL positioning functions.

[0257] In one embodiment, the AMF may send the first information to the first terminal when the first capability information indicates that the first terminal supports the ranging or SL positioning function, and the first subscription information indicates that the ranging or SL positioning function of the first terminal has been authorized.

[0258] Optionally, the first signing information can be obtained by the network side device from the UDM functional network element.

[0259] Optionally, the first capability may include at least one of the following capabilities:

[0260] a. Target UE;

[0261] b. Reference UE;

[0262] c.client UE;

[0263] d.SL Positioning Server UE;

[0264] e.SL located in UE;

[0265] f.Assistant UE.

[0266] For the first terminal, optionally, the network side device may also receive SL-MO-LR from the first terminal;

[0267] The implementation manner in which the network side device sends the first information to the first terminal may include:

[0268] The network side device sends a first response message to the first terminal, where the first response message is used to indicate the first information.

[0269] For example, the AMF or LMF may receive the SL-MO-LR from the first terminal, and implicitly indicate whether the service network of the first terminal supports ranging or SL positioning functions by accepting or rejecting it.

[0270] For the second terminal, optionally, the network side device may receive a second registration request message from the second terminal, where the second registration request message carries second capability information corresponding to the second terminal, where the second capability information is used to indicate a second capability supported by the second terminal during ranging or SL positioning;

[0271] The network side device generates second information based on the second capability information and / or the second subscription information, where the second subscription information is used to indicate whether the ranging or SL positioning function of the second terminal is authorized;

[0272] The implementation manner in which the network side device sends the second information to the second terminal may include:

[0273] The network side device sends a second registration response message to the second terminal, where the second registration response message carries second information.

[0274] For example, AMF can send a second registration response message carrying second information to the second terminal based on the second capability information reported by the second terminal through the second registration request message and the Ranging or SL Positioning subscription information (second subscription information) of the second terminal. The second information can be used to indicate whether the service network of the second terminal supports ranging or SL positioning functions.

[0275] In one embodiment, the AMF may send the second information to the second terminal when the second capability information indicates that the second terminal supports the ranging or SL positioning function, and the second subscription information indicates that the ranging or SL positioning function of the second terminal has been authorized.

[0276] Optionally, the second subscription information can be obtained by the network side device from the UDM functional network element.

[0277] Optionally, the second capability may include at least one of the following capabilities:

[0278] a. Target UE;

[0279] b. Reference UE;

[0280] c.client UE;

[0281] d.SL Positioning Server UE;

[0282] e.SL located in UE;

[0283] f.Assistant UE.

[0284] For the second terminal, optionally, the network side device may also receive SL-MO-LR from the second terminal;

[0285] The implementation manner in which the network side device sends the second information to the second terminal may include:

[0286] The network side device sends a second response message to the second terminal, where the second response message is used to indicate the second information.

[0287] For example, the AMF or LMF may receive the SL-MO-LR from the second terminal, and implicitly indicate whether the service network of the second terminal supports ranging or SL positioning functions by accepting or rejecting it.

[0288] Figure 5 It is one of the signaling interaction diagrams of the ranging or SL positioning method provided in the embodiment of the present application, such as Figure 5 As shown, the method includes steps 501 to 502; wherein:

[0289] Step 501: A first terminal receives first information from a second terminal;

[0290] Step 502: The first terminal performs ranging or SL positioning related operations based on the first information.

[0291] The first information is used to indicate at least one of the following:

[0292] 1) Whether the service network of the first terminal supports ranging or SL positioning function;

[0293] 2) Whether the second terminal supports ranging or SL positioning function;

[0294] 3) Whether the service network of the second terminal supports ranging or SL positioning function;

[0295] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0296] Figure 6 This is the second signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Figure 6 As shown, the method includes steps 601 to 602; wherein:

[0297] Step 601: A first terminal receives first information from a network-side device, wherein the network-side device is related to a service network of the first terminal;

[0298] Step 602: The first terminal performs ranging or SL positioning related operations based on the first information.

[0299] The first information is used to indicate at least one of the following:

[0300] 1) Whether the service network of the first terminal supports ranging or SL positioning function;

[0301] 2) Whether the second terminal supports ranging or SL positioning function;

[0302] 3) Whether the service network of the second terminal supports ranging or SL positioning function;

[0303] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0304] Figure 7 This is the third signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Figure 7 As shown, the method includes steps 701 to 702; wherein:

[0305] Step 701: The first terminal sends first information to the second terminal;

[0306] Step 702: The second terminal performs ranging or SL positioning related operations based on the first information.

[0307] The first information is used to indicate at least one of the following:

[0308] 1) Whether the service network of the first terminal supports ranging or SL positioning function;

[0309] 2) Whether the second terminal supports ranging or SL positioning function;

[0310] 3) Whether the service network of the second terminal supports ranging or SL positioning function;

[0311] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0312] Figure 8 This is the fourth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Figure 8 As shown, the method includes steps 801 to 802; wherein:

[0313] Step 801: The second terminal receives second information from a network-side device, where the second information is used to generate first information, and the first information is used to perform ranging or SL positioning related operations;

[0314] Step 802: The second terminal generates first information based on the second information.

[0315] Specifically, the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the SL Positioning Server UE; whether the service network of the second terminal supports the ranging or SL positioning function; whether the second terminal is in the service area; whether the second terminal is in the restricted area;

[0316] The first information is used to indicate at least one of the following:

[0317] 1) Whether the service network of the first terminal supports ranging or SL positioning function;

[0318] 2) Whether the second terminal supports ranging or SL positioning function;

[0319] 3) Whether the service network of the second terminal supports ranging or SL positioning function;

[0320] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0321] The following examples illustrate the ranging or SL positioning method provided in the embodiments of the present application.

[0322] (1) During the registration phase, the AMF sends first information to the first terminal, or sends second information to the second terminal, based on the Ranging or SLPositioning capability information (first capability information or second capability information) reported by the terminal (the first terminal or the second terminal) and the Ranging or SLPositioning subscription information (first subscription information or second subscription information) of the terminal. The first information is used to indicate whether the service network of the first terminal or the second terminal supports or does not support the Ranging or SL Positioning function.

[0323] Fig. 9 This is the fifth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig. 9 As shown, the method includes steps 901 to 903; wherein:

[0324] Step 901: The terminal sends a registration request message to the AMF, where the registration request message carries the Ranging or SLPositioning capability information of the terminal.

[0325] Specifically, the terminal sends a registration request message to the AMF. The registration request message carries the Ranging or SLPositioning capability information of the terminal, including at least one of the following:

[0326] a) As the Target UE in the Ranging or SL Positioning process;

[0327] b) As a reference UE in the Ranging or SL Positioning process;

[0328] c) Acting as SL Positioning Server UE during Ranging or SL Positioning;

[0329] d) as a SL located UE in the Ranging or SL Positioning process;

[0330] e) Act as Assistant UE during Ranging or SL Positioning.

[0331] Step 902: AMF obtains the Ranging or SLPositioning contract information of the terminal from UDM through NUDM_SDM_GET information.

[0332] Specifically, AMF obtains the Ranging or SL Positioning subscription information of the terminal from UDM to determine whether the terminal authorizes the Ranging or SL Positioning function.

[0333] Step 903: AMF sends a registration acceptance message to the terminal, where the registration acceptance message carries the first information.

[0334] Specifically, the AMF determines to send first information to the terminal based on the Ranging or SL Positioning capability information reported by the terminal and / or the Ranging or SL Positioning subscription information in the UDM, where the first information is used to indicate whether the service network of the terminal supports or does not support the Ranging or SL Positioning function.

[0335] For example, a) if the terminal reports the Ranging or SL Positioning capability information, the AMF sends the first information; b) if it is determined according to the contract information that the terminal has been authorized for the Ranging or SL Positioning function, the AMF sends the first information.

[0336] (ii) The second terminal carries the first information in the discovery message, and the first terminal determines whether to select the second terminal to establish a secure connection according to the first information.

[0337] In Model A discovery, Fig.10 This is the sixth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig.10 As shown, the method includes steps 1001 to 1002; wherein:

[0338] Step 1001: Reference UE#1 and reference UE#2 (second terminal) send a notification message (announcement message) to a target UE (first terminal), where the notification message carries first information;

[0339] Step 1002: The target UE selects to establish a secure connection with reference UE#1 according to the first information.

[0340] Specifically, in Model A discovery, the second terminal carries the first information in the discovery message.

[0341] 1) Reference UE#1 and reference UE#2 send a notification message to the target UE, where the notification message carries first information, where the first information is used to indicate whether the service network of the second terminal supports or does not support the Ranging or SL Positioning function;

[0342] 2) The first terminal selects reference UE#1 according to the first information, and establishes a secure connection with the reference UE#1, such as establishing a unicast connection.

[0343] In one embodiment, the first information corresponding to the reference UE#1 is used to indicate that the service network of the reference UE#1 supports the Ranging or SL Positioning function, or that the service network of the reference UE#1 does not support the Ranging or SL Positioning function.

[0344] In Model B discovery, Fig.11 This is the seventh signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig.11 As shown, the method includes steps 1101 to 1102; wherein:

[0345] Step 1101: The target UE (first terminal) sends a solicitation message to the reference UE#1 and the reference UE#2 (second terminal), where the solicitation message carries first information.

[0346] Step 1102: Reference UE#1 and reference UE#2 select whether to send a reply message to the target UE according to the carried first information.

[0347] Specifically, in Model B discovery, the first terminal carries the first information in the discovery message.

[0348] 1) The target UE sends a solicitation message, which carries the first indication information.

[0349] 2) Determining the reply target UE according to the first information carried by the reference UE, including:

[0350] a. When the first information indicates that the service network of the first terminal supports the Ranging or SL Positioning function, the reference UE does not consider whether its service network supports it or not, and sends a reply message to the target UE, and the reply message optionally carries the first information of the reference UE;

[0351] b. When the first information indicates that the service network of the first terminal does not support the Ranging or SL Positioning function, reference UE#1 sends a reply message to the target UE when its service network supports the Ranging or SL Positioning function. The reply message may optionally carry the first information that the service network supports the Ranging or SL Positioning function.

[0352] (iii) Whether the service network supports the Ranging or SL Positioning function is added during the capability interaction between the first terminal and the second terminal.

[0353] Fig.12 This is the eighth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig.12 As shown, the method includes steps 1201 to 1202; wherein:

[0354] Step 1201: The target UE sends a ranging or SL positioning capability request message to the reference UE#1.

[0355] Step 1202: Referring to UE#1, a ranging or SL positioning capability response message is sent to the target UE, where the capability response message carries the first information.

[0356] Fig.13 This is the ninth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig.13 As shown, the method includes step 1301; wherein:

[0357] Step 1301: Referring to UE#1, a ranging or SL positioning capability provision message is sent to a target UE, where the capability provision message carries first information.

[0358] (iv) The terminal determines whether the network supports the Ranging or SL Positioning function based on the network feedback.

[0359] Fig.14 This is the tenth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig.14 As shown, the method includes steps 1401 to 1405; wherein:

[0360] Step 1401: The target UE sends a ranging or SL positioning function capability request message to the reference UE#1;

[0361] Step 1402: The reference UE#1 sends a ranging or SL positioning function capability response message to the target UE, where the capability response message carries first information, where the first information is used to indicate that the reference UE#1 and / or the service network of the reference UE#1 does not support the ranging or SL positioning function;

[0362] Step 1403: The target UE initiates SL-MO-LR to the AMF / LMF;

[0363] Step 1404: AMF / LMF sends a SL-MO-LR reject message to the target UE;

[0364] Step 1405: The target UE performs discovery and selection operations on the SL Positioning Server UE.

[0365] (V) The first terminal performs ranging or SL positioning related operations based on the first information.

[0366] Fig.15 This is the eleventh signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig.15 As shown, the method includes step 1501, step 1502a, step 1502b and step 1502c; wherein:

[0367] Step 1501, referring to UE#1, sends first information to a target UE;

[0368] Step 1502a: The target UE and the AMF / LMF perform an SL-MO-LR procedure.

[0369] Step 1502b: The target UE performs discovery and selection operations on the SL Positioning Server UE;

[0370] Step 1502c: The target UE sends a SL positioning assistance data request or a positioning measurement information request to the reference UE#1.

[0371] It should be noted that the above steps 1502a, 1502b and 1502c are all optional steps.

[0372] For example, if the first information in step 1501 is used to indicate that the reference UE#1 and / or the service network of the reference UE#1 supports the Ranging or SL Positioning function, step 1502c may be directly executed to perform ranging or SL positioning using the reference UE#1 or the service network of the reference UE#1;

[0373] If the first information in step 1501 is used to indicate that neither the reference UE#1 nor the service network of the reference UE#1 supports the Ranging or SL Positioning function, step 1502a can be continued, and the target UE determines to the AMF / LMF through SL-MO-LR whether the service network of the target UE supports the Ranging or SL Positioning function. If supported, there is no need to continue with step 1502b; if not, continue with step 1502b.

[0374] (VI) After the first terminal sends a positioning assistance data request or a positioning measurement information request to the second terminal, the second terminal performs ranging or SL positioning related operations according to the first information carried in the positioning assistance data request or the positioning measurement information request.

[0375] Fig.16 This is the twelfth signaling interaction diagram of the ranging or SL positioning method provided in the embodiment of the present application, such as Fig.16 As shown, the method includes step 1601, step 1602a and step 1602b; wherein:

[0376] Step 1601: The target UE sends a SL positioning assistance data request or a positioning measurement information request to the reference UE#1;

[0377] Step 1602a, refer to the SL-MO-LR process between UE#1 and AMF / LMF;

[0378] Step 1602b, refer to UE#1 to perform discovery and selection operations on the SL Positioning Server UE.

[0379] It should be noted that step 1602b is an optional step. If in step 1602a, reference UE#1 determines through the SL-MO-LR process that the service network of reference UE#1 supports the Ranging or SL Positioning function, step 1602b does not need to be performed; if reference UE#1 determines through the SL-MO-LR process that the service network of reference UE#1 does not support the Ranging or SL Positioning function, step 1602b is performed.

[0380] In an embodiment of the present application, the terminal may carry the first information that the service network supports or does not support the Ranging or SL Postioning function in the discovery message, and the AMF may also send the first information that the service network supports or does not support the Ranging or SL Postioning function to the terminal based on the Ranging or SL Postioning capability information of the terminal, thereby avoiding the introduction of the SL Positioning Server UE to perform ranging or SL positioning when the service network supports the Ranging or SL Postioning function, thereby effectively reducing the potential privacy and security risks of ranging or SL positioning.

[0381] The ranging or SL positioning method provided in the embodiment of the present application can be performed by a ranging or SL positioning device. In the embodiment of the present application, the ranging or SL positioning device performing the ranging or SL positioning method is taken as an example to illustrate the ranging or SL positioning device provided in the embodiment of the present application.

[0382] Fig.17 is one of the structural schematic diagrams of the ranging or SL positioning device provided in the embodiment of the present application, such as Fig.17 As shown, the ranging or SL positioning device 1700 includes:

[0383] An acquisition module 1701 is used to acquire first information;

[0384] An execution module 1702 is used to perform ranging or SL positioning related operations based on the first information;

[0385] The first information is used to indicate at least one of the following:

[0386] 1) Whether the service network of the first terminal supports ranging or SL positioning function;

[0387] 2) Whether the second terminal supports ranging or SL positioning function;

[0388] 3) Whether the service network of the second terminal supports ranging or SL positioning function;

[0389] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0390] In the ranging or SL positioning device provided in the embodiment of the present application, the acquisition module can obtain whether the service network of the first terminal, the second terminal, and the service network of the second terminal support the ranging or SL positioning function through the first information, and then the execution module refers to the first information to perform ranging or SL positioning related operations. Compared with the related art, the target UE or the reference UE directly discovers and selects an SL Positioning Server UE to help the target UE realize the ranging or SL positioning function, the first information is referred to in the present application, which can avoid introducing a new SL Positioning Server UE to perform ranging or SL positioning related operations when the service network of the first terminal, the second terminal, or the service network of the second terminal supports the ranging or SL positioning function, thereby effectively reducing potential privacy and security risks.

[0391] Optionally, the ranging or SL positioning related operations include at least one of the following:

[0392] 1) Initiate SL-MO-LR to the service network of the first terminal;

[0393] 2) Discovery and selection of SL Positioning Server UE;

[0394] 3) Requesting positioning assistance data or positioning measurement information from the second terminal.

[0395] Optionally, the acquisition module 1701 is specifically configured to perform at least one of the following:

[0396] (1) receiving first information from a second terminal;

[0397] (2) Receive first information from a network-side device, where the network-side device is related to a service network of the first terminal.

[0398] Optionally, the acquisition module 1701 is further configured to perform at least one of the following:

[0399] 1) receiving a discovery message from a second terminal, where the discovery message carries first information, and the discovery message includes at least one of the following: a notification message in a Model A discovery scenario, and a reply message in a Model B discovery scenario;

[0400] 2) receiving a capability interaction message from the second terminal, wherein the capability interaction message carries the first information, and the capability interaction message includes at least one of a capability response message and a capability distribution message.

[0401] Optionally, the acquisition module 1701 is further specifically configured to:

[0402] 1) When the first terminal sends a first registration request message to the network side device, a first registration response message is received from the network side device; wherein the first registration request message carries first capability information corresponding to the first terminal, the first capability information is used to indicate the first capability supported by the first terminal in the ranging or SL positioning process, and the first registration response message carries the first information;

[0403] 2) When the first terminal sends the SL-MO-LR to the network side device, a first response message is received from the network side device; wherein the first response message is used to indicate the first information.

[0404] Optionally, the first capability includes at least one of the following capabilities:

[0405] a. Target UE;

[0406] b. Reference UE;

[0407] c.client UE;

[0408] d.SL Positioning Server UE;

[0409] e.SL located in UE;

[0410] f.Assistant UE.

[0411] Optionally, the execution module 1702 is specifically configured to:

[0412] (1) When the first terminal does not support ranging or SL positioning function, and the first information indicates that at least one of the second terminal, the service network of the second terminal and the service network of the first terminal supports ranging or SL positioning function, performing at least one of the following operations: initiating SL-MO-LR to the service network of the first terminal; requesting positioning assistance data or positioning measurement information from the second terminal;

[0413] (2) When the first terminal does not support ranging or SL positioning functions, and the first information indicates that the second terminal, the service network of the second terminal and the service network of the first terminal do not support ranging or SL positioning functions, perform discovery and selection operations of the SLPositioning Server UE.

[0414] Optionally, the execution module 1702 is further specifically configured to:

[0415] 1) When the first terminal does not support ranging or SL positioning function and the first information indicates that the second terminal supports ranging or SL positioning function, requesting positioning assistance data or positioning measurement information from the second terminal;

[0416] 2) When the first terminal does not support ranging or SL positioning function, and the first information indicates that the service network of the second terminal supports ranging or SL positioning function, requesting positioning assistance data or positioning measurement information from the second terminal;

[0417] 3) When the first terminal does not support ranging or SL positioning function, and the first information indicates that the second terminal and the service network of the second terminal do not support ranging or SL positioning function, and the service network of the first terminal supports ranging or SL positioning function, SL-MO-LR is initiated to the service network of the first terminal.

[0418] Optionally, the network side device includes at least one of the following: a) AMF; b) LMF.

[0419] Fig.18 This is the second structural diagram of the distance measurement or SL positioning device provided in the embodiment of the present application, such as Fig.18 As shown, the ranging or SL positioning device 1800 includes:

[0420] The communication module 1801 is used for:

[0421] Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0422] or,

[0423] Receiving first information from a first terminal; performing ranging or SL positioning related operations based on the first information;

[0424] The first information is used to indicate at least one of the following:

[0425] 1) Whether the service network of the first terminal supports ranging or SL positioning function;

[0426] 2) Whether the second terminal supports ranging or SL positioning function;

[0427] 3) Whether the service network of the second terminal supports ranging or SL positioning function;

[0428] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0429] In the ranging or SL positioning device provided in the embodiment of the present application, the communication module can send a first information to the first terminal, or receive a first information from the first terminal, and based on the first information, perform ranging or SL positioning related operations, and obtain information through the first information whether the service network of the first terminal, the second terminal, and the service network of the second terminal support the ranging or SL positioning function, and then refer to the first information to perform ranging or SL positioning related operations. Compared with the related art, a SL Positioning Server UE is directly discovered and selected by the target UE or the reference UE to help the target UE realize the ranging or SL positioning function. In the present application, referring to the first information can avoid introducing a new SL Positioning Server UE to perform ranging or SL positioning related operations when the service network of the first terminal, the second terminal, or the service network of the second terminal supports the ranging or SL positioning function, thereby effectively reducing potential privacy and security risks.

[0430] Optionally, the communication module 1801 is specifically configured to perform at least one of the following:

[0431] 1) sending a discovery message to the first terminal, where the discovery message carries first information, and the discovery message includes at least one of the following: a notification message in the Model A discovery scenario, and a reply message in the Model B discovery scenario;

[0432] 2) Sending a capability interaction message to the first terminal, where the capability interaction message carries the first information, and the capability interaction message includes at least one of a capability response message and a capability distribution message.

[0433] Optionally, the communication module 1801 is further specifically used to: receive a positioning assistance data request or a positioning measurement information request from the first terminal, where the positioning assistance data request or the positioning measurement information request carries the first information.

[0434] Optionally, the communication module 1801 is further specifically configured to:

[0435] 1) When the first information only indicates that the service network of the first terminal does not support ranging or SL positioning functions, the second terminal initiates SL-MO-LR to the service network of the second terminal;

[0436] 2) When the first information indicates that the service network of the first terminal and the service network of the second terminal do not support ranging or SL positioning functions, the second terminal performs discovery and selection operations of the SL Positioning Server UE.

[0437] Optionally, the distance measurement or SL positioning device 1800 further includes: a first processing module, configured to:

[0438] obtaining second information;

[0439] generating first information based on the second information;

[0440] The second information is used to indicate at least one of the following:

[0441] a. Whether the second terminal supports the function corresponding to the SL Positioning Server UE;

[0442] b. Whether the service network of the second terminal supports ranging or SL positioning function;

[0443] c. Whether the second terminal is within the service area;

[0444] d. Whether the second terminal is in the restricted area.

[0445] Optionally, the first processing module is specifically configured to:

[0446] 1) when the second information indicates that the second terminal supports a function corresponding to the SL Positioning Server UE, generating first information for indicating that the second terminal supports a ranging or SL positioning function;

[0447] 2) when the second information indicates that the second terminal does not support the function corresponding to the SL Positioning Server UE, generating first information for indicating that the second terminal does not support the ranging or SL positioning function;

[0448] 3) when the second information indicates that the service network of the second terminal supports the ranging or SL positioning function, generating first information for indicating that the service network of the second terminal supports the ranging or SL positioning function;

[0449] 4) when the second information indicates that the service network of the second terminal does not support the ranging or SL positioning function, generating first information for indicating that the service network of the second terminal does not support the ranging or SL positioning function;

[0450] 5) when the second information indicates that the second terminal is not in the service area, generating first information for indicating that the service network of the second terminal does not support ranging or SL positioning function;

[0451] 6) When the second information indicates that the second terminal is in a restricted area, generate first information for indicating that the service network of the second terminal does not support ranging or SL positioning functions.

[0452] Optionally, the first processing module is further specifically configured to:

[0453] 1) When the second terminal sends a second registration request message to the network side device, a second registration response message is received from the network side device; wherein the network side device is related to the service network of the second terminal, the second registration request message carries second capability information corresponding to the second terminal, the second capability information is used to indicate the second capability supported by the second terminal in the ranging or SL positioning process, and the second registration response message carries the second information;

[0454] 2) When the second terminal sends SL-MO-LR to the network side device, receive a second response message from the network side device; wherein the network side device is related to the service network of the second terminal, and the second response message is used to indicate the second information.

[0455] Optionally, the second capability includes at least one of the following capabilities:

[0456] a. Target UE;

[0457] b. Reference UE;

[0458] c.client UE;

[0459] d.SL Positioning Server UE;

[0460] e.SL located in UE;

[0461] f.Assistant UE.

[0462] Optionally, the network side device may include at least one of the following: a) AMF; b) LMF.

[0463] Fig.19 This is the third structural diagram of the distance measurement or SL positioning device provided in the embodiment of the present application, such as Fig.19 As shown, the ranging or SL positioning device 1900 includes:

[0464] The sending module 1901 is used for:

[0465] Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations;

[0466] or,

[0467] Sending second information to the second terminal, the second information is used to generate the first information, the first information is used to perform ranging or SL positioning related operations; the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the secondary link positioning service user equipment SL Positioning Server UE; whether the service network of the second terminal supports ranging or SL positioning function; whether the second terminal is in the service area; whether the second terminal is in the restricted area;

[0468] The first information is used to indicate at least one of the following:

[0469] 1) Whether the service network of the first terminal supports ranging or SL positioning function;

[0470] 2) Whether the second terminal supports ranging or SL positioning function;

[0471] 3) Whether the service network of the second terminal supports ranging or SL positioning function;

[0472] The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

[0473] In the ranging or SL positioning device provided in the embodiment of the present application, the sending module can send the first information to the first terminal, or send the second information used to generate the first information to the second terminal, and then the first terminal or the second terminal can obtain the first information through the first information whether the service network of the first terminal, the second terminal, and the service network of the second terminal support the ranging or SL positioning function, and then refer to the first information to perform ranging or SL positioning related operations. Compared with the related art, the target UE or the reference UE directly discovers and selects an SL Positioning Server UE to help the target UE realize the ranging or SL positioning function, the first information is referred to in the present application, which can avoid introducing a new SL Positioning Server UE to perform ranging or SL positioning related operations when the service network of the first terminal, the second terminal, or the service network of the second terminal supports the ranging or SL positioning function, effectively reducing potential privacy and security risks.

[0474] Optionally, the distance measurement or SL positioning device 1900 further includes: a second processing module, configured to:

[0475] receiving a first registration request message from a first terminal, where the first registration request message carries first capability information corresponding to the first terminal, where the first capability information is used to indicate a first capability supported by the first terminal in a ranging or SL positioning process;

[0476] Generate first information based on the first capability information and / or the first subscription information, where the first subscription information is used to indicate whether the ranging or SL positioning function of the first terminal is authorized;

[0477] The sending module 1901 is specifically used for:

[0478] A first registration response message is sent to the first terminal, where the first registration response message carries first information.

[0479] Optionally, the first capability includes at least one of the following capabilities:

[0480] a. Target UE;

[0481] b. Reference UE;

[0482] c.client UE;

[0483] d.SL Positioning Server UE;

[0484] e.SL located in UE;

[0485] f.Assistant UE.

[0486] Optionally, the second processing module is further used for:

[0487] Receiving a secondary link mobile originated positioning request SL-MO-LR from the first terminal;

[0488] Sending first information to a first terminal includes:

[0489] A first response message is sent to the first terminal, where the first response message is used to indicate the first information.

[0490] Optionally, the second processing module is further used for:

[0491] receiving a second registration request message from the second terminal, where the second registration request message carries second capability information corresponding to the second terminal, where the second capability information is used to indicate a second capability supported by the second terminal in a ranging or SL positioning process;

[0492] Generate second information based on the second capability information and / or the second subscription information, where the second subscription information is used to indicate whether the ranging or SL positioning function of the second terminal is authorized;

[0493] The sending module 1901 is further specifically used for:

[0494] A second registration response message is sent to the second terminal, where the second registration response message carries second information.

[0495] Optionally, the second capability includes at least one of the following capabilities:

[0496] a. Target UE;

[0497] b. Reference UE;

[0498] c.client UE;

[0499] d.SL Positioning Server UE;

[0500] e.SL located in UE;

[0501] f.Assistant UE.

[0502] Optionally, the second processing module is further used for:

[0503] receiving the SL-MO-LR from the second terminal;

[0504] The sending module 1901 is further specifically used for:

[0505] A second response message is sent to the second terminal, where the second response message is used to indicate the second information.

[0506] Optionally, the network side device may include at least one of the following: a) AMF; b) LMF.

[0507] The ranging or SL positioning device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the terminal can include but is not limited to the types of terminals 11 listed above, and other devices can be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of the present application.

[0508] The distance measurement or SL positioning device provided in the embodiment of the present application can achieve Figures 2 to 16 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.

[0509] Fig. 20 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application, such as Fig. 20As shown, an embodiment of the present application further provides a communication device 2000, including a processor 2001 and a memory 2002, and the memory 2002 stores a program or instruction that can be run on the processor 2001. For example, when the communication device 2000 is a first terminal, the program or instruction is executed by the processor 2001 to implement the various steps of the ranging or SL positioning method embodiment on the first terminal side, and can achieve the same technical effect. When the communication device 2000 is a second terminal, the program or instruction is executed by the processor 2001 to implement the various steps of the ranging or SL positioning method embodiment on the second terminal side, and can achieve the same technical effect. When the communication device 2000 is a network side device, the program or instruction is executed by the processor 2001 to implement the various steps of the ranging or SL positioning method embodiment on the network side, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0510] The embodiment of the present application also provides a first terminal, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the following Figure 2 The steps in the method embodiment shown. The first terminal embodiment corresponds to the first terminal side method embodiment described above, and each implementation process and implementation method of the above method embodiment can be applied to the first terminal embodiment and can achieve the same technical effect. Specifically, Fig.21 It is a schematic diagram of the hardware structure of a first terminal provided in an embodiment of the present application.

[0511] The first terminal 2100 includes but is not limited to: a radio frequency unit 2101, a network module 2102, an audio output unit 2103, an input unit 2104, a sensor 2105, a display unit 2106, a user input unit 2107, an interface unit 2108, a memory 2109 and at least some of the components of the processor 2110.

[0512] Those skilled in the art will appreciate that the first terminal 2100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 2110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.21 The first terminal structure shown in the figure does not constitute a limitation on the first terminal. The first terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0513] It should be understood that in the embodiment of the present application, the input unit 2104 may include a graphics processing unit (GPU) 21041 and a microphone 21042, and the graphics processor 21041 processes the image data of the static picture or video obtained by the image capture device (camera) in the video capture mode or the image capture mode. The display unit 2106 may include a display panel 21061, and the display panel 21061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 2107 includes a touch panel 21071 and at least one of other input devices 21072. The touch panel 21071 is also called a touch screen. The touch panel 21071 may include two parts: a touch detection device and a touch controller. Other input devices 21072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0514] In the embodiment of the present application, after receiving downlink data from the network side device, the RF unit 2101 can transmit the data to the processor 2110 for processing; in addition, the RF unit 2101 can send uplink data to the network side device. Generally, the RF unit 2101 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.

[0515] The memory 2109 can be used to store software programs or instructions and various data. The memory 2109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 2109 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 2109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0516] The processor 2110 may include one or more processing units; optionally, the processor 2110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 2110.

[0517] The embodiment of the present application also provides a second terminal, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the following Figure 3 The steps in the method embodiment shown. The second terminal embodiment corresponds to the second terminal side method embodiment described above. Each implementation process and implementation method of the above method embodiment can be applied to the second terminal embodiment and can achieve the same technical effect. Specifically, Fig. 22It is a schematic diagram of the hardware structure of a second terminal provided in an embodiment of the present application.

[0518] The second terminal 2200 includes but is not limited to: a radio frequency unit 2201, a network module 2202, an audio output unit 2203, an input unit 2204, a sensor 2205, a display unit 2206, a user input unit 2207, an interface unit 2208, a memory 2209 and at least some of the components of the processor 2210.

[0519] Those skilled in the art will appreciate that the second terminal 2200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 2210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.21 The second terminal structure shown in the figure does not constitute a limitation on the second terminal. The second terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0520] It should be understood that in the embodiment of the present application, the input unit 2204 may include a graphics processing unit (GPU) 22041 and a microphone 22042, and the graphics processor 22041 processes the image data of the static picture or video obtained by the image capture device (camera) in the video capture mode or the image capture mode. The display unit 2206 may include a display panel 22061, and the display panel 22061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 2207 includes a touch panel 22071 and at least one of other input devices 22072. The touch panel 22071 is also called a touch screen. The touch panel 22071 may include two parts: a touch detection device and a touch controller. Other input devices 22072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0521] In the embodiment of the present application, after receiving downlink data from the network side device, the RF unit 2201 can transmit the data to the processor 2210 for processing; in addition, the RF unit 2201 can send uplink data to the network side device. Generally, the RF unit 2201 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.

[0522] The memory 2209 can be used to store software programs or instructions and various data. The memory 2209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 2209 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 2209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0523] The processor 2210 may include one or more processing units; optionally, the processor 2210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 2210.

[0524] It can be understood that the implementation process of each implementation method mentioned in this embodiment can refer to the relevant description of the ranging or SL positioning method in the method embodiment, and achieve the same or corresponding technical effect. To avoid repetition, it will not be repeated here.

[0525] The embodiment of the present application also provides a network side device, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the following Figure 4The steps of the method embodiment shown. This network side device embodiment corresponds to the above network side device method embodiment, and each implementation process and implementation mode of the above method embodiment can be applied to this network side device embodiment and can achieve the same technical effect.

[0526] Specifically, an embodiment of the present application also provides a network side device. Fig.23 is a schematic diagram of the structure of a network side device provided in an embodiment of the present application, such as Fig.23 As shown, the network side device 2300 includes: an antenna 2301, a radio frequency device 2302, a baseband device 2303, a processor 2304 and a memory 2305. The antenna 2301 is connected to the radio frequency device 2302. In the uplink direction, the radio frequency device 2302 receives information through the antenna 2301 and sends the received information to the baseband device 2303 for processing. In the downlink direction, the baseband device 2303 processes the information to be sent and sends it to the radio frequency device 2302. The radio frequency device 2302 processes the received information and sends it out through the antenna 2301.

[0527] The method executed by the network-side device in the above embodiment may be implemented in the baseband device 2303, which includes a baseband processor.

[0528] The baseband device 2303 may include, for example, at least one baseband board on which a plurality of chips are arranged. Fig.23 As shown, one of the chips is, for example, a baseband processor, which is connected to the memory 2305 through a bus interface to call the program in the memory 2305 to execute the network device operations shown in the above method embodiment.

[0529] The network side device may further include a network interface 2306, which is, for example, a Common Public Radio Interface (CPRI).

[0530] Specifically, the network side device 2300 of the embodiment of the present application also includes: instructions or programs stored in the memory 2305 and executable on the processor 2304, and the processor 2304 calls the instructions or programs in the memory 2305 to execute Fig.18 The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.

[0531] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned ranging or SL positioning method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0532] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk. In some examples, the readable storage medium may be a non-transient readable storage medium.

[0533] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned ranging or SL positioning method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0534] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0535] The embodiments of the present application further provide a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned ranging or SL positioning method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0536] An embodiment of the present application also provides a ranging or SL positioning system, including: a first terminal, a second terminal and a network side device, wherein the first terminal can be used to execute the steps of the ranging or SL positioning method on the first terminal side as described above, the second terminal can be used to execute the steps of the ranging or SL positioning method on the second terminal side as described above, and the network side device can be used to execute the steps of the ranging or SL positioning method on the network side as described above.

[0537] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0538] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general hardware platform, and of course, can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, disk, CD, etc.), including several instructions to enable a terminal or a network-side device to execute the methods described in each embodiment of the present application.

[0539] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.

Claims

1. A ranging or secondary link SL positioning method, characterized in that: include: The first terminal obtains first information; The first terminal performs ranging or SL positioning related operations based on the first information; The first information is used to indicate at least one of the following: Whether the service network of the first terminal supports ranging or SL positioning function; Whether the second terminal supports ranging or SL positioning function; Whether the service network of the second terminal supports ranging or SL positioning function; The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

2. The ranging or SL positioning method according to claim 1, characterized in that: The ranging or SL positioning related operations include at least one of the following: Initiate a secondary link mobile originated location request SL-MO-LR to the service network of the first terminal; Discovery and selection operations for secondary link positioning service user equipment SLPositioning Server UE; Request the second terminal for positioning assistance data or positioning measurement information.

3. The ranging or SL positioning method according to claim 1 or 2, characterized in that: The first terminal obtains first information, including at least one of the following: The first terminal receives the first information from the second terminal; The first terminal receives the first information from a network side device, where the network side device is related to a service network of the first terminal.

4. The ranging or SL positioning method according to claim 3, characterized in that: The first terminal receives the first information from the second terminal, including at least one of the following: The first terminal receives a discovery message from the second terminal, the discovery message carrying the first information, the discovery message including at least one of the following: a notification message in a discovery scenario of model Model A, and a reply message in a discovery scenario of Model B; The first terminal receives a capability interaction message from the second terminal, where the capability interaction message carries the first information, and the capability interaction message includes at least one of a capability response message and a capability distribution message.

5. The ranging or SL positioning method according to claim 3, characterized in that: The first terminal receives the first information from the network side device, including: In the case where the first terminal sends a first registration request message to the network side device, the first terminal receives a first registration response message from the network side device; wherein the first registration request message carries first capability information corresponding to the first terminal, the first capability information is used to indicate a first capability supported by the first terminal in a ranging or SL positioning process, and the first registration response message carries the first information; In the case where the first terminal sends the SL-MO-LR to the network side device, the first terminal receives a first response message from the network side device; wherein the first response message is used to indicate the first information.

6. The ranging or SL positioning method according to claim 5, characterized in that: The first capability includes at least one of the following capabilities: Target user equipment UE; Reference UE; Proxy client UE; SL Positioning Server UE; SL locates the located UE; AssistAssistant UE.

7. The ranging or SL positioning method according to any one of claims 1 to 6, characterized in that: The first terminal performs ranging or SL positioning related operations based on the first information, including: In the case where the first terminal does not support ranging or SL positioning functions, and the first information indicates that at least one of the second terminal, the service network of the second terminal, and the service network of the first terminal supports ranging or SL positioning functions, the first terminal performs at least one of the following operations: initiating SL-MO-LR to the service network of the first terminal; requesting positioning assistance data or positioning measurement information from the second terminal; When the first terminal does not support ranging or SL positioning functions, and the first information indicates that the second terminal, the service network of the second terminal and the service network of the first terminal do not support ranging or SL positioning functions, the first terminal performs discovery and selection operations of the SLPositioning Server UE.

8. The ranging or SL positioning method according to claim 7, characterized in that: In a case where the first terminal does not support a ranging or SL positioning function, and the first information indicates that at least one of the second terminal, the service network of the second terminal, and the service network of the first terminal supports a ranging or SL positioning function, the performing ranging or SL positioning related operations further includes at least one of the following: In a case where the first terminal does not support ranging or SL positioning function, and the first information indicates that the second terminal supports ranging or SL positioning function, the first terminal requests positioning assistance data or positioning measurement information from the second terminal; In a case where the first terminal does not support ranging or SL positioning function, and the first information indicates that the service network of the second terminal supports ranging or SL positioning function, the first terminal requests positioning assistance data or positioning measurement information from the second terminal; When the first terminal does not support ranging or SL positioning function, and the first information indicates that both the second terminal and the service network of the second terminal do not support ranging or SL positioning function, and the service network of the first terminal supports ranging or SL positioning function, the first terminal initiates SL-MO-LR to the service network of the first terminal.

9. The ranging or SL positioning method according to claim 3 or 5, characterized in that: The network side device includes at least one of the following: Access and mobility management function AMF; Location management function LMF.

10. A ranging or secondary link SL positioning method, characterized in that: include: The second terminal sends first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations; or, The second terminal receives the first information from the first terminal; the second terminal performs ranging or SL positioning related operations based on the first information; The first information is used to indicate at least one of the following: Whether the service network of the first terminal supports ranging or SL positioning function; Whether the second terminal supports ranging or SL positioning function; Whether the service network of the second terminal supports ranging or SL positioning function; The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

11. The ranging or SL positioning method according to claim 10, characterized in that: The second terminal sends the first information to the first terminal, including at least one of the following: The second terminal sends a discovery message to the first terminal, the discovery message carries the first information, and the discovery message includes at least one of the following: a notification message in a discovery scenario of Model A, and a reply message in a discovery scenario of Model B; The second terminal sends a capability interaction message to the first terminal, where the capability interaction message carries the first information, and the capability interaction message includes at least one of a capability response message and a capability distribution message.

12. The ranging or SL positioning method according to claim 10, characterized in that: The second terminal receives first information from the first terminal, including: The second terminal receives a positioning assistance data request or a positioning measurement information request from the first terminal, where the positioning assistance data request or the positioning measurement information request carries the first information.

13. The ranging or SL positioning method according to claim 10 or 12, characterized in that: The second terminal performs ranging or SL positioning related operations based on the first information, including: In a case where the first information only indicates that the service network of the first terminal does not support ranging or SL positioning functions, the second terminal initiates SL-MO-LR to the service network of the second terminal; When the first information indicates that the service network of the first terminal and the service network of the second terminal do not support ranging or SL positioning functions, the second terminal performs discovery and selection operations of a secondary link positioning service user equipment SL PositioningServer UE.

14. The ranging or SL positioning method according to any one of claims 10 to 13, characterized in that: The method further comprises: The second terminal obtains second information; The second terminal generates the first information based on the second information; The second information is used to indicate at least one of the following: Whether the second terminal supports the function corresponding to the SLPositioning Server UE; Whether the service network of the second terminal supports ranging or SL positioning function; whether the second terminal is within the service area; Whether the second terminal is in a restricted area.

15. The ranging or SL positioning method according to claim 14, characterized in that: The second terminal generates the first information based on the second information, including: In a case where the second information indicates that the second terminal supports a function corresponding to the SL Positioning Server UE, the second terminal generates first information for indicating that the second terminal supports a ranging or SL positioning function; In a case where the second information indicates that the second terminal does not support a function corresponding to the SL Positioning Server UE, the second terminal generates first information for indicating that the second terminal does not support a ranging or SL positioning function; In a case where the second information indicates that the service network of the second terminal supports ranging or SL positioning function, the second terminal generates first information for indicating that the service network of the second terminal supports ranging or SL positioning function; In a case where the second information indicates that the service network of the second terminal does not support the ranging or SL positioning function, the second terminal generates first information for indicating that the service network of the second terminal does not support the ranging or SL positioning function; When the second information indicates that the second terminal is not in a service area, the second terminal generates first information for indicating that a service network of the second terminal does not support ranging or SL positioning functions; In a case where the second information indicates that the second terminal is within the restricted area, the second terminal generates first information for indicating that a service network of the second terminal does not support ranging or SL positioning functions.

16. The ranging or SL positioning method according to claim 14 or 15, characterized in that: The second terminal obtains the second information, including: In a case where the second terminal sends a second registration request message to the network side device, the second terminal receives a second registration response message from the network side device; wherein the network side device is related to a service network of the second terminal, the second registration request message carries second capability information corresponding to the second terminal, the second capability information is used to indicate a second capability supported by the second terminal in a ranging or SL positioning process, and the second registration response message carries the second information; When the second terminal sends a sub-link mobile originated positioning request SL-MO-LR to the network side device, the second terminal receives a second response message from the network side device; wherein the network side device is related to the service network of the second terminal, and the second response message is used to indicate the second information.

17. The ranging or SL positioning method according to claim 16, characterized in that: The second capability includes at least one of the following capabilities: Target user equipment UE; Reference UE; Proxy client UE; SL Positioning Server UE; SL locates the located UE; AssistAssistant UE.

18. The ranging or SL positioning method according to claim 16 or 17, characterized in that: The network side device includes at least one of the following: Access and mobility management function AMF; Location management function LMF.

19. A ranging or secondary link SL positioning method, characterized in that: include: The network side device sends first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations; or, The network side device sends second information to the second terminal, where the second information is used to generate the first information, and the first information is used to perform ranging or SL positioning related operations; the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the secondary link positioning service user equipment SL Positioning Server UE; whether the service network of the second terminal supports ranging or SL positioning function; whether the second terminal is in the service area; whether the second terminal is in a restricted area; The first information is used to indicate at least one of the following: Whether the service network of the first terminal supports ranging or SL positioning function; Whether the second terminal supports ranging or SL positioning function; Whether the service network of the second terminal supports ranging or SL positioning function; The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

20. The ranging or SL positioning method according to claim 19, characterized in that: The method further comprises: The network side device receives a first registration request message from the first terminal, where the first registration request message carries first capability information corresponding to the first terminal, where the first capability information is used to indicate a first capability supported by the first terminal in a ranging or SL positioning process; The network side device generates the first information based on the first capability information and / or the first subscription information, where the first subscription information is used to indicate whether the ranging or SL positioning function of the first terminal is authorized; The network side device sends first information to the first terminal, including: The network side device sends a first registration response message to the first terminal, where the first registration response message carries the first information.

21. The ranging or SL positioning method according to claim 20, characterized in that: The first capability includes at least one of the following capabilities: Target user equipment UE; Reference UE; Proxy client UE; SL Positioning Server UE; SL locates the located UE; AssistAssistant UE.

22. The ranging or SL positioning method according to any one of claims 19 to 21, characterized in that: The method further comprises: The network side device receives a secondary link mobile originated positioning request SL-MO-LR from the first terminal; The network side device sends first information to the first terminal, including: The network side device sends a first response message to the first terminal, where the first response message is used to indicate the first information.

23. The ranging or SL positioning method according to claim 19, characterized in that: The method further comprises: The network side device receives a second registration request message from the second terminal, where the second registration request message carries second capability information corresponding to the second terminal, where the second capability information is used to indicate a second capability supported by the second terminal in a ranging or SL positioning process; The network side device generates the second information based on the second capability information and / or the second subscription information, where the second subscription information is used to indicate whether the ranging or SL positioning function of the second terminal is authorized; The network side device sends second information to the second terminal, including: The network side device sends a second registration response message to the second terminal, where the second registration response message carries the second information.

24. The ranging or SL positioning method according to claim 23, characterized in that: The second capability includes at least one of the following capabilities: Target UE; Reference UE; client UE; SL Positioning Server UE; SLlocated UE; Assistant UE.

25. The ranging or SL positioning method according to claim 19, 22 or 23, characterized in that: The method further comprises: The network side device receives the SL-MO-LR from the second terminal; The network side device sends second information to the second terminal, including: The network side device sends a second response message to the second terminal, where the second response message is used to indicate the second information.

26. The ranging or SL positioning method according to any one of claims 19 to 25, characterized in that: The network side device includes at least one of the following: Access and mobility management function AMF; Location management function LMF.

27. A ranging or secondary link SL positioning device, characterized in that: include: An acquisition module, used for acquiring first information; An execution module, configured to perform ranging or SL positioning related operations based on the first information; The first information is used to indicate at least one of the following: Whether the service network of the first terminal supports ranging or SL positioning function; Whether the second terminal supports ranging or SL positioning function; Whether the service network of the second terminal supports ranging or SL positioning function; The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

28. A ranging or secondary link SL positioning device, characterized in that: include: Communication modules for: Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations; or, Receiving first information from a first terminal; performing ranging or SL positioning related operations based on the first information; The first information is used to indicate at least one of the following: Whether the service network of the first terminal supports ranging or SL positioning function; Whether the second terminal supports ranging or SL positioning function; Whether the service network of the second terminal supports ranging or SL positioning function; The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

29. A ranging or secondary link SL positioning device, characterized in that: include: Sending module, used for: Sending first information to the first terminal, where the first information is used to perform ranging or SL positioning related operations; or, Sending second information to a second terminal, where the second information is used to generate the first information, and the first information is used to perform ranging or SL positioning related operations; the second information is used to indicate at least one of the following: whether the second terminal supports the function corresponding to the secondary link positioning service user equipment SL Positioning Server UE; whether the service network of the second terminal supports ranging or SL positioning function; whether the second terminal is in the service area; whether the second terminal is in a restricted area; The first information is used to indicate at least one of the following: Whether the service network of the first terminal supports ranging or SL positioning function; Whether the second terminal supports ranging or SL positioning function; Whether the service network of the second terminal supports ranging or SL positioning function; The second terminal is a reference terminal discovered by the first terminal and used to perform ranging or SL positioning related operations.

30. A first terminal, characterized in that: It includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the ranging or sub-link SL positioning method as described in any one of claims 1 to 9 are implemented.

31. A second terminal, characterized in that: It includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the ranging or sub-link SL positioning method as described in any one of claims 10 to 18 are implemented.

32. A network side device, characterized in that: It includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the ranging or sub-link SL positioning method as described in any one of claims 19 to 26 are implemented.

33. A readable storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, they implement the ranging or sub-link SL positioning method as described in any one of claims 1 to 9, or implement the steps of the ranging or sub-link SL positioning method as described in any one of claims 10 to 18, or implement the steps of the ranging or sub-link SL positioning method as described in any one of claims 19 to 26.