Wireless communication method and terminal device
By using the relay terminal to send messages carrying the link layer identifier in the new air interface system, the problem of the terminal device being unable to obtain the terminal identifier of the other end is solved, ensuring the normal establishment of short-range communication.
Patent Information
- Application Number
- CN202311349049.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-22
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-02-22
AI Technical Summary
In the new air interface system, when a terminal device with ProSe capability transfers messages through a relay terminal, it cannot obtain the link layer identifier of the other terminal, resulting in the inability to correctly establish a short-range communication connection.
By sending a message carrying a link layer identifier through the relay terminal, the terminal device can obtain the link layer identifier of the opposite terminal and discover the opposite terminal through the relay terminal, thereby establishing a correct short-range communication connection.
The relay terminal can correctly obtain the link layer identifier of the other terminal, ensuring that the short-range communication connection between the two terminals can be established normally.
Smart Images

Figure CN117376879B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number CN202180072739.1 and invention name “Method and terminal device for wireless communication” filed on February 22, 2021. Technical Field
[0002] The present invention relates to the field of communications, and more specifically, to a method and terminal device for wireless communication. Background Art
[0003] In the New Radio (NR) system, a terminal device with Proximity-based Services (ProSe) capability can communicate directly with another terminal device with ProSe capability through the PC5 interface. Terminals with ProSe capability obtain the link layer identifier (Layer 2 ID) of the other terminal through the frame structure of the short-range exchange message. When the two terminals are relaying messages through a relay terminal (relay UE), the terminal can only obtain the link layer identifier of the relay UE through the frame structure of the short-range exchange message, but cannot obtain the link layer identifier of the other terminal. As a result, the terminal cannot correctly discover the other terminal through the relay UE, nor can it correctly establish a short-range communication connection between the two terminals through the relay UE. Summary of the Invention
[0004] The embodiment of the present application provides a wireless communication method and terminal device, where the terminal device can obtain the link layer identifier of the opposite terminal through the RelayUE, and discover the opposite terminal through the RelayUE, so that a short-range communication connection between the two terminals can be correctly established through the RelayUE.
[0005] In a first aspect, a wireless communication method is provided, the method comprising:
[0006] The relay terminal receives a first message sent by the first terminal, where a data packet header of the first message carries a link layer identifier of the first terminal;
[0007] The relay terminal sends a second message, where the second message includes the link layer identifier of the first terminal, and a data packet header of the second message carries the link layer identifier of the relay terminal.
[0008] In a second aspect, a wireless communication method is provided, the method comprising:
[0009] The first terminal receives a fourth message sent by the relay terminal. The fourth message includes the link layer identifier of the second terminal, and a data packet header of the fourth message carries the link layer identifier of the relay terminal.
[0010] According to a third aspect, a wireless communication method is provided, the method comprising:
[0011] The second terminal receives a second message sent by the relay terminal. The second message includes the link layer identifier of the first terminal, and a data packet header of the second message carries the link layer identifier of the relay terminal.
[0012] In a fourth aspect, a terminal device is provided for executing the method in the first aspect.
[0013] Specifically, the terminal device includes a functional module for executing the method in the above-mentioned first aspect.
[0014] In a fifth aspect, a terminal device is provided for executing the method in the second aspect.
[0015] Specifically, the terminal device includes a functional module for executing the method in the above-mentioned second aspect.
[0016] In a sixth aspect, a terminal device is provided for executing the method in the third aspect.
[0017] Specifically, the terminal device includes a functional module for executing the method in the third aspect above.
[0018] In a seventh aspect, a terminal device is provided, comprising a processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory to perform the method of any one of the first to third aspects.
[0019] In an eighth aspect, a device is provided for implementing the method in any one of the first to third aspects above.
[0020] Specifically, the apparatus includes: a processor, configured to call and run a computer program from a memory, so that a device equipped with the apparatus executes the method in any one of the first to third aspects described above.
[0021] In a ninth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program enables a computer to execute the method in any one of the first to third aspects above.
[0022] In a tenth aspect, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions enable a computer to execute the method in any one of the first to third aspects above.
[0023] In an eleventh aspect, a computer program is provided, which, when executed on a computer, causes the computer to execute the method in any one of the first to third aspects.
[0024] Through the above technical solution, the terminal device can obtain the link layer identifier of the opposite terminal through the relay terminal, and discover the opposite terminal through the relay terminal, so that a short-range communication connection between the two terminals can be correctly established through the relay terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of a communication system architecture applied in an embodiment of the present application.
[0026] Figure 2 It is a schematic flowchart of a discovery process provided by this application.
[0027] Figure 3 This is a schematic flowchart of establishing direct communication provided by this application.
[0028] Figure 4 This is a schematic diagram of relay communication provided by this application.
[0029] Figure 5 This is a schematic diagram of a relay communication protocol stack provided by this application.
[0030] Figure 6 It is a schematic flowchart of a wireless communication method provided according to an embodiment of the present application.
[0031] Figure 7 It is a schematic flowchart of relay communication provided according to an embodiment of the present application.
[0032] Figure 8 This is a schematic flowchart of another relay communication provided according to an embodiment of the present application.
[0033] Figure 9 It is a schematic flowchart of another wireless communication method provided according to an embodiment of the present application.
[0034] Figure 10 This is a schematic flowchart of another wireless communication method provided according to an embodiment of the present application.
[0035] Figure 11 This is a schematic block diagram of a terminal device provided according to an embodiment of the present application.
[0036] Figure 12 This is a schematic block diagram of another terminal device provided according to an embodiment of the present application.
[0037] Figure 13This is a schematic block diagram of another terminal device provided according to an embodiment of the present application.
[0038] Figure 14 This is a schematic block diagram of a communication device provided according to an embodiment of the present application.
[0039] Figure 15 This is a schematic block diagram of a device provided according to an embodiment of the present application.
[0040] Figure 16 It is a schematic block diagram of a communication system provided according to an embodiment of the present application. Specific embodiments
[0041] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. With respect to the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0042] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-U) system, NR on unlicensed spectrum (NR-U) system, Non-Terrestrial Networks (NTN) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (Wireless Fidelity) system. Fidelity, WiFi), fifth-generation communication (5th-Generation, 5G) system or other communication systems, etc.
[0043] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, device-to-device (D2D) communication, machine-to-machine (M2M) communication, machine-type communication (MTC), vehicle-to-vehicle (V2V) communication, or vehicle-to-everything (V2X) communication, etc. The embodiments of the present application can also be applied to these communication systems.
[0044] In some embodiments, the communication system in the embodiments of the present application can be applied to a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, and a standalone (SA) networking scenario.
[0045] In some embodiments, the communication system in the embodiments of the present application can be applied to an unlicensed spectrum, where the unlicensed spectrum can also be considered as a shared spectrum; or, the communication system in the embodiments of the present application can also be applied to an authorized spectrum, where the authorized spectrum can also be considered as an unshared spectrum.
[0046] The embodiments of the present application describe various embodiments in conjunction with network devices and terminal devices, wherein the terminal device may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
[0047] The terminal device can be a station (ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a next-generation communication system such as an NR network, or a terminal device in a future evolved Public Land Mobile Network (PLMN) network, etc.
[0048] In an embodiment of the present application, the terminal device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.).
[0049] In an embodiment of the present application, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0050] As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0051] In an embodiment of the present application, the network device may be a device for communicating with a mobile device. The network device may be an access point (AP) in WLAN, a base station (Base Transceiver Station, BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, an evolved base station (EvolutionalNode B, eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, and a network device or base station (gNB) in an NR network, or a network device in a future evolved PLMN network or a network device in an NTN network, etc.
[0052] As an example and not a limitation, in an embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device. In some embodiments, the network device may be a satellite or a balloon station. For example, the satellite may be a low earth orbit (LEO) satellite, a medium earth orbit (MEO) satellite, a geostationary earth orbit (GEO) satellite, a high elliptical orbit (HEO) satellite, etc. In some embodiments, the network device may also be a base station set up in a location such as land or water.
[0053] In an embodiment of the present application, the network device can provide services for a cell, and the terminal device communicates with the network device through the transmission resources used by the cell (for example, frequency domain resources, or spectrum resources). The cell can be a cell corresponding to the network device (for example, a base station). The cell can belong to a macro base station or a base station corresponding to a small cell. The small cells here may include: metro cells, micro cells, pico cells, femto cells, etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
[0054] For example, the communication system 100 used in the embodiment of the present application is as follows: Figure 1 The communication system 100 may include a network device 110, which may be a device that communicates with a terminal device 120 (or a communication terminal or terminal). The network device 110 may provide communication coverage for a specific geographic area and may communicate with terminal devices within the coverage area.
[0055] Figure 1 The following is a schematic diagram of a communication system 100 used in this application. Figure 1As shown, the communication system 100 mainly includes a terminal device (User Equipment, UE) 101, an access network (Access Network, AN) device 102, an access and mobility management function (Access and Mobility Management Function, AMF) entity 103, a session management function (Session Management Function, SMF) entity 104, a user plane function (User Plane Function, UPF) entity 105, a policy control function (Policy Control function, PCF) entity 106, a unified data management (Unified Data Management, UDM) entity 107, a data network (Data Network, DN) 108, an application function (Application Function, AF) entity 109, an authentication server function (Authentication Server Function, AUSF) entity 110, and a network slice selection function (Network Slice Selection Function, NSSF) entity 111.
[0056] Specifically, in the communication system 100, the UE 101 is connected to the AN device 102 through the Uu interface for access layer connection to exchange access layer messages and wireless data transmission. The UE 101 is connected to the AMF entity 103 through the N1 interface for non-access layer (NAS) to exchange NAS messages; the AN device 102 is connected to the AMF entity 103 through the N2 interface, and the AN device 102 is connected to the UPF entity 105 through the N3 interface; multiple UPF entities 105 are connected through the N9 interface, and the UPF entity 105 is connected to the DN through the N6 interface. 108 is connected, and at the same time, the UPF entity 105 is connected to the SMF entity 104 through the N4 interface; the SMF entity 104 is connected to the PCF entity 106 through the N7 interface, the SMF entity 104 is connected to the UDM entity 107 through the N10 interface, the SMF entity 104 controls the UPF entity 105 through the N4 interface, and at the same time, the SMF entity 104 is connected to the AMF entity 103 through the N11 interface; multiple AMF entities 103 are connected through the N14 interface, the AMF entity 103 is connected to the UDM entity 107 through the N8 interface, the AMF entity 103 is connected to the AUSF entity 110 through the N12 interface, the AMF entity 103 is connected to the NSSF entity 111 through the N22 interface, and at the same time, the AMF entity 103 is connected to the PCF entity 106 through the N15 interface; the PCF entity 106 is connected to the AF entity 109 through the N5 interface; the AUSF entity 110 is connected to the UDM entity 107 through the N13 interface.
[0057] In the communication system 100, the UDM entity 107 is the subscription database in the core network, storing the subscription data of users in the 5G network. The AMF entity 103 is the mobility management function in the core network, and the SMF entity 104 is the session management function in the core network. In addition to performing mobility management for UE 101, the AMF entity 103 is also responsible for forwarding session management-related messages between UE 101 and the SMF entity 104. The PCF entity 106 is the policy management function in the core network, responsible for formulating policies related to mobility management, session management, billing, etc. for UE 101. The UPF entity 105 is the user plane function in the core network, which transmits data with the external data network through the N6 interface and with the AN device 102 through the N3 interface. After UE 101 accesses the 5G network through the Uu port, a protocol data unit (PDU) session data connection is established from UE 101 to the UPF entity 105 under the control of the SMF entity 104 to perform data transmission. The AMF entity 103 and the SMF entity 104 obtain user subscription data from the UDM entity 107 through the N8 and N10 interfaces respectively, and obtain policy data from the PCF entity 106 through the N15 and N7 interfaces.
[0058] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.
[0059] The terms used in the embodiments of this application are intended only to explain the specific embodiments of this application and are not intended to limit this application. The terms "first," "second," "third," and "fourth," etc. in the specification and claims of this application and the accompanying drawings are used to distinguish different objects, not to describe a specific order. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions.
[0060] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.
[0061] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.
[0062] In the embodiments of the present application, "predefined" can be implemented by pre-storing corresponding codes, tables, or other methods that can be used to indicate relevant information in a device (for example, a terminal device and a network device). The present application does not limit the specific implementation method. For example, predefined can refer to information defined in a protocol.
[0063] In the embodiments of the present application, the “protocol” may refer to a standard protocol in the communications field, for example, it may include an LTE protocol, an NR protocol, and related protocols used in future communication systems, and the present application does not limit this.
[0064] To facilitate a better understanding of the embodiments of the present application, the direct communication related to the present application is explained.
[0065] A UE with ProSe capability can communicate directly with another UE with ProSe capability via the PC5 interface. Figure 2way to discover another UE with ProSe capability. UE1 broadcasts the information of the UE it wants to discover, such as service information (indicating that it wants to discover UEs that support this service), the user identity of the target UE at the application layer, etc. The frame structure of the data packet of the UE1 broadcast message carries the link layer identity (layer 2ID) of UE1. UE2 determines that it is the UE that UE1 wants to discover by receiving the broadcast message, and obtains the layer 2ID of UE1. UE2 sends a response message to UE1, which carries the information of UE2, such as the service information supported by UE2, the user identity of UE2 at the application layer, etc. The frame structure of the response message sent by UE2 carries the link layer identity (layer 2ID) of UE2, and UE1 obtains the information of UE2 and the layer 2ID of UE2.
[0066] After obtaining the layer 2 ID of UE2, UE1 can send a direct communication request to UE2 to request to establish a PC5 connection, such as Figure 3 shown.
[0067] When two UEs with ProSe capability are far away from each other and cannot directly establish communication through the PC5 interface, they can also use a relay terminal with ProSe capability (Relay UE) to relay the communication. Figure 4 , Relay UE can communicate directly with UE1 through PC5 interface, and can also communicate directly with UE2 through PC5, so UE1 and UE2 can interact with services through RelayUE. Figure 5 It is a protocol stack that allows UE1 to establish a PC5 connection with UE2 through Relay UE. Figure 5As shown, UE1 and UE2 are connected through a PC5-S interface. In addition, the Packet Data Convergence Protocol (PDCP) layer of UE1 is connected to the PDCP layer of UE2; the Radio Link Control (RLC) layer of UE1 is connected to the RLC layer of the relay terminal (Relay UE) through a PC5-C interface, and the RLC layer of the relay terminal (Relay UE) is connected to the RLC layer of UE2 through a PC5-C interface; the Media Access Control (MAC) layer of UE1 is connected to the MAC layer of the relay terminal (Relay UE) through a PC5-C interface, and the MAC layer of the relay terminal (Relay UE) is connected to the MAC layer of UE2 through a PC5-C interface; the Physical (PHY) layer of UE1 is connected to the PHY layer of the relay terminal (Relay UE) through a PC5-C interface, and the PHY layer of the relay terminal (Relay UE) is connected to the PHY layer of UE2 through a PC5-C interface.
[0068] Because UEs with ProSe capabilities obtain the link layer identifier (Layer 2 ID) of the other UE through the frame structure of the short-range interactive message, when two UEs transfer messages through the Relay UE, the UE can only obtain the link layer identifier of the Relay UE through the frame structure of the short-range interactive message, but cannot obtain the link layer identifier of the other UE. As a result, the other UE cannot be correctly discovered through the Relay UE, and a short-range communication connection between the two UEs cannot be correctly established through the Relay UE.
[0069] Based on the above problems, this application proposes a relay communication solution, whereby the terminal device can obtain the link layer identifier of the opposite terminal through the Relay UE, and discover the opposite terminal through the Relay UE, so that a short-range communication connection between the two terminals can be correctly established through the Relay UE.
[0070] The technical solution of this application is described in detail below through specific embodiments.
[0071] Figure 6 is a schematic flow chart of a wireless communication method 200 according to an embodiment of the present application, as shown in FIG. Figure 6 As shown, the method 200 may include at least part of the following contents:
[0072] S210, the relay terminal receives a first message sent by a first terminal, where a data packet header of the first message carries a link layer identifier of the first terminal;
[0073] S220, the relay terminal sends a second message, where the second message includes the link layer identifier of the first terminal, and a data packet header of the second message carries the link layer identifier of the relay terminal.
[0074] In the embodiment of the present application, the first terminal can send its link layer identifier to the peer terminal through the relay terminal, so as to obtain the link layer identifier of the peer terminal through the relay terminal, thereby discovering the peer terminal and establishing a short-range communication connection with the peer terminal through the relay terminal. Or,
[0075] In an embodiment of the present application, the opposite terminal of the first terminal can obtain the link layer identifier of the first terminal through the relay terminal in S220, thereby discovering the first terminal and establishing a short-range communication connection with the first terminal through the relay terminal.
[0076] In some embodiments, the first terminal may discover the opposite terminal through the relay terminal, or the first terminal may establish a short-range communication connection with the opposite terminal through the relay terminal.
[0077] In some embodiments, the data packet header carries a link layer identifier, specifically: the frame structure of the data packet carries a link layer identifier.
[0078] In some embodiments, the link layer identifier may be a layer 2 identifier (ID). Of course, it may also be some other identifiers, which is not limited in this application.
[0079] In some embodiments, the first message and / or the second message is a direct communication request message (direct communication request); or, the first message and / or the second message is a direct communication accept message (direct communication accept).
[0080] In some embodiments, the first message and / or the second message is a discovery request message (discovery solicitation); or, the first message and / or the second message is a discovery response message (discovery response).
[0081] In some embodiments, after the relay terminal sends the second message, that is, after S220, the relay terminal receives a third message sent by the second terminal, the third message includes the link layer identifier of the first terminal, and the data packet header of the third message carries the link layer identifier of the second terminal; and the relay terminal sends a fourth message to the first terminal, the fourth message includes the link layer identifier of the second terminal, and the data packet header of the fourth message carries the link layer identifier of the relay terminal.
[0082] In an embodiment of the present application, the first terminal can receive the fourth message sent by the relay terminal, and obtain the link layer identifier of the second terminal from the fourth message, so that the second terminal can be discovered, and a short-range communication connection can be established with the second terminal through the relay terminal.
[0083] In some embodiments, the first message and / or the second message is a direct communication request message (direct communication request), and the third message and / or the fourth message is a direct communication accept message (direct communication accept).
[0084] In some embodiments, the first message and / or the second message is a discovery request message (discovery solicitation), and the third message and / or the fourth message is a discovery response message (discovery response).
[0085] In some embodiments, the above S220 may specifically be:
[0086] The relay terminal sends the second message in a broadcast manner.
[0087] In some embodiments, when the first message is a direct communication request message, the first message may include the link layer identifier of the second terminal. Further, when the first message includes the link layer identifier of the second terminal, the above S220 may specifically be:
[0088] The relay terminal sends the second message to the second terminal according to the link layer identifier of the second terminal.
[0089] In some embodiments, the first message and the second message include information of the terminal to be discovered; and / or, the third message and the fourth message include information of the second terminal.
[0090] In some embodiments, the information of the terminal to be discovered includes but is not limited to at least one of the following:
[0091] Service information supported by the terminal to be discovered, user identification of the terminal to be discovered at the application layer, and user identification of the first terminal at the application layer.
[0092] In some embodiments, the information of the second terminal includes but is not limited to at least one of the following:
[0093] Service information supported by the second terminal, and the user identifier of the second terminal at the application layer.
[0094] Therefore, in an embodiment of the present application, the terminal device can obtain the link layer identifier of the opposite terminal through the relay terminal, and discover the opposite terminal through the relay terminal, so that a short-range communication connection between the two terminals can be correctly established through the relay terminal.
[0095] The technical solution of this application is described in detail below through specific examples 1 and 2. Among them, example 1 is used for the discovery process of short-range communication, and example 2 is used for the connection establishment process of short-range communication. The premise of example 2 is that UE1 has obtained the link layer identifier of UE2.
[0096] In embodiment 1, UE1 can obtain the link layer identifier of UE2 through S11 to S14, such as Figure 7 shown.
[0097] S11, UE1 broadcasts message 1, which is a discovery request message or a direct communication request message. Message 1 carries information about the UE to be discovered, such as service information (indicating that UEs supporting this service are to be discovered), the user identifier of the target UE at the application layer, and may also include the user identifier of UE1 at the application layer. The frame structure of the data packet of the UE1 broadcast message carries the link layer identifier (layer 2 ID) of UE1.
[0098] S12: After receiving Message 1, the relay terminal (Relay UE) continues to broadcast Message 2 (that is, it relays Message 1. That is, if Message 1 is a discovery request message, Message 2 is also a discovery request message; if Message 1 is a direct communication request message, Message 2 is also a direct communication request message). The Relay UE carries the link layer identifier of the Relay UE in the frame structure of the data packet of Message 2, and the message content of Message 2 includes the link layer identifier (Layer 2 ID) of UE1 and the information of the UE to be discovered.
[0099] S13: UE2 determines that it is the UE that UE1 wants to discover by receiving Message 2, obtains UE1's Layer 2 ID from the content of Message 2, and obtains the link layer identifier of the Relay UE from the frame structure of the data packet of Message 2. UE2 sends Message 3 to the Relay UE (if Message 2 is a discovery request message, Message 3 is a discovery response message; if Message 2 is a direct communication request message, Message 3 is a direct communication acceptance message). The content of Message 3 carries UE2 information, such as information about services supported by UE2, UE2's user identifier at the application layer, and UE1's Layer 2 ID. The frame structure of Message 3 sent by UE2 carries UE2's link layer identifier (Layer 2 ID).
[0100] S14, after receiving message 3, the Relay UE obtains the layer 2 ID of UE1, and can send message 4 to UE1 (if message 3 is a discovery response message, message 4 is also a discovery response message; if message 3 is a direct communication acceptance message, message 4 is also a direct communication acceptance message). The content of message 4 includes the link layer identifier of UE2 and the above-mentioned UE2 information. The frame structure of message 4 sent by the relay UE carries the link layer identifier of the Relay UE; optionally, message 4 may also include the link layer identifier of UE1.
[0101] In embodiment 1, UE1 obtains information of UE2 (service information supported by UE2, user identification of UE2 at the application layer, etc.) and layer 2 ID of UE2 in S14.
[0102] In embodiment 2, UE1 can establish a short-range communication connection with UE2 through S21 to S24, such as Figure 8 shown.
[0103] S21, UE1 sends a message 1 to the relay terminal (Relay UE), where the message 1 is a direct communication request message. The message 1 carries the link layer identifier (Layer 2 ID) of UE2, and the frame structure of the data packet of the message 1 carries the link layer identifier (Layer 2 ID) of UE1.
[0104] S22. After receiving Message 1, the Relay UE sends Message 2 to UE2 based on the link layer identifier (Layer 2 ID) of UE2 in Message 1. Message 2 is also a direct communication request message. The Relay UE carries the link layer identifier (Layer 2 ID) of the Relay UE in the frame structure of the data packet of Message 2. The content of Message 2 also includes the link layer identifier (Layer 2 ID) of UE1. Optionally, the content of Message 2 may also include the link layer identifier (Layer 2 ID) of UE2.
[0105] S23: UE2 obtains UE1's link layer identifier (Layer 2 ID) from the content of the received Message 2, and obtains the Relay UE's link layer identifier (Layer 2 ID) from the frame structure of the data packet of Message 2. UE2 then sends Message 3 to the Relay UE. Message 3 is a direct communication acceptance message. Message 3 carries UE1's link layer identifier (Layer 2 ID) in its content, and UE2's link layer identifier (Layer 2 ID) is carried in its frame structure.
[0106] S24, after receiving message 3, the Relay UE obtains the link layer identifier (layer 2ID) of UE1, and can send message 4 to UE1. Message 4 is also a direct communication acceptance message. The content of message 4 includes the link layer identifier (layer 2ID) of UE2. The frame structure of message 4 sent by the relayUE carries the link layer identifier of the Relay UE; optionally, the content of message 4 can also include the link layer identifier (layer 2ID) of UE1.
[0107] In embodiment 2, after S24, a short distance communication connection is established between UE1 and UE2.
[0108] Combined with the above Figures 6 to 8 , describes in detail the relay terminal side embodiment of the present application, and the following is combined with Figure 9 , the first terminal side embodiment of the present application is described in detail. It should be understood that the first terminal side embodiment corresponds to the relay terminal side embodiment, and similar descriptions can refer to the relay terminal side embodiment.
[0109] Figure 9 is a schematic flow chart of a wireless communication method 300 according to an embodiment of the present application, as shown in FIG. Figure 9 As shown, the method 300 may include at least part of the following contents:
[0110] S310, the first terminal receives a fourth message sent by the relay terminal, the fourth message includes the link layer identifier of the second terminal, and the data packet header of the fourth message carries the link layer identifier of the relay terminal.
[0111] In an embodiment of the present application, the first terminal can receive the fourth message sent by the relay terminal, and obtain the link layer identifier of the second terminal from the fourth message, so that the second terminal can be discovered, and a short-range communication connection can be established with the second terminal through the relay terminal.
[0112] In some embodiments, the data packet header carries a link layer identifier, specifically: the frame structure of the data packet carries a link layer identifier.
[0113] In some embodiments, the link layer identifier may be a layer 2 identifier (ID). Of course, it may also be some other identifiers, which is not limited in this application.
[0114] In some embodiments, the fourth message is a discovery response message, or the fourth message is a direct communication accept message.
[0115] In some embodiments, before receiving the fourth message, the first terminal sends a first message to the relay terminal, and the data packet header of the first message carries the link layer identifier of the first terminal.
[0116] In some embodiments, the first message is a discovery solicitation message, and the fourth message is a discovery response message.
[0117] In some embodiments, the first message is a direct communication request message (direct communication request), and the fourth message is a direct communication accept message (direct communication accept).
[0118] In some embodiments, when the first message is a direct communication request message, the first message includes the link layer identifier of the second terminal. In this case, the relay terminal may send a second message to the second terminal based on the link layer identifier of the second terminal, the second message including the link layer identifier of the first terminal, and the data packet header of the second message carries the link layer identifier of the relay terminal.
[0119] In some embodiments, the first terminal sends the first message to the relay terminal via broadcasting.
[0120] In some embodiments, the first message includes information of the terminal to be discovered; and / or the fourth message includes information of the second terminal.
[0121] In some embodiments, the information of the terminal to be discovered includes but is not limited to at least one of the following:
[0122] Service information supported by the terminal to be discovered, user identification of the terminal to be discovered at the application layer, and user identification of the first terminal at the application layer.
[0123] In some embodiments, the information of the second terminal includes but is not limited to at least one of the following:
[0124] Service information supported by the second terminal, and the user identifier of the second terminal at the application layer.
[0125] Therefore, in an embodiment of the present application, the terminal device can obtain the link layer identifier of the opposite terminal through the relay terminal, and discover the opposite terminal through the relay terminal, so that a short-range communication connection between the two terminals can be correctly established through the relay terminal.
[0126] Combined with the above Figures 6 to 8 , describes in detail the relay terminal side embodiment of the present application, and the following is combined with Figure 10, the second terminal side embodiment of the present application is described in detail. It should be understood that the second terminal side embodiment corresponds to the relay terminal side embodiment, and similar descriptions can refer to the relay terminal side embodiment.
[0127] Figure 10 is a schematic flow chart of a wireless communication method 400 according to an embodiment of the present application, as shown in FIG. Figure 10 As shown, the method 400 may include at least part of the following contents:
[0128] S410: The second terminal receives a second message sent by the relay terminal. The second message includes the link layer identifier of the first terminal, and the data packet header of the second message carries the link layer identifier of the relay terminal.
[0129] In an embodiment of the present application, the second terminal can obtain the link layer identifier of the first terminal through the relay terminal, thereby discovering the first terminal, and can establish a short-range communication connection with the first terminal through the relay terminal.
[0130] In some embodiments, the data packet header carries a link layer identifier, specifically: the frame structure of the data packet carries a link layer identifier.
[0131] In some embodiments, the link layer identifier may be a layer 2 identifier (ID). Of course, it may also be some other identifiers, which is not limited in this application.
[0132] In some embodiments, the second message is a direct communication request message; or, the second message is a discovery request message; or, the second message is a direct communication acceptance message; or, the second message is a discovery response message.
[0133] In some embodiments, the second terminal sends a third message to the relay terminal, where the third message includes the link layer identifier of the first terminal, and a data packet header of the third message carries the link layer identifier of the second terminal.
[0134] In an embodiment of the present application, the second terminal determines that it is the terminal that the first terminal wishes to discover by receiving the second message, obtains the link layer identifier of the first terminal from the content of the second message, and obtains the link layer identifier of the relay terminal from the frame structure of the data packet of the second message. The second terminal sends a third message (a discovery response message or a direct communication acceptance message) to the relay terminal. The content of the third message carries information about the second terminal, such as service information supported by the second terminal, the user identifier of the second terminal at the application layer, etc., as well as the link layer identifier (layer 2ID) of the first terminal. The frame structure of the third message sent by the second terminal carries the link layer identifier (layer 2ID) of the second terminal.
[0135] In some embodiments, the second message is a direct communication request message, and the third message is a direct communication acceptance message; or, the second message is a discovery request message, and the third message is a discovery response message.
[0136] In some embodiments, when the second message is a direct communication request message, the second message is sent by the relay terminal according to the link layer identifier of the second terminal.
[0137] In some embodiments, the second message is sent by the relay terminal via broadcasting.
[0138] In some embodiments, the second message includes information of the terminal to be discovered; and / or the third message includes information of the second terminal.
[0139] In some embodiments, the information of the terminal to be discovered includes but is not limited to at least one of the following:
[0140] Service information supported by the terminal to be discovered, user identification of the terminal to be discovered at the application layer, and user identification of the first terminal at the application layer.
[0141] In some embodiments, the information of the second terminal includes but is not limited to at least one of the following:
[0142] Service information supported by the second terminal, and the user identifier of the second terminal at the application layer.
[0143] Therefore, in an embodiment of the present application, the terminal device can obtain the link layer identifier of the opposite terminal through the relay terminal, and discover the opposite terminal through the relay terminal, so that a short-range communication connection between the two terminals can be correctly established through the relay terminal.
[0144] Combined with the above Figures 6 to 10 , describes the method embodiment of the present application in detail, and the following is combined with Figures 11 to 16 , the device embodiments of the present application are described in detail. It should be understood that the device embodiments and the method embodiments correspond to each other, and similar descriptions can refer to the method embodiments.
[0145] Figure 11 FIG1 shows a schematic block diagram of a terminal device 500 according to an embodiment of the present application. The terminal device 500 is a relay terminal. Figure 11 As shown, the terminal device 500 includes:
[0146] The communication unit 510 is configured to receive a first message sent by a first terminal, wherein a data packet header of the first message carries a link layer identifier of the first terminal;
[0147] The communication unit 510 is further configured to send a second message, where the second message includes the link layer identifier of the first terminal, and the data packet header of the second message carries the link layer identifier of the relay terminal.
[0148] In some embodiments, the communication unit 510 is further configured to receive a third message sent by the second terminal, the third message including the link layer identifier of the first terminal, and a data packet header of the third message carrying the link layer identifier of the second terminal;
[0149] The communication unit 510 is further configured to send a fourth message to the first terminal, where the fourth message includes the link layer identifier of the second terminal, and a data packet header of the fourth message carries the link layer identifier of the relay terminal.
[0150] In some embodiments, the first message and / or the second message is a direct communication request message, and the third message and / or the fourth message is a direct communication acceptance message; or,
[0151] The first message and / or the second message is a discovery request message, and the third message and / or the fourth message is a discovery response message.
[0152] In some embodiments, the first message and / or the second message is a direct communication request message; or,
[0153] The first message and / or the second message is a direct communication acceptance message; or,
[0154] The first message and / or the second message is a discovery request message; or,
[0155] The first message and / or the second message is a discovery response message.
[0156] In some embodiments, when the first message is a direct communication request message, the first message includes a link layer identifier of the second terminal.
[0157] In some embodiments, the communication unit 510 is specifically configured to:
[0158] The relay terminal sends the second message to the second terminal according to the link layer identifier of the second terminal.
[0159] In some embodiments, the communication unit 510 is specifically configured to:
[0160] The second message is sent by broadcasting.
[0161] In some embodiments, the first message and the second message include information of the terminal to be discovered; and / or, the third message and the fourth message include information of the second terminal.
[0162] In some embodiments, the information of the terminal to be discovered includes at least one of the following:
[0163] Service information supported by the terminal to be discovered, user identification of the terminal to be discovered at the application layer, and user identification of the first terminal at the application layer.
[0164] In some embodiments, the information of the second terminal includes at least one of the following:
[0165] Service information supported by the second terminal, and the user identifier of the second terminal at the application layer.
[0166] In some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip.
[0167] It should be understood that the terminal device 500 according to the embodiment of the present application may correspond to the relay terminal in the embodiment of the method of the present application, and the above and other operations and / or functions of each unit in the terminal device 500 are respectively to achieve Figure 6 For the sake of brevity, the corresponding process of the relay terminal in the method 200 is not described here in detail.
[0168] Figure 12 FIG1 shows a schematic block diagram of a terminal device 600 according to an embodiment of the present application. The terminal device 600 is a first terminal. Figure 12 As shown, the terminal device 600 includes:
[0169] The communication unit 610 is configured to receive a fourth message sent by the relay terminal, where the fourth message includes the link layer identifier of the second terminal, and a data packet header of the fourth message carries the link layer identifier of the relay terminal.
[0170] In some embodiments, before receiving the fourth message, the communication unit 610 is further configured to send a first message to the relay terminal, wherein the data packet header of the first message carries a link layer identifier of the first terminal.
[0171] In some embodiments, the first message is a discovery request message, and the fourth message is a discovery response message; or,
[0172] The first message is a direct communication request message, and the fourth message is a direct communication acceptance message.
[0173] In some embodiments, the fourth message is a discovery response message, or the fourth message is a direct communication acceptance message.
[0174] In some embodiments, when the first message is a direct communication request message, the first message includes a link layer identifier of the second terminal.
[0175] In some embodiments, the communication unit 610 is specifically configured to:
[0176] The first message is sent to the relay terminal in a broadcast manner.
[0177] In some embodiments, the first message includes information of the terminal to be discovered; and / or the fourth message includes information of the second terminal.
[0178] In some embodiments, the information of the terminal to be discovered includes at least one of the following:
[0179] Service information supported by the terminal to be discovered, user identification of the terminal to be discovered at the application layer, and user identification of the first terminal at the application layer.
[0180] In some embodiments, the information of the second terminal includes at least one of the following:
[0181] Service information supported by the second terminal, and the user identifier of the second terminal at the application layer.
[0182] In some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip.
[0183] It should be understood that the terminal device 600 according to the embodiment of the present application may correspond to the first terminal in the embodiment of the method of the present application, and the above and other operations and / or functions of each unit in the terminal device 600 are respectively to achieve Figure 9 For the sake of brevity, the corresponding process of the first terminal in the method 300 is not repeated here.
[0184] Figure 13 FIG2 shows a schematic block diagram of a terminal device 700 according to an embodiment of the present application. The terminal device 700 is a second terminal. Figure 13 As shown, the terminal device 700 includes:
[0185] The communication unit 710 is configured to receive a second message sent by a relay terminal, where the second message includes a link layer identifier of the first terminal, and a data packet header of the second message carries the link layer identifier of the relay terminal.
[0186] In some embodiments, the communication unit 710 is further configured to send a third message to the relay terminal, where the third message includes the link layer identifier of the first terminal, and the data packet header of the third message carries the link layer identifier of the second terminal.
[0187] In some embodiments, the second message is a direct communication request message, and the third message is a direct communication acceptance message; or,
[0188] The second message is a discovery request message, and the third message is a discovery response message.
[0189] In some embodiments, the second message is a direct communication request message; or,
[0190] The second message is a discovery request message; or,
[0191] The second message is a direct communication acceptance message; or,
[0192] The second message is a discovery response message.
[0193] In some embodiments, when the second message is a direct communication request message, the second message is sent by the relay terminal according to the link layer identifier of the second terminal.
[0194] In some embodiments, the second message is sent by the relay terminal via broadcasting.
[0195] In some embodiments, the second message includes information of the terminal to be discovered; and / or,
[0196] The third message includes information of the second terminal.
[0197] In some embodiments, the information of the terminal to be discovered includes at least one of the following:
[0198] Service information supported by the terminal to be discovered, user identification of the terminal to be discovered at the application layer, and user identification of the first terminal at the application layer.
[0199] In some embodiments, the information of the second terminal includes at least one of the following:
[0200] Service information supported by the second terminal, and the user identifier of the second terminal at the application layer.
[0201] In some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip.
[0202] It should be understood that the terminal device 700 according to the embodiment of the present application may correspond to the second terminal in the embodiment of the method of the present application, and the above and other operations and / or functions of each unit in the terminal device 700 are respectively to achieve Figure 10 For the sake of brevity, the corresponding process of the second terminal in the method 400 is not repeated here.
[0203] Figure 14 It is a schematic structural diagram of a communication device 800 provided in an embodiment of the present application. Figure 14The communication device 800 shown includes a processor 810, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0204] In some embodiments, as Figure 14 As shown, the communication device 800 may further include a memory 820. The processor 810 may call and execute a computer program from the memory 820 to implement the method in the embodiment of the present application.
[0205] The memory 820 may be a separate device independent of the processor 810 , or may be integrated into the processor 810 .
[0206] In some embodiments, as Figure 14 As shown, the communication device 800 may further include a transceiver 830 , and the processor 810 may control the transceiver 830 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.
[0207] The transceiver 830 may include a transmitter and a receiver. The transceiver 830 may further include an antenna, and the number of antennas may be one or more.
[0208] In some embodiments, the communication device 800 may specifically be a relay terminal in the embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the relay terminal in each method in the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0209] In some embodiments, the communication device 800 may specifically be the first terminal of the embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the first terminal in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0210] In some embodiments, the communication device 800 may specifically be the second terminal of the embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the second terminal in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0211] Figure 15 It is a schematic structural diagram of the device of an embodiment of the present application. Figure 15 The device 900 shown includes a processor 910, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0212] In some embodiments, as Figure 15As shown, the apparatus 900 may further include a memory 920. The processor 910 may call and execute a computer program from the memory 920 to implement the method in the embodiment of the present application.
[0213] The memory 920 may be a separate device independent of the processor 910 , or may be integrated into the processor 910 .
[0214] In some embodiments, the apparatus 900 may further include an input interface 930. The processor 910 may control the input interface 930 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0215] In some embodiments, the apparatus 900 may further include an output interface 940. The processor 910 may control the output interface 940 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0216] In some embodiments, the device can be applied to the relay terminal in the embodiments of the present application, and the device can implement the corresponding processes implemented by the relay terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0217] In some embodiments, the device can be applied to the first terminal in the embodiments of the present application, and the device can implement the corresponding processes implemented by the first terminal in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0218] In some embodiments, the device can be applied to the second terminal in the embodiments of the present application, and the device can implement the corresponding processes implemented by the second terminal in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0219] In some embodiments, the device mentioned in the embodiments of the present application may also be a chip, such as a system-on-chip, a system-on-chip, a chip system, or a system-on-chip chip.
[0220] Figure 16 1 is a schematic block diagram of a communication system 1000 provided in an embodiment of the present application. Figure 16 As shown, the communication system 1000 includes a first terminal 1010 , a relay terminal 1020 and a second terminal 1030 .
[0221] Among them, the first terminal 1010 can be used to implement the corresponding functions implemented by the first terminal in the above method, the relay terminal 1020 can be used to implement the corresponding functions implemented by the relay terminal in the above method, and the second terminal 1030 can be used to implement the corresponding functions implemented by the second terminal in the above method. For the sake of brevity, they will not be repeated here.
[0222] It should be understood that the processor of the embodiments of the present application may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by hardware integrated logic circuits in the processor or software instructions. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented as a hardware decoding processor, or can be implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0223] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0224] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0225] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.
[0226] In some embodiments, the computer-readable storage medium can be applied to the relay terminal in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the relay terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0227] In some embodiments, the computer-readable storage medium can be applied to the first terminal in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the first terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0228] In some embodiments, the computer-readable storage medium can be applied to the second terminal in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the second terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0229] An embodiment of the present application also provides a computer program product, including computer program instructions.
[0230] In some embodiments, the computer program product can be applied to the relay terminal in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the relay terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0231] In some embodiments, the computer program product can be applied to the first terminal in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the first terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0232] In some embodiments, the computer program product can be applied to the second terminal in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the second terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0233] The embodiment of the present application also provides a computer program.
[0234] In some embodiments, the computer program can be applied to the relay terminal in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the relay terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0235] In some embodiments, the computer program can be applied to the first terminal in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the first terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0236] In some embodiments, the computer program can be applied to the second terminal in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the second terminal in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0237] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0238] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0239] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0240] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0241] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0242] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. In view of this understanding, the technical solution of the present application, 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. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0243] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A wireless communication method, characterized in that: include: The relay terminal receives a first message sent by the first terminal, where the first message includes a link layer identifier of the second terminal, and the first message is a direct communication request message; The relay terminal sends a second message to the second terminal according to the link layer identifier of the second terminal in the first message, where the second message is the direct communication request message; The link layer identifier of the second terminal is a layer 2 identifier.
2. The method according to claim 1, wherein The method further comprises: The relay terminal receives a third message sent by the second terminal, where the third message is a direct communication acceptance message, the third message includes a link layer identifier of the first terminal, and a data packet header of the third message carries the link layer identifier of the second terminal; The relay terminal sends a fourth message to the first terminal, where the fourth message is a direct communication acceptance message. The fourth message includes the link layer identifier of the second terminal, and the data packet header of the fourth message carries the link layer identifier of the relay terminal.
3. A wireless communication method, characterized in that: include: The first terminal sends a first message to the relay terminal, where the first message includes a link layer identifier of the second terminal and is a direct communication request message; The first message is used by the relay terminal to send a second message to the second terminal according to the link layer identifier of the second terminal, the second message is the direct communication request message, and the link layer identifier of the second terminal is a layer 2 identifier.
4. The method according to claim 3, wherein After the first terminal sends the first message to the relay terminal, the method further includes: The first terminal receives a fourth message sent by the relay terminal, where the fourth message is a direct communication acceptance message. The fourth message includes a link layer identifier of the second terminal, and a data packet header of the fourth message carries the link layer identifier of the relay terminal.
5. A wireless communication method, characterized in that: include: The second terminal receives a second message sent by the relay terminal according to the link layer identifier of the second terminal, where the second message is a direct communication request message; The link layer identifier of the second terminal is carried in a first message sent by the first terminal to the relay terminal, the first message is the direct communication request message, and the link layer identifier of the second terminal is a layer 2 identifier.
6. The method according to claim 5, wherein The method further comprises: The second terminal sends a third message to the relay terminal, where the third message is a direct communication acceptance message. The third message includes the link layer identifier of the first terminal, and the data packet header of the third message carries the link layer identifier of the second terminal.
7. A wireless communication device, characterized in that: include: a communication unit, configured to receive a first message sent by a first terminal, where the first message includes a link layer identifier of a second terminal, and the first message is a direct communication request message; The communication unit is further configured to send a second message to the second terminal according to the link layer identifier of the second terminal in the first message, where the second message is the direct communication request message; The link layer identifier of the second terminal is a layer 2 identifier.
8. The device according to claim 7, wherein The communication unit is configured to: receiving a third message sent by the second terminal, where the third message is a direct communication acceptance message, the third message includes a link layer identifier of the first terminal, and a data packet header of the third message carries the link layer identifier of the second terminal; A fourth message is sent to the first terminal, where the fourth message is a direct communication acceptance message, the fourth message includes a link layer identifier of the second terminal, and a data packet header of the fourth message carries a link layer identifier of the device.
9. A wireless communication device, characterized in that: include: a communication unit, configured to send a first message to the relay terminal, where the first message includes a link layer identifier of the second terminal, and the first message is a direct communication request message; The first message is used by the relay terminal to send a second message to the second terminal according to the link layer identifier of the second terminal, the second message is the direct communication request message, and the link layer identifier of the second terminal is a layer 2 identifier.
10. The device according to claim 9, wherein The communication unit is configured to: Receive a fourth message sent by the relay terminal, where the fourth message is a direct communication acceptance message, the fourth message includes a link layer identifier of the second terminal, and a data packet header of the fourth message carries the link layer identifier of the relay terminal.
11. A wireless communication device, characterized in that: include: A communication unit, configured to receive a second message sent by the relay terminal according to the link layer identifier of the device, where the second message is a direct communication request message; The link layer identifier of the device is carried in a first message sent by the first terminal to the relay terminal, the first message is the direct communication request message, and the link layer identifier of the device is a layer 2 identifier.
12. The device according to claim 11, wherein The communication unit is configured to: A third message is sent to the relay terminal, where the third message is a direct communication acceptance message, the third message includes a link layer identifier of the first terminal, and a data packet header of the third message carries a link layer identifier of the device.
13. A relay device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being configured to call and run the computer program stored in the memory to perform the method according to claim 1 or 2.
14. A first terminal, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being configured to call and run the computer program stored in the memory to perform the method according to claim 3 or 4.
15. A second terminal, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being configured to call and run the computer program stored in the memory to perform the method according to claim 5 or 6.
Citation Information
Patent Citations
Relay transmission method and device
CN108521851A