WO2022247831A1 - Terminal device communication method, apparatus and system - Google Patents

Terminal device communication method, apparatus and system Download PDF

Info

Publication number
WO2022247831A1
WO2022247831A1 PCT/CN2022/094743 CN2022094743W WO2022247831A1 WO 2022247831 A1 WO2022247831 A1 WO 2022247831A1 CN 2022094743 W CN2022094743 W CN 2022094743W WO 2022247831 A1 WO2022247831 A1 WO 2022247831A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
response message
layer
message
target
Prior art date
Application number
PCT/CN2022/094743
Other languages
French (fr)
Chinese (zh)
Inventor
许胜锋
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022247831A1 publication Critical patent/WO2022247831A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • H04W8/14Mobility data transfer between corresponding nodes

Definitions

  • the present application relates to the communication field, and in particular to a communication method, device and system for terminal equipment.
  • Device-to-Device (Device-to-Device, D2D) communication is a method that allows multiple terminal devices to communicate directly.
  • This communication technology allows the multiple user equipments to share spectrum resources under the control of the cell network, so that the spectrum The utilization rate of resources has been effectively improved.
  • This communication technology supports one-to-one communication and one-to-many communication between terminal devices. In the one-to-one communication technology, when the distance between the source terminal device and the target terminal device is within the distance range supporting D2D communication (the distance range may depend on practical applications), the two can communicate directly after discovering each other.
  • the discovery between the source terminal device and the target terminal device can be realized through D2D discovery parameters.
  • the discovery parameter is included in the message sent by the source terminal device for discovering the target terminal device.
  • the discovery parameters are application-based discovery parameters.
  • At least one terminal device other than the source terminal device and the target terminal device also holds the application-based discovery parameter.
  • the source terminal device can thus discover one or more terminal devices including the target terminal device.
  • the source terminal device cannot identify the target terminal device from the one or more terminal devices without specifying the identity of the target terminal device.
  • This application describes a communication method, device and system for terminal equipment.
  • embodiments of the present application provide a communication method for a terminal device, where the method is executed by a first terminal device.
  • the method includes: the first terminal device sends a first message to a first area, and the first area satisfies at least one of the following: the first area is located in a first direction of the first terminal device, or the first area The distance from the first terminal device is within a first distance range; the first terminal device receives one or more response messages, and the one or more response messages include identification information of one or more second terminal devices, The one or more second terminal devices are located in the first area; the first terminal device determines that the first response message among the one or more response messages is a response message of the target terminal device, and the first response message includes the Identification information of the target terminal device.
  • the first terminal device sends a first message to one or more second terminal devices in the first area that meet certain conditions, and the first terminal device receives one or more responses from one or more second terminal devices
  • the message determines that the first response message is the response message of the target terminal device, and obtains the identification information of the target terminal device from the response message of the target terminal device, so that when the first terminal device does not know the identification information of the target terminal device In this case, the discovery of the target terminal device is realized.
  • the one or more response messages include identification information of one or more second terminal devices
  • each of the one or more response messages includes identification information of a second terminal device” , that is, each second terminal device among the one or more second terminal devices sends a response message, and the response message sent by each second terminal device includes the identification information of the second terminal device.
  • sending the first message to the first area can be understood as sending the first message to one or more second terminal devices in the first area, and can also be understood as sending the first message to one or more second terminal devices in the first direction
  • Sending the first message may also be understood as sending the first message to one or more second terminal devices whose distance from the first terminal device is within a first distance range.
  • the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: determining, by a neighbor-based service layer of the first terminal device, that the The first response message in the one or more response messages is a response message of the target terminal device.
  • the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The service layer based on the neighbor of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the service layer based on the neighbor of the first terminal device according to the The first distance range and the distance between the one or more second terminal devices and the first terminal device determine that the first response message among the one or more response messages is a response message of the target terminal device.
  • the distance between the one or more second terminal devices and the first terminal device in this embodiment can be understood as “the distance between each of the one or more second terminal devices The distance between the terminal device and the first terminal device", that is to say, the distance may be different with the second terminal device.
  • the neighbor-based service layer of the first terminal device compares the first distance range with, and the distance between one or more second terminal devices and the first terminal device, and obtains from the one or more response messages The response message of the target terminal device is selected, that is, the first response message.
  • the distance between the target terminal device and the first terminal device satisfies the first distance range, in other words, if the distance between a terminal device and the first terminal device satisfies the first distance range, then the terminal device is the target
  • the terminal device if the distance between the terminal device and the first terminal device does not meet the first distance range, then the terminal device is not the target terminal device, and the response message of the terminal device is also not the response message of the target terminal device.
  • This specific implementation method is also applicable to this aspect or other aspects of this application regarding how to "determine the one or more second terminal devices based on the first distance range and the distance between the first terminal device and the or the first response message among the multiple response messages is the response message of the target terminal device", which will not be repeated here.
  • the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the neighbor-based service layer of the first terminal device according to The time-of-flight between the one or more second terminal devices and the first terminal device determines the distance between the one or more second terminal devices and the first terminal device; The service layer determines that the first response message among the one or more response messages is the target terminal device according to the first distance range and the distance between the one or more second terminal devices and the first terminal device Respond to the message.
  • the neighbor-based service layer of the first terminal device is based on the aforementioned formula in the specification, and the flight time between one or more second terminal devices and the first terminal device is multiplied by the speed of light to obtain one or more second terminal devices The distance between the device and the first terminal device.
  • This specific implementation method is also applicable to this aspect or other aspects of this application regarding how to "determine the one or more second terminal devices according to the flight time between the one or more second terminal devices and the first terminal device The description of the distance between the device and the first terminal device".
  • the flight time in this embodiment is the flight time between one or more second terminal devices and the first terminal device. It can be understood that each second terminal device has a flight time with the first terminal device. Time, that is to say, the flight time is one or more, depending on the number of second terminal devices, and will not be described in detail below.
  • the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: the access layer of the first terminal device determining that the The first response message in the one or more response messages is a response message of the target terminal device.
  • This implementation manner can reduce the interaction between the access layer of the first terminal device and the neighbor-based service layer of the first terminal device, and reduce the complexity of internal processing of the terminal device.
  • the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, including: the access layer of the first terminal device The entry layer receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device ; The access layer of the first terminal device determines the first in the one or more response messages according to the first distance range and the distance between the one or more second terminal devices and the first terminal device.
  • the response message is a response message of the target terminal device.
  • the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device, including: the access layer of the first terminal device according to The time point corresponding to the source layer 2 identification information used to send the first message, and the time point corresponding to the destination layer 2 identification information used to receive the one or more response messages to determine the flight time; the first terminal device The access layer determines the distance between the one or more second terminal devices and the first terminal device according to the flight time.
  • the access layer of the first terminal device uses the source layer 2 identification information to send the first message, record the first time point, and when the access layer of the first terminal device receives the one or more response messages, Respectively record the destination layer 2 identification information corresponding to each response message and the corresponding second time point when the response message is received, and when the source layer 2 identification information is the same as the destination layer 2 identification information, calculate the first time point and the second time point The time difference at the time point, that is, the second time information, subtract the second time information from the first time information carried in the response message to obtain the third time information, and divide the third time information by 2 to obtain the first time information
  • the flight time between the second terminal device and the first terminal device is the same as for other second terminal devices.
  • the first terminal device sending the first message to the first area includes: the access layer of the first terminal device receiving the first message from the neighbor-based service layer of the first terminal device and demand information; the access layer of the first terminal device sends the first message to the first area according to the demand information. It can be understood that the access layer of the first terminal device sends the first message to the first area according to the requirement information, so that the first area in this aspect meets the above conditions, in other words, the target terminal device The location of the first terminal device is consistent with the demand information.
  • the first terminal device sends a message to the area where the target terminal device is located, which prevents more terminal devices that are not the target terminal device from receiving and feeding back response messages, and reduces the number of response messages for subsequent determination of the target terminal device. of complexity.
  • the embodiments of the present application provide a communication method for a terminal device, where the method is executed by a first terminal device.
  • the method includes: the first terminal device sends a first message; the first terminal device receives one or more response messages; the first terminal device determines that the first response message in the one or more response messages is the target terminal device A response message, where the first response message includes the identification information of the target terminal device, where the first response message satisfies at least one of the following: the first response message comes from a first direction, or, according to the first The distance between the target terminal device and the first terminal device obtained from the response message is within a first distance range.
  • the first terminal device sends a first message to one or more second terminal devices, the first message is an omnidirectional message, and the first terminal device receives one or more responses from one or more second terminal devices
  • the message determines that the first response message is the response message of the target terminal device, and obtains the identification information of the target terminal device from the response message of the target terminal device, so that when the first terminal device does not know the identification information of the target terminal device In this case, the discovery of the target terminal device is realized.
  • the method further includes: the one or more response messages include identifiers of one or more second terminal devices, and the target terminal device is one of the one or more second terminal devices .
  • the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: determining, by a neighbor-based service layer of the first terminal device, that the The first response message in the one or more response messages is a response message of the target terminal device.
  • the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The service layer based on the neighbor of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the service layer based on the neighbor of the first terminal device according to the The first distance range and the distance between the one or more second terminal devices and the first terminal device determine that the first response message among the one or more response messages is a response message of the target terminal device.
  • the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the neighbor-based service layer of the first terminal device according to The time-of-flight between the one or more second terminal devices and the first terminal device determines the distance between the one or more second terminal devices and the first terminal device; The service layer determines that the first response message among the one or more response messages is the target terminal device according to the first distance range and the distance between the one or more second terminal devices and the first terminal device Respond to the message.
  • the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The neighbor-based service layer receives the direction between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the neighbor-based service layer of the first terminal device according to the The first direction and the direction between the one or more second terminal devices and the first terminal device determine that the first response message among the one or more response messages is a response message of the target terminal device.
  • the direction between the one or more second terminal devices and the first terminal device in this embodiment can be understood as “the direction between each of the one or more second terminal devices
  • the direction between the terminal device and the first terminal device that is to say, the direction may be different depending on the second terminal device.
  • the above description is also applicable to the methods provided by this aspect and other aspects of this application, and no longer repeat.
  • the neighbor-based service layer of the first terminal device compares the first direction and the directions between one or more second terminal devices and the first terminal device, and when one or more second terminal devices and the The direction between the first terminal devices is the same as the first direction, or within the allowable error range deviating from the first direction, the service layer based on the neighbors of the first terminal device selects the second terminal device that satisfies the above conditions (i.e. target terminal device), that is, determine that the first response message in the one or more response messages is the response message of the target terminal device.
  • target terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
  • the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: the access layer of the first terminal device determining that the The first response message in the one or more response messages is a response message of the target terminal device.
  • the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, including: the access layer of the first terminal device The entry layer receives the first direction from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the direction between the one or more second terminal devices and the first terminal device; The access layer of the first terminal device determines the first response message among the one or more response messages according to the first direction and the direction between the one or more second terminal devices and the first terminal device It is the response message of the target terminal device.
  • the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, including: the access layer of the first terminal device The entry layer receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device ; The access layer of the first terminal device determines the first in the one or more response messages according to the first distance range and the distance between the one or more second terminal devices and the first terminal device.
  • the response message is a response message of the target terminal device.
  • the one or more response messages include time information, and the time information is used to determine a distance between the one or more second terminal devices and the first terminal device.
  • the time information may be the time difference between the time point when the second terminal device receives the first message and the time point when the response message is sent.
  • the method further includes: the first terminal device acquires demand information, where the demand information includes at least one of the following: direction demand information used to determine the first direction, or used to determine The distance requirement information of the first distance range.
  • the obtaining the demand information by the first terminal device includes: obtaining the demand information by a neighbor-based service layer of the first terminal device.
  • the neighbor-based service layer of the first terminal device generates the requirement information according to instruction information from the terminal device.
  • the neighbor-based service layer of the first terminal device acquires the demand information, including:
  • the neighbor-based service layer of the first terminal device acquires the demand information from the application layer of the first terminal device.
  • the distance requirement information includes at least one of the following: a first distance range, or a first power, and the first power is used to determine the first distance range.
  • the first power is the sending power of the first terminal device, and the sending power may determine the first distance range.
  • the embodiments of the present application provide a communication device, including a processor; the processor is used to read and run a program from a memory, so as to implement the method in the first aspect or any possible implementation mode above, Or, to implement the method in the second aspect or any possible implementation manner.
  • the embodiments of the present application provide a communication system, including a first terminal device, and the first terminal device can execute the method in the first aspect or any possible implementation manner, or, to implement the above-mentioned second Aspect or method of any possible embodiment.
  • the embodiments of the present application provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method of the first aspect or any possible implementation, or the second aspect or method of any possible implementation.
  • the embodiments of the present application provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the processor is made to perform the first aspect or any possible The method of the first embodiment, or the method of the second aspect or any possible embodiment.
  • FIG. 1 is a schematic diagram of a network architecture of a ProSe communication system applicable to an embodiment of the present application
  • FIG. 2A is a schematic diagram of a mode of discovering a target terminal device applicable to an embodiment of the present application
  • FIG. 2B is a schematic diagram of another mode of discovering a target terminal device applicable to the embodiment of the present application.
  • FIG. 2C is a schematic diagram of an application scenario applicable to the embodiment of the present application.
  • FIG. 2D is a schematic diagram of a ranging method applicable to the embodiment of the present application.
  • FIG. 2E is a schematic diagram of an angle of arrival and angle of departure applicable to the embodiment of the present application.
  • FIG. 3 is a flowchart interaction diagram of a method for discovering a target terminal device according to an embodiment of the present application
  • FIG. 4 is a flowchart interaction schematic diagram of another method for discovering a target terminal device according to an embodiment of the present application
  • FIG. 5 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application.
  • FIG. 6 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application.
  • FIG. 7 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application.
  • FIG. 8 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a communication device provided according to an embodiment of the present application.
  • Fig. 10 is a schematic diagram of another communication device provided according to an embodiment of the present application.
  • Device-to-device communication is a method that allows multiple terminal devices to communicate directly. This communication technology allows the multiple user devices to share spectrum resources under the control of the cell network, which effectively improves the utilization of spectrum resources.
  • the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) standards organization has formulated a device-to-device communication standard, and the device-to-device communication service may also be called a proximity-based service (Proximity-based Services, ProSe).
  • ProSe includes ProSe discovery, which can be called the discovery of terminal equipment, that is, the discovery of target terminal equipment. Its purpose is to realize that the source terminal equipment supporting ProSe discovers another adjacent terminal equipment (target terminal equipment) that also supports ProSe. . Through the discovery of the target terminal device, the source terminal device and the target terminal device can communicate through the PC5 (ProSe Communication 5) interface.
  • FIG. 1 is a schematic diagram of a network architecture of a ProSe communication system.
  • the communication system includes a ProSe application server, a core network network, a radio access network (Radio Access Network, RAN) and a terminal device.
  • Radio Access Network Radio Access Network
  • the ProSe Application Server is a server used to provide application services for ProSe, and the server and the terminal device realize data intercommunication through a protocol data unit (PDU) session.
  • PDU protocol data unit
  • the core network network may include one or more of the following network elements: access and mobility management function (access and mobility management function, AMF) network element, session management function (session management function, SMF) network element, user plane function (user plane function, UPF) network element and 5G Direct Discovery Name Management Function (5G DDNMF, 5G Direct Discovery Name Management Function) network element, etc.
  • AMF access and mobility management function
  • SMF session management function
  • UPF user plane function
  • 5G DDNMF 5G Direct Discovery Name Management Function
  • Each of the above-mentioned network elements may also be called a device, equipment or entity, and this application is not limited here.
  • a 5G direct connection discovery name management function network element may also be called a 5G DDNMF device, a 5G DDNMF device or a 5G DDNMF entity.
  • 5G DDNMF 5G Direct Discovery Name Management Function
  • AMF is used to be responsible for the mobility management of terminal equipment.
  • mobility management includes mobility status management, assigning temporary user IDs, authenticating and authorizing users, and so on.
  • SMF is used to be responsible for UPF selection, reselection, network protocol (internet protocol, IP) address allocation, PDU session establishment, modification or release, quality of service (quality of service, QoS) control, etc.
  • network protocol internet protocol, IP
  • QoS quality of service
  • UPF is used for detection, routing and forwarding of packet data packets.
  • UPF can be used as an uplink classifier (uplink classifier, ULCL) to support the distribution of traffic before forwarding to the data network, or, UPF can be used as a branching point (branching point, BP) to support multi-homed (multi-homed) PDUs session.
  • uplink classifier uplink classifier
  • BP branching point
  • 5G DDNMF is used for ProSe discovery and assigns discovery parameters for ProSe-supporting terminal devices.
  • PLMN public land mobile network
  • the 5G DDNMF interacts with the ProSe application server through the PC2 (ProSe Communication 2) interface, which is used for the 5G DDNMF to obtain the ProSe discovery authorization information from the ProSe application server.
  • 5G DDNMF interacts with terminal equipment through the PC3 (ProSe Communication 3) interface, which is used for terminal equipment to obtain ProSe discovery parameters from 5G DDNMF.
  • Each of the above-mentioned network elements may be realized by specified hardware, or may also be realized by a software instance on specified hardware, or may also be realized by a virtual function instantiated on a suitable platform, and the above-mentioned network elements are both They can be combined or set separately, and the present invention is not limited here.
  • the RAN is used to implement radio-related functions. Nodes in the RAN can also be called access network devices or base stations, and are used to connect terminal devices to wireless networks.
  • the access network device may be a base station (base station), an evolved base station (evolved NodeB, eNodeB) in an LTE system or an evolved LTE system (LTE-Advanced, LTE-A), or a next-generation base station in a 5G communication system (next generation NodeB, gNB), transmission reception point (transmission reception point, TRP), base band unit (base band unit, BBU), WiFi access point (access point, AP), base station or WiFi system in the future mobile communication system Access nodes in etc.
  • the radio access network device may also be a module or unit that completes some functions of the base station, for example, it may be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU).
  • the embodiment of the present application does not limit the specific technology and specific equipment form adopted by the radio access network equipment.
  • the radio access network device may be a CU node, or a DU node, or an access network device including a CU node and a DU node.
  • the CU node is used to support radio resource control (radio resource control, RRC), packet data convergence protocol (packet data convergence protocol, PDCP), service data adaptation protocol (service data adaptation protocol, SDAP) and other protocols;
  • RRC radio resource control
  • PDCP packet data convergence protocol
  • SDAP service data adaptation protocol
  • the DU node It is used to support radio link control (radio link control, RLC) layer protocol, medium access control (medium access control, MAC) layer protocol and physical layer protocol.
  • a terminal device is a device with a wireless transceiver function.
  • the terminal device is connected to the access network device in a wireless manner, so as to be connected to the communication system.
  • a terminal device may also be called a terminal, a user equipment (user equipment, UE), a mobile station, a mobile terminal, and the like.
  • Terminal devices can be mobile phones, tablet computers, computers with wireless transceiver functions, virtual reality terminal devices, augmented reality terminal devices, wireless terminals in industrial control, wireless terminals in unmanned driving, wireless terminals in remote surgery, smart grids wireless terminals in transportation security, wireless terminals in smart cities, or wireless terminals in smart homes, etc.
  • the embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
  • the terminal device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices or smart wearable devices, etc., which is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes Wait.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not only a hardware device, but also achieve powerful functions through software support, data interaction, and cloud interaction.
  • Generalized wearable smart devices include full-featured, large-sized, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application functions, and need to cooperate with other devices such as smart phones Use, such as various smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring.
  • the terminal device can also be an on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units, and the vehicle can A unit may implement the methods of the present application.
  • the method for discovering a target terminal device can be implemented using the modes shown in FIG. 2A and FIG. 2B .
  • FIG. 2A is a schematic diagram of a mode for discovering a target terminal device. As shown in FIG. 2A, the mode includes the following steps:
  • step 201a terminal device 1 (Discoverer UE) sends a discovery message.
  • the discovery message is a Solicitation message.
  • terminal device 2 and terminal device 3 (Discoveree UE) monitor and receive discovery messages.
  • the discovery message is a broadcast message, and the message is an omnidirectional message, that is, terminal devices in all directions around the terminal device 1 can receive the discovery message.
  • the discovery message may include a message type (for example, Solicitation), a destination layer 2 identifier (Destination Layer 2 ID), a source layer 2 identifier (Source Layer 2 ID), a user information identifier (User Info ID), and discovery parameters.
  • the destination layer 2 identifier is the broadcast address
  • the source layer 2 identifier is the layer 2 identifier of the terminal device 1
  • the user information identifier is the identifier of the terminal device 1
  • the identifier of the terminal device 1 may be the identifier of the terminal device 1.
  • the discovery parameter includes ProSe application identification (ProSe Application ID) or ProSe query code word (ProSe Query Code). It should be noted that the ProSe query codeword is the ProSe query codeword corresponding to the target terminal device, and before step 201a, the terminal device 1 obtains the ProSe query codeword corresponding to the target terminal device from the 5G DDNMF.
  • terminal device 2 and terminal device 3 send a response message to terminal device 1, where the response message is used to respond to the discovery message.
  • the response message may include message type (for example, Response), destination layer 2 identifier, source layer 2 identifier, user information identifier, and discovery parameters.
  • the destination layer 2 identifier is the source layer 2 identifier in the discovery message in step 201
  • the source layer 2 identifier is the destination layer 2 identifier in the discovery message in step 201
  • the user information identifier is the terminal device sending the response message identification, such as the application layer identification of the terminal device 3
  • the discovery parameter includes a ProSe application identification (ProSe Application ID) or a ProSe response codeword (ProSe
  • any terminal device interested in the ProSe application identifier in the discovery parameter can send a response message through step 202 .
  • the discovery parameter in the discovery message is a ProSe query codeword
  • only a specific terminal device will send a response message to terminal device 1 because only a specific terminal device has a ProSe response code corresponding to the same ProSe query codeword.
  • the response message includes the ProSe response codeword corresponding to the ProSe query codeword.
  • the discovery parameter is the ProSe query codeword
  • only a specific terminal device can discover each other with terminal device 1 and perform subsequent ProSe communication.
  • the method shown in FIG. 2A can be understood as that terminal device 1 actively sends a discovery message to find a target terminal device. When the parameter is discovered, a response message is sent to terminal device 1.
  • FIG. 2B is a schematic diagram of another mode for discovering a target terminal device. As shown in FIG. 2B, this mode includes the following steps:
  • step 201b terminal device 1 (Announcing UE) sends a discovery message.
  • the discovery message is an announcement message (Announcement message).
  • the terminal device 2 or the terminal device 3 Monitoring UE monitors and receives the discovery message.
  • the discovery message may include message type (ie Announcement), destination layer 2 identifier, source layer 2 identifier, user information identifier and discovery parameters.
  • the discovery parameter may include a ProSe application identifier or a ProSe restricted codeword (ProSe Restricted Code).
  • the ProSe restricted codeword is a codeword corresponding to the terminal device 1, and before step 201b, the terminal device 1 obtains the ProSe restricted codeword from the 5G DDNMF.
  • the terminal device 2 or the terminal device 3 when at least one of the terminal device 2 or the terminal device 3 is interested in the discovery parameter in the discovery message (can be matched with the discovery parameter, such as the ProSe application identifier), it can initiate a connection establishment request to the terminal device 1.
  • the discovery parameter such as the ProSe application identifier
  • the method shown in FIG. 2B can be understood as that the terminal device 1 sends a discovery message to at least one of the surrounding terminal devices 2 or 3, and informs at least one of the terminal device 2 or the terminal device 3 that the terminal device 1 wants to initiate For a discovery request, a terminal device that can match the discovery parameter in the discovery message is requested to initiate a connection establishment request to terminal device 1 in a subsequent time.
  • the discovery message is generated by the ProSe layer (ProSe layer) of the terminal device 1 and sent to the access layer (Access Stratum layer, AS layer) of the terminal device 1. ), the ProSe layer of the terminal device 1 also sends the source layer 2 identifier and the destination layer 2 identifier for sending the discovery message to the AS layer of the terminal device 1.
  • the respective AS layers of the terminal device 2 and the terminal device 3 receive the discovery message, and send the discovery message to the ProSe layer of the respective terminal devices.
  • the response messages are also generated by the respective ProSe layers of the terminal device 2 and the terminal device 3 and sent to the respective AS layers, and the respective AS layers send the response messages to the terminal device 1 .
  • terminal device 1 may receive at least two response messages. If terminal device 1 has specific requirements, take the museum scene as an example, as shown in Figure 2C , when terminal device 1 wants to discover the terminal device attached to a specific exhibit, but terminal device 1 does not know the identification information of the terminal device attached to the specific exhibit, if terminal device 2 is attached to a specific exhibit , terminal device 1 does not know that terminal device 2 is attached to a specific exhibit, that is, terminal device 1 does not know the identification information of terminal device 2, and terminal device 2 sends the discovery parameter ( The discovery parameter is interested in the ProSe application identifier), and the terminal device 1 and the terminal device 2 can realize the discovery of the target terminal device by means of the discovery parameter, that is, according to the mode of FIG.
  • terminal device 2 sends a response message to the terminal device 1, or According to the mode in FIG. 2B , terminal device 2 initiates a connection establishment request to terminal device 1 .
  • terminal device 3 and terminal device 4 are also interested in the discovery parameters in the discovery message sent by terminal device 1, and terminal device 1 can also receive messages from terminal device 3 and terminal device 4.
  • terminal device 1 cannot distinguish the terminal Which terminal device among device 2, terminal device 3, and terminal device 4 is the terminal device attached to a specific exhibit, that is, the target terminal device cannot be identified as terminal device 2, and the target terminal device cannot be discovered, so it cannot Meet the needs of users.
  • the problem to be solved in this application is how to realize the discovery of a specific target terminal device when the terminal device cannot obtain the identification information of the target terminal device in advance.
  • the present application aims to provide a solution so that the terminal device 1 can discover the target terminal device (terminal device 2) in a scenario similar to the above.
  • Measuring the distance may also be referred to as ranging, and for convenience, the measuring distance will be simply referred to as ranging in the following.
  • the principle of the communication-based ranging method is to calculate the transmission time of electromagnetic waves of two terminal devices, that is, Time of Flight (TOF), and multiply the TOF by the propagation speed of electromagnetic waves in the medium to obtain two Distance between end devices.
  • TOF Time of Flight
  • the speed is generally calculated according to the speed of light.
  • the terminal device 1 is an initiating terminal device, and the terminal device 1 sends the ranging information, and records the time T1 at which the ranging information is sent.
  • the terminal device 2 is a feedback terminal device, and the terminal device 2 receives the ranging information, and records the time T3 of receiving the ranging information.
  • terminal device 2 After receiving the ranging information, terminal device 2 starts sending feedback information to terminal device 1, and records the start time T4, and the terminal device calculates the time difference between T4 and T3, which is Treply in the figure, and the time difference is used as feedback part of the information. Wherein, the time difference between the initiated action and the sent action is negligible.
  • Terminal device 1 records time T2 when receiving feedback information from terminal device 2, and calculates the time difference between T2 and T1, that is, Tround in the figure, then the terminal device can calculate TOF by the following formula:
  • terminal device 1 can calculate the distance between terminal device 1 and terminal device 2 according to the TOF by the following formula:
  • the TOF can be regarded as the average time for one-way transmission of messages between two terminal devices.
  • the communication-based method for measuring an angle between terminal devices may include a method for measuring an angle of arrival (Angle of Arrival, AoA) and a method for measuring an angle of departure (Angel of Departure, AoD).
  • Angle of Arrival AoA
  • Angel of Departure AoD
  • the left figure (a) in FIG. 2E is a schematic diagram of a departure angle, which is the angle between the direction in which terminal device 1 sends a message to terminal device 2 and the reference direction of terminal device 1 .
  • the right figure (b) in FIG. 2E is a schematic diagram of the angle of arrival, which is the angle between the direction in which the terminal device 1 receives the message from the terminal device 2 and the reference direction of the terminal device 1 .
  • the terminal device 1 can determine the direction of the terminal device 2 relative to the terminal device 1, so the method of measuring angles can help the terminal device 1 determine the relative angle of the terminal device 2 relative to the terminal device 1.
  • the terminal device 1 can determine the position information of the terminal device 2 relative to the terminal device 1 through at least one of distance information or angle information.
  • Fig. 3 is a schematic flow diagram of a method for discovering a target terminal device according to an embodiment of the present application.
  • Terminal device 1 in the above example may be the source terminal device in FIG. 3
  • terminal device 2 may be the target terminal device in FIG. 3 .
  • this method includes the following steps:
  • Step 301 the application layer (application layer, APP layer) of the source terminal device sends demand information to the ProSe layer of the source terminal device.
  • application layer application layer, APP layer
  • the requirement information includes direction information, and the requirement information is used to discover the target terminal device.
  • the direction information may be angle information, wherein the angle information may be a departure angle.
  • the direction information is used to instruct the source terminal device to send a message to a specific angle based on the reference direction.
  • the direction information is used to indicate the direction of the target terminal device relative to the source terminal device. When the source terminal device follows the If the direction information sends a message, only the terminal device in the direction indicated by the direction information can receive the message.
  • the requirement information may be generated for the ProSe layer of the source terminal device.
  • the ProSe layer of the source terminal device can generate the demand information according to the user's settings.
  • Step 302 the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
  • the ProSe layer of the source terminal device generates a discovery message, which may include a message type (for example, Solicitation) and a discovery parameter.
  • the discovery parameter includes a ProSe application ID (ProSe Application ID).
  • the ProSe application identifier can be obtained from the 5G DDNMF network element, or it can be obtained from the application layer of the source terminal device.
  • the discovery message may also include identification information of the source terminal device, where the identification information of the source terminal device may be application layer identification information of the source terminal device, and the application layer identification information is the ProSe application identification identified In a certain type of application, identify the identification information of a certain terminal device.
  • the ProSe application identification is used to identify a certain type of chat software, and the application identification information is used to identify the identification of the terminal device in this type of chat software.
  • the ProSe layer of the source terminal device also determines the destination layer 2 identifier (Destination Layer 2 ID) and the source layer 2 identifier (Source Layer 2 ID) for sending the discovery message.
  • the destination layer 2 identifier is the broadcast address
  • the source layer 2 identifier is the layer 2 identifier of the source terminal device.
  • the ProSe layer of the source terminal device determines the target layer 2 identifier used for sending the discovery message according to the network configuration information.
  • the source terminal device obtains the network configuration information from the policy control function network element (not shown in the figure), the network configuration information includes the correspondence between the ProSe application identifier and the destination layer 2 identifier, and may also include the application identifier information and the destination layer 2 identifier.
  • the message type may be a directional discovery message, a ranging message, or other types of discovery messages, which are not limited in this document.
  • the ProSe layer of the source terminal device sends the destination layer 2 identifier and the source layer 2 identifier used for sending the discovery message to the AS layer of the source terminal device.
  • the discovery message can be replaced by a ranging message or a directional discovery message, that is, the ProSe layer of the source terminal device sends a ranging message to the AS layer of the source terminal device or directed discovery messages.
  • the information included in the ranging message or the orientation discovery message may be the same as the information included in the above discovery message.
  • Step 303 the AS layer of the source terminal device sets angle information.
  • the AS layer of the source terminal device determines the angle (for example, the departure angle) used to send the discovery message in step 302 according to the direction information in the demand information, that is, the AS layer of the source terminal device sets the source terminal device for subsequent message sending angle information.
  • the angle is an angle at which the transmitting antenna of the source terminal device transmits signals.
  • Step 304 the source terminal device sends a discovery message.
  • the target terminal device receives the discovery message.
  • the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
  • the AS layer of the source terminal device sends the discovery message according to the settings in step 303 .
  • the terminal devices in the direction indicated by the angle information can receive the discovery message.
  • the AS layer of the source terminal device sends the ranging message in this step.
  • the message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 302 is a directed discovery message
  • the AS layer of the source terminal device sends a directed discovery message.
  • Step 305 the target terminal device sends a response message.
  • the source terminal device receives the response message.
  • the AS layer of the source terminal device receives the response message.
  • the ProSe layer of the target terminal device sends a response message to the AS layer of the target terminal device, and the AS layer of the target terminal device sends a response message.
  • the target terminal device also determines a destination layer 2 identity and a source layer 2 identity for sending the response message.
  • the destination layer 2 identifier is the source layer 2 identifier of the received discovery message
  • the source layer 2 identifier is the identifier information assigned by the target terminal device itself.
  • the response message is the response message of the discovery message in step 304 or the PC5 connection establishment request message for the target terminal device.
  • there may be one response message. If there are multiple terminals device, the response message may be multiple.
  • the response message also includes other information, for example, identification information of the target terminal device, where the identification information of the target terminal device may be application layer identification information of the target terminal device.
  • Step 306 the AS layer of the source terminal device sends a response message to the ProSe layer of the source terminal device.
  • the response message is the response message received in step 305 .
  • Step 307 the ProSe layer of the source terminal device determines the response message of the target terminal device.
  • the response message received by the ProSe layer of the source terminal device through step 306 is the response message of the target terminal device.
  • the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device.
  • step 308 the source terminal device establishes a PC5 connection with the target terminal device.
  • the source terminal device can The information of each target terminal device is provided to the user through a visual interface, and the source terminal device determines the target terminal device according to the user's selection.
  • the source terminal device can calculate the arrival angle of the received response message, and compare the arrival angle with the angle information.
  • the arrival angle of the response message The error with the angle information is within a certain range, which depends on the specific implementation and is not limited in this application.
  • the AS layer of the source terminal device sends the response message to the ProSe layer of the source terminal device.
  • This implementation manner serves as a check, and is used to further ensure that the response message received by the ProSe layer of the source terminal device is the response message of the target terminal device. For this implementation, reference may be made to the description of step 605 in FIG. 6 .
  • the ProSe layer of the source terminal device in this embodiment can be replaced by a ranging layer (Ranging layer), or a discovery layer (Discovery layer), or a layer with another name with the same or similar function.
  • a ranging layer Ranging layer
  • Discovery layer Discovery layer
  • the source terminal When the ProSe layer of the device is a layer with a different name, some message names in this embodiment may be changed accordingly.
  • the discovery message may be a directional discovery message or a ranging message. It is not limited in this application, and the other embodiments are the same, and will not be repeated here.
  • the source terminal device can obtain the demand information without knowing the identity of the target terminal, set the direction (angle) for sending the discovery message according to the demand information, and follow the direction Send the discovery message.
  • the terminal device that receives the discovery message is the target terminal device.
  • the target terminal device sends a response message to the source terminal device, and the source terminal device then obtains the response message of the target terminal device, and finally obtains the identity of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device .
  • Fig. 4 is a schematic flow diagram of a method for discovering a target terminal device according to an embodiment of the present application.
  • Terminal device 1 in the above example may be the source terminal device in FIG. 4
  • terminal device 2 may be the target terminal device in FIG. 4 .
  • this method includes the following steps:
  • Step 401 the application layer of the source terminal device sends requirement information to the ProSe layer of the source terminal device.
  • the requirement information includes power information, and the requirement information is used to discover the target terminal device.
  • the power information is used to indicate the transmit power of the transmit antenna of the source terminal device, that is, the target terminal device is within the signal coverage of the source terminal device.
  • the power information may also be used to limit the number of terminal devices that receive the message sent by the source terminal device, so as to reduce the cost of subsequently screening out target terminal devices.
  • the requirement information may be generated for the ProSe layer of the source terminal device.
  • the ProSe layer of the source terminal device can generate the demand information according to the user's setting.
  • Step 402 the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
  • step 302 For this step, reference may be made to the description of step 302 .
  • Step 403 the AS layer of the source terminal device sets the transmission power.
  • the AS layer of the source terminal device determines the transmission power of the transmitting antenna used to send the discovery message in step 402 according to the power information in the demand information, that is, the AS layer of the source terminal device sets the transmission power of the source terminal device for subsequent sending messages. power.
  • Step 404 the source terminal device sends a discovery message.
  • the target terminal device receives the discovery message.
  • the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
  • the AS layer of the source terminal device sends the discovery message according to the settings in step 403 .
  • the terminal devices within the signal coverage indicated by the transmission power of the source terminal device can receive the discovery message.
  • the AS layer of the source terminal device sends the ranging message in this step.
  • the discovery message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 402 is a directional discovery message, then in this step the AS layer of the source terminal device sends a directional discovery message.
  • Step 405 the target terminal device sends a response message.
  • the source terminal device receives the response message.
  • Step 406 the AS layer of the source terminal device sends a response message to the ProSe layer of the source terminal device.
  • Step 407 the ProSe layer of the source terminal device determines the response message of the target terminal device.
  • step 408 the source terminal device establishes a PC5 connection with the target terminal device.
  • steps 405 to 408 reference may be made to the description of steps 305 to 308 in FIG. 3 .
  • the source terminal device can obtain the demand information without knowing the identity of the target terminal, set the transmission power for sending the discovery message according to the demand information, and send the message according to the transmission power.
  • the discovery message is the target terminal device.
  • the target terminal device sends a response message to the source terminal device, and the source terminal device then obtains the response message of the target terminal device, and finally obtains the identity of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device .
  • FIG. 5 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application.
  • Terminal device 1 in the above example may be the source terminal device in FIG. 5
  • terminal device 2 may be the target terminal device in FIG. 5 .
  • this method includes the following steps:
  • Step 501 the application layer of the source terminal device sends requirement information to the ProSe layer of the source terminal device.
  • the requirement information includes distance information, and the requirement information is used to discover the target terminal device.
  • the distance information is used to indicate the distance between the source terminal device and the target terminal device.
  • the distance information includes a distance requirement, which can be a specific value or a range of values, which is not limited in this application .
  • the distance requirement is 5 meters.
  • the distance information is also used to instruct the source terminal device to perform distance calculation.
  • the requirement information may be generated by the ProSe layer of the source terminal device.
  • the ProSe layer of the source terminal device can generate the demand information according to the user's setting.
  • Step 502 the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
  • the demand information is the demand information in step 501 .
  • the distance requirement may not be included in this step, but the ProSe layer of the source terminal device also sends information indicating to acquire distance measurement information to the AS layer of the source terminal device.
  • the discovery message may be replaced by a ranging message or a directional discovery message, that is, the ProSe layer of the source terminal device sends a ranging message or a directional discovery message to the AS layer of the source terminal device.
  • the information included in the ranging message or the directional discovery message may be the same as that included in the discovery message. Since the distance measurement information or the orientation discovery message can implicitly indicate the measurement of the distance, if the requirement information in step 501 includes the distance requirement, the distance requirement of the requirement information in this step or the information used to indicate the acquisition of the distance measurement information is available. select.
  • Step 503 the source terminal device sends a discovery message.
  • the target terminal device or other terminal devices receive the discovery message. It should be noted that the "target terminal device or other terminal devices" is intended to indicate that there may be one terminal device or multiple terminal devices receiving the discovery message.
  • the AS layer of the source terminal device sends a discovery message.
  • the discovery message is an omni message.
  • the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
  • the AS layer of the source terminal device Since the AS layer of the source terminal device has learned from the ProSe layer of the source terminal device that it needs to obtain measurement information, for example, the AS layer of the source terminal device receives the distance information in the demand information from the ProSe layer of the source terminal device, or is used to indicate the acquisition For distance measurement information, the AS layer of the source terminal device records the time point at which the discovery message is sent. For example, the AS layer of the source terminal device records the source layer 2 identifier in the discovery message and the corresponding time point when the discovery message is sent.
  • the AS layer of the source terminal device sends the ranging message in this step.
  • the message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 502 is a ranging message
  • the AS layer of the source terminal device sends a directional discovery message.
  • the AS layer of the source terminal device determines the AS layer configuration information used for sending the discovery message.
  • the AS layer configuration information includes logical channel (logical channel) information or physical layer resource pool information.
  • the source terminal device acquires the AS layer configuration information used for sending the discovery message from the policy control function network element, or the source terminal device receives the AS layer configuration information used for sending the message from the RAN.
  • the AS layer of the source terminal device also sends indication information in this step, and the indication information is used to instruct the target terminal device or other terminal devices to carry the time information of Treply in the response message fed back subsequently.
  • Step 504 the target terminal device or other terminal devices send a response message.
  • the source terminal device receives the response message.
  • the AS layer of the source terminal device receives the response message.
  • the response message is a response message to the discovery message in step 503 .
  • the target terminal device or other terminal devices are terminal devices that are interested in the discovery parameters in the discovery message. For example, taking the target terminal device as an example, the ProSe layer of the target terminal device sends a response message to the AS layer of the target terminal device, and the AS layer of the target terminal device sends a response message.
  • the target terminal device also determines the destination layer 2 identifier and the source layer 2 identifier for sending the response message.
  • the destination layer 2 identifier is the source layer 2 identifier of the received discovery message
  • the source layer 2 identifier is the identification information assigned by the target terminal device or other terminal devices. The same applies to other terminal devices.
  • the response message may be a response message to the discovery message in step 503 or a PC5 connection establishment request message.
  • the response message carries Treply
  • Treply indicates the time difference between the terminal device receiving the discovery message and sending the response message of the discovery message, or indicates that the AS layer of the terminal device receives the discovery message and sends the AS layer of the terminal device.
  • the time difference of the response message of this discovery message For example, the terminal device that receives the discovery message, that is, the target terminal device or other terminal devices, calculates the Treply according to the method shown in Figure 2D, and sends the Treply to the AS layer of the source terminal device, so that the AS layer of the source terminal device The Treply can be obtained while receiving the response message.
  • the AS layer of the target terminal device records the first time point of receiving the discovery message, stores the correspondence between the source layer 2 identifier in the discovery message and the first time point, and the AS layer of the target terminal device Receive the source layer 2 identifier in the discovery message from the ProSe layer of the target terminal device as the destination layer 2 identifier of the response message, determine the second time point for sending the response message, and use the difference between the second time point and the first time point as Treply.
  • the target terminal device or other terminal devices that receive the discovery message determine that Treply needs to be calculated according to at least one of the following information: the destination layer 2 identifier used to send the discovery message, the logical channel information used to send the discovery message, and the Information about the physical resource pool used by the discovery message.
  • the destination layer 2 identifier used for sending the discovery message is a layer 2 identifier obtained by the source terminal device from the core network.
  • the terminal device obtains the same The layer 2 identifier of , where the layer 2 identifier can be used to instruct the terminal device (the target terminal device or other terminal devices) to calculate the Treply.
  • the target terminal device obtains the network configuration information from the policy control function network element, and the network configuration information may include the correspondence between the message type and the destination layer 2 identifier of the received message, and the message type may be It may be a directional discovery message, a ranging message, or other types of discovery messages, which are not limited herein.
  • the target terminal device receives the ranging message, and the target terminal device determines that it needs to calculate Treply according to the corresponding relationship.
  • the target terminal device may also receive at least one of logical channel information and physical resource pool information for receiving a directional discovery message or a ranging message from the RAN.
  • the target terminal device records the received The time point of the discovery message in step 503, that is, the first time point, is used to calculate Treply.
  • the response message may also include other information, for example, identification information of the target terminal device, such as application layer identification information of the target terminal device.
  • Step 505 the AS layer of the source terminal device calculates the distance value or TOF.
  • the AS layer of the source terminal device records the time point of receiving the response message.
  • the AS layer of the source terminal device records the time point of receiving the response message according to the destination layer 2 identifier in the response message, and records the source layer 2 identifier recorded in step 503 and the corresponding sender of the discovery message.
  • Tround is calculated, and then the value of TOF is calculated according to the aforementioned method.
  • the terminal device identified by the destination layer 2 identifier in the response message and the source layer 2 identifier in the discovery message is both the source terminal device, so the AS layer of the source terminal device 2. Identify and establish the relationship between the discovery message and the response message, so as to calculate the value of TOF according to the aforementioned method.
  • the AS layer of the source terminal device can further obtain the distance value according to the TOF value, and the distance value is the actual distance between the terminal device (the target terminal device and one of other terminal devices) that sends the response message and the source terminal device, which will not be discussed below repeat.
  • the response message is multiple messages, that is, response messages fed back by multiple terminal devices, the distance value or TOF is obtained for different terminal device response messages corresponding to the message.
  • Step 506 the source terminal device determines the response message of the target terminal device.
  • the AS layer of the source terminal device sends a response message and the distance measurement information (distance value or TOF) corresponding to the response message to the ProSe layer of the source terminal device, that is, if the AS layer of the source terminal device calculates distance value, then the measurement information is the distance value, otherwise it is TOF).
  • the AS layer of the source terminal device sends each message and its corresponding distance measurement information to the ProSe layer of the source terminal device.
  • the ProSe layer of the source terminal device determines the response message of the target terminal device. It should be understood that the ProSe layer of the source terminal device screens out the response message of the target terminal device from one or more response messages.
  • the response message sent by the AS layer of the source terminal device to the ProSe layer of the source terminal device is the response message received in step 505, or the response message is a message in which Treply is removed from the response message received in step 505.
  • the ProSe layer of the source terminal device does not send distance requirements to the AS layer of the source terminal device in step 502, but the ProSe layer of the source terminal device sends information indicating to obtain distance measurement information to the AS layer of the source terminal device, this step can be Take this possible implementation.
  • the ProSe layer of the source terminal device compares the distance value with the distance requirement, and filters out the response message of the target terminal device from the response message . For example, if the distance requirement is 5 meters, the ProSe layer of the source terminal device screens out the response messages of the terminal devices whose distance measurement information is 5 meters ⁇ the allowable error range, and the screened out response messages are the response messages of the target terminal device.
  • the allowable error range depends on the actual implementation. The allowable error range can be set by the user, built in the source terminal device, or obtained by the source terminal device through other channels, which is not limited in this article.
  • the ProSe layer of the source terminal device receives the TOF corresponding to the response message, the ProSe layer of the source terminal device calculates the distance value according to the TOF, and then screens out the response message of the target terminal device according to the above method.
  • the AS layer of the source terminal device determines the response message of the target terminal device.
  • the AS layer of the source terminal device calculates the distance value according to the TOF.
  • the AS layer of the source terminal device compares the distance value with the distance requirement, and screens out the response message of the target terminal device from the response message.
  • the screening method reference may be made to the description of the ProSe layer screening method of the source terminal device above. This implementation manner can reduce the content of interaction between the AS layer of the source terminal device and the ProSe layer of the source terminal device.
  • the response message of the target terminal device is sent to the ProSe layer of the source terminal device.
  • the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device.
  • the ProSe layer of the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device.
  • step 507 the source terminal device establishes a PC5 connection with the target terminal device.
  • the source terminal device can obtain other information of the target terminal device.
  • the source terminal device can obtain distance requirement information without knowing the identity of the target terminal, and by comparing the distance requirement information and the received terminal device with the source terminal The distance value between the devices screens out the response message of the target terminal device, and finally obtains the identification information of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device.
  • FIG. 6 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application.
  • Terminal device 1 in the above example may be the source terminal device in FIG. 6
  • terminal device 2 may be the target terminal device in FIG. 6 .
  • this method includes the following steps:
  • step 601 the application layer of the source terminal device sends requirement information to the ProSe layer of the source terminal device.
  • the demand information includes direction information, and the direction information includes angle information.
  • the angle information is used to indicate an angle value of an arrival angle of a message received from a target terminal device.
  • the direction information is used to indicate the direction between the source terminal device and the target terminal device.
  • the requirement information may be generated by the ProSe layer of the source terminal device.
  • the ProSe layer of the source terminal device may generate the requirement information according to user settings.
  • Step 602 the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
  • the demand information is the demand information in step 601 .
  • Step 603 the source terminal device sends a discovery message.
  • the target terminal device or other terminal devices receive the discovery message. It should be noted that the "target terminal device or other terminal devices" is intended to indicate that there may be one terminal device or multiple terminal devices receiving the discovery message.
  • the AS layer of the source terminal device sends a discovery message.
  • the discovery message is an omni message.
  • the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
  • Step 604 the target terminal device or other terminal devices send a response message.
  • the source terminal device receives the response message.
  • the response message is a response message to the discovery message in step 603 .
  • the AS layer of the source terminal device receives the response message.
  • the target terminal device or other terminal devices are terminal devices interested in the discovery parameters in the discovery message. For example, taking the target terminal device as an example, the ProSe layer of the target terminal device sends a response message to the AS layer of the target terminal device, and the AS layer of the target terminal device sends a response message.
  • Step 605 the AS layer of the source terminal device calculates the angle of arrival.
  • the AS layer of the source terminal device calculates the angle of arrival corresponding to the response message in step 604 . It can be understood that when there are multiple response messages, there are multiple angles of arrival.
  • Step 606 the source terminal device determines the response message of the target terminal device.
  • the AS layer of the source terminal device sends a response message and the angle of arrival corresponding to the response message to the ProSe layer of the source terminal device.
  • the ProSe layer of the source terminal device determines the response message of the target terminal device according to the angle of arrival and the direction information in the demand information.
  • the AS layer of the source terminal device determines the response message of the target terminal device. This implementation manner can reduce the content of interaction between the AS layer of the source terminal device and the ProSe layer of the source terminal device.
  • step 506 in FIG. 5 For a specific implementation manner of this step, reference may be made to the description in step 506 in FIG. 5 .
  • the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device.
  • the ProSe layer of the source terminal device obtains the response message of the target terminal device, and the response message of the target terminal device includes the identity of the target terminal device, and the ProSe layer of the source terminal device can obtain the target terminal device's logo.
  • step 608 the source terminal device completes the PC5 connection establishment with the target terminal device.
  • the source terminal device can obtain other information of the target terminal device.
  • the source terminal device can obtain direction information without knowing the identity of the target terminal, and compare the direction information with the received terminal device and the source terminal device.
  • the angle (arrival angle) between them screen out the response message of the target terminal device, and finally obtain the identification information of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device.
  • the methods shown in Figure 3 and Figure 4 can be used in combination, that is, the AS layer of the source terminal device in Figure 3 and Figure 4 sets the angle information and transmission power according to the demand information, and the source
  • the response message received by the terminal device is the response message of the target terminal device, and finally the identification information of the target terminal device is obtained from the response message of the target terminal device.
  • the AS layer of the source terminal device sets the angle information according to the demand information, and according to the setting Send a discovery message, the AS layer of the source terminal device calculates the TOF or distance value, and finally through the method of step 506, the source terminal device filters out the response message of the target terminal device, and finally obtains the target terminal from the response message of the target terminal device Identification information for the device.
  • the AS layer of the source terminal device calculates the TOF or distance value, and calculates the angle of arrival, by comparing the direction information in the demand information with the angle of arrival , and, comparing the distance information with the TOF, or comparing the distance information with the distance value, the source terminal device filters out the response message of the target terminal device, and finally obtains the identification information of the target terminal device from the response message of the target terminal device.
  • the AS layer of the source terminal device sets the transmission power according to the demand information, and sends a discovery message according to the setting, the source terminal device
  • the AS layer calculates the TOF or distance value, finally through the method of step 506, the source terminal device screens out the response message of the target terminal device, and finally obtains the identification information of the target terminal device from the response message of the target terminal device.
  • FIG. 7 is a schematic flowchart of another method for discovering a target terminal device according to an embodiment of the present application.
  • the schematic diagram will be described in conjunction with FIGS. 3 to 6 .
  • the first terminal device in this embodiment may be the source terminal device in Figures 3 to 6, the access layer of the first terminal device may be the AS layer of the source terminal device in Figures 3 to 6, and the first terminal device
  • the service layer based on the neighbor in Figure 3 to Figure 6 may be the ProSe layer of the source terminal device in Figure 3 to Figure 6, and one or more second terminal devices in this embodiment may be the target terminal device or other terminals in Figure 3 to Figure 6 A collective name for the device.
  • the method includes the steps of:
  • Step 701 the first terminal device sends a first message to the first area.
  • step 303 and step 304 in FIG. 3 reference may be made to the description of step 303 and step 304 in FIG. 3 , or the description of step 403 and step 404 in FIG. 4 .
  • the first area satisfies at least one of the following: the first area is located in a first direction of the first terminal device, or, the distance between the first area and the first terminal device is th within a distance.
  • the first direction may be the direction information in FIG. 3
  • the first distance range may be the distance requirement in FIG. 5 .
  • the first message includes a discovery message or a ranging message.
  • the first message may be the discovery message in FIG. 3 to FIG. 6 , or a ranging message, or a directional discovery message.
  • this step further includes: the first terminal device acquires demand information, and the demand information includes at least one of the following: direction demand information used to determine the first direction, or used to determine Distance requirement information of the first distance range.
  • the direction requirement information is the direction information in FIG. 3 or the direction information in FIG. 6
  • the distance requirement information is the power information in FIG. 4 or the distance information in FIG. 5 . It can be understood that if the power information is set as the distance requirement information according to the method in FIG. a message. That is to say, the power information indirectly reflects the distance between the terminal device that can receive the first message and the source terminal device, so it can be understood as a kind of distance requirement information.
  • the neighbor-based service layer of the first terminal device acquires the requirement information.
  • the neighbor-based service layer of the first terminal device obtains the requirement information from the application layer of the first terminal device.
  • the distance requirement information includes at least one of the following: a first distance range, or a first power, where the first power is used to determine the first distance range.
  • the first power is the power information in FIG. 4 .
  • the access layer of the first terminal device receives the first message and demand information from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device sends The first area sends the first message.
  • Step 702 the first terminal device receives one or more response messages.
  • the one or more response messages may be the response messages in FIG. 3 to FIG. 6 .
  • the one or more response messages include time information, and the time information is used to determine a distance between the one or more second terminal devices and the first terminal device.
  • the distance is the distance value in FIG. 5
  • the time information is Treply in FIG. 5 .
  • Step 703 the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device. For this step, reference may be made to the description of step 505 and step 506 in FIG. 5 .
  • the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
  • This implementation may include the following situations:
  • the neighbor-based service layer of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the first terminal device The service layer based on the neighbor of the first distance range and the distance between the one or more second terminal devices and the first terminal device, determine the first in the one or more response messages
  • a response message is a response message of the target terminal device.
  • the neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device;
  • the neighbor-based service layer of the terminal device determines the distance between the one or more second terminal devices and the first terminal device based on the time-of-flight between the one or more second terminal devices and the first terminal device;
  • the neighbor-based service layer of the first terminal device determines all of the one or more response messages based on the first distance range and the distance between the one or more second terminal devices and the first terminal device.
  • the first response message is a response message of the target terminal device.
  • the time-of-flight is TOF in FIG. 5 , and the above description is also applicable to other implementations in this embodiment, so details are not repeated here.
  • the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
  • the access layer of the first terminal device receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the one or The distance between multiple second terminal devices and the first terminal device; the access layer of the first terminal device is based on the first distance range and the distance between the one or more second terminal devices and the first terminal device and determining the first response message in the one or more response messages as the response message of the target terminal device.
  • the access layer of the first terminal device is based on the time point corresponding to the source layer 2 identification information used to send the first message, and the destination layer used to receive the one or more response messages 2 Identify the time point corresponding to the information, and determine the flight time; the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device according to the flight time.
  • FIG. 8 is a schematic flowchart of another method for discovering a target terminal device according to an embodiment of the present application.
  • the schematic diagram will be described in conjunction with FIG. 5 or FIG. 6 .
  • the first terminal device in this embodiment may be the source terminal device in Figure 5 or Figure 6, the access layer of the first terminal device may be the AS layer of the source terminal device in Figure 5 or Figure 6, and the first terminal device
  • the service layer based on the neighbor can be the ProSe layer of the source terminal device in FIG. 5 or FIG. 6 .
  • the method includes the steps of:
  • Step 801 the first terminal device sends a first message.
  • step 503 in FIG. 5 reference may be made to the description in step 503 in FIG. 5 or step 603 in FIG. 6 .
  • the first message includes a discovery message or a ranging message.
  • this step further includes: the first terminal device acquires demand information, and the demand information includes at least one of the following: direction demand information used to determine the first direction, or used to determine Distance requirement information of the first distance range.
  • the demand information includes at least one of the following: direction demand information used to determine the first direction, or used to determine Distance requirement information of the first distance range.
  • the distance requirement information or the first distance range is the distance information in FIG. 5
  • the direction requirement information or the first direction is the direction information in FIG. 6 .
  • the neighbor-based service layer of the first terminal device acquires the requirement information.
  • the neighbor-based service layer of the first terminal device obtains the requirement information from the application layer of the first terminal device.
  • the distance requirement information includes a first distance range.
  • Step 802 the first terminal device receives one or more response messages.
  • the one or more response messages may be the response messages in FIG. 5 or FIG. 6 .
  • the one or more response messages include time information, and the time information is used to determine a distance between the one or more second terminal devices and the first terminal device.
  • the distance is the distance value in FIG. 5 , and the foregoing description is also applicable to other implementation manners in this embodiment, so details are not repeated here.
  • the time information is Treply in FIG. 5 , and the foregoing description is also applicable to other implementation manners in this embodiment, so details are not repeated here.
  • Step 803 the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device.
  • the first response message includes identification information of the target terminal device, where the first response message satisfies at least one of the following: the first response message comes from a first direction, or, according to the The distance between the target terminal device and the first terminal device obtained from the first response message is within a first distance range.
  • the one or more response messages include identifiers of one or more second terminal devices, and the target terminal device is one of the one or more second terminal devices.
  • the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
  • This implementation also includes the following possible situations:
  • the neighbor-based service layer of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the first terminal device The neighbor-based service layer determines the first response in the one or more response messages according to the first distance range and the distance between the one or more second terminal devices and the first terminal device
  • the message is a response message of the target terminal device.
  • the neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device;
  • the neighbor-based service layer of the terminal device determines the distance between the one or more second terminal devices and the first terminal device based on the time-of-flight between the one or more second terminal devices and the first terminal device;
  • the neighbor-based service layer of the first terminal device determines all of the one or more response messages based on the first distance range and the distance between the one or more second terminal devices and the first terminal device.
  • the first response message is a response message of the target terminal device.
  • the time-of-flight is the TOF in FIG. 5 , and the above description is also applicable to other implementations in this embodiment, so details are not repeated here. For this step, reference may be made to the description of step 505 and step 506 in FIG. 5 .
  • the neighbor-based service layer of the first terminal device receives directions between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device;
  • the neighbor-based service layer of the device determines said first response in said one or more response messages based on said first direction and a direction between said one or more second terminal devices and the first terminal device
  • the message is a response message of the target terminal device.
  • the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
  • This implementation also includes the following possible situations:
  • the access layer of the first terminal device receives the first direction from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines that the one or more second terminal devices The direction between the device and the first terminal device; the access layer of the first terminal device determines the one or more directions between the second terminal device and the first terminal device according to the first direction and the direction between the one or more second terminal devices
  • the first response message in the or multiple response messages is a response message of the target terminal device.
  • step 605 and step 606 in FIG. 6 reference may be made to the description of step 605 and step 606 in FIG. 6 .
  • the access layer of the first terminal device receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the one or more first distance ranges The distance between the second terminal device and the first terminal device; the access layer of the first terminal device determines according to the first distance range and the distance between the one or more second terminal devices and the first terminal device
  • the first response message in the one or more response messages is a response message of the target terminal device.
  • this embodiment of the present application also provides a communication device.
  • the communication device may be the source terminal device in the foregoing method embodiments, or an apparatus including the functions of the source terminal device, or a component with similar functions to the source terminal device.
  • the communication device includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • Fig. 9 is a schematic diagram of a communication device provided according to an embodiment of the present application.
  • the communication device includes a processing module 901 , a receiving module 902 and a sending module 903 .
  • the processing module 901 is configured to realize processing of data by the communication device.
  • the receiving module 902 is used for receiving the content of the communication device and other units or network elements
  • the sending module 903 is used for receiving the content of the communication device and other units or network elements.
  • the processing module 901 in this embodiment of the present application may be implemented by a processor or a processor-related circuit component (or called a processing circuit), and the receiving module 902 may be implemented by a receiver or a receiver-related circuit component.
  • the sending module 903 may be implemented by a transmitter or transmitter-related circuit components.
  • the communication device may be a communication device device, and may also be a chip applied in the communication device device or other combined devices, components, etc. having the functions of the above communication device device.
  • the communication apparatus may be the source terminal device or the first terminal device in any one of FIG. 3 to FIG. 8 .
  • the sending module 903 is configured to send the first message to the first area through the processing module 901 (such as step 304 in FIG. 3, step 404 in FIG. In step 701), the first area satisfies at least one of the following: the first area is located in the first direction of the first terminal device, or the first area and the first terminal device The distance between is within the first distance range.
  • the receiving module 902 is used to receive one or more response messages (such as step 305 in FIG. 3, step 405 in FIG. 4, step 504 in FIG. 5, step 604 in FIG. 6 and step 702 in FIG.
  • the one or more response messages include identification information of one or more second terminal devices, and the one or more second terminal devices are located in the first area.
  • the processing module 901 is configured to determine that the first response message in the one or more response messages is the response message of the target terminal device (for example, step 307 in FIG. 3, step 407 in FIG. 4, step 505 and Step 506, step 605 and step 606 in FIG. 6, and step 703 in FIG. 7), the first response message includes the identification information of the target terminal device.
  • the sending module 903 is used to send the first message (such as steps 501 to 503 in FIG. 5, steps 601 to 603 in FIG. 6, and step 801).
  • the receiving module 902 is configured to receive one or more response messages (such as step 504 in FIG. 5 , step 604 in FIG. 6 and step 802 in FIG. 8 ).
  • the processing module 901 is configured to determine that the first response message in the one or more response messages is a response message of the target terminal device (for example, steps 505 and 506 in FIG. 5, steps 605 and 606 in FIG. 6, and Step 803 in FIG.
  • the first response message includes the identification information of the target terminal device, wherein the first response message satisfies at least one of the following: the first response message is from the first One direction, or, the distance between the target terminal device and the first terminal device obtained according to the first response message is within a first distance range.
  • FIG. 10 is a schematic diagram of another communication device provided according to an embodiment of the present application.
  • the communication device includes: a processor 1001 , a communication interface 1002 , and a memory 1003 .
  • the processor 1001, the communication interface 1002, and the memory 1003 can be connected to each other through a bus 1004;
  • the bus 1004 can be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the above-mentioned bus 1004 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one line is used in FIG. 10 , but it does not mean that there is only one bus or one type of bus.
  • the processor 1001 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP.
  • the processor may further include hardware chips.
  • the aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD can be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.
  • Memory 1003 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (RAM), which acts as external cache memory.
  • the communication apparatus may be the source terminal device or the first terminal device in any one of FIG. 3 to FIG. 8 .
  • the processor 1001 is used to realize the data processing operation of the communication device
  • the communication interface 1002 is used to realize the receiving operation and the sending operation of the communication device.
  • the communication interface 1002 is used to send the first message to the first area (such as steps 301 to 304 in FIG. 3, steps 401 to 404 in FIG. 4, and step 701 in FIG. 7 ), the first area satisfies at least one of the following: the first area is located in the first direction of the first terminal device, or the first area and the first The distance between a terminal device is within the first distance range, and is used to receive one or more response messages (such as step 305 in FIG. 3, step 405 in FIG. 4, step 504 in FIG. 5, and and step 702 in FIG. 7 ), the one or more response messages include identification information of one or more second terminal devices, and the one or more second terminal devices are located in the first area.
  • the processor 1001 is configured to determine that the first response message in the one or more response messages is the response message of the target terminal device (for example, step 307 in FIG. 3, step 407 in FIG. 4, step 505 and Step 506, Step 605 and Step 606 in FIG. 6, and Step 703 in FIG. 7).
  • the various modules described above may also be used in other processes that support the techniques described herein. For the beneficial effect, reference may be made to the foregoing description, and details are not repeated here.
  • the communication interface 1002 is used to send the first message (such as steps 501 to 503 in FIG. 5, steps 601 to 603 in FIG. 6, and Step 801), and for receiving one or more response messages (such as step 504 in FIG. 5, step 604 in FIG. 6 and step 802 in FIG. 8).
  • the processor 1001 is configured to determine that the first response message in the one or more response messages is a response message of the target terminal device (for example, steps 505 and 506 in FIG. 5, steps 605 and 606 in FIG. 6, and Step 803 in FIG.
  • the first response message includes the identification information of the target terminal device, wherein the first response message satisfies at least one of the following: the first response message is from the first One direction, or, the distance between the target terminal device and the first terminal device obtained according to the first response message is within a first distance range.
  • the various modules described above may also be used in other processes that support the techniques described herein. For the beneficial effect, reference may be made to the foregoing description, and details are not repeated here.
  • An embodiment of the present application provides a communication system, which includes the aforementioned first terminal device or source terminal device, wherein the first terminal device executes the first terminal device or source terminal in any of the embodiments shown in FIG. 3 to FIG. 8
  • the source terminal device performs the method performed by the first terminal device or the source terminal device in any of the embodiments shown in FIG. 3 to FIG. 8 .
  • An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer can implement the Figures 3 to 8 provided by the above-mentioned method embodiments.
  • the processes related to the first terminal device or the source terminal device in any one of the shown embodiments, or, the computer can implement the second terminal device in any of the embodiments shown in Figure 3 to Figure 8 provided in the above method embodiment or target end-device or other end-device related processes.
  • An embodiment of the present application also provides a computer program product, the computer program product is used to store a computer program, and when the computer program is executed by a computer, the computer can implement any one of Figures 3 to 8 provided in the above method embodiments.
  • the processes related to the first terminal device or the source terminal device in the illustrated embodiment, or, the computer can implement the second terminal device or the target terminal in any of the embodiments shown in Figure 3 to Figure 8 provided in the above method embodiment Device or other end-device related processes.
  • the present application also provides a chip, including a processor.
  • the processor is configured to read and execute the computer program stored in the memory, so as to execute the corresponding operations and/or processes in the source terminal device or the first terminal device in the charging method provided in this application.
  • the chip further includes a memory, the memory is connected to the processor through a circuit or wires, and the processor is used to read and execute the computer program in the memory.
  • the chip further includes a communication interface, and the processor is connected to the communication interface.
  • the communication interface is used to receive processed data and/or information, and the processor obtains the data and/or information from the communication interface, and processes the data and/or information.
  • the communication interface may be an input/output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip.
  • the processor may also be embodied as a processing circuit or logic circuit.
  • the above-mentioned chip can also be replaced by a system-on-a-chip, which will not be repeated here.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to the actual situation to realize the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

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

Abstract

Embodiments of the present application provide a communication method, apparatus and system. The method comprises: a first terminal device sends a first message to a first area, the first area satisfying at least one of the following: the first area is located in a first direction of the first terminal device, or the distance between the first area and the first terminal device is within a first distance range; the first terminal device receives one or more response messages, the one or more response messages comprising identification information of one or more second terminal devices and the one or more second terminal devices being located in the first area; and the first terminal device determines a first response message in the one or more response messages to be a response message of a target terminal device, the first response message comprising identification information of the target terminal device. By means of the method, the first terminal device may identify a specific target terminal device without knowing the identifier of the target terminal device, and eventually discover the target terminal device.

Description

终端设备的通信方法、装置和系统Communication method, device and system for terminal equipment
本申请要求于2021年05月25日提交中国国家知识产权局、申请号为202110573372.3、申请名称为“终端设备的通信方法、装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110573372.3 and the application title "Communication method, device and system for terminal equipment" submitted to the State Intellectual Property Office of China on May 25, 2021, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及通信领域,尤其涉及一种终端设备的通信方法、装置和系统。The present application relates to the communication field, and in particular to a communication method, device and system for terminal equipment.
背景技术Background technique
设备到设备(Device-to-Device,D2D)通信是一种允许多个终端设备之间直接进行通信的方法,该通信技术允许该多个用户设备在小区网络的控制下共享频谱资源,使得频谱资源的利用率得到了有效的提高。该通信技术支持终端设备之间实现一对一通信(One to one communication)和一对多(One to many communication)通信。在一对一通信技术中,当源终端设备与目标终端设备之间的距离在支持D2D通信的距离范围(该距离范围可以取决于实际应用)内,两者可以在互相发现后直接进行通信。Device-to-Device (Device-to-Device, D2D) communication is a method that allows multiple terminal devices to communicate directly. This communication technology allows the multiple user equipments to share spectrum resources under the control of the cell network, so that the spectrum The utilization rate of resources has been effectively improved. This communication technology supports one-to-one communication and one-to-many communication between terminal devices. In the one-to-one communication technology, when the distance between the source terminal device and the target terminal device is within the distance range supporting D2D communication (the distance range may depend on practical applications), the two can communicate directly after discovering each other.
源终端设备与目标终端设备之间的发现可以通过D2D发现参数来实现。当源终端设备想要发现目标终端设备,源终端设备发送的用于发现目标终端设备的消息中包括该发现参数。例如,发现参数为基于应用的发现参数。源终端设备和目标终端设备以外的至少一个终端设备也持有该基于应用的发现参数。因此源终端设备可以发现包括目标终端设备在内的一个或多个终端设备。但是,采用上述方法,在不明确目标终端设备的标识的情况下,源终端设备无法从该一个或多个终端设备中识别出目标终端设备。The discovery between the source terminal device and the target terminal device can be realized through D2D discovery parameters. When the source terminal device wants to discover the target terminal device, the discovery parameter is included in the message sent by the source terminal device for discovering the target terminal device. For example, the discovery parameters are application-based discovery parameters. At least one terminal device other than the source terminal device and the target terminal device also holds the application-based discovery parameter. The source terminal device can thus discover one or more terminal devices including the target terminal device. However, with the above method, the source terminal device cannot identify the target terminal device from the one or more terminal devices without specifying the identity of the target terminal device.
发明内容Contents of the invention
本申请描述了一种终端设备的通信方法、装置和系统。This application describes a communication method, device and system for terminal equipment.
第一方面,本申请的实施例提供了一种终端设备的通信方法,该方法由第一终端设备执行。该方法包括:第一终端设备向第一区域发送第一消息,该第一区域满足以下中的至少一项:该第一区域位于该第一终端设备的第一方向,或者,该第一区域与该第一终端设备之间的距离在第一距离范围内;该第一终端设备接收一条或多条响应消息,该一条或多条响应消息包括一个或多个第二终端设备的标识信息,该一个或多个第二终端设备位于该第一区域;该第一终端设备确定该一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,该第一响应消息中包括该目标终端设备的标识信息。通过上述方案,第一终端设备向满足特定条件的第一区域中的一个或多个第二终端设备发送第一消息,第一终端设备从一个或多个第二终端设备的一条或多条响应消息确定出第一响应消息为目标终端设备的响应消息,并从该目标终端设备的响应消息中获取到该目标终端设备的标识信息,从而在第一终端设备不知道目标终端设备 的标识信息的情况下实现目标终端设备的发现。In a first aspect, embodiments of the present application provide a communication method for a terminal device, where the method is executed by a first terminal device. The method includes: the first terminal device sends a first message to a first area, and the first area satisfies at least one of the following: the first area is located in a first direction of the first terminal device, or the first area The distance from the first terminal device is within a first distance range; the first terminal device receives one or more response messages, and the one or more response messages include identification information of one or more second terminal devices, The one or more second terminal devices are located in the first area; the first terminal device determines that the first response message among the one or more response messages is a response message of the target terminal device, and the first response message includes the Identification information of the target terminal device. Through the above solution, the first terminal device sends a first message to one or more second terminal devices in the first area that meet certain conditions, and the first terminal device receives one or more responses from one or more second terminal devices The message determines that the first response message is the response message of the target terminal device, and obtains the identification information of the target terminal device from the response message of the target terminal device, so that when the first terminal device does not know the identification information of the target terminal device In this case, the discovery of the target terminal device is realized.
例如,“该一条或多条响应消息包括一个或多个第二终端设备的标识信息”,可以理解为“一条或多条响应消息中的每条响应消息包括一个第二终端设备的标识信息”,也就是说,该一个或多个第二终端设备中的每个第二终端设备发送一条响应消息,每个第二终端设备发送的这条响应消息中包括该第二终端设备的标识信息。上述描述同样适用于本申请中其他方面提供的方法,不再赘述。For example, "the one or more response messages include identification information of one or more second terminal devices" may be understood as "each of the one or more response messages includes identification information of a second terminal device" , that is, each second terminal device among the one or more second terminal devices sends a response message, and the response message sent by each second terminal device includes the identification information of the second terminal device. The above description is also applicable to the methods provided in other aspects of the present application, and will not be repeated here.
例如,向第一区域发送第一消息,可以理解为向第一区域中的一个或多个第二终端设备发送第一消息,也可以理解为向第一方向的一个或多个第二终端设备发送第一消息,也可以理解为,向与第一终端设备之间的距离在第一距离范围内的一个或多个第二终端设备发送第一消息。For example, sending the first message to the first area can be understood as sending the first message to one or more second terminal devices in the first area, and can also be understood as sending the first message to one or more second terminal devices in the first direction Sending the first message may also be understood as sending the first message to one or more second terminal devices whose distance from the first terminal device is within a first distance range.
一种可能的实施方式中,该第一终端设备确定该一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,包括:该第一终端设备的基于近邻的服务层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: determining, by a neighbor-based service layer of the first terminal device, that the The first response message in the one or more response messages is a response message of the target terminal device.
一种可能的实施方式中,该第一终端设备的基于近邻的服务层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的基于近邻的服务层从该第一终端设备的接入层接收该一个或多个第二终端设备与该第一终端设备之间的距离;该第一终端设备的基于近邻的服务层根据该第一距离范围以及该一个或多个第二终端设备与该第一终端设备之间的距离,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。可以理解的是,该实施方式中的“该一个或多个第二终端设备与该第一终端设备之间的距离”可以理解为“该一个或多个第二终端设备中的每个第二终端设备与该第一终端设备之间的距离”,也就是说,该距离随着第二终端设备的不同可能不同,上述描述同样适用于本申请中本方面以及其他方面提供的方法,不再赘述。具体的,该第一终端设备的基于近邻的服务层通过比较第一距离范围,和,一个或多个第二终端设备与第一终端设备之间的距离,从该一条或多条响应消息中选择出目标终端设备的响应消息,即第一响应消息。其中,目标终端设备与第一终端设备之间的距离满足第一距离范围内,换句话说,如果一个终端设备与第一终端设备之间的距离满足第一距离范围,则该终端设备为目标终端设备,如果该终端设备与第一终端设备之间的距离不满足第一距离范围,则该终端设备不是目标终端设备,那么该终端设备的响应消息也不是目标终端设备的响应消息。该具体实现方式同样适用于本申请中的该方面或者其他方面中关于如何“根据该第一距离范围以及该一个或多个第二终端设备与该第一终端设备之间的距离,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息”的描述,不再赘述。In a possible implementation manner, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The service layer based on the neighbor of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the service layer based on the neighbor of the first terminal device according to the The first distance range and the distance between the one or more second terminal devices and the first terminal device determine that the first response message among the one or more response messages is a response message of the target terminal device. It can be understood that "the distance between the one or more second terminal devices and the first terminal device" in this embodiment can be understood as "the distance between each of the one or more second terminal devices The distance between the terminal device and the first terminal device", that is to say, the distance may be different with the second terminal device. The above description is also applicable to the methods provided by this aspect and other aspects of this application, and no longer repeat. Specifically, the neighbor-based service layer of the first terminal device compares the first distance range with, and the distance between one or more second terminal devices and the first terminal device, and obtains from the one or more response messages The response message of the target terminal device is selected, that is, the first response message. Wherein, the distance between the target terminal device and the first terminal device satisfies the first distance range, in other words, if the distance between a terminal device and the first terminal device satisfies the first distance range, then the terminal device is the target For a terminal device, if the distance between the terminal device and the first terminal device does not meet the first distance range, then the terminal device is not the target terminal device, and the response message of the terminal device is also not the response message of the target terminal device. This specific implementation method is also applicable to this aspect or other aspects of this application regarding how to "determine the one or more second terminal devices based on the first distance range and the distance between the first terminal device and the or the first response message among the multiple response messages is the response message of the target terminal device", which will not be repeated here.
一种可能的实施方式中,该第一终端设备的基于近邻的服务层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的基于近邻的服务层从该第一终端设备的接入层接收该一个或多个第二终端设备与该第一终端设备之间的飞行时间;该第一终端设备的基于近邻的服务层根据该一个或多个第二终端设备与该第一终端设备之间的飞行时间确定该一个或多个第二终端设备与该第一终端设备之间的距离;该第一终端设备的基于近邻的服务层根据该第一距离范 围以及该一个或多个第二终端设备与该第一终端设备之间的距离,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。具体的,第一终端设备的基于近邻的服务层按照说明书中前述的公式,一个或多个第二终端设备与第一终端设备之间的飞行时间乘以光速,得到一个或多个第二终端设备与第一终端设备之间的距离。该具体实现方式同样适用于本申请中的该方面或者其他方面中关于如何“根据该一个或多个第二终端设备与该第一终端设备之间的飞行时间确定该一个或多个第二终端设备与该第一终端设备之间的距离”的描述。同样,该实施方式中的飞行时间为一个或多个第二终端设备与该第一终端设备之间的飞行时间,可以理解的是,每个第二终端设备与第一终端设备均有一个飞行时间,也就是说,该飞行时间为一个或多个,取决于第二终端设备的数量,下文不再赘述。In a possible implementation manner, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the neighbor-based service layer of the first terminal device according to The time-of-flight between the one or more second terminal devices and the first terminal device determines the distance between the one or more second terminal devices and the first terminal device; The service layer determines that the first response message among the one or more response messages is the target terminal device according to the first distance range and the distance between the one or more second terminal devices and the first terminal device Respond to the message. Specifically, the neighbor-based service layer of the first terminal device is based on the aforementioned formula in the specification, and the flight time between one or more second terminal devices and the first terminal device is multiplied by the speed of light to obtain one or more second terminal devices The distance between the device and the first terminal device. This specific implementation method is also applicable to this aspect or other aspects of this application regarding how to "determine the one or more second terminal devices according to the flight time between the one or more second terminal devices and the first terminal device The description of the distance between the device and the first terminal device". Likewise, the flight time in this embodiment is the flight time between one or more second terminal devices and the first terminal device. It can be understood that each second terminal device has a flight time with the first terminal device. Time, that is to say, the flight time is one or more, depending on the number of second terminal devices, and will not be described in detail below.
一种可能的实施方式中,该第一终端设备确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的接入层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。该实现方式可以减少第一终端设备的接入层与该第一终端设备的基于近邻的服务层之间的交互,降低终端设备的内部处理的复杂程度。In a possible implementation manner, the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: the access layer of the first terminal device determining that the The first response message in the one or more response messages is a response message of the target terminal device. This implementation manner can reduce the interaction between the access layer of the first terminal device and the neighbor-based service layer of the first terminal device, and reduce the complexity of internal processing of the terminal device.
一种可能的实施方式中,该第一终端设备的接入层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的接入层从该第一终端设备的基于近邻的服务层接收该第一距离范围;该第一终端设备的接入层确定该一个或多个第二终端设备与该第一终端设备之间的距离;该第一终端设备的接入层根据该第一距离范围以及该一个或多个第二终端设备与该第一终端设备之间的距离,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, including: the access layer of the first terminal device The entry layer receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device ; The access layer of the first terminal device determines the first in the one or more response messages according to the first distance range and the distance between the one or more second terminal devices and the first terminal device. The response message is a response message of the target terminal device.
一种可能的实施方式中,该第一终端设备的接入层确定该一个或多个第二终端设备与该第一终端设备之间的距离,包括:该第一终端设备的接入层根据发送该第一消息所使用的源层2标识信息对应的时间点,以及接收该一条或多条响应消息所使用的目的层2标识信息对应的时间点,确定飞行时间;该第一终端设备的接入层根据该飞行时间,确定该一个或多个第二终端设备与该第一终端设备之间的距离。具体的,该第一终端设备的接入层利用源层2标识信息发送第一消息时,记录第一时间点,在该第一终端设备的接入层接收该一条或多条响应消息时,分别记录每个响应消息所对应的目的层2标识信息以及接收该响应消息时对应的第二时间点,当源层2标识信息与目的层2标识信息相同时,计算第一时间点与第二时间点的时间差,即第二时间信息,将第二时间信息减去该响应消息中携带的第一时间信息,得到第三时间信息,并将该第三时间信息除以2即可得到该第二终端设备与第一终端设备之间的飞行时间,其他第二终端设备同理。In a possible implementation manner, the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device, including: the access layer of the first terminal device according to The time point corresponding to the source layer 2 identification information used to send the first message, and the time point corresponding to the destination layer 2 identification information used to receive the one or more response messages to determine the flight time; the first terminal device The access layer determines the distance between the one or more second terminal devices and the first terminal device according to the flight time. Specifically, when the access layer of the first terminal device uses the source layer 2 identification information to send the first message, record the first time point, and when the access layer of the first terminal device receives the one or more response messages, Respectively record the destination layer 2 identification information corresponding to each response message and the corresponding second time point when the response message is received, and when the source layer 2 identification information is the same as the destination layer 2 identification information, calculate the first time point and the second time point The time difference at the time point, that is, the second time information, subtract the second time information from the first time information carried in the response message to obtain the third time information, and divide the third time information by 2 to obtain the first time information The flight time between the second terminal device and the first terminal device is the same as for other second terminal devices.
一种可能的实施方式中,该第一终端设备向第一区域发送第一消息,包括:该第一终端设备的接入层从该第一终端设备的基于近邻的服务层接收该第一消息和需求信息;该第一终端设备的接入层根据该需求信息向该第一区域发送该第一消息。可以理解的是,该第一终端设备的接入层按照该需求信息的规定,向第一区域发送该第一消息,使得该方面中的第一区域满足上述条件,换句话说,目标终端设备与该第一终端设备的位置与该需求信息一致。通过该实施方式的方法,该第一终端设备向目标终端 设备所在的区域发送消息,避免了更多的非目标终端设备的终端设备接收并反馈响应消息,减少了后续确定目标终端设备的响应消息的复杂程度。In a possible implementation manner, the first terminal device sending the first message to the first area includes: the access layer of the first terminal device receiving the first message from the neighbor-based service layer of the first terminal device and demand information; the access layer of the first terminal device sends the first message to the first area according to the demand information. It can be understood that the access layer of the first terminal device sends the first message to the first area according to the requirement information, so that the first area in this aspect meets the above conditions, in other words, the target terminal device The location of the first terminal device is consistent with the demand information. Through the method of this embodiment, the first terminal device sends a message to the area where the target terminal device is located, which prevents more terminal devices that are not the target terminal device from receiving and feeding back response messages, and reduces the number of response messages for subsequent determination of the target terminal device. of complexity.
第二方面,本申请的实施例提供了一种终端设备的通信方法,该方法由第一终端设备执行。该方法包括:第一终端设备发送第一消息;该第一终端设备接收一条或多条响应消息;该第一终端设备确定该一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,该第一响应消息中包括该目标终端设备的标识信息,其中,该第一响应消息满足下述中的至少一项:该第一响应消息来自第一方向,或者,根据该第一响应消息得到的该目标终端设备与该第一终端设备之间的距离在第一距离范围内。通过上述方案,第一终端设备向一个或多个第二终端设备发送第一消息,该第一消息为全向消息,第一终端设备从一个或多个第二终端设备的一条或多条响应消息确定出第一响应消息为目标终端设备的响应消息,并从该目标终端设备的响应消息中获取到该目标终端设备的标识信息,从而在第一终端设备不知道目标终端设备的标识信息的情况下实现目标终端设备的发现。In a second aspect, the embodiments of the present application provide a communication method for a terminal device, where the method is executed by a first terminal device. The method includes: the first terminal device sends a first message; the first terminal device receives one or more response messages; the first terminal device determines that the first response message in the one or more response messages is the target terminal device A response message, where the first response message includes the identification information of the target terminal device, where the first response message satisfies at least one of the following: the first response message comes from a first direction, or, according to the first The distance between the target terminal device and the first terminal device obtained from the response message is within a first distance range. Through the above solution, the first terminal device sends a first message to one or more second terminal devices, the first message is an omnidirectional message, and the first terminal device receives one or more responses from one or more second terminal devices The message determines that the first response message is the response message of the target terminal device, and obtains the identification information of the target terminal device from the response message of the target terminal device, so that when the first terminal device does not know the identification information of the target terminal device In this case, the discovery of the target terminal device is realized.
一种可能的实施方式中,该方法还包括:该一条或多条响应消息中包括一个或多个第二终端设备的标识,该目标终端设备为该一个或多个第二终端设备中的一个。In a possible implementation manner, the method further includes: the one or more response messages include identifiers of one or more second terminal devices, and the target terminal device is one of the one or more second terminal devices .
一种可能的实施方式中,该第一终端设备确定该一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,包括:该第一终端设备的基于近邻的服务层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: determining, by a neighbor-based service layer of the first terminal device, that the The first response message in the one or more response messages is a response message of the target terminal device.
一种可能的实施方式中,该第一终端设备的基于近邻的服务层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的基于近邻的服务层从该第一终端设备的接入层接收该一个或多个第二终端设备与该第一终端设备之间的距离;该第一终端设备的基于近邻的服务层根据该第一距离范围以及该一个或多个第二终端设备与该第一终端设备之间的距离,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The service layer based on the neighbor of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the service layer based on the neighbor of the first terminal device according to the The first distance range and the distance between the one or more second terminal devices and the first terminal device determine that the first response message among the one or more response messages is a response message of the target terminal device.
一种可能的实施方式中,该第一终端设备的基于近邻的服务层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的基于近邻的服务层从该第一终端设备的接入层接收该一个或多个第二终端设备与该第一终端设备之间的飞行时间;该第一终端设备的基于近邻的服务层根据该一个或多个第二终端设备与该第一终端设备之间的飞行时间确定该一个或多个第二终端设备与该第一终端设备之间的距离;该第一终端设备的基于近邻的服务层根据该第一距离范围以及该一个或多个第二终端设备与该第一终端设备之间的距离,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the neighbor-based service layer of the first terminal device according to The time-of-flight between the one or more second terminal devices and the first terminal device determines the distance between the one or more second terminal devices and the first terminal device; The service layer determines that the first response message among the one or more response messages is the target terminal device according to the first distance range and the distance between the one or more second terminal devices and the first terminal device Respond to the message.
一种可能的实施方式中,该第一终端设备的基于近邻的服务层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的基于近邻的服务层从该第一终端设备的接入层接收该一个或多个第二终端设备与该第一终端设备之间的方向;该第一终端设备的基于近邻的服务层根据该第一方向以及该一个或多个第二终端设备与该第一终端设备之间的方向,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。可以理解的是,该实施方式中的“该一个或多个第二终端设备与该第一终端设备之间的方向”可以理解为“该一个 或多个第二终端设备中的每个第二终端设备与该第一终端设备之间的方向”,也就是说,该方向随着第二终端设备的不同可能不用,上述描述同样适用于本申请中本方面以及其他方面提供的方法,不再赘述。具体的,第一终端设备的基于近邻的服务层比较第一方向以及一个或多个第二终端设备与所述第一终端设备之间的方向,当一个或多个第二终端设备与所述第一终端设备之间的方向与第一方向相同,或者在偏离第一方向的被允许的误差范围内,第一终端设备的基于近邻的服务层选择出满足上述条件的第二终端设备(即目标终端设备),即确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。该具体实现方式同样适用于本申请中的该方面或者其他方面中关于如何“该第一终端设备的基于近邻的服务层根据该第一方向以及该一个或多个第二终端设备与该第一终端设备之间的方向,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息”的描述,不再赘述。In a possible implementation manner, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, including: the first terminal device The neighbor-based service layer receives the direction between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the neighbor-based service layer of the first terminal device according to the The first direction and the direction between the one or more second terminal devices and the first terminal device determine that the first response message among the one or more response messages is a response message of the target terminal device. It can be understood that "the direction between the one or more second terminal devices and the first terminal device" in this embodiment can be understood as "the direction between each of the one or more second terminal devices The direction between the terminal device and the first terminal device", that is to say, the direction may be different depending on the second terminal device. The above description is also applicable to the methods provided by this aspect and other aspects of this application, and no longer repeat. Specifically, the neighbor-based service layer of the first terminal device compares the first direction and the directions between one or more second terminal devices and the first terminal device, and when one or more second terminal devices and the The direction between the first terminal devices is the same as the first direction, or within the allowable error range deviating from the first direction, the service layer based on the neighbors of the first terminal device selects the second terminal device that satisfies the above conditions (i.e. target terminal device), that is, determine that the first response message in the one or more response messages is the response message of the target terminal device. This specific implementation manner is also applicable to this aspect or other aspects of this application regarding how "the neighbor-based service layer of the first terminal device is based on the first direction and the relationship between the one or more second terminal devices and the first The direction between the terminal devices, the first response message among the one or more response messages is determined to be the response message of the target terminal device" and will not be repeated here.
一种可能的实施方式中,该第一终端设备确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的接入层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the first terminal device determining that the first response message in the one or more response messages is a response message of the target terminal device includes: the access layer of the first terminal device determining that the The first response message in the one or more response messages is a response message of the target terminal device.
一种可能的实施方式中,该第一终端设备的接入层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的接入层从该第一终端设备的基于近邻的服务层接收该第一方向;该第一终端设备的接入层确定该一个或多个第二终端设备与该第一终端设备之间的方向;该第一终端设备的接入层根据该第一方向以及该一个或多个第二终端设备与该第一终端设备之间的方向,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, including: the access layer of the first terminal device The entry layer receives the first direction from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the direction between the one or more second terminal devices and the first terminal device; The access layer of the first terminal device determines the first response message among the one or more response messages according to the first direction and the direction between the one or more second terminal devices and the first terminal device It is the response message of the target terminal device.
一种可能的实施方式中,该第一终端设备的接入层确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息,包括:该第一终端设备的接入层从该第一终端设备的基于近邻的服务层接收该第一距离范围;该第一终端设备的接入层确定该一个或多个第二终端设备与该第一终端设备之间的距离;该第一终端设备的接入层根据该第一距离范围以及该一个或多个第二终端设备与该第一终端设备之间的距离,确定该一条或多条响应消息中的该第一响应消息为该目标终端设备的响应消息。In a possible implementation manner, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, including: the access layer of the first terminal device The entry layer receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device ; The access layer of the first terminal device determines the first in the one or more response messages according to the first distance range and the distance between the one or more second terminal devices and the first terminal device. The response message is a response message of the target terminal device.
一种可能的实施方式中,该一条或多条响应消息包括时间信息,该时间信息用于确定该一个或多个第二终端设备与该第一终端设备之间的距离。例如,该时间信息可以为第二终端设备接收第一消息的时间点与发送响应消息的时间点的时间差。In a possible implementation manner, the one or more response messages include time information, and the time information is used to determine a distance between the one or more second terminal devices and the first terminal device. For example, the time information may be the time difference between the time point when the second terminal device receives the first message and the time point when the response message is sent.
一种可能的实施方式中,该方法还包括:该第一终端设备获取需求信息,该需求信息包括以下中的至少一项:用于确定该第一方向的方向需求信息,或者,用于确定该第一距离范围的距离需求信息。In a possible implementation manner, the method further includes: the first terminal device acquires demand information, where the demand information includes at least one of the following: direction demand information used to determine the first direction, or used to determine The distance requirement information of the first distance range.
一种可能的实施方式中,该第一终端设备获取需求信息,包括:该第一终端设备的基于近邻的服务层获取该需求信息。例如,一种可选的实现方式,该第一终端设备的基于近邻的服务层根据来自终端设备的指令信息生成该需求信息。In a possible implementation manner, the obtaining the demand information by the first terminal device includes: obtaining the demand information by a neighbor-based service layer of the first terminal device. For example, in an optional implementation manner, the neighbor-based service layer of the first terminal device generates the requirement information according to instruction information from the terminal device.
一种可能的实施方式中,该第一终端设备的基于近邻的服务层获取该需求信息,包括:In a possible implementation manner, the neighbor-based service layer of the first terminal device acquires the demand information, including:
该第一终端设备的基于近邻的服务层从该第一终端设备的应用层获取该需求信息。The neighbor-based service layer of the first terminal device acquires the demand information from the application layer of the first terminal device.
一种可能的实施方式中,该距离需求信息包括以下中的至少一项:第一距离范围, 或者,第一功率,该第一功率用于确定该第一距离范围。例如,该第一功率为该第一终端设备的发送功率,该发送功率可以决定第一距离范围。In a possible implementation manner, the distance requirement information includes at least one of the following: a first distance range, or a first power, and the first power is used to determine the first distance range. For example, the first power is the sending power of the first terminal device, and the sending power may determine the first distance range.
第三方面,本申请的实施例提供了一种通信装置,包括处理器;该处理器用于从存储器中读取并运行程序,以实现如前面第一方面或任一可能的实施方式的方法,或者,以实现如前面第二方面或任一可能的实施方式的方法。In a third aspect, the embodiments of the present application provide a communication device, including a processor; the processor is used to read and run a program from a memory, so as to implement the method in the first aspect or any possible implementation mode above, Or, to implement the method in the second aspect or any possible implementation manner.
第四方面,本申请的实施例提供了一种通信系统,包括第一终端设备,该第一终端设备可以执行第一方面或任一可能的实施方式的方法,或者,以实现如前面第二方面或任一可能的实施方式的方法。In the fourth aspect, the embodiments of the present application provide a communication system, including a first terminal device, and the first terminal device can execute the method in the first aspect or any possible implementation manner, or, to implement the above-mentioned second Aspect or method of any possible embodiment.
第五方面,本申请的实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面或任一可能的实施方式的方法,或第二方面或任一可能的实施方式的方法。In the fifth aspect, the embodiments of the present application provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method of the first aspect or any possible implementation, or the second aspect or method of any possible implementation.
第六方面,本申请的实施例提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得处理器执行如第一方面或任一可能的实施方式的方法,或第二方面或任一可能的实施方式的方法。In the sixth aspect, the embodiments of the present application provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the processor is made to perform the first aspect or any possible The method of the first embodiment, or the method of the second aspect or any possible embodiment.
附图说明Description of drawings
图1为本申请实施例适用的一种ProSe通信系统的网络架构示意图;FIG. 1 is a schematic diagram of a network architecture of a ProSe communication system applicable to an embodiment of the present application;
图2A为本申请实施例适用的一种发现目标终端设备的模式示意图;FIG. 2A is a schematic diagram of a mode of discovering a target terminal device applicable to an embodiment of the present application;
图2B为本申请实施例适用的另一种发现目标终端设备的模式示意图;FIG. 2B is a schematic diagram of another mode of discovering a target terminal device applicable to the embodiment of the present application;
图2C为本申请实施例适用的一种应用场景示意图;FIG. 2C is a schematic diagram of an application scenario applicable to the embodiment of the present application;
图2D为本申请实施例适用的一种测距方法示意图;FIG. 2D is a schematic diagram of a ranging method applicable to the embodiment of the present application;
图2E为本申请实施例适用的一种到达角和离开角的示意图;FIG. 2E is a schematic diagram of an angle of arrival and angle of departure applicable to the embodiment of the present application;
图3为根据本申请实施例提供的一种发现目标终端设备的方法的流程交互示意图;FIG. 3 is a flowchart interaction diagram of a method for discovering a target terminal device according to an embodiment of the present application;
图4为根据本申请实施例提供的另一种发现目标终端设备的方法的流程交互示意图;FIG. 4 is a flowchart interaction schematic diagram of another method for discovering a target terminal device according to an embodiment of the present application;
图5为根据本申请实施例提供的又一种发现目标终端设备的方法的流程交互示意图;FIG. 5 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application;
图6为根据本申请实施例提供的又一种发现目标终端设备的方法的流程交互示意图;FIG. 6 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application;
图7为根据本申请实施例提供的又一种发现目标终端设备的方法的流程交互示意图;FIG. 7 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application;
图8为根据本申请实施例提供的又一种发现目标终端设备的方法的流程交互示意图;FIG. 8 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application;
图9为根据本申请实施例提供的一种通信装置的示意图;FIG. 9 is a schematic diagram of a communication device provided according to an embodiment of the present application;
图10为根据本申请实施例提供的另一种通信装置的示意图。Fig. 10 is a schematic diagram of another communication device provided according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。本申请实施例的技术方案可以应用于各种通信系统,例如长期演进(long term evolution,LTE)系统、LTE频分双工(frequency division duplex,FDD)系统、LTE时分双工(time division duplex,TDD)、第五代(5th generation, 5G)移动通信系统或新无线(new radio,NR)系统,或者应用于未来的通信系统或其它类似的通信系统等。本申请描述的网络架构以及业务场景是为了更加清楚的说明本申请的技术方案,并不构成对本申请提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。In order to make the purpose, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. The technical solutions of the embodiments of the present application can be applied to various communication systems, such as long term evolution (long term evolution, LTE) system, LTE frequency division duplex (frequency division duplex, FDD) system, LTE time division duplex (time division duplex, TDD), fifth generation (5th generation, 5G) mobile communication system or new radio (new radio, NR) system, or applied to future communication systems or other similar communication systems, etc. The network architecture and business scenarios described in this application are to illustrate the technical solution of this application more clearly, and do not constitute a limitation to the technical solution provided by this application. Those of ordinary skill in the art know that with the evolution of network architecture and new business scenarios The technical solutions provided by this application are also applicable to similar technical problems.
设备到设备通信是一种允许多个终端设备之间直接进行通信的方法,该通信技术允许该多个用户设备在小区网络的控制下共享频谱资源,使得频谱资源的利用率得到了有效的提高。第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)标准组织制定了设备到设备通信标准,该设备到设备通信服务又可以称为基于邻近的服务(Proximity-based Services,ProSe)。ProSe中包括ProSe发现,可以称为终端设备的发现,也即目标终端设备的发现,其目的是为了实现支持ProSe的源终端设备发现相邻的同样支持ProSe的另一终端设备(目标终端设备)。通过目标终端设备的发现,源终端设备与目标终端设备可以通过PC5(ProSe Communication 5)接口实现通信。Device-to-device communication is a method that allows multiple terminal devices to communicate directly. This communication technology allows the multiple user devices to share spectrum resources under the control of the cell network, which effectively improves the utilization of spectrum resources. . The 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) standards organization has formulated a device-to-device communication standard, and the device-to-device communication service may also be called a proximity-based service (Proximity-based Services, ProSe). ProSe includes ProSe discovery, which can be called the discovery of terminal equipment, that is, the discovery of target terminal equipment. Its purpose is to realize that the source terminal equipment supporting ProSe discovers another adjacent terminal equipment (target terminal equipment) that also supports ProSe. . Through the discovery of the target terminal device, the source terminal device and the target terminal device can communicate through the PC5 (ProSe Communication 5) interface.
以第五代移动通信系统为例,ProSe基于图1所示的通信系统的网络架构来实现。图1为一种ProSe通信系统的网络架构示意图,该通信系统中包括ProSe的应用服务器、核心网网络、无线接入网(Radio Access Network,RAN)和终端设备。Taking the fifth generation mobile communication system as an example, ProSe is implemented based on the network architecture of the communication system shown in FIG. 1 . FIG. 1 is a schematic diagram of a network architecture of a ProSe communication system. The communication system includes a ProSe application server, a core network network, a radio access network (Radio Access Network, RAN) and a terminal device.
ProSe应用服务器(ProSe Application Server)是用于为ProSe提供应用服务的服务器,该服务器与终端设备之间通过协议数据单元(protocol data unit,PDU)会话实现数据的互通。The ProSe Application Server (ProSe Application Server) is a server used to provide application services for ProSe, and the server and the terminal device realize data intercommunication through a protocol data unit (PDU) session.
核心网网络可包括以下网元中的一个或多个:接入与移动性管理功能(access and mobility management function,AMF)网元、会话管理功能(session management function,SMF)网元、用户面功能(user plane function,UPF)网元以及5G直连发现名字管理功能(5G DDNMF,5G Direct Discovery Name Management Function)网元等。上述各网元也可称为装置、设备或实体,本申请并不在此限制,例如,5G直连发现名字管理功能网元也可称为5G DDNMF装置、5G DDNMF设备或5G DDNMF实体。在便于下面的描述中,将采用简称的方式进行,例如,“5G直连发现名字管理功能网元”被简称为“5G DDNMF”,其他网元同理。The core network network may include one or more of the following network elements: access and mobility management function (access and mobility management function, AMF) network element, session management function (session management function, SMF) network element, user plane function (user plane function, UPF) network element and 5G Direct Discovery Name Management Function (5G DDNMF, 5G Direct Discovery Name Management Function) network element, etc. Each of the above-mentioned network elements may also be called a device, equipment or entity, and this application is not limited here. For example, a 5G direct connection discovery name management function network element may also be called a 5G DDNMF device, a 5G DDNMF device or a 5G DDNMF entity. For the convenience of the following description, the method of abbreviation will be used. For example, "5G direct connection discovery name management function network element" is referred to as "5G DDNMF" for short, and the same applies to other network elements.
AMF用于负责终端设备的移动性管理。例如,移动性管理包括移动状态管理,分配用户临时身份标识,认证和授权用户等。AMF is used to be responsible for the mobility management of terminal equipment. For example, mobility management includes mobility status management, assigning temporary user IDs, authenticating and authorizing users, and so on.
SMF用于负责UPF的选择、重选,网络协议(internet protocol,IP)地址分配,PDU会话的建立、修改或释放,服务质量(quality of service,QoS)控制等。SMF is used to be responsible for UPF selection, reselection, network protocol (internet protocol, IP) address allocation, PDU session establishment, modification or release, quality of service (quality of service, QoS) control, etc.
UPF用于分组数据包的检测、路由和转发。例如,UPF可以作为上行分类器(uplink classifier,ULCL)以支持对流量进行分流后转发到数据网络,或者,UPF可以作为分流点(branching point,BP)以支持多归属的(multi-homed)PDU会话。UPF is used for detection, routing and forwarding of packet data packets. For example, UPF can be used as an uplink classifier (uplink classifier, ULCL) to support the distribution of traffic before forwarding to the data network, or, UPF can be used as a branching point (branching point, BP) to support multi-homed (multi-homed) PDUs session.
5G DDNMF用于ProSe发现,为支持ProSe的终端设备分配发现参数,通常情况下,运营商会在一个公共陆地移动网(public land mobile network,PLMN)中部署一个5G DDNMF。5G DDNMF与ProSe应用服务器通过PC2(ProSe Communication 2)接口交互,该PC2接口用于5G DDNMF从ProSe应用服务器获取ProSe发现授权信息。5G DDNMF与终端设备通过PC3(ProSe Communication 3)接口交互,该PC3接口用 于终端设备从5G DDNMF获取ProSe发现参数。5G DDNMF is used for ProSe discovery and assigns discovery parameters for ProSe-supporting terminal devices. Usually, operators will deploy a 5G DDNMF in a public land mobile network (PLMN). The 5G DDNMF interacts with the ProSe application server through the PC2 (ProSe Communication 2) interface, which is used for the 5G DDNMF to obtain the ProSe discovery authorization information from the ProSe application server. 5G DDNMF interacts with terminal equipment through the PC3 (ProSe Communication 3) interface, which is used for terminal equipment to obtain ProSe discovery parameters from 5G DDNMF.
上述各网元既可以由指定的硬件实现、或者,也可以由在指定硬件上的软件实例实现、或者,也可以由在合适的平台上实例化的虚拟功能来实现,且上述各网元既可以合并设置也可以分开设置,本发明并不在此限制。Each of the above-mentioned network elements may be realized by specified hardware, or may also be realized by a software instance on specified hardware, or may also be realized by a virtual function instantiated on a suitable platform, and the above-mentioned network elements are both They can be combined or set separately, and the present invention is not limited here.
RAN用于实现无线有关的功能。RAN中的节点又可称为接入网设备或基站,用于将终端设备接入到无线网络。所述接入网设备可以是基站(base station)、LTE系统或演进的LTE系统(LTE-Advanced,LTE-A)中的演进型基站(evolved NodeB,eNodeB)、5G通信系统中的下一代基站(next generation NodeB,gNB)、发送接收点(transmission reception point,TRP)、基带单元(base band unit,BBU)、WiFi接入点(access point,AP)、未来移动通信系统中的基站或WiFi系统中的接入节点等。无线接入网设备也可以是完成基站部分功能的模块或单元,例如,可以是集中式单元(central unit,CU),或者分布式单元(distributed unit,DU)。本申请实施例对无线接入网设备所采用的具体技术和具体设备形态不作限定。例如,在一种网络结构中,无线接入网设备可以为CU节点、或DU节点、或为包括CU节点和DU节点的接入网设备。具体的,CU节点用于支持无线资源控制(radio resource control,RRC)、分组数据汇聚协议(packet data convergence protocol,PDCP)、业务数据适配协议(service data adaptation protocol,SDAP)等协议;DU节点用于支持无线链路控制(radio link control,RLC)层协议、媒体接入控制(medium access control,MAC)层协议和物理层协议。The RAN is used to implement radio-related functions. Nodes in the RAN can also be called access network devices or base stations, and are used to connect terminal devices to wireless networks. The access network device may be a base station (base station), an evolved base station (evolved NodeB, eNodeB) in an LTE system or an evolved LTE system (LTE-Advanced, LTE-A), or a next-generation base station in a 5G communication system (next generation NodeB, gNB), transmission reception point (transmission reception point, TRP), base band unit (base band unit, BBU), WiFi access point (access point, AP), base station or WiFi system in the future mobile communication system Access nodes in etc. The radio access network device may also be a module or unit that completes some functions of the base station, for example, it may be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU). The embodiment of the present application does not limit the specific technology and specific equipment form adopted by the radio access network equipment. For example, in a network structure, the radio access network device may be a CU node, or a DU node, or an access network device including a CU node and a DU node. Specifically, the CU node is used to support radio resource control (radio resource control, RRC), packet data convergence protocol (packet data convergence protocol, PDCP), service data adaptation protocol (service data adaptation protocol, SDAP) and other protocols; the DU node It is used to support radio link control (radio link control, RLC) layer protocol, medium access control (medium access control, MAC) layer protocol and physical layer protocol.
终端设备,是一种具有无线收发功能的设备。终端设备通过无线方式与接入网设备相连,从而接入到通信系统中。终端设备也可以称为终端、用户设备(user equipment,UE)、移动台、移动终端等。终端设备可以是手机、平板电脑、带无线收发功能的电脑、虚拟现实终端设备、增强现实终端设备、工业控制中的无线终端、无人驾驶中的无线终端、远程手术中的无线终端、智能电网中的无线终端、运输安全中的无线终端、智慧城市中的无线终端、或智慧家庭中的无线终端等等。本申请实施例对终端设备所采用的具体技术和具体设备形态不作限定。作为示例而非限定,终端设备还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备或智能穿戴式设备等,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能头盔、智能首饰等。终端设备还可以是作为一个或多个部件或者单元而内置于车辆的车载模块、车载部件、车载芯片或者车载单元,车辆通过内置的所述车载模块、车载模组、车载部件、车载芯片或者车载单元可以实施本申请的方法。A terminal device is a device with a wireless transceiver function. The terminal device is connected to the access network device in a wireless manner, so as to be connected to the communication system. A terminal device may also be called a terminal, a user equipment (user equipment, UE), a mobile station, a mobile terminal, and the like. Terminal devices can be mobile phones, tablet computers, computers with wireless transceiver functions, virtual reality terminal devices, augmented reality terminal devices, wireless terminals in industrial control, wireless terminals in unmanned driving, wireless terminals in remote surgery, smart grids wireless terminals in transportation security, wireless terminals in smart cities, or wireless terminals in smart homes, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device. As an example but not a limitation, the terminal device may also be a wearable device. Wearable devices can also be called wearable smart devices or smart wearable devices, etc., which is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes Wait. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not only a hardware device, but also achieve powerful functions through software support, data interaction, and cloud interaction. Generalized wearable smart devices include full-featured, large-sized, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application functions, and need to cooperate with other devices such as smart phones Use, such as various smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring. The terminal device can also be an on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units, and the vehicle can A unit may implement the methods of the present application.
当前,发现目标终端设备的方法可以使用图2A和图2B所示的模式实现。Currently, the method for discovering a target terminal device can be implemented using the modes shown in FIG. 2A and FIG. 2B .
图2A为一种发现目标终端设备的模式示意图,如图2A所示,该模式包括以下步骤:FIG. 2A is a schematic diagram of a mode for discovering a target terminal device. As shown in FIG. 2A, the mode includes the following steps:
步骤201a,终端设备1(Discoverer UE)发送发现消息。例如,该发现消息为请求 消息(Solicitation message)。相应的,终端设备2和终端设备3(Discoveree UE)监听并接收发现消息。In step 201a, terminal device 1 (Discoverer UE) sends a discovery message. For example, the discovery message is a Solicitation message. Correspondingly, terminal device 2 and terminal device 3 (Discoveree UE) monitor and receive discovery messages.
该发现消息为广播消息,该消息为全向消息,也就是说,终端设备1周围各个方向的终端设备都可以接收该发现消息。The discovery message is a broadcast message, and the message is an omnidirectional message, that is, terminal devices in all directions around the terminal device 1 can receive the discovery message.
该发现消息中可以包括消息类型(例如,Solicitation)、目的层2标识(Destination Layer 2 ID)、源层2标识(Source Layer 2 ID)、用户信息标识(User Info ID)、发现参数。该发现消息中,目的层2标识为广播地址,源层2标识为该终端设备1的层2标识,该用户信息标识为终端设备1的标识,该终端设备1的标识可以是终端设备1的应用层标识,该发现参数包括ProSe应用标识(ProSe Application ID)或ProSe查询码字(ProSe Query Code)。需要说明的是,该ProSe查询码字为与目标终端设备对应的ProSe查询码字,在步骤201a之前,终端设备1从5G DDNMF获取该目标终端设备对应的ProSe查询码字。The discovery message may include a message type (for example, Solicitation), a destination layer 2 identifier (Destination Layer 2 ID), a source layer 2 identifier (Source Layer 2 ID), a user information identifier (User Info ID), and discovery parameters. In the discovery message, the destination layer 2 identifier is the broadcast address, the source layer 2 identifier is the layer 2 identifier of the terminal device 1, the user information identifier is the identifier of the terminal device 1, and the identifier of the terminal device 1 may be the identifier of the terminal device 1. Application layer identification, the discovery parameter includes ProSe application identification (ProSe Application ID) or ProSe query code word (ProSe Query Code). It should be noted that the ProSe query codeword is the ProSe query codeword corresponding to the target terminal device, and before step 201a, the terminal device 1 obtains the ProSe query codeword corresponding to the target terminal device from the 5G DDNMF.
步骤202a,终端设备2和终端设备3向终端设备1发送响应消息,该响应消息用于响应该发现消息。响应消息中可以包括消息类型(例如,Response)、目的层2标识、源层2标识、用户信息标识、发现参数。该响应消息中,目的层2标识为步骤201中发现消息中的源层2标识,源层2标识为步骤201中发现消息中的目的层2标识,用户信息标识为发送该响应消息的终端设备的标识,例如终端设备3的应用层标识,该发现参数包括ProSe应用标识(ProSe Application ID)或ProSe响应码字(ProSeIn step 202a, terminal device 2 and terminal device 3 send a response message to terminal device 1, where the response message is used to respond to the discovery message. The response message may include message type (for example, Response), destination layer 2 identifier, source layer 2 identifier, user information identifier, and discovery parameters. In the response message, the destination layer 2 identifier is the source layer 2 identifier in the discovery message in step 201, the source layer 2 identifier is the destination layer 2 identifier in the discovery message in step 201, and the user information identifier is the terminal device sending the response message identification, such as the application layer identification of the terminal device 3, the discovery parameter includes a ProSe application identification (ProSe Application ID) or a ProSe response codeword (ProSe
Response Code)。Response Code).
需要说明的是,当发现消息中的发现参数为ProSe应用标识时,任何对该发现参数中ProSe应用标识感兴趣的终端设备均可以通过步骤202发送响应消息。而当发现消息中的发现参数为ProSe查询码字时,由于只有特定的终端设备具有相同的ProSe查询码字对应的ProSe响应代码,因此只有特定的终端设备才会向终端设备1发送响应消息,响应消息中包括ProSe查询码字对应的ProSe响应码字,换句话说,当发现参数为ProSe查询码字时,只有特定的终端设备才可以与终端设备1互相发现并进行后续的ProSe通信。It should be noted that when the discovery parameter in the discovery message is the ProSe application identifier, any terminal device interested in the ProSe application identifier in the discovery parameter can send a response message through step 202 . And when the discovery parameter in the discovery message is a ProSe query codeword, only a specific terminal device will send a response message to terminal device 1 because only a specific terminal device has a ProSe response code corresponding to the same ProSe query codeword. The response message includes the ProSe response codeword corresponding to the ProSe query codeword. In other words, when the discovery parameter is the ProSe query codeword, only a specific terminal device can discover each other with terminal device 1 and perform subsequent ProSe communication.
该图2A所示的方法,可以理解为终端设备1主动发送发现消息以寻找目标终端设备,当目标终端设备(例如终端设备2或者终端设备3)判断该发现消息中具有自身可匹配或感兴趣的发现参数时,向终端设备1发送响应消息。The method shown in FIG. 2A can be understood as that terminal device 1 actively sends a discovery message to find a target terminal device. When the parameter is discovered, a response message is sent to terminal device 1.
图2B为另一种发现目标终端设备的模式示意图,如图2B所示,该模式包括以下步骤:FIG. 2B is a schematic diagram of another mode for discovering a target terminal device. As shown in FIG. 2B, this mode includes the following steps:
步骤201b,终端设备1(Announcing UE)发送发现消息。例如,该发现消息为通知消息(Announcement message)。相应的,终端设备2或者终端设备3(Monitoring UE)中的至少一个监听并接收发现消息。In step 201b, terminal device 1 (Announcing UE) sends a discovery message. For example, the discovery message is an announcement message (Announcement message). Correspondingly, at least one of the terminal device 2 or the terminal device 3 (Monitoring UE) monitors and receives the discovery message.
该发现消息中可以包括消息类型(即Announcement)、目的层2标识、源层2标识、用户信息标识和发现参数。例如,该发现参数可以包括ProSe应用标识或ProSe受限码字(ProSe Restricted Code)。同样,该ProSe受限码字为与终端设备1对应的码字,在步骤201b之前,终端设备1从5G DDNMF获取ProSe受限码字。The discovery message may include message type (ie Announcement), destination layer 2 identifier, source layer 2 identifier, user information identifier and discovery parameters. For example, the discovery parameter may include a ProSe application identifier or a ProSe restricted codeword (ProSe Restricted Code). Similarly, the ProSe restricted codeword is a codeword corresponding to the terminal device 1, and before step 201b, the terminal device 1 obtains the ProSe restricted codeword from the 5G DDNMF.
后续,当终端设备2或者终端设备3中的至少一个对该发现消息中发现参数感兴趣 (能与发现参数进行匹配,如ProSe应用标识)时,都可以向终端设备1发起连接建立请求。Subsequently, when at least one of the terminal device 2 or the terminal device 3 is interested in the discovery parameter in the discovery message (can be matched with the discovery parameter, such as the ProSe application identifier), it can initiate a connection establishment request to the terminal device 1.
图2B所示的方法,可以理解为终端设备1向周围的终端设备2或者终端设备3中的至少一个发送发现消息,告知终端设备2或者终端设备3中的至少一个:终端设备1想要发起发现请求,请能够匹配该发现消息中的发现参数的终端设备在后续的时间中向终端设备1发起连接建立请求。The method shown in FIG. 2B can be understood as that the terminal device 1 sends a discovery message to at least one of the surrounding terminal devices 2 or 3, and informs at least one of the terminal device 2 or the terminal device 3 that the terminal device 1 wants to initiate For a discovery request, a terminal device that can match the discovery parameter in the discovery message is requested to initiate a connection establishment request to terminal device 1 in a subsequent time.
以上述图2A所示的方法为例进行阐述,在实际实现过程中,该发现消息由终端设备1的ProSe层(ProSe layer)生成后向终端设备1的接入层(Access Stratum layer,AS层)发送,该终端设备1的ProSe层还向该终端设备1的AS层发送用于发送该发现消息的源层2标识和目的层2标识。终端设备2和终端设备3各自的AS层接收该发现消息,并向各自所在的终端设备的ProSe层发送该发现消息。同理,响应消息也是由终端设备2和终端设备3各自的ProSe层生成并向各自的AS层发送,由各自的AS层向终端设备1发送响应消息。Taking the method shown in FIG. 2A above as an example, in the actual implementation process, the discovery message is generated by the ProSe layer (ProSe layer) of the terminal device 1 and sent to the access layer (Access Stratum layer, AS layer) of the terminal device 1. ), the ProSe layer of the terminal device 1 also sends the source layer 2 identifier and the destination layer 2 identifier for sending the discovery message to the AS layer of the terminal device 1. The respective AS layers of the terminal device 2 and the terminal device 3 receive the discovery message, and send the discovery message to the ProSe layer of the respective terminal devices. Similarly, the response messages are also generated by the respective ProSe layers of the terminal device 2 and the terminal device 3 and sent to the respective AS layers, and the respective AS layers send the response messages to the terminal device 1 .
但是,在上述的过程中,当发现参数为ProSe应用标识时,终端设备1可能会收到至少两条响应消息,终端设备1若有特定的需求,以博物馆场景为例,如图2C所示,当终端设备1想要发现某个特定展品上附着的终端设备,但是终端设备1并不知道该特定展品上附着的终端设备的标识信息,假如在某个特定展品上附着的是终端设备2,终端设备1并不知道在某个特定展品上附着的是终端设备2,即终端设备1并不知道终端设备2的标识信息,终端设备2对终端设备1发送的发现消息中的发现参数(该发现参数为ProSe应用标识)感兴趣,终端设备1和终端设备2可以借助该发现参数实现目标终端设备的发现,即,按照图2A的模式,终端设备2向终端设备1发送响应消息,或者按照图2B的模式,终端设备2向终端设备1发起连接建立请求。但是终端设备3和终端设备4也对终端设备1发送的发现消息中的发现参数感兴趣,终端设备1也可以收到终端设备3和终端设备4的消息,此时终端设备1无法辨别出终端设备2、终端设备3和终端设备4中的哪一个终端设备为某个特定展品上附着的终端设备,即无法辨别出目标终端设备为终端设备2,进而无法实现目标终端设备的发现,从而无法满足用户的需求。However, in the above process, when the parameter is found to be the ProSe application identifier, terminal device 1 may receive at least two response messages. If terminal device 1 has specific requirements, take the museum scene as an example, as shown in Figure 2C , when terminal device 1 wants to discover the terminal device attached to a specific exhibit, but terminal device 1 does not know the identification information of the terminal device attached to the specific exhibit, if terminal device 2 is attached to a specific exhibit , terminal device 1 does not know that terminal device 2 is attached to a specific exhibit, that is, terminal device 1 does not know the identification information of terminal device 2, and terminal device 2 sends the discovery parameter ( The discovery parameter is interested in the ProSe application identifier), and the terminal device 1 and the terminal device 2 can realize the discovery of the target terminal device by means of the discovery parameter, that is, according to the mode of FIG. 2A, the terminal device 2 sends a response message to the terminal device 1, or According to the mode in FIG. 2B , terminal device 2 initiates a connection establishment request to terminal device 1 . However, terminal device 3 and terminal device 4 are also interested in the discovery parameters in the discovery message sent by terminal device 1, and terminal device 1 can also receive messages from terminal device 3 and terminal device 4. At this time, terminal device 1 cannot distinguish the terminal Which terminal device among device 2, terminal device 3, and terminal device 4 is the terminal device attached to a specific exhibit, that is, the target terminal device cannot be identified as terminal device 2, and the target terminal device cannot be discovered, so it cannot Meet the needs of users.
本申请要解决的问题是当终端设备无法提前获知目标终端设备的标识信息的情况下,如何实现特定的目标终端设备的发现。以上述例子为例,本申请旨在提供一种解决方案,使得在类似上述场景下,终端设备1能够发现目标终端设备(终端设备2)。The problem to be solved in this application is how to realize the discovery of a specific target terminal device when the terminal device cannot obtain the identification information of the target terminal device in advance. Taking the above example as an example, the present application aims to provide a solution so that the terminal device 1 can discover the target terminal device (terminal device 2) in a scenario similar to the above.
为了使得本申请的方案更加清晰易懂,在介绍本申请的提供的实施例之前,先介绍一下本申请所涉及到的两个方法。In order to make the solution of the present application clearer and easier to understand, before introducing the embodiments provided in the present application, first introduce the two methods involved in the present application.
1、测量距离的方法1. How to measure distance
测量距离也可以称为测距,为方便起见,下文中将测量距离简称为测距。Measuring the distance may also be referred to as ranging, and for convenience, the measuring distance will be simply referred to as ranging in the following.
基于通信的测距方法的原理为通过计算两个终端设备的电磁波的传递时长,即飞行时间(Time of Flight,TOF),将该TOF乘以电磁波在介质中的传播速度,就可以得到两个终端设备之间的距离。在实际操作时,由于该介质为空气或者真空,一般该速度按照光速计算。The principle of the communication-based ranging method is to calculate the transmission time of electromagnetic waves of two terminal devices, that is, Time of Flight (TOF), and multiply the TOF by the propagation speed of electromagnetic waves in the medium to obtain two Distance between end devices. In actual operation, since the medium is air or vacuum, the speed is generally calculated according to the speed of light.
如图2D所示,终端设备1为启动终端设备,该终端设备1发送测距信息,并记录 该发送该测距信息的时间T1。终端设备2为反馈终端设备,该终端设备2接收该测距信息,并记录接收该测距信息的时间T3。终端设备2在接收测距信息后,启动向终端设备1发送反馈信息,并记录该启动的时间T4,并且终端设备计算出T4与T3之间的时间差,即图中的Treply,该时间差作为反馈信息中的一部分。其中,启动的动作与发送的动作之间的时间差可以忽略不计。终端设备1从终端设备2接收到反馈信息时记录时间T2,计算T2与T1之间的时间差,即图中的Tround,那么终端设备可以通过下述公式计算出TOF:As shown in FIG. 2D , the terminal device 1 is an initiating terminal device, and the terminal device 1 sends the ranging information, and records the time T1 at which the ranging information is sent. The terminal device 2 is a feedback terminal device, and the terminal device 2 receives the ranging information, and records the time T3 of receiving the ranging information. After receiving the ranging information, terminal device 2 starts sending feedback information to terminal device 1, and records the start time T4, and the terminal device calculates the time difference between T4 and T3, which is Treply in the figure, and the time difference is used as feedback part of the information. Wherein, the time difference between the initiated action and the sent action is negligible. Terminal device 1 records time T2 when receiving feedback information from terminal device 2, and calculates the time difference between T2 and T1, that is, Tround in the figure, then the terminal device can calculate TOF by the following formula:
TOF=(Tround-Treply)/2TOF=(Tround-Treply)/2
那么终端设备1可以根据该TOF,通过下述公式计算出终端设备1和终端设备2之间的距离:Then terminal device 1 can calculate the distance between terminal device 1 and terminal device 2 according to the TOF by the following formula:
距离=TOF*V,其中V可取值为光速Distance=TOF*V, where V can be the speed of light
从另一个角度来看,该TOF可以看做是两个终端设备之间消息单程传递所用的平均时间。From another perspective, the TOF can be regarded as the average time for one-way transmission of messages between two terminal devices.
2、测量角度的方法2. Method of measuring angle
基于通信的测量终端设备之间的角度的方法可以包括测量到达角(Angle of Arrival,AoA)方法和测量离开角(Angel of Departure,AoD)方法。The communication-based method for measuring an angle between terminal devices may include a method for measuring an angle of arrival (Angle of Arrival, AoA) and a method for measuring an angle of departure (Angel of Departure, AoD).
如图2E所示,图2E中的左图(a)为离开角的示意图,该离开角为终端设备1向终端设备2发送消息的方向与终端设备1的参考方向的夹角。As shown in FIG. 2E , the left figure (a) in FIG. 2E is a schematic diagram of a departure angle, which is the angle between the direction in which terminal device 1 sends a message to terminal device 2 and the reference direction of terminal device 1 .
图2E中的右图(b)为到达角的示意图,该到达角为终端设备1从终端设备2接收消息的方向与终端设备1的参考方向的夹角。The right figure (b) in FIG. 2E is a schematic diagram of the angle of arrival, which is the angle between the direction in which the terminal device 1 receives the message from the terminal device 2 and the reference direction of the terminal device 1 .
通过离开角或者到达角,终端设备1可以判断终端设备2相对于终端设备1的方向,因此测量角度的方法可以帮助终端设备1确定终端设备2相对终端设备1的相对角度。Through the angle of departure or angle of arrival, the terminal device 1 can determine the direction of the terminal device 2 relative to the terminal device 1, so the method of measuring angles can help the terminal device 1 determine the relative angle of the terminal device 2 relative to the terminal device 1.
通过上述的两种不同的方法,终端设备1可以通过距离信息或者角度信息中的至少一个来确定终端设备2相对于终端设备1的位置信息。Through the above two different methods, the terminal device 1 can determine the position information of the terminal device 2 relative to the terminal device 1 through at least one of distance information or angle information.
图3为根据本申请实施例提供的一种发现目标终端设备的方法的流程交互示意图。上述例子中的终端设备1可以为图3中的源终端设备,终端设备2可以为图3中的目标终端设备。Fig. 3 is a schematic flow diagram of a method for discovering a target terminal device according to an embodiment of the present application. Terminal device 1 in the above example may be the source terminal device in FIG. 3 , and terminal device 2 may be the target terminal device in FIG. 3 .
例如,此方法包括如下步骤:For example, this method includes the following steps:
步骤301,源终端设备的应用层(application layer,APP layer)向源终端设备的ProSe层发送需求信息。Step 301, the application layer (application layer, APP layer) of the source terminal device sends demand information to the ProSe layer of the source terminal device.
该需求信息包括方向信息,该需求信息用于发现目标终端设备。The requirement information includes direction information, and the requirement information is used to discover the target terminal device.
例如,该方向信息可以为角度信息,其中,该角度信息可以为离开角。方向信息用于指示该源终端设备以参考方向为基准,向特定的角度发送消息,从另一个角度来看,该方向信息用于指示目标终端设备相对源终端设备的方向,当源终端设备按照该方向信息发送消息,则只有该方向信息所示的方向的终端设备才可以接收到该消息。For example, the direction information may be angle information, wherein the angle information may be a departure angle. The direction information is used to instruct the source terminal device to send a message to a specific angle based on the reference direction. From another perspective, the direction information is used to indicate the direction of the target terminal device relative to the source terminal device. When the source terminal device follows the If the direction information sends a message, only the terminal device in the direction indicated by the direction information can receive the message.
可选的,在另一种可能的实现方式中,该需求信息可以为源终端设备的ProSe层生成。例如,源终端设备的ProSe层可以根据用户的设定来生成该需求信息。Optionally, in another possible implementation manner, the requirement information may be generated for the ProSe layer of the source terminal device. For example, the ProSe layer of the source terminal device can generate the demand information according to the user's settings.
步骤302,源终端设备的ProSe层向源终端设备的AS层发送发现消息和需求信息。Step 302, the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
例如,源终端设备的ProSe层生成发现消息,该发现消息中可以包括消息类型(例 如,Solicitation)和发现参数。该发现参数包括ProSe应用标识(ProSe Application ID)。该ProSe应用标识可以为从5G DDNMF网元获取的,也可以是从源终端设备的应用层获取的。可选的,该发现消息中还可以包括源终端设备的标识信息,该源终端设备的标识信息可以为该源终端设备的应用层标识信息,该应用层标识信息为该ProSe应用标识所标识的某一类应用中,标识某一个终端设备的标识信息,例如,该ProSe应用标识用于标识某一类聊天软件,该应用标识信息用于标识该类聊天软件中的终端设备的标识。For example, the ProSe layer of the source terminal device generates a discovery message, which may include a message type (for example, Solicitation) and a discovery parameter. The discovery parameter includes a ProSe application ID (ProSe Application ID). The ProSe application identifier can be obtained from the 5G DDNMF network element, or it can be obtained from the application layer of the source terminal device. Optionally, the discovery message may also include identification information of the source terminal device, where the identification information of the source terminal device may be application layer identification information of the source terminal device, and the application layer identification information is the ProSe application identification identified In a certain type of application, identify the identification information of a certain terminal device. For example, the ProSe application identification is used to identify a certain type of chat software, and the application identification information is used to identify the identification of the terminal device in this type of chat software.
该源终端设备的ProSe层还确定用于发送发现消息的目的层2标识(Destination Layer 2 ID)和源层2标识(Source Layer 2 ID)。目的层2标识为广播地址,源层2标识为该源终端设备的层2标识。例如,源终端设备的ProSe层根据网络配置信息确定发送该发现消息所使用的目的层2标识。例如,源终端设备从策略控制功能网元(图中未示出)获取该网络配置信息,该网络配置信息包括ProSe应用标识与目的层2标识的对应关系,也可以包括应用标识信息与目的层2标识的对应关系,也可以是消息类型与目的层2标识的对应关系,该消息类型可以是定向发现消息,也可以是测距消息,或者也可以是其他类型的发现消息,本文并不限定。例如,源终端设备的ProSe层向源终端设备的AS层发送用于发送该发现消息所使用目的层2标识和源层2标识。The ProSe layer of the source terminal device also determines the destination layer 2 identifier (Destination Layer 2 ID) and the source layer 2 identifier (Source Layer 2 ID) for sending the discovery message. The destination layer 2 identifier is the broadcast address, and the source layer 2 identifier is the layer 2 identifier of the source terminal device. For example, the ProSe layer of the source terminal device determines the target layer 2 identifier used for sending the discovery message according to the network configuration information. For example, the source terminal device obtains the network configuration information from the policy control function network element (not shown in the figure), the network configuration information includes the correspondence between the ProSe application identifier and the destination layer 2 identifier, and may also include the application identifier information and the destination layer 2 identifier. 2 identification, or the corresponding relationship between the message type and the destination layer 2 identification. The message type may be a directional discovery message, a ranging message, or other types of discovery messages, which are not limited in this document. . For example, the ProSe layer of the source terminal device sends the destination layer 2 identifier and the source layer 2 identifier used for sending the discovery message to the AS layer of the source terminal device.
一种可能的实现方式,该发现消息可以被替换为测距消息(ranging message)或定向发现消息(directional discovery message),即,源终端设备的ProSe层向源终端设备的AS层发送测距消息或定向发现消息。该测距消息或定向发现消息中包括的信息可以上述发现消息中包括的信息相同。In a possible implementation, the discovery message can be replaced by a ranging message or a directional discovery message, that is, the ProSe layer of the source terminal device sends a ranging message to the AS layer of the source terminal device or directed discovery messages. The information included in the ranging message or the orientation discovery message may be the same as the information included in the above discovery message.
步骤303,源终端设备的AS层设置角度信息。Step 303, the AS layer of the source terminal device sets angle information.
例如,源终端设备的AS层根据需求信息中的方向信息,确定用于发送步骤302中的发现消息的角度(例如,离开角),即源终端设备的AS层设置后续发送消息的源终端设备的角度信息。具体的,该角度为该源终端设备的发射天线发射信号的角度。For example, the AS layer of the source terminal device determines the angle (for example, the departure angle) used to send the discovery message in step 302 according to the direction information in the demand information, that is, the AS layer of the source terminal device sets the source terminal device for subsequent message sending angle information. Specifically, the angle is an angle at which the transmitting antenna of the source terminal device transmits signals.
步骤304,源终端设备发送发现消息。相应的,目标终端设备接收该发现消息。Step 304, the source terminal device sends a discovery message. Correspondingly, the target terminal device receives the discovery message.
例如,源终端设备的AS层利用从源终端设备的ProSe层接收的目的层2标识和源层2标识发送发现消息。For example, the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
例如,源终端设备的AS层按照步骤303中的设置发送该发现消息。换句话说,只有该角度信息所指示的方向的终端设备可以接收到该发现消息。For example, the AS layer of the source terminal device sends the discovery message according to the settings in step 303 . In other words, only the terminal devices in the direction indicated by the angle information can receive the discovery message.
若步骤302中源终端设备的ProSe层向源终端设备的AS层发送的消息为测距消息,则此步骤中源终端设备的AS层发送该测距消息。类似的,若步骤302中源终端设备的ProSe层向源终端设备的AS层发送的消息为定向发现消息,则此步骤中源终端设备的AS层发送定向发现消息。If the message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 302 is a ranging message, then the AS layer of the source terminal device sends the ranging message in this step. Similarly, if the message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 302 is a directed discovery message, then in this step the AS layer of the source terminal device sends a directed discovery message.
步骤305,目标终端设备发送响应消息。相应的,源终端设备接收响应消息。Step 305, the target terminal device sends a response message. Correspondingly, the source terminal device receives the response message.
例如,源终端设备的AS层接收响应消息。For example, the AS layer of the source terminal device receives the response message.
例如,目标终端设备的ProSe层向目标终端设备的AS层发送响应消息,该目标终端设备的AS层发送响应消息。For example, the ProSe layer of the target terminal device sends a response message to the AS layer of the target terminal device, and the AS layer of the target terminal device sends a response message.
例如,目标终端设备还确定用于发送响应消息的目的层2标识和源层2标识。目的层2标识为接收的发现消息的源层2标识,源层2标识为目标终端设备自行分配的标 识信息。For example, the target terminal device also determines a destination layer 2 identity and a source layer 2 identity for sending the response message. The destination layer 2 identifier is the source layer 2 identifier of the received discovery message, and the source layer 2 identifier is the identifier information assigned by the target terminal device itself.
该响应消息为步骤304中的发现消息的响应消息或者为目标终端设备的PC5连接建立请求消息,当该角度信息所对应的方向存在一个终端设备,该响应消息可能有一条,若存在多个终端设备,则该响应消息可能为多条。上述描述同样适用于本申请中的其他实施例的情况,不再赘述。The response message is the response message of the discovery message in step 304 or the PC5 connection establishment request message for the target terminal device. When there is a terminal device in the direction corresponding to the angle information, there may be one response message. If there are multiple terminals device, the response message may be multiple. The foregoing description is also applicable to other embodiments in the present application, and details are not repeated here.
此外,该响应消息中还包括其他信息,例如,目标终端设备的标识信息,该目标终端设备的标识信息可以为目标终端设备的应用层标识信息。In addition, the response message also includes other information, for example, identification information of the target terminal device, where the identification information of the target terminal device may be application layer identification information of the target terminal device.
步骤306,源终端设备的AS层向源终端设备的ProSe层发送响应消息。Step 306, the AS layer of the source terminal device sends a response message to the ProSe layer of the source terminal device.
该响应消息为步骤305接收到的响应消息。The response message is the response message received in step 305 .
步骤307,源终端设备的ProSe层确定目标终端设备的响应消息。Step 307, the ProSe layer of the source terminal device determines the response message of the target terminal device.
应理解的是,源终端设备的ProSe层通过步骤306接收到的响应消息即目标终端设备的响应消息。It should be understood that the response message received by the ProSe layer of the source terminal device through step 306 is the response message of the target terminal device.
最终,源终端设备根据该目标终端设备的响应消息,获取到目标终端设备的标识信息。Finally, the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device.
步骤308,源终端设备与目标终端设备实现PC5连接的建立。In step 308, the source terminal device establishes a PC5 connection with the target terminal device.
需要特别说明的是,如果目标终端设备只有一个,当通过上述步骤,源终端设备的ProSe层确定的目标终端设备的响应消息为多个目标终端设备的响应消息,该源终端设备可以将该多个目标终端设备的信息通过可视化的界面提供给用户,源终端设备根据用户的选择确定目标终端设备。It should be noted that if there is only one target terminal device, when the response message of the target terminal device determined by the ProSe layer of the source terminal device is the response message of multiple target terminal devices through the above steps, the source terminal device can The information of each target terminal device is provided to the user through a visual interface, and the source terminal device determines the target terminal device according to the user's selection.
需要特别说明的是,该实施例中,一种可能的实现方式,源终端设备可以计算接收到的响应消息的到达角,并将该到达角与角度信息进行对比,当该响应消息的到达角与角度信息的误差在一定的范围内,该范围取决于具体实现,本申请并不限制,则步骤306中源终端设备的AS层向源终端设备的ProSe层发送该响应消息。该实现方式起到检验的作用,用于进一步保障源终端设备的ProSe层接收到的响应消息为目标终端设备的响应消息。该实现方式可参考图6中步骤605的描述。It should be noted that in this embodiment, in a possible implementation manner, the source terminal device can calculate the arrival angle of the received response message, and compare the arrival angle with the angle information. When the arrival angle of the response message The error with the angle information is within a certain range, which depends on the specific implementation and is not limited in this application, then in step 306, the AS layer of the source terminal device sends the response message to the ProSe layer of the source terminal device. This implementation manner serves as a check, and is used to further ensure that the response message received by the ProSe layer of the source terminal device is the response message of the target terminal device. For this implementation, reference may be made to the description of step 605 in FIG. 6 .
此外,该实施例中的源终端设备的ProSe层可以替换为测距层(Ranging layer),也可以为发现层(Discovery layer),或者为具有相同或相似功能的其他名称的层,当源终端设备的ProSe层为不同名称的层时,该实施例中的部分消息名称可能会发生相应的改变,例如,发现消息可以为定向发现消息或测距消息。该本申请中并不限定,其他实施例同理,不再赘述。In addition, the ProSe layer of the source terminal device in this embodiment can be replaced by a ranging layer (Ranging layer), or a discovery layer (Discovery layer), or a layer with another name with the same or similar function. When the source terminal When the ProSe layer of the device is a layer with a different name, some message names in this embodiment may be changed accordingly. For example, the discovery message may be a directional discovery message or a ranging message. It is not limited in this application, and the other embodiments are the same, and will not be repeated here.
通过图3所示的实施例所示的方法,源终端设备可以在不知道目标终端的标识的前提下,获取需求信息,根据该需求信息设置发送发现消息的方向(角度),并按照该方向发送该发现消息。接收到该发现消息的终端设备则为目标终端设备。目标终端设备向该源终端设备发送响应消息,源终端设备进而获取到目标终端设备的响应消息,最终从该目标终端设备的响应消息中获取到目标终端设备的标识,从而实现目标终端设备的发现。Through the method shown in the embodiment shown in Fig. 3, the source terminal device can obtain the demand information without knowing the identity of the target terminal, set the direction (angle) for sending the discovery message according to the demand information, and follow the direction Send the discovery message. The terminal device that receives the discovery message is the target terminal device. The target terminal device sends a response message to the source terminal device, and the source terminal device then obtains the response message of the target terminal device, and finally obtains the identity of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device .
图4为根据本申请实施例提供的一种发现目标终端设备的方法的流程交互示意图。上述例子中的终端设备1可以为图4中的源终端设备,终端设备2可以为图4中的目标终端设备。Fig. 4 is a schematic flow diagram of a method for discovering a target terminal device according to an embodiment of the present application. Terminal device 1 in the above example may be the source terminal device in FIG. 4 , and terminal device 2 may be the target terminal device in FIG. 4 .
例如,此方法包括如下步骤:For example, this method includes the following steps:
步骤401,源终端设备的应用层向源终端设备的ProSe层发送需求信息。Step 401, the application layer of the source terminal device sends requirement information to the ProSe layer of the source terminal device.
该需求信息包括功率信息,该需求信息用于发现目标终端设备。The requirement information includes power information, and the requirement information is used to discover the target terminal device.
例如,该功率信息用于指示该源终端设备的发射天线的发送功率,也就是说,目标终端设备在源终端设备的信号覆盖范围内。或者,该功率信息也可以用来限定接收到源终端设备所发送的消息的终端设备的数量,降低后续筛选出目标终端设备的成本。For example, the power information is used to indicate the transmit power of the transmit antenna of the source terminal device, that is, the target terminal device is within the signal coverage of the source terminal device. Alternatively, the power information may also be used to limit the number of terminal devices that receive the message sent by the source terminal device, so as to reduce the cost of subsequently screening out target terminal devices.
可选的,在另一种可能的实现方式中,该需求信息可以为源终端设备的ProSe层生成。例如,源终端设备的ProSe层可以根据用户的设定来生成该需求信息。Optionally, in another possible implementation manner, the requirement information may be generated for the ProSe layer of the source terminal device. For example, the ProSe layer of the source terminal device can generate the demand information according to the user's setting.
步骤402,源终端设备的ProSe层向源终端设备的AS层发送发现消息和需求信息。Step 402, the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
该步骤可参考步骤302的描述。For this step, reference may be made to the description of step 302 .
步骤403,源终端设备的AS层设置发送功率。Step 403, the AS layer of the source terminal device sets the transmission power.
例如,源终端设备的AS层根据需求信息中的功率信息,确定用于发送步骤402中的发现消息的发射天线的发送功率,即源终端设备的AS层设置后续发送消息的源终端设备的发送功率。For example, the AS layer of the source terminal device determines the transmission power of the transmitting antenna used to send the discovery message in step 402 according to the power information in the demand information, that is, the AS layer of the source terminal device sets the transmission power of the source terminal device for subsequent sending messages. power.
步骤404,源终端设备发送发现消息。相应的,目标终端设备接收该发现消息。Step 404, the source terminal device sends a discovery message. Correspondingly, the target terminal device receives the discovery message.
例如,源终端设备的AS层利用从源终端设备的ProSe层接收的目的层2标识和源层2标识发送发现消息。For example, the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
例如,源终端设备的AS层按照步骤403中的设置发送该发现消息。换句话说,只有该源终端设备的发送功率所指示的信号覆盖范围内的终端设备可以接收到该发现消息。For example, the AS layer of the source terminal device sends the discovery message according to the settings in step 403 . In other words, only the terminal devices within the signal coverage indicated by the transmission power of the source terminal device can receive the discovery message.
若步骤402中源终端设备的ProSe层向源终端设备的AS层发送的发现消息为测距消息,则此步骤中源终端设备的AS层发送该测距消息。类似的,若步骤402中源终端设备的ProSe层向源终端设备的AS层发送的发现消息为定向发现消息,则此步骤中源终端设备的AS层发送定向发现消息。If the discovery message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 402 is a ranging message, then the AS layer of the source terminal device sends the ranging message in this step. Similarly, if the discovery message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 402 is a directional discovery message, then in this step the AS layer of the source terminal device sends a directional discovery message.
步骤405,目标终端设备发送响应消息。相应的,源终端设备接收响应消息。Step 405, the target terminal device sends a response message. Correspondingly, the source terminal device receives the response message.
步骤406,源终端设备的AS层向源终端设备的ProSe层发送响应消息。Step 406, the AS layer of the source terminal device sends a response message to the ProSe layer of the source terminal device.
步骤407,源终端设备的ProSe层确定目标终端设备的响应消息。Step 407, the ProSe layer of the source terminal device determines the response message of the target terminal device.
步骤408,源终端设备与目标终端设备实现PC5连接的建立。In step 408, the source terminal device establishes a PC5 connection with the target terminal device.
步骤405至步骤408可参考图3中的步骤305至步骤308的描述。For steps 405 to 408, reference may be made to the description of steps 305 to 308 in FIG. 3 .
通过图4所示的实施例所示的方法,源终端设备可以在不知道目标终端的标识的前提下,获取需求信息,根据该需求信息设置发送发现消息的发送功率,并按照该发送功率发送该发现消息。接收到该发现消息的终端设备则为目标终端设备。目标终端设备向该源终端设备发送响应消息,源终端设备进而获取到目标终端设备的响应消息,最终从该目标终端设备的响应消息中获取到目标终端设备的标识,从而实现目标终端设备的发现。Through the method shown in the embodiment shown in Figure 4, the source terminal device can obtain the demand information without knowing the identity of the target terminal, set the transmission power for sending the discovery message according to the demand information, and send the message according to the transmission power. The discovery message. The terminal device that receives the discovery message is the target terminal device. The target terminal device sends a response message to the source terminal device, and the source terminal device then obtains the response message of the target terminal device, and finally obtains the identity of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device .
图5为根据本申请实施例提供的又一种发现目标终端设备的方法的流程交互示意图。上述例子中的终端设备1可以为图5中的源终端设备,终端设备2可以为图5中的目标终端设备。FIG. 5 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application. Terminal device 1 in the above example may be the source terminal device in FIG. 5 , and terminal device 2 may be the target terminal device in FIG. 5 .
例如,此方法包括如下步骤:For example, this method includes the following steps:
步骤501,源终端设备的应用层向源终端设备的ProSe层发送需求信息。Step 501, the application layer of the source terminal device sends requirement information to the ProSe layer of the source terminal device.
该需求信息包括距离信息,该需求信息用于发现目标终端设备。The requirement information includes distance information, and the requirement information is used to discover the target terminal device.
该距离信息用于指示源终端设备与目标终端设备之间的距离,例如,该距离信息包括距离需求,该距离需求可以为具体的数值,也可以为一个数值范围,本申请中不做任何限定。例如,该距离需求为5米。此外,该距离信息也用于指示源终端设备进行距离计算。The distance information is used to indicate the distance between the source terminal device and the target terminal device. For example, the distance information includes a distance requirement, which can be a specific value or a range of values, which is not limited in this application . For example, the distance requirement is 5 meters. In addition, the distance information is also used to instruct the source terminal device to perform distance calculation.
可选的,在另一种可能的实现方式中,该需求信息可以由源终端设备的ProSe层生成。例如,源终端设备的ProSe层可以根据用户的设定来生成该需求信息。Optionally, in another possible implementation manner, the requirement information may be generated by the ProSe layer of the source terminal device. For example, the ProSe layer of the source terminal device can generate the demand information according to the user's setting.
步骤502,源终端设备的ProSe层向源终端设备的AS层发送发现消息和需求信息。Step 502, the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
其中,该发现消息可以参考步骤302中的描述,此处不再赘述。For the discovery message, reference may be made to the description in step 302, which will not be repeated here.
该需求信息为步骤501中的需求信息。The demand information is the demand information in step 501 .
一种可能的实现方式,该步骤中可以不包括该距离需求,但源终端设备的ProSe层还向源终端设备的AS层发送指示获取距离测量信息的信息。In a possible implementation manner, the distance requirement may not be included in this step, but the ProSe layer of the source terminal device also sends information indicating to acquire distance measurement information to the AS layer of the source terminal device.
一种可能的实现方式,该发现消息可以被替换为测距消息或定向发现消息,即,源终端设备的ProSe层向源终端设备的AS层发送测距消息或定向发现消息。该测距消息或定向发现消息中包括的信息可以与发现消息中包括的信息相同。由于测距信息或定向发现消息可以隐式指示距离的测量,若步骤501中的需求信息中包括距离需求,此时该步骤中需求信息的距离需求或用于指示获取距离测量信息的信息为可选。In a possible implementation manner, the discovery message may be replaced by a ranging message or a directional discovery message, that is, the ProSe layer of the source terminal device sends a ranging message or a directional discovery message to the AS layer of the source terminal device. The information included in the ranging message or the directional discovery message may be the same as that included in the discovery message. Since the distance measurement information or the orientation discovery message can implicitly indicate the measurement of the distance, if the requirement information in step 501 includes the distance requirement, the distance requirement of the requirement information in this step or the information used to indicate the acquisition of the distance measurement information is available. select.
步骤503,源终端设备发送发现消息。Step 503, the source terminal device sends a discovery message.
相应的,目标终端设备或其他终端设备接收该发现消息。需要说明的是,“目标终端设备或其他终端设备”意在表明接收该发现消息的终端设备可以为一个,也可以为多个。Correspondingly, the target terminal device or other terminal devices receive the discovery message. It should be noted that the "target terminal device or other terminal devices" is intended to indicate that there may be one terminal device or multiple terminal devices receiving the discovery message.
例如,源终端设备的AS层发送发现消息。该发现消息是全向消息。For example, the AS layer of the source terminal device sends a discovery message. The discovery message is an omni message.
例如,源终端设备的AS层利用从源终端设备的ProSe层接收的目的层2标识和源层2标识发送发现消息。For example, the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
由于源终端设备的AS层已经从源终端设备的ProSe层获知需要获取测量信息,例如,源终端设备的AS层从源终端设备的ProSe层接收到需求信息中的距离信息,或者用于指示获取距离测量信息的信息,该源终端设备的AS层记录发送该发现消息的时间点。例如,该源终端设备的AS层记录该发现消息中的源层2标识以及对应的发送该发现消息的时间点。Since the AS layer of the source terminal device has learned from the ProSe layer of the source terminal device that it needs to obtain measurement information, for example, the AS layer of the source terminal device receives the distance information in the demand information from the ProSe layer of the source terminal device, or is used to indicate the acquisition For distance measurement information, the AS layer of the source terminal device records the time point at which the discovery message is sent. For example, the AS layer of the source terminal device records the source layer 2 identifier in the discovery message and the corresponding time point when the discovery message is sent.
若步骤502中源终端设备的ProSe层向源终端设备的AS层发送的消息为测距消息,则此步骤中源终端设备的AS层发送该测距消息。类似的,若步骤502中源终端设备的ProSe层向源终端设备的AS层发送的消息为定向发现消息,则此步骤中源终端设备的AS层发送定向发现消息。If the message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 502 is a ranging message, then the AS layer of the source terminal device sends the ranging message in this step. Similarly, if the message sent by the ProSe layer of the source terminal device to the AS layer of the source terminal device in step 502 is a directional discovery message, then in this step the AS layer of the source terminal device sends a directional discovery message.
可选的,该源终端设备的AS层确定发送该发现消息所使用的AS层配置信息。该AS层配置信息包括逻辑信道(logical channel)信息或物理层资源池信息。例如,源终端设备从策略控制功能网元获取发送该发现消息所使用的AS层配置信息,或者,源终端设备从RAN接收发送该消息所使用的AS层配置信息。Optionally, the AS layer of the source terminal device determines the AS layer configuration information used for sending the discovery message. The AS layer configuration information includes logical channel (logical channel) information or physical layer resource pool information. For example, the source terminal device acquires the AS layer configuration information used for sending the discovery message from the policy control function network element, or the source terminal device receives the AS layer configuration information used for sending the message from the RAN.
可选的,该源终端设备的AS层在该步骤中还发送指示信息,该指示信息用于指示 目标终端设备或其他终端设备在后续反馈的响应消息中携带Treply的时间信息。Optionally, the AS layer of the source terminal device also sends indication information in this step, and the indication information is used to instruct the target terminal device or other terminal devices to carry the time information of Treply in the response message fed back subsequently.
步骤504,目标终端设备或其他终端设备发送响应消息。相应的,源终端设备接收响应消息。Step 504, the target terminal device or other terminal devices send a response message. Correspondingly, the source terminal device receives the response message.
例如,源终端设备的AS层接收响应消息。For example, the AS layer of the source terminal device receives the response message.
该响应消息为步骤503中的发现消息的响应消息。The response message is a response message to the discovery message in step 503 .
该目标终端设备或其他终端设备为对上述发现消息中的发现参数感兴趣的终端设备。例如,以目标终端设备为例,目标终端设备的ProSe层向目标终端设备的AS层发送响应消息,该目标终端设备的AS层发送响应消息。The target terminal device or other terminal devices are terminal devices that are interested in the discovery parameters in the discovery message. For example, taking the target terminal device as an example, the ProSe layer of the target terminal device sends a response message to the AS layer of the target terminal device, and the AS layer of the target terminal device sends a response message.
可选的,以目标终端设备为例,目标终端设备还确定用于发送响应消息的目的层2标识和源层2标识。目的层2标识为接收的发现消息的源层2标识,源层2标识为目标终端设备或其他终端设备自行分配的标识信息。其他终端设备同理。Optionally, taking the target terminal device as an example, the target terminal device also determines the destination layer 2 identifier and the source layer 2 identifier for sending the response message. The destination layer 2 identifier is the source layer 2 identifier of the received discovery message, and the source layer 2 identifier is the identification information assigned by the target terminal device or other terminal devices. The same applies to other terminal devices.
该响应消息可以为步骤503中的发现消息的响应消息或者为PC5连接建立请求消息。The response message may be a response message to the discovery message in step 503 or a PC5 connection establishment request message.
其中,该响应消息中携带Treply,Treply表示终端设备从接收到发现消息到发送该发现消息的响应消息的时间差值,或者表示终端设备的AS层从接收到发现消息到终端设备的AS层发送该发现消息的响应消息的时间差值。例如,接收到发现消息的终端设备,即目标终端设备或其他终端设备,按照如图2D所示的方法计算该Treply,并将Treply向源终端设备的AS层发送,使得源终端设备的AS层接收响应消息的同时可以获得该Treply。具体的,以目标终端设备为例,目标终端设备的AS层记录接收发现消息的第一时间点,存储发现消息中的源层2标识与第一时间点的对应关系,目标终端设备的AS层从目标终端设备的ProSe层接收发现消息中的源层2标识作为响应消息的目的层2标识,确定发送该响应消息的第二时间点,将第二时间点与第一时间点的差值作为Treply。Wherein, the response message carries Treply, and Treply indicates the time difference between the terminal device receiving the discovery message and sending the response message of the discovery message, or indicates that the AS layer of the terminal device receives the discovery message and sends the AS layer of the terminal device. The time difference of the response message of this discovery message. For example, the terminal device that receives the discovery message, that is, the target terminal device or other terminal devices, calculates the Treply according to the method shown in Figure 2D, and sends the Treply to the AS layer of the source terminal device, so that the AS layer of the source terminal device The Treply can be obtained while receiving the response message. Specifically, taking the target terminal device as an example, the AS layer of the target terminal device records the first time point of receiving the discovery message, stores the correspondence between the source layer 2 identifier in the discovery message and the first time point, and the AS layer of the target terminal device Receive the source layer 2 identifier in the discovery message from the ProSe layer of the target terminal device as the destination layer 2 identifier of the response message, determine the second time point for sending the response message, and use the difference between the second time point and the first time point as Treply.
可选的,接收到发现消息的目标终端设备或其他终端设备根据如下信息中至少一种确定需要计算Treply:发送发现消息所使用的目的层2标识,发送发现消息所使用的逻辑信道信息,发送发现消息所使用的物理资源池信息。例如,该发送发现消息所使用的目的层2标识为该源终端设备从核心网中获取的一种层2标识,相应的,终端设备(目标终端设备或其他终端设备)从核心网中获取相同的层2标识,该层2标识可以用于指示该终端设备(目标终端设备或其他终端设备)计算Treply。Optionally, the target terminal device or other terminal devices that receive the discovery message determine that Treply needs to be calculated according to at least one of the following information: the destination layer 2 identifier used to send the discovery message, the logical channel information used to send the discovery message, and the Information about the physical resource pool used by the discovery message. For example, the destination layer 2 identifier used for sending the discovery message is a layer 2 identifier obtained by the source terminal device from the core network. Correspondingly, the terminal device (target terminal device or other terminal device) obtains the same The layer 2 identifier of , where the layer 2 identifier can be used to instruct the terminal device (the target terminal device or other terminal devices) to calculate the Treply.
例如,以目标终端设备为例,目标终端设备从策略控制功能网元获取该网络配置信息,该网络配置信息可以包括消息类型与所接收的消息的目的层2标识的对应关系,该消息类型可以是定向发现消息,也可以是测距消息,或者也可以是其他类型的发现消息,本文并不限定。例如,该目标终端设备接收测距消息,该目标终端设备根据该对应关系,确定自身需要计算Treply。For example, taking the target terminal device as an example, the target terminal device obtains the network configuration information from the policy control function network element, and the network configuration information may include the correspondence between the message type and the destination layer 2 identifier of the received message, and the message type may be It may be a directional discovery message, a ranging message, or other types of discovery messages, which are not limited herein. For example, the target terminal device receives the ranging message, and the target terminal device determines that it needs to calculate Treply according to the corresponding relationship.
与源终端设备类似,目标终端设备还可以从RAN接收用于接收定向发现消息或测距消息的逻辑信道信息和物理资源池信息中至少一种。以目标终端设备为例,当目标终端设备根据发送发现消息所使用的目的层2标识、发送发现消息所使用的逻辑信道信息和发送发现消息所使用的物理资源池信息中的至少一个,记录接收步骤503中的发现消息的时间点,即第一时间点,进而计算Treply。Similar to the source terminal device, the target terminal device may also receive at least one of logical channel information and physical resource pool information for receiving a directional discovery message or a ranging message from the RAN. Taking the target terminal device as an example, when the target terminal device records the received The time point of the discovery message in step 503, that is, the first time point, is used to calculate Treply.
此外,该响应消息中还可以包括其他信息,例如,目标终端设备的标识信息,例如目标终端设备的应用层标识信息。In addition, the response message may also include other information, for example, identification information of the target terminal device, such as application layer identification information of the target terminal device.
步骤505,源终端设备的AS层计算距离值或者TOF。Step 505, the AS layer of the source terminal device calculates the distance value or TOF.
例如,该源终端设备的AS层记录接收该响应消息的时间点。例如,该源终端设备的AS层根据该响应消息中的目的层2标识,记录接收该响应消息的时间点,并根据在步骤503中记录的该源层2标识以及对应的发送该发现消息的时间点,计算得到Tround,进而根据前述的方法计算得到TOF的值。可以理解的是,该响应消息中的目的层2标识和发现消息中的源层2标识所标识的终端设备均为源终端设备,因此源终端设备的AS层根据该目的层2标识和源层2标识建立发现消息与响应消息的关系,从而按照前述方法计算得到TOF的值。For example, the AS layer of the source terminal device records the time point of receiving the response message. For example, the AS layer of the source terminal device records the time point of receiving the response message according to the destination layer 2 identifier in the response message, and records the source layer 2 identifier recorded in step 503 and the corresponding sender of the discovery message. At the time point, Tround is calculated, and then the value of TOF is calculated according to the aforementioned method. It can be understood that the terminal device identified by the destination layer 2 identifier in the response message and the source layer 2 identifier in the discovery message is both the source terminal device, so the AS layer of the source terminal device 2. Identify and establish the relationship between the discovery message and the response message, so as to calculate the value of TOF according to the aforementioned method.
源终端设备的AS层可以根据该TOF的值进一步得到距离值,该距离值为发送响应消息的终端设备(目标终端设备与其他终端设备中的一个)与源终端设备的实际距离,下文不再赘述。The AS layer of the source terminal device can further obtain the distance value according to the TOF value, and the distance value is the actual distance between the terminal device (the target terminal device and one of other terminal devices) that sends the response message and the source terminal device, which will not be discussed below repeat.
可以理解的是,若该响应消息为多条消息,即多个终端设备反馈的响应消息,则该距离值或者TOF为针对与该条消息对应的不同的终端设备响应消息得到的。It can be understood that if the response message is multiple messages, that is, response messages fed back by multiple terminal devices, the distance value or TOF is obtained for different terminal device response messages corresponding to the message.
步骤506,源终端设备确定目标终端设备的响应消息。Step 506, the source terminal device determines the response message of the target terminal device.
一种可能的实现方式,源终端设备的AS层向源终端设备的ProSe层发送响应消息和该响应消息对应的距离测量信息(距离值或者TOF,即若源终端设备的AS层计算得到的是距离值,那么该测量信息为距离值,否则为TOF)。在响应消息为多条的情况下,源终端设备的AS层向源终端设备的ProSe层发送每一条消息及其对应的距离测量信息。源终端设备的ProSe层确定目标终端设备的响应消息。应理解的是,源终端设备的ProSe层从一条或多条响应消息中筛选出目标终端设备的响应消息。例如,源终端设备的AS层向源终端设备的ProSe层发送的响应消息为步骤505接收到的响应消息,或者,该响应消息为步骤505接收到的响应消息中去除Treply的消息。例如,当步骤502中源终端设备的ProSe层没有向源终端设备的AS层发送距离需求,但源终端设备的ProSe层向源终端设备的AS层发送指示获取距离测量信息的信息,该步骤可以采用该可能的实现方式。In a possible implementation, the AS layer of the source terminal device sends a response message and the distance measurement information (distance value or TOF) corresponding to the response message to the ProSe layer of the source terminal device, that is, if the AS layer of the source terminal device calculates distance value, then the measurement information is the distance value, otherwise it is TOF). In the case of multiple response messages, the AS layer of the source terminal device sends each message and its corresponding distance measurement information to the ProSe layer of the source terminal device. The ProSe layer of the source terminal device determines the response message of the target terminal device. It should be understood that the ProSe layer of the source terminal device screens out the response message of the target terminal device from one or more response messages. For example, the response message sent by the AS layer of the source terminal device to the ProSe layer of the source terminal device is the response message received in step 505, or the response message is a message in which Treply is removed from the response message received in step 505. For example, when the ProSe layer of the source terminal device does not send distance requirements to the AS layer of the source terminal device in step 502, but the ProSe layer of the source terminal device sends information indicating to obtain distance measurement information to the AS layer of the source terminal device, this step can be Take this possible implementation.
具体的,例如,源终端设备的ProSe层收到的是与响应消息对应的距离值,则源终端设备的ProSe层比较该距离值和距离需求,从响应消息中筛选出目标终端设备的响应消息。例如,距离需求为5米,则源终端设备的ProSe层筛选出距离测量信息为5米±允许的误差范围的终端设备的响应消息,该筛选出的响应消息为目标终端设备的响应消息。其中,允许的误差范围取决于现实实现,该允许的误差范围可以由用户设定,也可以源终端设备内置,也可以由源终端设备通过其他的渠道获取,本文并不做限定。再例如,源终端设备的ProSe层收到的是与响应消息对应的TOF,源终端设备的ProSe层根据该TOF计算得到距离值,再按照上述方法筛选出该目标终端设备的响应消息。Specifically, for example, if the ProSe layer of the source terminal device receives the distance value corresponding to the response message, the ProSe layer of the source terminal device compares the distance value with the distance requirement, and filters out the response message of the target terminal device from the response message . For example, if the distance requirement is 5 meters, the ProSe layer of the source terminal device screens out the response messages of the terminal devices whose distance measurement information is 5 meters ± the allowable error range, and the screened out response messages are the response messages of the target terminal device. The allowable error range depends on the actual implementation. The allowable error range can be set by the user, built in the source terminal device, or obtained by the source terminal device through other channels, which is not limited in this article. For another example, the ProSe layer of the source terminal device receives the TOF corresponding to the response message, the ProSe layer of the source terminal device calculates the distance value according to the TOF, and then screens out the response message of the target terminal device according to the above method.
一种可能的实现方式,源终端设备的AS层确定目标终端设备的响应消息。In a possible implementation manner, the AS layer of the source terminal device determines the response message of the target terminal device.
具体的,若源终端设备的AS层在步骤505中计算得到相应消息对应的TOF,那么源终端设备的AS层根据该TOF计算得到距离值。源终端设备的AS层比较距离值与 距离需求,从响应消息中筛选出目标终端设备的响应消息。该筛选的方法可以参考上述源终端设备的ProSe层筛选的方法的描述。该实现方式可以减少源终端设备的AS层与源终端设备的ProSe层之间交互的内容。Specifically, if the AS layer of the source terminal device calculates the TOF corresponding to the corresponding message in step 505, then the AS layer of the source terminal device calculates the distance value according to the TOF. The AS layer of the source terminal device compares the distance value with the distance requirement, and screens out the response message of the target terminal device from the response message. For the screening method, reference may be made to the description of the ProSe layer screening method of the source terminal device above. This implementation manner can reduce the content of interaction between the AS layer of the source terminal device and the ProSe layer of the source terminal device.
例如,在源终端设备的AS层确定目标终端设备的响应消息后,向源终端设备的ProSe层发送该目标终端设备的响应消息。For example, after the AS layer of the source terminal device determines the response message of the target terminal device, the response message of the target terminal device is sent to the ProSe layer of the source terminal device.
最终,源终端设备根据该目标终端设备的响应消息,获取到目标终端设备的标识信息。例如,源终端设备的ProSe层根据该目标终端设备的响应消息,获取到目标终端设备的标识信息。Finally, the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device. For example, the ProSe layer of the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device.
步骤507,源终端设备与目标终端设备实现PC5连接建立。In step 507, the source terminal device establishes a PC5 connection with the target terminal device.
后续,源终端设备可以获取目标终端设备的其他信息。Subsequently, the source terminal device can obtain other information of the target terminal device.
通过图5所示的实施例所示的方法,源终端设备可以在不知道目标终端的标识的前提下,获取距离需求信息,通过比较该距离需求信息,以及接收到的终端设备与该源终端设备之间的距离值,筛选出目标终端设备的响应消息,最终从该目标终端设备的响应消息中获取到目标终端设备的标识信息,从而实现了目标终端设备的发现。Through the method shown in the embodiment shown in Figure 5, the source terminal device can obtain distance requirement information without knowing the identity of the target terminal, and by comparing the distance requirement information and the received terminal device with the source terminal The distance value between the devices screens out the response message of the target terminal device, and finally obtains the identification information of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device.
图6为根据本申请实施例提供的又一种发现目标终端设备的方法的流程交互示意图。上述例子中的终端设备1可以为图6中的源终端设备,终端设备2可以为图6中的目标终端设备。FIG. 6 is a flowchart interaction diagram of another method for discovering a target terminal device according to an embodiment of the present application. Terminal device 1 in the above example may be the source terminal device in FIG. 6 , and terminal device 2 may be the target terminal device in FIG. 6 .
例如,此方法包括如下步骤:For example, this method includes the following steps:
步骤601,源终端设备的应用层向源终端设备的ProSe层发送需求信息。In step 601, the application layer of the source terminal device sends requirement information to the ProSe layer of the source terminal device.
该需求信息包括方向信息,则该方向信息包括角度信息。该角度信息用于指示从目标终端设备接收的消息的到达角的角度值。该方向信息用于指示源终端设备与目标终端设备之间的方向。The demand information includes direction information, and the direction information includes angle information. The angle information is used to indicate an angle value of an arrival angle of a message received from a target terminal device. The direction information is used to indicate the direction between the source terminal device and the target terminal device.
可选的,该需求信息可以由源终端设备的ProSe层生成,一种可选的实现方式,源终端设备的ProSe层可以根据用户的设定来生成该需求信息。Optionally, the requirement information may be generated by the ProSe layer of the source terminal device. In an optional implementation manner, the ProSe layer of the source terminal device may generate the requirement information according to user settings.
步骤602,源终端设备的ProSe层向源终端设备的AS层发送发现消息和需求信息。Step 602, the ProSe layer of the source terminal device sends a discovery message and requirement information to the AS layer of the source terminal device.
其中,该发现消息可以参考图3中的步骤302的描述。该需求信息为步骤601中的需求信息。Wherein, for the discovery message, reference may be made to the description of step 302 in FIG. 3 . The demand information is the demand information in step 601 .
步骤603,源终端设备发送发现消息。Step 603, the source terminal device sends a discovery message.
相应的,目标终端设备或其他终端设备接收该发现消息。需要说明的是,“目标终端设备或其他终端设备”意在表明接收该发现消息的终端设备可以为一个,也可以为多个。Correspondingly, the target terminal device or other terminal devices receive the discovery message. It should be noted that the "target terminal device or other terminal devices" is intended to indicate that there may be one terminal device or multiple terminal devices receiving the discovery message.
例如,源终端设备的AS层发送发现消息。该发现消息是全向消息。For example, the AS layer of the source terminal device sends a discovery message. The discovery message is an omni message.
例如,源终端设备的AS层利用从源终端设备的ProSe层接收的目的层2标识和源层2标识发送发现消息。For example, the AS layer of the source terminal device uses the destination layer 2 identifier and the source layer 2 identifier received from the ProSe layer of the source terminal device to send a discovery message.
步骤604,目标终端设备或其他终端设备发送响应消息。相应的,源终端设备接收响应消息。Step 604, the target terminal device or other terminal devices send a response message. Correspondingly, the source terminal device receives the response message.
该响应消息为步骤603中的发现消息的响应消息。The response message is a response message to the discovery message in step 603 .
例如,源终端设备的AS层接收响应消息。For example, the AS layer of the source terminal device receives the response message.
该目标终端设备或其他终端设备为对上述发现消息中的发现参数感兴趣的终端设 备。例如,以目标终端设备为例,目标终端设备的ProSe层向目标终端设备的AS层发送响应消息,该目标终端设备的AS层发送响应消息。The target terminal device or other terminal devices are terminal devices interested in the discovery parameters in the discovery message. For example, taking the target terminal device as an example, the ProSe layer of the target terminal device sends a response message to the AS layer of the target terminal device, and the AS layer of the target terminal device sends a response message.
步骤605,源终端设备的AS层计算到达角。Step 605, the AS layer of the source terminal device calculates the angle of arrival.
该源终端设备的AS层计算步骤604中的响应消息所对应的到达角。可以理解的是,该响应消息为多条时,该到达角为多个。The AS layer of the source terminal device calculates the angle of arrival corresponding to the response message in step 604 . It can be understood that when there are multiple response messages, there are multiple angles of arrival.
步骤606,源终端设备确定目标终端设备的响应消息。Step 606, the source terminal device determines the response message of the target terminal device.
一种可能的实现方式,源终端设备的AS层向源终端设备的ProSe层发送响应消息和该响应消息对应的到达角。源终端设备的ProSe层根据该到达角和需求信息中的方向信息确定目标终端设备的响应消息。In a possible implementation manner, the AS layer of the source terminal device sends a response message and the angle of arrival corresponding to the response message to the ProSe layer of the source terminal device. The ProSe layer of the source terminal device determines the response message of the target terminal device according to the angle of arrival and the direction information in the demand information.
一种可能的实现方式,源终端设备的AS层确定目标终端设备的响应消息。该实现方式可以减少源终端设备的AS层与源终端设备的ProSe层之间交互的内容。In a possible implementation manner, the AS layer of the source terminal device determines the response message of the target terminal device. This implementation manner can reduce the content of interaction between the AS layer of the source terminal device and the ProSe layer of the source terminal device.
该步骤的具体实现方式可参考图5中的步骤506中的描述。For a specific implementation manner of this step, reference may be made to the description in step 506 in FIG. 5 .
最终,源终端设备根据该目标终端设备的响应消息,获取到目标终端设备的标识信息。例如,源终端设备的ProSe层获取到目标终端设备的响应消息,该目标终端设备的响应消息中包括该目标终端设备的标识,则源终端设备的ProSe层可以据此获取到该目标终端设备的标识。Finally, the source terminal device obtains the identification information of the target terminal device according to the response message of the target terminal device. For example, the ProSe layer of the source terminal device obtains the response message of the target terminal device, and the response message of the target terminal device includes the identity of the target terminal device, and the ProSe layer of the source terminal device can obtain the target terminal device's logo.
步骤608,源终端设备与目标终端设备完成PC5连接建立。In step 608, the source terminal device completes the PC5 connection establishment with the target terminal device.
后续,源终端设备可以获取目标终端设备的其他信息。Subsequently, the source terminal device can obtain other information of the target terminal device.
通过图6所示的实施例所示的方法,源终端设备可以在不知道目标终端的标识的前提下,获取方向信息,通过比较该方向信息,以及接收到的终端设备与该源终端设备之间的角度(到达角),筛选出目标终端设备的响应消息,最终从该目标终端设备的响应消息中获取到目标终端设备的标识信息,从而实现了目标终端设备的发现。Through the method shown in the embodiment shown in FIG. 6, the source terminal device can obtain direction information without knowing the identity of the target terminal, and compare the direction information with the received terminal device and the source terminal device. The angle (arrival angle) between them, screen out the response message of the target terminal device, and finally obtain the identification information of the target terminal device from the response message of the target terminal device, thereby realizing the discovery of the target terminal device.
需要特别说明的是,在不同的应用场景中,图3至图6所示的方法可以结合使用。It should be noted that in different application scenarios, the methods shown in FIG. 3 to FIG. 6 can be used in combination.
例如,当需求信息为方向信息和功率信息,图3和图4所示的方法可以结合使用,即图3和图4中源终端设备的AS层根据该需求信息设置角度信息和发送功率,源终端设备接收到的响应消息即为目标终端设备的响应消息,进而最终从该目标终端设备的响应消息中获取到目标终端设备的标识信息。For example, when the demand information is direction information and power information, the methods shown in Figure 3 and Figure 4 can be used in combination, that is, the AS layer of the source terminal device in Figure 3 and Figure 4 sets the angle information and transmission power according to the demand information, and the source The response message received by the terminal device is the response message of the target terminal device, and finally the identification information of the target terminal device is obtained from the response message of the target terminal device.
例如,当需求信息为方向信息和距离信息,一种可能的结合方式,图3和图5所示的方法可以结合使用,源终端设备的AS层根据该需求信息设置角度信息,并根据该设置发送发现消息,源终端设备的AS层计算TOF或距离值,最终通过步骤506的方法,该源终端设备筛选出目标终端设备的响应消息,最终从该目标终端设备的响应消息中获取到目标终端设备的标识信息。另一种可能的结合方式,图5和图6所示的方法可以结合使用,源终端设备的AS层计算TOF或距离值,以及计算到达角,通过分别比较需求信息中的方向信息与到达角,以及,比较距离信息与TOF,或,比较距离信息与距离值,该源终端设备筛选出目标终端设备的响应消息,最终从该目标终端设备的响应消息中获取到目标终端设备的标识信息。For example, when the demand information is direction information and distance information, a possible combination method, the methods shown in Figure 3 and Figure 5 can be used in combination, the AS layer of the source terminal device sets the angle information according to the demand information, and according to the setting Send a discovery message, the AS layer of the source terminal device calculates the TOF or distance value, and finally through the method of step 506, the source terminal device filters out the response message of the target terminal device, and finally obtains the target terminal from the response message of the target terminal device Identification information for the device. Another possible combination, the methods shown in Figure 5 and Figure 6 can be used in combination, the AS layer of the source terminal device calculates the TOF or distance value, and calculates the angle of arrival, by comparing the direction information in the demand information with the angle of arrival , and, comparing the distance information with the TOF, or comparing the distance information with the distance value, the source terminal device filters out the response message of the target terminal device, and finally obtains the identification information of the target terminal device from the response message of the target terminal device.
例如,当需求信息为功率信息和距离信息,图4和图5所示的方法可以结合使用,源终端设备的AS层根据该需求信息设置发送功率,并根据该设置发送发现消息,源终端设备的AS层计算TOF或距离值,最终通过步骤506的方法,该源终端设备筛选 出目标终端设备的响应消息,最终从该目标终端设备的响应消息中获取到目标终端设备的标识信息。For example, when the demand information is power information and distance information, the methods shown in Figure 4 and Figure 5 can be used in combination, the AS layer of the source terminal device sets the transmission power according to the demand information, and sends a discovery message according to the setting, the source terminal device The AS layer calculates the TOF or distance value, finally through the method of step 506, the source terminal device screens out the response message of the target terminal device, and finally obtains the identification information of the target terminal device from the response message of the target terminal device.
图7为根据本申请实施例提供的又一种发现目标终端设备的方法的流程示意图。该示意图将结合图3至图6进行描述。该实施例中的第一终端设备可以为图3至图6中的源终端设备,第一终端设备的接入层可以为图3至图6中的源终端设备的AS层,第一终端设备的基于近邻的服务层可以为图3至图6中的源终端设备的ProSe层,该实施例中的一个或多个第二终端设备可以为图3至图6中的目标终端设备或其他终端设备的统称。FIG. 7 is a schematic flowchart of another method for discovering a target terminal device according to an embodiment of the present application. The schematic diagram will be described in conjunction with FIGS. 3 to 6 . The first terminal device in this embodiment may be the source terminal device in Figures 3 to 6, the access layer of the first terminal device may be the AS layer of the source terminal device in Figures 3 to 6, and the first terminal device The service layer based on the neighbor in Figure 3 to Figure 6 may be the ProSe layer of the source terminal device in Figure 3 to Figure 6, and one or more second terminal devices in this embodiment may be the target terminal device or other terminals in Figure 3 to Figure 6 A collective name for the device.
例如,该方法包括如下步骤:For example, the method includes the steps of:
步骤701,第一终端设备向第一区域发送第一消息。Step 701, the first terminal device sends a first message to the first area.
该步骤可参考图3中的步骤303和步骤304,或者,图4中的步骤403和步骤404的描述。For this step, reference may be made to the description of step 303 and step 304 in FIG. 3 , or the description of step 403 and step 404 in FIG. 4 .
所述第一区域满足以下中的至少一项:所述第一区域位于所述第一终端设备的第一方向,或者,所述第一区域与所述第一终端设备之间的距离在第一距离范围内。该第一方向可以为图3中的方向信息,该第一距离范围可以为图5中的距离需求。The first area satisfies at least one of the following: the first area is located in a first direction of the first terminal device, or, the distance between the first area and the first terminal device is th within a distance. The first direction may be the direction information in FIG. 3 , and the first distance range may be the distance requirement in FIG. 5 .
一种可能的实现方式,该第一消息包括发现消息或者测距消息。该第一消息可以为图3至图6中的发现消息,或者测距消息,或者定向发现消息。In a possible implementation manner, the first message includes a discovery message or a ranging message. The first message may be the discovery message in FIG. 3 to FIG. 6 , or a ranging message, or a directional discovery message.
一种可能的实现方式,该步骤还包括:第一终端设备获取需求信息,所述需求信息包括以下中的至少一项:用于确定所述第一方向的方向需求信息,或者,用于确定所述第一距离范围的距离需求信息。该实现方式可参考图3中的步骤301、图4中的步骤401、图5中的步骤501或者图6中的步骤601的描述。该方向需求信息为图3中的方向信息或者图6中的方向信息,该距离需求信息为图4中的功率信息或者图5中的距离信息。可以理解的是,若根据图4的方法设置功率信息为距离需求信息,通过设置该源终端设备的发射天线的发送功率,只有在源终端设备的信号覆盖范围内的终端设备才能收到上述第一消息。也就是说,功率信息间接地体现了能够收到第一消息的终端设备与源终端设备之间的距离,因此可以理解成为是一种距离需求信息。In a possible implementation manner, this step further includes: the first terminal device acquires demand information, and the demand information includes at least one of the following: direction demand information used to determine the first direction, or used to determine Distance requirement information of the first distance range. For this implementation, reference may be made to the description of step 301 in FIG. 3 , step 401 in FIG. 4 , step 501 in FIG. 5 , or step 601 in FIG. 6 . The direction requirement information is the direction information in FIG. 3 or the direction information in FIG. 6 , and the distance requirement information is the power information in FIG. 4 or the distance information in FIG. 5 . It can be understood that if the power information is set as the distance requirement information according to the method in FIG. a message. That is to say, the power information indirectly reflects the distance between the terminal device that can receive the first message and the source terminal device, so it can be understood as a kind of distance requirement information.
其中,一种可能的情况,第一终端设备的基于近邻的服务层获取所述需求信息。Wherein, in a possible situation, the neighbor-based service layer of the first terminal device acquires the requirement information.
另一种可能的情况,第一终端设备的基于近邻的服务层从第一终端设备的应用层获取所述需求信息。In another possible situation, the neighbor-based service layer of the first terminal device obtains the requirement information from the application layer of the first terminal device.
一种可能的实现方式,所述距离需求信息包括以下中的至少一项:第一距离范围,或者,第一功率,所述第一功率用于确定所述第一距离范围。所述第一功率为图4中的功率信息。In a possible implementation manner, the distance requirement information includes at least one of the following: a first distance range, or a first power, where the first power is used to determine the first distance range. The first power is the power information in FIG. 4 .
一种可能的实现方式,第一终端设备的接入层从第一终端设备的基于近邻的服务层接收所述第一消息和需求信息;第一终端设备的接入层根据所述需求信息向所述第一区域发送所述第一消息。In a possible implementation manner, the access layer of the first terminal device receives the first message and demand information from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device sends The first area sends the first message.
步骤702,第一终端设备接收一条或多条响应消息。Step 702, the first terminal device receives one or more response messages.
该步骤可参考图3中的步骤305、图4中的步骤405、图5中的步骤504或者图6中步骤604的描述。该一条或多条响应消息可以为图3至图6中的响应消息。For this step, reference may be made to the description of step 305 in FIG. 3 , step 405 in FIG. 4 , step 504 in FIG. 5 , or step 604 in FIG. 6 . The one or more response messages may be the response messages in FIG. 3 to FIG. 6 .
一种可能的实现方式,所述一条或多条响应消息包括时间信息,所述时间信息用于 确定所述一个或多个第二终端设备与第一终端设备之间的距离。该距离为图5中的距离值,该时间信息为图5中的Treply,上述描述同样适用与本实施例中的其他实现方式,不再赘述。In a possible implementation manner, the one or more response messages include time information, and the time information is used to determine a distance between the one or more second terminal devices and the first terminal device. The distance is the distance value in FIG. 5 , and the time information is Treply in FIG. 5 . The above description is also applicable to other implementations in this embodiment, and details are not repeated here.
步骤703,第一终端设备确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息。该步骤可参考图5中的步骤505和步骤506的描述。Step 703, the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device. For this step, reference may be made to the description of step 505 and step 506 in FIG. 5 .
一种可能的实现方式,第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。In a possible implementation manner, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
该实现方式可能包括以下几种情况:This implementation may include the following situations:
一种可能的情况,第一终端设备的基于近邻的服务层从第一终端设备的接入层接收所述一个或多个第二终端设备与第一终端设备之间的距离;第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。In a possible situation, the neighbor-based service layer of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the first terminal device The service layer based on the neighbor of the first distance range and the distance between the one or more second terminal devices and the first terminal device, determine the first in the one or more response messages A response message is a response message of the target terminal device.
另一种可能的情况,第一终端设备的基于近邻的服务层从第一终端设备的接入层接收所述一个或多个第二终端设备与第一终端设备之间的飞行时间;第一终端设备的基于近邻的服务层根据所述一个或多个第二终端设备与第一终端设备之间的飞行时间确定所述一个或多个第二终端设备与第一终端设备之间的距离;第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。该飞行时间为图5中的TOF,上述描述同样适用与本实施例中的其他实现方式,不再赘述。In another possible situation, the neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; The neighbor-based service layer of the terminal device determines the distance between the one or more second terminal devices and the first terminal device based on the time-of-flight between the one or more second terminal devices and the first terminal device; The neighbor-based service layer of the first terminal device determines all of the one or more response messages based on the first distance range and the distance between the one or more second terminal devices and the first terminal device. The first response message is a response message of the target terminal device. The time-of-flight is TOF in FIG. 5 , and the above description is also applicable to other implementations in this embodiment, so details are not repeated here.
一种可能的实现方式,第一终端设备的接入层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。In a possible implementation manner, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
该实现方式的一种可能的情况:第一终端设备的接入层从第一终端设备的基于近邻的服务层接收所述第一距离范围;第一终端设备的接入层确定所述一个或多个第二终端设备与第一终端设备之间的距离;第一终端设备的接入层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。A possible situation of this implementation: the access layer of the first terminal device receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the one or The distance between multiple second terminal devices and the first terminal device; the access layer of the first terminal device is based on the first distance range and the distance between the one or more second terminal devices and the first terminal device and determining the first response message in the one or more response messages as the response message of the target terminal device.
一种可能的实现方式,第一终端设备的接入层根据发送所述第一消息所使用的源层2标识信息对应的时间点,以及接收所述一条或多条响应消息所使用的目的层2标识信息对应的时间点,确定飞行时间;第一终端设备的接入层根据所述飞行时间,确定所述一个或多个第二终端设备与所述第一终端设备之间的距离。A possible implementation manner, the access layer of the first terminal device is based on the time point corresponding to the source layer 2 identification information used to send the first message, and the destination layer used to receive the one or more response messages 2 Identify the time point corresponding to the information, and determine the flight time; the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device according to the flight time.
图7所示的方法的有益效果可以参考图3至图6所示的方法的有益效果描述,此处不再赘述。The beneficial effects of the method shown in FIG. 7 can be described with reference to the beneficial effects of the methods shown in FIGS. 3 to 6 , and will not be repeated here.
图8为根据本申请实施例提供的又一种发现目标终端设备的方法的流程示意图。该示意图将结合图5或图6进行描述。该实施例中的第一终端设备可以为图5或图6中的源终端设备,第一终端设备的接入层可以为图5或图6中的源终端设备的AS层,第一终端设备的基于近邻的服务层可以为图5或图6中的源终端设备的ProSe层。FIG. 8 is a schematic flowchart of another method for discovering a target terminal device according to an embodiment of the present application. The schematic diagram will be described in conjunction with FIG. 5 or FIG. 6 . The first terminal device in this embodiment may be the source terminal device in Figure 5 or Figure 6, the access layer of the first terminal device may be the AS layer of the source terminal device in Figure 5 or Figure 6, and the first terminal device The service layer based on the neighbor can be the ProSe layer of the source terminal device in FIG. 5 or FIG. 6 .
例如,该方法包括如下步骤:For example, the method includes the steps of:
步骤801,第一终端设备发送第一消息。Step 801, the first terminal device sends a first message.
该步骤可参考图5中的步骤503或图6中的步骤603中的描述。For this step, reference may be made to the description in step 503 in FIG. 5 or step 603 in FIG. 6 .
一种可能的实现方式,该第一消息包括发现消息或者测距消息。In a possible implementation manner, the first message includes a discovery message or a ranging message.
一种可能的实现方式,该步骤还包括:第一终端设备获取需求信息,所述需求信息包括以下中的至少一项:用于确定所述第一方向的方向需求信息,或者,用于确定所述第一距离范围的距离需求信息。该实现方式可参考图5中的步骤501或者图6中的步骤601的描述。该距离需求信息或第一距离范围为图5中的距离信息,该方向需求信息或第一方向为图6中的方向信息。In a possible implementation manner, this step further includes: the first terminal device acquires demand information, and the demand information includes at least one of the following: direction demand information used to determine the first direction, or used to determine Distance requirement information of the first distance range. For this implementation, refer to the description of step 501 in FIG. 5 or step 601 in FIG. 6 . The distance requirement information or the first distance range is the distance information in FIG. 5 , and the direction requirement information or the first direction is the direction information in FIG. 6 .
其中,一种可能的情况,第一终端设备的基于近邻的服务层获取所述需求信息。Wherein, in a possible situation, the neighbor-based service layer of the first terminal device acquires the requirement information.
另一种可能的情况,第一终端设备的基于近邻的服务层从第一终端设备的应用层获取所述需求信息。In another possible situation, the neighbor-based service layer of the first terminal device obtains the requirement information from the application layer of the first terminal device.
一种可能的实现方式,所述距离需求信息包括第一距离范围。In a possible implementation manner, the distance requirement information includes a first distance range.
步骤802,第一终端设备接收一条或多条响应消息。Step 802, the first terminal device receives one or more response messages.
该步骤可参考图5中的步骤504或者图6中步骤604的描述。该一条或多条响应消息可以为图5或图6中的响应消息。For this step, refer to the description of step 504 in FIG. 5 or step 604 in FIG. 6 . The one or more response messages may be the response messages in FIG. 5 or FIG. 6 .
一种可能的实现方式,所述一条或多条响应消息包括时间信息,所述时间信息用于确定所述一个或多个第二终端设备与第一终端设备之间的距离。该距离为图5中的距离值,上述描述同样适用与本实施例中的其他实现方式,不再赘述。该时间信息为图5中的Treply,上述描述同样适用与本实施例中的其他实现方式,不再赘述。In a possible implementation manner, the one or more response messages include time information, and the time information is used to determine a distance between the one or more second terminal devices and the first terminal device. The distance is the distance value in FIG. 5 , and the foregoing description is also applicable to other implementation manners in this embodiment, so details are not repeated here. The time information is Treply in FIG. 5 , and the foregoing description is also applicable to other implementation manners in this embodiment, so details are not repeated here.
步骤803,第一终端设备确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息。Step 803, the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device.
所述第一响应消息中包括所述目标终端设备的标识信息,其中,所述第一响应消息满足下述中的至少一项:所述第一响应消息来自第一方向,或者,根据所述第一响应消息得到的所述目标终端设备与第一终端设备之间的距离在第一距离范围内。The first response message includes identification information of the target terminal device, where the first response message satisfies at least one of the following: the first response message comes from a first direction, or, according to the The distance between the target terminal device and the first terminal device obtained from the first response message is within a first distance range.
一种可能的实现方式,所述一条或多条响应消息中包括一个或多个第二终端设备的标识,所述目标终端设备为所述一个或多个第二终端设备中的一个。In a possible implementation manner, the one or more response messages include identifiers of one or more second terminal devices, and the target terminal device is one of the one or more second terminal devices.
一种可能的实现方式,第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。In a possible implementation manner, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
该实现方式还包括以下几种可能的情况:This implementation also includes the following possible situations:
一种可能的情况,第一终端设备的基于近邻的服务层从第一终端设备的接入层接收所述一个或多个第二终端设备与第一终端设备之间的距离;第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。该步骤可参考图5中的步骤505和步骤506的描述。In a possible situation, the neighbor-based service layer of the first terminal device receives the distance between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; the first terminal device The neighbor-based service layer determines the first response in the one or more response messages according to the first distance range and the distance between the one or more second terminal devices and the first terminal device The message is a response message of the target terminal device. For this step, reference may be made to the description of step 505 and step 506 in FIG. 5 .
另一种可能的情况,第一终端设备的基于近邻的服务层从第一终端设备的接入层接收所述一个或多个第二终端设备与第一终端设备之间的飞行时间;第一终端设备的基于近邻的服务层根据所述一个或多个第二终端设备与第一终端设备之间的飞行时间确定所述一个或多个第二终端设备与第一终端设备之间的距离;第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与第一终端设备 之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。该飞行时间为图5的TOF,上述描述同样适用与本实施例中的其他实现方式,不再赘述。该步骤可参考图5中的步骤505和步骤506的描述。In another possible situation, the neighbor-based service layer of the first terminal device receives the time-of-flight between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; The neighbor-based service layer of the terminal device determines the distance between the one or more second terminal devices and the first terminal device based on the time-of-flight between the one or more second terminal devices and the first terminal device; The neighbor-based service layer of the first terminal device determines all of the one or more response messages based on the first distance range and the distance between the one or more second terminal devices and the first terminal device. The first response message is a response message of the target terminal device. The time-of-flight is the TOF in FIG. 5 , and the above description is also applicable to other implementations in this embodiment, so details are not repeated here. For this step, reference may be made to the description of step 505 and step 506 in FIG. 5 .
又一种可能的情况,第一终端设备的基于近邻的服务层从第一终端设备的接入层接收所述一个或多个第二终端设备与第一终端设备之间的方向;第一终端设备的基于近邻的服务层根据所述第一方向以及所述一个或多个第二终端设备与第一终端设备之间的方向,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。该方向图6中的到达角,上述描述同样适用与本实施例中的其他实现方式,不再赘述。该步骤可参考图6中的步骤605和步骤606的描述。In another possible situation, the neighbor-based service layer of the first terminal device receives directions between the one or more second terminal devices and the first terminal device from the access layer of the first terminal device; The neighbor-based service layer of the device determines said first response in said one or more response messages based on said first direction and a direction between said one or more second terminal devices and the first terminal device The message is a response message of the target terminal device. The above description of the angle of arrival in the direction diagram 6 is also applicable to other implementations in this embodiment, so details are not repeated here. For this step, reference may be made to the description of step 605 and step 606 in FIG. 6 .
一种可能的实现方式,第一终端设备的接入层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。In a possible implementation manner, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device.
该实现方式还包括以下几种可能的情况:This implementation also includes the following possible situations:
一种可能的情况,第一终端设备的接入层从第一终端设备的基于近邻的服务层接收所述第一方向;第一终端设备的接入层确定所述一个或多个第二终端设备与第一终端设备之间的方向;第一终端设备的接入层根据所述第一方向以及所述一个或多个第二终端设备与第一终端设备之间的方向,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。该步骤可参考图6中的步骤605和步骤606的描述。In a possible situation, the access layer of the first terminal device receives the first direction from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines that the one or more second terminal devices The direction between the device and the first terminal device; the access layer of the first terminal device determines the one or more directions between the second terminal device and the first terminal device according to the first direction and the direction between the one or more second terminal devices The first response message in the or multiple response messages is a response message of the target terminal device. For this step, reference may be made to the description of step 605 and step 606 in FIG. 6 .
另一种可能的情况,第一终端设备的接入层从第一终端设备的基于近邻的服务层接收所述第一距离范围;第一终端设备的接入层确定所述一个或多个第二终端设备与第一终端设备之间的距离;第一终端设备的接入层根据所述第一距离范围以及所述一个或多个第二终端设备与第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。该步骤可参考图5中的步骤505和步骤506的描述。In another possible situation, the access layer of the first terminal device receives the first distance range from the neighbor-based service layer of the first terminal device; the access layer of the first terminal device determines the one or more first distance ranges The distance between the second terminal device and the first terminal device; the access layer of the first terminal device determines according to the first distance range and the distance between the one or more second terminal devices and the first terminal device The first response message in the one or more response messages is a response message of the target terminal device. For this step, reference may be made to the description of step 505 and step 506 in FIG. 5 .
图8所示的方法的有益效果可以参考图5或图6所示的方法的有益效果的描述,此处不再赘述。For the beneficial effects of the method shown in FIG. 8 , reference may be made to the description of the beneficial effects of the method shown in FIG. 5 or FIG. 6 , and details are not repeated here.
相应的,本申请实施例还提供了通信装置,该通信装置可以为上述方法实施例中的源终端设备,或者包含上述源终端设备的功能的装置,或者为与源终端设备功能相似的部件。可以理解的是,该通信装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Correspondingly, this embodiment of the present application also provides a communication device. The communication device may be the source terminal device in the foregoing method embodiments, or an apparatus including the functions of the source terminal device, or a component with similar functions to the source terminal device. It can be understood that, in order to realize the above functions, the communication device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
图9为根据本申请实施例提供的一种通信装置的示意图。Fig. 9 is a schematic diagram of a communication device provided according to an embodiment of the present application.
通信装置包括处理模块901、接收模块902和发送模块903。处理模块901用于实现通信装置对数据的处理。接收模块902用于接收通信装置与其他单元或者网元的内容,发送模块903用于接收通信装置与其他单元或者网元的内容。应理解,本申请实施例中的处理模块901可以由处理器或处理器相关电路组件(或者,称为处理电路) 实现,接收模块902可以由接收器或接收器相关电路组件实现。发送模块903可以由发送器或发送器相关电路组件实现。The communication device includes a processing module 901 , a receiving module 902 and a sending module 903 . The processing module 901 is configured to realize processing of data by the communication device. The receiving module 902 is used for receiving the content of the communication device and other units or network elements, and the sending module 903 is used for receiving the content of the communication device and other units or network elements. It should be understood that the processing module 901 in this embodiment of the present application may be implemented by a processor or a processor-related circuit component (or called a processing circuit), and the receiving module 902 may be implemented by a receiver or a receiver-related circuit component. The sending module 903 may be implemented by a transmitter or transmitter-related circuit components.
示例性地,通信装置可以是通信装置设备,也可以是应用于通信装置设备中的芯片或者其他具有上述通信装置设备功能的组合器件、部件等。Exemplarily, the communication device may be a communication device device, and may also be a chip applied in the communication device device or other combined devices, components, etc. having the functions of the above communication device device.
示例性的,通信装置可以为图3至图8中任一的源终端设备或第一终端设备。Exemplarily, the communication apparatus may be the source terminal device or the first terminal device in any one of FIG. 3 to FIG. 8 .
当该通信装置为源终端设备或第一终端设备时,发送模块903用于通过处理模块901向第一区域发送第一消息(例如图3中的步骤304,图4中的步骤404以及图7中的步骤701),所述第一区域满足以下中的至少一项:所述第一区域位于所述第一终端设备的第一方向,或者,所述第一区域与所述第一终端设备之间的距离在第一距离范围内。接收模块902用于接收一条或多条响应消息(例如图3中的步骤305,图4中的步骤405,图5中的步骤504,图6中的步骤604以及图7中的步骤702),所述一条或多条响应消息包括一个或多个第二终端设备的标识信息,所述一个或多个第二终端设备位于所述第一区域。处理模块901用于确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息(例如图3中的步骤307,图4中的步骤407,图5中的步骤505和步骤506,图6中的步骤605和步骤606,以及图7中的步骤703),所述第一响应消息中包括所述目标终端设备的标识信息。When the communication device is the source terminal device or the first terminal device, the sending module 903 is configured to send the first message to the first area through the processing module 901 (such as step 304 in FIG. 3, step 404 in FIG. In step 701), the first area satisfies at least one of the following: the first area is located in the first direction of the first terminal device, or the first area and the first terminal device The distance between is within the first distance range. The receiving module 902 is used to receive one or more response messages (such as step 305 in FIG. 3, step 405 in FIG. 4, step 504 in FIG. 5, step 604 in FIG. 6 and step 702 in FIG. 7), The one or more response messages include identification information of one or more second terminal devices, and the one or more second terminal devices are located in the first area. The processing module 901 is configured to determine that the first response message in the one or more response messages is the response message of the target terminal device (for example, step 307 in FIG. 3, step 407 in FIG. 4, step 505 and Step 506, step 605 and step 606 in FIG. 6, and step 703 in FIG. 7), the first response message includes the identification information of the target terminal device.
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used in other processes that support the techniques described herein. For the beneficial effect, reference may be made to the foregoing description, and details are not repeated here.
当该通信装置为源终端设备或第一终端设备时,发送模块903用于发送第一消息(例如图5中的步骤501至步骤503,图6中的步骤601至步骤603,以及图8中的步骤801)。接收模块902用于接收一条或多条响应消息(例如图5中的步骤504,图6中的步骤604以及图8中的步骤802)。处理模块901用于确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息(例如图5中的步骤505和步骤506,图6中的步骤605和步骤606,以及图8中的步骤803),所述第一响应消息中包括所述目标终端设备的标识信息,其中,所述第一响应消息满足下述中的至少一项:所述第一响应消息来自第一方向,或者,根据所述第一响应消息得到的所述目标终端设备与所述第一终端设备之间的距离在第一距离范围内。When the communication device is the source terminal device or the first terminal device, the sending module 903 is used to send the first message (such as steps 501 to 503 in FIG. 5, steps 601 to 603 in FIG. 6, and step 801). The receiving module 902 is configured to receive one or more response messages (such as step 504 in FIG. 5 , step 604 in FIG. 6 and step 802 in FIG. 8 ). The processing module 901 is configured to determine that the first response message in the one or more response messages is a response message of the target terminal device (for example, steps 505 and 506 in FIG. 5, steps 605 and 606 in FIG. 6, and Step 803 in FIG. 8 ), the first response message includes the identification information of the target terminal device, wherein the first response message satisfies at least one of the following: the first response message is from the first One direction, or, the distance between the target terminal device and the first terminal device obtained according to the first response message is within a first distance range.
此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。In addition, the various modules described above may also be used in other processes that support the techniques described herein. For the beneficial effect, reference may be made to the foregoing description, and details are not repeated here.
图10为根据本申请实施例提供的另一种通信装置的示意图,该通信装置包括:处理器1001、通信接口1002、存储器1003。其中,处理器1001、通信接口1002以及存储器1003可以通过总线1004相互连接;总线1004可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。上述总线1004可以分为地址总线、数据总线和控制总线等。为便于表示,图10中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。处理器1001可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器 件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。存储器1003可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。FIG. 10 is a schematic diagram of another communication device provided according to an embodiment of the present application. The communication device includes: a processor 1001 , a communication interface 1002 , and a memory 1003 . Wherein, the processor 1001, the communication interface 1002, and the memory 1003 can be connected to each other through a bus 1004; the bus 1004 can be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus etc. The above-mentioned bus 1004 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one line is used in FIG. 10 , but it does not mean that there is only one bus or one type of bus. The processor 1001 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP. The processor may further include hardware chips. The aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof. Memory 1003 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which acts as external cache memory.
示例性的,通信装置可以为图3至图8中任一的源终端设备或第一终端设备。Exemplarily, the communication apparatus may be the source terminal device or the first terminal device in any one of FIG. 3 to FIG. 8 .
其中,处理器1001用于实现通信装置的数据处理操作,通信接口1002用于实现通信装置的接收操作和发送操作。Wherein, the processor 1001 is used to realize the data processing operation of the communication device, and the communication interface 1002 is used to realize the receiving operation and the sending operation of the communication device.
当该通信装置为源终端设备或第一终端设备时,通信接口1002用于向第一区域发送第一消息(例如图3中的步骤301至步骤304,图4中的步骤401至步骤404,以及图7中的步骤701),所述第一区域满足以下中的至少一项:所述第一区域位于所述第一终端设备的第一方向,或者,所述第一区域与所述第一终端设备之间的距离在第一距离范围内,以及用于接收一条或多条响应消息(例如图3中的步骤305,图4中的步骤405,图5中的步骤504,图6中的步骤604以及图7中的步骤702),所述一条或多条响应消息包括一个或多个第二终端设备的标识信息,所述一个或多个第二终端设备位于所述第一区域。处理器1001用于确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息(例如图3中的步骤307,图4中的步骤407,图5中的步骤505和步骤506,图6中的步骤605和步骤606,以及图7中的步骤703)。此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。When the communication device is the source terminal device or the first terminal device, the communication interface 1002 is used to send the first message to the first area (such as steps 301 to 304 in FIG. 3, steps 401 to 404 in FIG. 4, and step 701 in FIG. 7 ), the first area satisfies at least one of the following: the first area is located in the first direction of the first terminal device, or the first area and the first The distance between a terminal device is within the first distance range, and is used to receive one or more response messages (such as step 305 in FIG. 3, step 405 in FIG. 4, step 504 in FIG. 5, and and step 702 in FIG. 7 ), the one or more response messages include identification information of one or more second terminal devices, and the one or more second terminal devices are located in the first area. The processor 1001 is configured to determine that the first response message in the one or more response messages is the response message of the target terminal device (for example, step 307 in FIG. 3, step 407 in FIG. 4, step 505 and Step 506, Step 605 and Step 606 in FIG. 6, and Step 703 in FIG. 7). In addition, the various modules described above may also be used in other processes that support the techniques described herein. For the beneficial effect, reference may be made to the foregoing description, and details are not repeated here.
当该通信装置为源终端设备或第一终端设备时,通信接口1002用于发送第一消息(例如图5中的步骤501至步骤503,图6中的步骤601至步骤603,以及图8中的步骤801),以及用于接收一条或多条响应消息(例如图5中的步骤504,图6中的步骤604以及图8中的步骤802)。处理器1001用于确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息(例如图5中的步骤505和步骤506,图6中的步骤605和步骤606,以及图8中的步骤803),所述第一响应消息中包括所述目标终端设备的标识信息,其中,所述第一响应消息满足下述中的至少一项:所述第一响应消息来自第一方向,或者,根据所述第一响应消息得到的所述目标终端设备与所述第一终端设备之间的距离在第一距离范围内。此外,上述各个模块还可以用于支持本文所描述的技术的其它过程。有益效果可参考前面的描述,此处不再赘述。When the communication device is the source terminal device or the first terminal device, the communication interface 1002 is used to send the first message (such as steps 501 to 503 in FIG. 5, steps 601 to 603 in FIG. 6, and Step 801), and for receiving one or more response messages (such as step 504 in FIG. 5, step 604 in FIG. 6 and step 802 in FIG. 8). The processor 1001 is configured to determine that the first response message in the one or more response messages is a response message of the target terminal device (for example, steps 505 and 506 in FIG. 5, steps 605 and 606 in FIG. 6, and Step 803 in FIG. 8 ), the first response message includes the identification information of the target terminal device, wherein the first response message satisfies at least one of the following: the first response message is from the first One direction, or, the distance between the target terminal device and the first terminal device obtained according to the first response message is within a first distance range. In addition, the various modules described above may also be used in other processes that support the techniques described herein. For the beneficial effect, reference may be made to the foregoing description, and details are not repeated here.
本申请实施例提供一种通信系统,其包括前述的第一终端设备或源终端设备,其中,第一终端设备执行图3至图8中任一所示实施例中第一终端设备或源终端设备执行的方法,源终端设备执行图3至图8中任一所示实施例中第一终端设备或源终端设备执行的方法。An embodiment of the present application provides a communication system, which includes the aforementioned first terminal device or source terminal device, wherein the first terminal device executes the first terminal device or source terminal in any of the embodiments shown in FIG. 3 to FIG. 8 In the method performed by the device, the source terminal device performs the method performed by the first terminal device or the source terminal device in any of the embodiments shown in FIG. 3 to FIG. 8 .
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,该计算机程序被计算机执行时,所述计算机可以实现上述方法实施例提供 的图3至图8中任一所示实施例中第一终端设备或源终端设备相关的流程,或者,所述计算机可以实现上述方法实施例提供的图3至图8中任一所示实施例中第二终端设备或目标终端设备或其他终端设备相关的流程。An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer can implement the Figures 3 to 8 provided by the above-mentioned method embodiments. The processes related to the first terminal device or the source terminal device in any one of the shown embodiments, or, the computer can implement the second terminal device in any of the embodiments shown in Figure 3 to Figure 8 provided in the above method embodiment or target end-device or other end-device related processes.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品用于存储计算机程序,该计算机程序被计算机执行时,所述计算机可以实现上述方法实施例提供的图3至图8中任一所示实施例中第一终端设备或源终端设备相关的流程,或者,所述计算机可以实现上述方法实施例提供的图3至图8中任一所示实施例中第二终端设备或目标终端设备或其他终端设备相关的流程。An embodiment of the present application also provides a computer program product, the computer program product is used to store a computer program, and when the computer program is executed by a computer, the computer can implement any one of Figures 3 to 8 provided in the above method embodiments. The processes related to the first terminal device or the source terminal device in the illustrated embodiment, or, the computer can implement the second terminal device or the target terminal in any of the embodiments shown in Figure 3 to Figure 8 provided in the above method embodiment Device or other end-device related processes.
本申请还提供一种芯片,包括处理器。该处理器用于读取并运行存储器中存储的计算机程序,以执行本申请提供的计费的方法中由源终端设备或第一终端设备中的相应操作和/或流程。可选地,该芯片还包括存储器,该存储器与该处理器通过电路或电线与存储器连接,处理器用于读取并执行该存储器中的计算机程序。进一步可选地,该芯片还包括通信接口,处理器与该通信接口连接。通信接口用于接收处理的数据和/或信息,处理器从该通信接口获取该数据和/或信息,并对该数据和/或信息进行处理。该通信接口可以是该芯片上的输入/输出接口、接口电路、输出电路、输入电路、管脚或相关电路等。所述处理器也可以体现为处理电路或逻辑电路。The present application also provides a chip, including a processor. The processor is configured to read and execute the computer program stored in the memory, so as to execute the corresponding operations and/or processes in the source terminal device or the first terminal device in the charging method provided in this application. Optionally, the chip further includes a memory, the memory is connected to the processor through a circuit or wires, and the processor is used to read and execute the computer program in the memory. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive processed data and/or information, and the processor obtains the data and/or information from the communication interface, and processes the data and/or information. The communication interface may be an input/output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip. The processor may also be embodied as a processing circuit or logic circuit.
上述的芯片也可以替换为芯片系统,这里不再赘述。The above-mentioned chip can also be replaced by a system-on-a-chip, which will not be repeated here.
本申请中的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "comprising" and "having" and any variations thereof in this application are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units need not be limited to the ones explicitly listed Instead, other steps or elements not explicitly listed or inherent to the process, method, product or apparatus may be included.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to the actual situation to realize the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是 各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
另外,本申请的说明书和权利要求书及所述附图中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。In addition, the terms "first" and "second" in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (26)

  1. 一种终端设备的通信方法,其特征在于,所述方法包括:A communication method for a terminal device, characterized in that the method comprises:
    第一终端设备向第一区域发送第一消息,所述第一区域满足以下中的至少一项:所述第一区域位于所述第一终端设备的第一方向,或者,所述第一区域与所述第一终端设备之间的距离在第一距离范围内;The first terminal device sends a first message to a first area, and the first area satisfies at least one of the following: the first area is located in a first direction of the first terminal device, or, the first area The distance from the first terminal device is within a first distance range;
    所述第一终端设备接收一条或多条响应消息,所述一条或多条响应消息包括一个或多个第二终端设备的标识信息,所述一个或多个第二终端设备位于所述第一区域;The first terminal device receives one or more response messages, where the one or more response messages include identification information of one or more second terminal devices, and the one or more second terminal devices are located at the first area;
    所述第一终端设备确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,所述第一响应消息中包括所述目标终端设备的标识信息。The first terminal device determines that a first response message among the one or more response messages is a response message of the target terminal device, and the first response message includes identification information of the target terminal device.
  2. 根据权利要求1所述的方法,所述第一终端设备确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,包括:According to the method according to claim 1, the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, comprising:
    所述第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The neighbor-based service layer of the first terminal device determines that the first response message among the one or more response messages is a response message of the target terminal device.
  3. 根据权利要求2所述的方法,所述第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:According to the method according to claim 2, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, comprising:
    所述第一终端设备的基于近邻的服务层从所述第一终端设备的接入层接收所述一个或多个第二终端设备与所述第一终端设备之间的距离;The neighbor-based service layer of the first terminal device receives distances between the one or more second terminal devices and the first terminal device from an access layer of the first terminal device;
    所述第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The neighbor-based service layer of the first terminal device determines the one or more responses based on the first distance range and the distance between the one or more second terminal devices and the first terminal device The first response message in the message is a response message of the target terminal device.
  4. 根据权利要求2所述的方法,所述第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:According to the method according to claim 2, the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, comprising:
    所述第一终端设备的基于近邻的服务层从所述第一终端设备的接入层接收所述一个或多个第二终端设备与所述第一终端设备之间的飞行时间;The neighbor-based service layer of the first terminal device receives time-of-flight between the one or more second terminal devices and the first terminal device from an access layer of the first terminal device;
    所述第一终端设备的基于近邻的服务层根据所述一个或多个第二终端设备与所述第一终端设备之间的飞行时间确定所述一个或多个第二终端设备与所述第一终端设备之间的距离;The neighbor-based service layer of the first terminal device determines the connection between the one or more second terminal devices and the first terminal device based on a time-of-flight between the one or more second terminal devices and the first terminal device. a distance between terminal equipment;
    所述第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The neighbor-based service layer of the first terminal device determines the one or more responses based on the first distance range and the distance between the one or more second terminal devices and the first terminal device The first response message in the message is a response message of the target terminal device.
  5. 根据权利要求1所述的方法,所述第一终端设备确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:According to the method according to claim 1, the first terminal device determining that the first response message in the one or more response messages is the response message of the target terminal device comprises:
    所述第一终端设备的接入层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The access layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device.
  6. 根据权利要求5所述的方法,所述第一终端设备的接入层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:According to the method according to claim 5, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, comprising:
    所述第一终端设备的接入层从所述第一终端设备的基于近邻的服务层接收所述第一距离范围;The access layer of the first terminal device receives the first distance range from a neighbor-based service layer of the first terminal device;
    所述第一终端设备的接入层确定所述一个或多个第二终端设备与所述第一终端设备之间的距离;The access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device;
    所述第一终端设备的接入层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The access layer of the first terminal device determines, according to the first distance range and the distance between the one or more second terminal devices and the first terminal device, in the one or more response messages The first response message is a response message of the target terminal device.
  7. 根据权利要求6所述的方法,所述第一终端设备的接入层确定所述一个或多个第二终端设备与所述第一终端设备之间的距离,包括:According to the method of claim 6, the access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device, comprising:
    所述第一终端设备的接入层根据发送所述第一消息所使用的源层2标识信息对应的时间点,以及接收所述一条或多条响应消息所使用的目的层2标识信息对应的时间点,确定飞行时间;The access layer of the first terminal device corresponds to the time point corresponding to the source layer 2 identification information used to send the first message, and the time point corresponding to the destination layer 2 identification information used to receive the one or more response messages. time point, to determine the flight time;
    所述第一终端设备的接入层根据所述飞行时间,确定所述一个或多个第二终端设备与所述第一终端设备之间的距离。The access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device according to the time-of-flight.
  8. 根据权利要求1-7任一项所述的方法,所述第一终端设备向第一区域发送第一消息,包括:According to the method according to any one of claims 1-7, the sending of the first message to the first area by the first terminal device includes:
    所述第一终端设备的接入层从所述第一终端设备的基于近邻的服务层接收所述第一消息和需求信息;The access layer of the first terminal device receives the first message and demand information from the neighbor-based service layer of the first terminal device;
    所述第一终端设备的接入层根据所述需求信息向所述第一区域发送所述第一消息。The access layer of the first terminal device sends the first message to the first area according to the demand information.
  9. 一种终端设备的通信方法,其特征在于,所述方法包括:A communication method for a terminal device, characterized in that the method comprises:
    第一终端设备发送第一消息;the first terminal device sends a first message;
    所述第一终端设备接收一条或多条响应消息;The first terminal device receives one or more response messages;
    所述第一终端设备确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,所述第一响应消息中包括所述目标终端设备的标识信息,其中,所述第一响应消息满足下述中的至少一项:所述第一响应消息来自第一方向,或者,根据所述第一响应消息得到的所述目标终端设备与所述第一终端设备之间的距离在第一距离范围内。The first terminal device determines that a first response message among the one or more response messages is a response message of the target terminal device, and the first response message includes identification information of the target terminal device, wherein the The first response message satisfies at least one of the following: the first response message is from a first direction, or the target terminal device and the first terminal device are obtained according to the first response message The distance is within the first distance range.
  10. 根据权利要求9所述的方法,还包括:The method of claim 9, further comprising:
    所述一条或多条响应消息中包括一个或多个第二终端设备的标识,所述目标终端设备为所述一个或多个第二终端设备中的一个。The one or more response messages include identifiers of one or more second terminal devices, and the target terminal device is one of the one or more second terminal devices.
  11. 根据权利要求10所述的方法,所述第一终端设备确定所述一条或多条响应消息中的第一响应消息为目标终端设备的响应消息,包括:According to the method according to claim 10, the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device, comprising:
    所述第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The neighbor-based service layer of the first terminal device determines that the first response message among the one or more response messages is a response message of the target terminal device.
  12. 根据权利要求11所述的方法,所述第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:The method according to claim 11, wherein the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, comprising:
    所述第一终端设备的基于近邻的服务层从所述第一终端设备的接入层接收所述一个或多个第二终端设备与所述第一终端设备之间的距离;The neighbor-based service layer of the first terminal device receives distances between the one or more second terminal devices and the first terminal device from an access layer of the first terminal device;
    所述第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The neighbor-based service layer of the first terminal device determines the one or more responses based on the first distance range and the distance between the one or more second terminal devices and the first terminal device The first response message in the message is a response message of the target terminal device.
  13. 根据权利要求11所述的方法,所述第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:The method according to claim 11, wherein the neighbor-based service layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, comprising:
    所述第一终端设备的基于近邻的服务层从所述第一终端设备的接入层接收所述一个或多个第二终端设备与所述第一终端设备之间的飞行时间;The neighbor-based service layer of the first terminal device receives time-of-flight between the one or more second terminal devices and the first terminal device from an access layer of the first terminal device;
    所述第一终端设备的基于近邻的服务层根据所述一个或多个第二终端设备与所述第一终端设备之间的飞行时间确定所述一个或多个第二终端设备与所述第一终端设备之间的距离;The neighbor-based service layer of the first terminal device determines the connection between the one or more second terminal devices and the first terminal device based on a time-of-flight between the one or more second terminal devices and the first terminal device. a distance between terminal equipment;
    所述第一终端设备的基于近邻的服务层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The neighbor-based service layer of the first terminal device determines the one or more responses based on the first distance range and the distance between the one or more second terminal devices and the first terminal device The first response message in the message is a response message of the target terminal device.
  14. 根据权利要求11至13任一项所述的方法,所述第一终端设备的基于近邻的服务层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:The method according to any one of claims 11 to 13, wherein the neighbor-based service layer of the first terminal device determines that the first response message among the one or more response messages is the target terminal device's Response message, including:
    所述第一终端设备的基于近邻的服务层从所述第一终端设备的接入层接收所述一个或多个第二终端设备与所述第一终端设备之间的方向;The neighbor-based service layer of the first terminal device receives directions between the one or more second terminal devices and the first terminal device from an access layer of the first terminal device;
    所述第一终端设备的基于近邻的服务层根据所述第一方向以及所述一个或多个第二终端设备与所述第一终端设备之间的方向,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The neighbor-based service layer of the first terminal device determines the one or more response messages based on the first direction and the direction between the one or more second terminal devices and the first terminal device The first response message in is the response message of the target terminal device.
  15. 根据权利要求10所述的方法,所述第一终端设备确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:According to the method according to claim 10, the first terminal device determining that the first response message in the one or more response messages is the response message of the target terminal device comprises:
    所述第一终端设备的接入层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The access layer of the first terminal device determines that the first response message in the one or more response messages is a response message of the target terminal device.
  16. 根据权利要求15所述的方法,所述第一终端设备的接入层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:According to the method according to claim 15, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, comprising:
    所述第一终端设备的接入层从所述第一终端设备的基于近邻的服务层接收所述第一方向;The access layer of the first terminal device receives the first direction from a neighbor-based service layer of the first terminal device;
    所述第一终端设备的接入层确定所述一个或多个第二终端设备与所述第一终端设备之间的方向;The access layer of the first terminal device determines a direction between the one or more second terminal devices and the first terminal device;
    所述第一终端设备的接入层根据所述第一方向以及所述一个或多个第二终端设备与所述第一终端设备之间的方向,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The access layer of the first terminal device determines, according to the first direction and the directions between the one or more second terminal devices and the first terminal device, the The first response message is a response message of the target terminal device.
  17. 根据权利要求15或16所述的方法,所述第一终端设备的接入层确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息,包括:According to the method according to claim 15 or 16, the access layer of the first terminal device determines that the first response message in the one or more response messages is the response message of the target terminal device, comprising:
    所述第一终端设备的接入层从所述第一终端设备的基于近邻的服务层接收所述第一距离范围;The access layer of the first terminal device receives the first distance range from a neighbor-based service layer of the first terminal device;
    所述第一终端设备的接入层确定所述一个或多个第二终端设备与所述第一终端设备之间的距离;The access layer of the first terminal device determines the distance between the one or more second terminal devices and the first terminal device;
    所述第一终端设备的接入层根据所述第一距离范围以及所述一个或多个第二终端设备与所述第一终端设备之间的距离,确定所述一条或多条响应消息中的所述第一响应消息为所述目标终端设备的响应消息。The access layer of the first terminal device determines, according to the first distance range and the distance between the one or more second terminal devices and the first terminal device, in the one or more response messages The first response message is a response message of the target terminal device.
  18. 根据权利要求1-8或10-17任一项所述的方法,所述一条或多条响应消息包括时间信息,所述时间信息用于确定所述一个或多个第二终端设备与所述第一终端设备之间的距离。According to the method according to any one of claims 1-8 or 10-17, the one or more response messages include time information, and the time information is used to determine the relationship between the one or more second terminal devices and the The distance between the first terminal devices.
  19. 根据权利要求1-18任一项所述的方法,还包括:The method according to any one of claims 1-18, further comprising:
    所述第一终端设备获取需求信息,所述需求信息包括以下中的至少一项:用于确定所述第一方向的方向需求信息,或者,用于确定所述第一距离范围的距离需求信息。The first terminal device acquires requirement information, and the requirement information includes at least one of the following: direction requirement information for determining the first direction, or distance requirement information for determining the first distance range .
  20. 根据权利要求19所述的方法,所述第一终端设备获取需求信息,包括:According to the method according to claim 19, the acquisition of demand information by the first terminal device comprises:
    所述第一终端设备的基于近邻的服务层获取所述需求信息。The neighbor-based service layer of the first terminal device acquires the requirement information.
  21. 根据权利要求20所述的方法,所述第一终端设备的基于近邻的服务层获取所述需求信息,包括:According to the method according to claim 20, the neighbor-based service layer of the first terminal device acquires the demand information, comprising:
    所述第一终端设备的基于近邻的服务层从所述第一终端设备的应用层获取所述需求信息。The neighbor-based service layer of the first terminal device acquires the demand information from the application layer of the first terminal device.
  22. 根据权利要求19-21任一项所述的方法,所述距离需求信息包括以下中的至少一项:第一距离范围,或者,第一功率,所述第一功率用于确定所述第一距离范围。According to the method according to any one of claims 19-21, the distance requirement information includes at least one of the following: a first distance range, or a first power, and the first power is used to determine the first distance range.
  23. 一种通信装置,其特征在于,包括处理器;A communication device, characterized by comprising a processor;
    所述处理器用于从存储器中读取并运行程序,以实现如权利要求1至8中任一项所述的方法。The processor is used to read and execute a program from the memory, so as to realize the method according to any one of claims 1-8.
  24. 一种通信装置,其特征在于,包括处理器;A communication device, characterized by comprising a processor;
    所述处理器用于从存储器中读取并运行程序,以实现如权利要求9至22中任一项所述的方法。The processor is used to read and execute a program from the memory, so as to realize the method according to any one of claims 9-22.
  25. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1至22任一项所述的方法。A computer program product comprising instructions, characterized in that, when it is run on a computer, it causes the computer to execute the method as claimed in any one of claims 1 to 22.
  26. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得处理器执行如权利要求1至22任一项所述的方法。A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the processor is made to execute the method according to any one of claims 1 to 22.
PCT/CN2022/094743 2021-05-25 2022-05-24 Terminal device communication method, apparatus and system WO2022247831A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110573372.3 2021-05-25
CN202110573372.3A CN115396853A (en) 2021-05-25 2021-05-25 Communication method, device and system of terminal equipment

Publications (1)

Publication Number Publication Date
WO2022247831A1 true WO2022247831A1 (en) 2022-12-01

Family

ID=84114278

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094743 WO2022247831A1 (en) 2021-05-25 2022-05-24 Terminal device communication method, apparatus and system

Country Status (2)

Country Link
CN (1) CN115396853A (en)
WO (1) WO2022247831A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023246427A1 (en) * 2022-06-24 2023-12-28 华为技术有限公司 Ranging method and communication device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857901A (en) * 2012-09-12 2013-01-02 中兴通讯股份有限公司 Device discovery method, device discovery processing method and device discovering processing device
CN103731902A (en) * 2012-10-12 2014-04-16 中兴通讯股份有限公司 Method and device for inquiring direct connection communication target terminal information
CN104066112A (en) * 2013-03-21 2014-09-24 中兴通讯股份有限公司 Inter-terminal device-to-device communication method and system
CN107211017A (en) * 2015-01-27 2017-09-26 Lg电子株式会社 For the method and its equipment of the packet filtering that ProSe is performed in D2D communication systems
WO2018071517A1 (en) * 2016-10-11 2018-04-19 Nokia Technologies Oy Relay discovery procedures for direct communications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857901A (en) * 2012-09-12 2013-01-02 中兴通讯股份有限公司 Device discovery method, device discovery processing method and device discovering processing device
CN103731902A (en) * 2012-10-12 2014-04-16 中兴通讯股份有限公司 Method and device for inquiring direct connection communication target terminal information
CN104066112A (en) * 2013-03-21 2014-09-24 中兴通讯股份有限公司 Inter-terminal device-to-device communication method and system
CN107211017A (en) * 2015-01-27 2017-09-26 Lg电子株式会社 For the method and its equipment of the packet filtering that ProSe is performed in D2D communication systems
WO2018071517A1 (en) * 2016-10-11 2018-04-19 Nokia Technologies Oy Relay discovery procedures for direct communications

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023246427A1 (en) * 2022-06-24 2023-12-28 华为技术有限公司 Ranging method and communication device

Also Published As

Publication number Publication date
CN115396853A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
US20220061110A1 (en) Separation of Control Plane and User Plane in New Radio (NR) Systems
US11564268B2 (en) Radio resource control connection establishment
US10841023B2 (en) 5G fixed wireless access device self-installation
US20220369215A1 (en) Relay selection in cellular sliced networks
EP3509371B1 (en) Method and device for transmitting message
US10123365B2 (en) Method and apparatus for specified attach procedure and mobility and paging support in data communication network
CN109792595B (en) System and method for accessing a network using relays
EP3269186B1 (en) Method, apparatus, system and computer program for vehicular communication smart radio access zones
US8737370B2 (en) Methods and apparatuses for direct link setup
US9271136B2 (en) Probe messaging for direct link connections
WO2016161867A1 (en) Method and device for determining and using d2d relay node
JP2019519993A (en) Network slice discovery and selection
US20210168743A1 (en) Base Station Coordinated Synchronization Block Transmissions in Integrated Access and Backhaul Network
WO2021136211A1 (en) Method and device for determining authorization result
EP3761751A1 (en) Relay selection in cellular sliced networks
WO2018228371A1 (en) Communication method and device and radio access network
CN111836220B (en) Communication method and device
EP3849103A1 (en) Relay selection in cellular sliced networks
WO2022247831A1 (en) Terminal device communication method, apparatus and system
WO2021136379A1 (en) Early packet filtering for sidelink ue discovery
WO2021036910A1 (en) Data transmission method and device
CN113518475B (en) Communication method, device and system
EP3457758B1 (en) Data transmission methods and devices
WO2023115354A1 (en) Communication method and apparatus
CN114503625B (en) Communication method, device and system

Legal Events

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

Ref document number: 22810556

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE