Communication method and apparatus, and device
Patent Information
- Application Number
- MYPI2025000460
- Authority / Receiving Office
- MY · MY
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-08-04
- Filing Date
- 2023-05-30
- Publication Date
- 2024-02-04
AI Technical Summary
The relay device selected by the terminal device during the movement may be inappropriate, resulting in a decrease in communication quality or interruption. It is difficult for existing technology to effectively solve this problem.
The indication information is obtained through the first relay device to determine a set of terminal devices that can communicate with it, and accurate indication information is sent to the terminal device to ensure that an appropriate relay device is selected for communication.
It improves the quality and efficiency of communication between terminal devices, reduces signaling overhead, saves transmission resources, and ensures communication stability.
Smart Images

Figure PI2025000460_DRAWING_001 
Figure PI2025000460_DRAWING_002 
Figure PI2025000460_DRAWING_003
Abstract
Description
Communication method, device and equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on August 4, 2022, with application number 202210933680.7 and application name “A communication method, device and equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of communications, and in particular to a communication method, apparatus, and device. Background Art
[0004] In a communication system, devices can communicate with each other. For example, they can communicate via sidelinks. Devices can communicate directly with each other, or they can communicate via relay devices to enhance sidelink coverage.
[0005] Currently, to enable communication between terminal devices via relay devices, relay devices periodically broadcast a list of terminal devices with which they can communicate. Terminal devices can then select an appropriate relay device based on this list. For example, terminal device 1 receives terminal device list 1 from relay device 1, which includes terminal devices 2 and 3. When terminal device 1 needs to communicate with terminal device 2, it can communicate with terminal device 2 via relay device 1.
[0006] However, due to reasons such as the mobility of the terminal devices, the relay device selected by the terminal device according to the list may not be a suitable relay device, resulting in poor communication quality between the terminal devices or even communication interruption.
[0007] Summary of the Invention
[0008] The present application provides a communication method, apparatus, and device for improving the communication quality between terminal devices.
[0009] In a first aspect, embodiments of the present application provide a communication method. The method includes: a first relay device may obtain first indication information indicating a first set, where the first set includes at least one terminal device. After determining whether each terminal device in the first set can communicate with the first relay device, the first relay device may send second indication information indicating a second set to the first terminal device, where the second set includes the terminal devices in the first set that can communicate with the first relay device.
[0010] With this method, after checking whether all terminal devices in the first set can communicate with the first relay device, the first relay device sends second indication information to indicate the second set containing terminal devices that can communicate with the first relay device, thereby improving the accuracy of the information sent by the first relay device. In this way, the first terminal device can select the first relay device for inter-terminal device communication based on the accurate second indication information, thereby improving the communication quality between the terminal devices.
[0011] In one possible design, the first relay device can determine whether each terminal device in the first set can communicate with the first relay device by following these steps: The second terminal device is any terminal device in the first set. If the first message is received from the second terminal device, the first relay device can determine that the second terminal device can communicate with the first relay device. If the first message is not received from the second terminal device, the first relay device can determine that the second terminal device cannot communicate with the first relay device. This design makes it easy to determine whether each terminal device in the first set can communicate with the first relay device, making it easy to implement.
[0012] In one possible design, the first message is at least one of the following:
[0013] A notification message sent by the second terminal device, where the notification message is used by a communication device other than the second terminal device to discover the second terminal device;
[0014] The response message sent by the second terminal device is used to respond to the request message or unicast connection establishment request sent by the first relay device, the request message is used for communication devices other than the first relay device to discover the first relay device, and the unicast connection establishment request is used to request to establish a connection between the first relay device and the second terminal device.
[0015] This design provides multiple implementation methods for the first message and is relatively flexible.
[0016] In one possible design, after determining whether each terminal device in the first set can communicate with the first relay device, the first relay device sends second indication information indicating the second set to the first terminal device within a first time period. With this design, the first relay device can send indication information indicating the second set to the first terminal device within the first time period after determining that communication with each terminal device in the second set is possible, thereby improving the accuracy of the indication information of the second set.
[0017] In one possible design, each terminal device in the second set has the capability to communicate with the terminal device via the relay device. With this design, the first relay device can further restrict the terminal devices in the second set, thereby reducing signaling overhead and conserving transmission resources. Furthermore, each terminal device in the second set has the capability to communicate with the terminal device via the relay device, thereby avoiding the need for the first terminal device to request communication via the relay device with a terminal device that does not have this capability, thereby improving communication quality and efficiency.
[0018] In one possible design, before sending second indication information indicating the second set to the first terminal device, the first relay device may obtain capability indication information for each terminal device in the first set. The capability indication information for each terminal device in the first set is used to indicate whether each terminal device has the capability to communicate with the terminal device through the relay device. This design allows the first relay device to promptly learn whether a terminal device has the capability to communicate with the terminal device through the relay device, making implementation easy.
[0019] In one possible design, the signal quality between each terminal device in the second set and the first relay device is greater than or equal to a first threshold. With this design, the first relay device can further restrict the terminal devices in the second set, thereby reducing signaling overhead and conserving transmission resources. Furthermore, the signal quality between each terminal device in the second set and the first relay device is greater than or equal to the first threshold. This ensures communication quality when the first terminal device communicates with other terminal devices through the first relay device.
[0020] In one possible design, the signal quality between each terminal device in the second set and the first relay device is greater than or equal to the first threshold and less than the second threshold, and the second threshold is greater than the first threshold. Through this design, the first relay device can further limit the terminal devices in the second set, thereby reducing signaling overhead and saving transmission resources. In addition, in the second set, the signal quality between each terminal device and the first relay device is greater than or equal to the first threshold. In this way, when the first terminal device communicates with other terminal devices through the first relay device, the communication quality can be guaranteed. Moreover, in the second set, the signal quality between each terminal device and the first relay device is less than the second threshold, so that terminal devices that are closer to the first relay device can be eliminated, thereby improving the communication efficiency between terminal devices.
[0021] In one possible design, after determining whether each terminal device in the first set can communicate with the first relay device, the first relay device may further transmit information indicating the signal quality between each terminal device in the second set and the first relay device. With this design, the first relay device may transmit information indicating the signal quality between each terminal device in the second set and the first relay device. Thus, when the terminal devices in the second set select a relay device for data transmission, they may select one based on the signal quality between the first relay device and the destination terminal device, thereby improving the communication quality between the terminal devices.
[0022] In one possible design, the first indication information includes indication information of each terminal device in the first set, and the second indication information includes indication information of each terminal device in the second set. This design is easy to implement.
[0023] In a second aspect, an embodiment of the present application provides a communication method. The method includes: a first terminal device determines whether a direct link can be established between the first terminal device and a third terminal device. If it is determined that a direct link cannot be established between the first terminal device and the third terminal device, the first terminal device may select a first relay device from M relay devices that can communicate with the third terminal device based on the first information, and send a service data packet to the first relay device to be sent to the third terminal device. The first information may include: the signal quality between each of the M relay devices and the first terminal device. M is a positive integer.
[0024] With this method, after the first terminal device determines that a direct link cannot be established between the first terminal device and the third terminal device, it selects a relay device to transmit service data packets. In other words, the first terminal device will prioritize the direct link between the first terminal device and the third terminal device for service data packet transmission. This reduces the transmission latency of service data packets.
[0025] In addition, the first terminal device can select the first relay device based on the signal quality between each relay device in the M relay devices and the first terminal device, and send service data packets to the third relay device through the first relay device, thereby improving the communication quality between the terminal devices.
[0026] In one possible design, if it is determined that a direct link can be established between the first terminal device and the third terminal device, the first terminal device may send a service data packet to the third terminal device via the direct link between the first and third terminal devices. With this design, the first terminal device may preferentially select the direct link between the first and third terminal devices for transmitting service data packets, thereby reducing the transmission latency of the service data packets.
[0027] In one possible design, a first terminal device may determine whether a direct link can be established between the first terminal device and a third terminal device by following these steps: when the signal quality of the second message from the third terminal device is less than a fifth threshold, the first terminal device may determine that a direct link cannot be established between the first terminal device and the third terminal device; and when the signal quality of the second message from the third terminal device is greater than or equal to the fifth threshold, the first terminal device may determine that a direct link can be established between the first terminal device and the third terminal device. This design is easy to implement.
[0028] In one possible design, the signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold; and / or the first relay device is the relay device with the highest signal quality between the first terminal device and the M relay devices. With this design, the first terminal device can select the first relay device whose signal quality meets the above conditions to transmit the service data packet based on the signal quality between the relay device and the first terminal device, thereby ensuring communication quality.
[0029] In one possible design, the first information further includes a signal quality between each of the M relay devices and the third terminal device. The first relay device satisfies one of the following conditions:
[0030] The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold, and the signal quality between the first relay device and the third terminal device is greater than or equal to a fourth threshold;
[0031] The first relay device is a relay device having the highest signal quality with the first terminal device among the M relay devices, and the signal quality between the first relay device and the third terminal device is greater than or equal to a fourth threshold;
[0032] The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold, and the first relay device is the relay device with the highest signal quality between the first relay device and the third terminal device among the M relay devices;
[0033] The first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices, and the first relay device is the relay device with the highest signal quality between it and the third terminal device among the M relay devices.
[0034] Through this design, the first terminal device can select the first relay device for transmitting service data packets based on the signal quality between the relay device and the first terminal device and the signal quality between the relay device and the third terminal device, thereby ensuring communication quality.
[0035] In one possible design, before selecting a first relay device from M relay devices capable of communicating with a third terminal device based on the first information, the first terminal device may receive signal quality indication information from each of the M relay devices. The signal quality indication information from each of the M relay devices is used to indicate the signal quality between each relay device and the third terminal device. This design allows the first terminal device to determine the signal quality between each relay device and the third terminal device, facilitating implementation.
[0036] In one possible design, the first information also includes the connection status between each of the M relay devices and the first terminal device, where a unicast connection has been established between the first relay device and the first terminal device. With this design, the first terminal device preferentially selects the first relay device to which a unicast connection has been established for transmitting service data packets. This eliminates the need for the first terminal device to establish a unicast connection, thereby reducing transmission latency.
[0037] In one possible design, before selecting a first relay device from M relay devices capable of communicating with a third terminal device based on the first information, the first terminal device may receive indication information from each of the N relay devices. The indication information from each of the N relay devices is used to indicate at least one terminal device capable of communicating with each relay device, where N is a positive integer. The first terminal device may then determine, based on the indication information from the N relay devices, the M relay devices among the N relay devices capable of communicating with the third terminal device. With this design, the first terminal device can conveniently determine the M relay devices capable of communicating with the third terminal device.
[0038] In one possible design, when the first terminal device fails to select the first relay device from the M relay devices based on the first information, the first terminal device may send a third message to the third terminal device, where the third message is used to request the establishment of a direct link between the first terminal device and the third terminal device. With this design, when the direct link between the first terminal device and the third terminal device does not meet the signal quality requirements, and the first terminal device also fails to find the first relay device based on the first information, that is, the first terminal device also fails to find a non-direct path that meets the signal quality requirements, the first terminal device may communicate with the third terminal device via the direct link, thereby reducing the complexity of communication and saving signaling overhead.
[0039] In one possible design, when the connection between the first terminal device and the second relay device is interrupted, or when the connection between the third terminal device and the second relay device is interrupted, the first terminal device may select the first relay device from M relay devices capable of communicating with the third terminal device based on the first information. In this way, during the reselection process, the first terminal device may select a relay device based on signal quality, thereby ensuring communication quality when transmitting service data packets through the relay device.
[0040] In one possible design, before selecting a first relay device from M relay devices capable of communicating with a third terminal device based on the first information, if the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, the first terminal device may release the first connection between the first terminal device and the third terminal device, where the first connection is an end-to-end connection between the first terminal device and the third terminal device. In this way, when the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, the first terminal device or the third terminal device may promptly release the connection between the first terminal device and the third terminal device, thereby avoiding unnecessary occupation of resources.
[0041] In a third aspect, an embodiment of the present application provides a communication method. The method includes: after the first relay device sends the third indication information to the first terminal device, it can receive a service data packet of the target service from the first terminal device. The third indication information is used to indicate at least one service, and the service data packet of each service in the at least one service is a service data packet that at least one terminal device that can communicate with the first relay device expects to receive; at least one service includes a target service. Then, the first relay device can send the service data packet of the target service to the third terminal device, and the third terminal device is a terminal device that expects to receive the service data packet of the target service among the P terminal devices that can communicate with the first relay device, and P is a positive integer.
[0042] Through this method, a first relay device may transmit third indication information indicating at least one service, where each service data packet of the at least one service is a service data packet that at least one terminal device capable of communicating with the first relay device expects to receive. When the first terminal device is about to transmit a service data packet of a target service, it may, based on the third indication information, locate a suitable relay device to forward the service data packet of the target service to a terminal device that expects to receive the service data packet of the target service, thereby ensuring the correct transmission of the service data packet.
[0043] In one possible design, before receiving a service data packet of a target service from a first terminal device, the first relay device may receive a first request from the first terminal device, the first request being used to request establishment of a unicast connection between the first relay device and the first terminal device, and the first request containing indication information of the target service. The first relay device may determine a third terminal device from P terminal devices based on the indication information of the target service, and send a second request to the third terminal device, the second request being used to request establishment of a unicast connection between the first relay device and the third terminal device. After receiving the first request, the first relay device may also receive a third request from the first terminal device, and send a third request to the third terminal device, the third request being used to request establishment of an end-to-end unicast connection between the first terminal device and the third terminal device. Through this design, an end-to-end unicast connection may be established between the first terminal device and the third terminal device, so that service data packets may be transmitted through the unicast connection.
[0044] In one possible design, before sending the third indication information to the first terminal device, the first relay device may receive indication information from each of the P terminal devices. The indication information from each of the P terminal devices may be used to indicate Q services, where the service data packets of each of the Q services are the service data packets that each terminal device expects to receive, and Q is a positive integer. With this design, the first terminal device can learn which service data packets of each of the P terminal devices communicating with the first relay device expect to receive.
[0045] In a fourth aspect, an embodiment of the present application provides a communication method. The method includes: a first terminal device can respectively receive third indication information from each of the R relay devices. The third indication information from each of the R relay devices is used to indicate at least one service, and the service data packet of each service in the at least one service is a service data packet that at least one terminal device that can communicate with each relay device expects to receive. R is a positive integer. Then, the first terminal device can select a first relay device from the R relay devices based on the third indication information from each of the R relay devices, and send a service data packet of the target service to the first relay device. The first relay device can communicate with a third terminal device that expects to receive the service data packet of the target service.
[0046] Through this method, each first relay device among the P terminal devices can transmit third indication information indicating at least one service, where the service data packet of each service in the at least one service is a service data packet that at least one terminal device capable of communicating with each relay device expects to receive. When the first terminal device is about to transmit a service data packet of a target service, it can, based on the third indication information, locate a suitable relay device to forward the service data packet of the target service to the terminal device that expects to receive the service data packet of the target service, thereby ensuring the correct transmission of the service data packet.
[0047] In one possible design, before sending a service data packet for a target service to a first relay device, a first terminal device sends a first request and a third request to the first relay device. The first request is used to request the establishment of a unicast connection between the first relay device and the first terminal device, and the first request includes information indicating the target service. The third request is used to request the establishment of an end-to-end unicast connection between the first terminal device and the third terminal device. With this design, an end-to-end unicast connection can be established between the first terminal device and the third terminal device, allowing the transmission of service data packets over this unicast connection.
[0048] In one possible design, the R relay devices also include a fourth relay device, and the fourth relay device can communicate with the third terminal device. The method may also include: the first terminal device receives a third response from the first relay device and a fourth response from the fourth relay device. The third response is used to indicate that a second connection between the first terminal device and the third terminal device is established through the first relay device, and the fourth response is used to indicate that a third connection between the first terminal device and the third terminal device is established through the fourth relay device. When the signal quality of the second connection is greater than or equal to the signal quality of the third connection, the first terminal device may send a service data packet of the target service to the first relay device. Through this design, there are multiple non-direct paths between the first terminal device and the third terminal device, each direct path corresponds to an end-to-end connection, and the first terminal device can select a path to communicate with the third terminal device, thereby avoiding waste of resources.
[0049] Corresponding to any of the communication methods of aspects 1 to 4, the present application further provides a communication device. The communication device can be any device that transmits data wirelessly. For example, a communication chip, a terminal device, or a relay device. In certain communication processes, the communication device can function as the aforementioned relay device or a communication chip that can be used for a relay device; in certain communication processes, the communication device can function as the aforementioned terminal device or a communication chip that can be used for a terminal device.
[0050] In a fifth aspect, an embodiment of the present application provides a communication device, which is the above-mentioned relay device (such as the first relay device) or terminal device (such as the first terminal device). The device may include a communication unit and a processing unit to perform the method provided in any of the above aspects. The communication unit is used to perform functions related to sending and receiving.
[0051] Optionally, the communication unit includes a receiving unit and a transmitting unit. In one design, the communication device is a communication chip, and the communication unit can be an input / output circuit or port of the communication chip. In another design, the communication unit can be a transmitter and a receiver, or the communication unit is a transmitter and a receiver.
[0052] In a sixth aspect, an embodiment of the present application provides a communication device, which is the above-mentioned relay device (such as the first relay device) or terminal device (such as the first terminal device). The device may include a processor and a communication module. Optionally, it also includes a memory, which is used to store a computer program or instruction, and the processor is used to call and run the computer program or instruction from the memory. When the processor executes the computer program or instruction in the memory, the communication device performs the method provided in any of the above aspects.
[0053] Optionally, there are one or more processors and one or more memories.
[0054] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0055] Optionally, the communication module may include a transmitter (emitter) and a receiver (receiver).
[0056] In a seventh aspect, an embodiment of the present application provides a system, which includes the above-mentioned relay device (such as the first relay device) or terminal device (such as the first terminal device).
[0057] In an eighth aspect, an embodiment of the present application further provides a computer program, which, when executed on a computer, enables the computer to execute the method provided in any of the above aspects.
[0058] In a ninth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in any one of the above aspects.
[0059] In a tenth aspect, an embodiment of the present application provides a chip system, wherein the chip is used to read a computer program stored in a memory and execute the method provided in any of the above aspects.
[0060] In an eleventh aspect, an embodiment of the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method provided in any of the above aspects. In one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.
[0061] The technical effects that can be achieved in any of the fifth to eleventh aspects mentioned above can refer to the description of the technical effects that can be achieved in any possible design in any of the first to fourth aspects mentioned above, and the repetitions will not be discussed. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] FIG1A is a schematic diagram of a communication system applicable to an embodiment of the present application;
[0063] FIG1B is a schematic diagram of another communication system applicable to an embodiment of the present application;
[0064] FIG1C is a schematic diagram of a process of communication between two terminal devices via a relay device;
[0065] FIG2 is a flow chart of a first communication method provided in an embodiment of the present application;
[0066] FIG3 is a flow chart of a second communication method provided in an embodiment of the present application;
[0067] FIG4 is a flow chart of a third communication method provided in an embodiment of the present application;
[0068] FIG5 is a flow chart of a fourth communication method provided in an embodiment of the present application;
[0069] FIG6 is a schematic diagram of a flow chart of a fifth communication method provided in an embodiment of the present application;
[0070] FIG7 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
[0071] FIG8 is a schematic structural diagram of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] This application provides a communication method, apparatus, and device for improving the communication quality between terminal devices. The method, apparatus, and device are based on the same technical concept. Since the method, apparatus, and device solve similar problems, the implementation of the apparatus, device, and method can refer to each other, and any repetitions will not be repeated.
[0073] Below, some terms in this application are explained to facilitate understanding by those skilled in the art.
[0074] 1) Communication equipment generally refers to equipment with communication functions. For example, the communication equipment may be, but is not limited to, terminal equipment, network equipment, core network (CN) equipment, etc.
[0075] 2) Signal quality, which may be signal strength. Parameters used to reflect or indicate signal strength may include, but are not limited to, at least one of the following: reference signal receiving power (RSRP), reference signal receiving quality (RSRQ), received signal strength indication (RSSI), and signal to interference plus noise ratio (SINR).
[0076] In the embodiments of the present application, the number of nouns, unless otherwise specified, means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items.
[0077] In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and should not be understood as indicating or implying relative importance, nor should they be understood as indicating or implying order.
[0078] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0079] Figure 1A shows a schematic diagram of a communication system applicable to an embodiment of the present application. As shown in Figure 1A, the communication system includes: a network device and terminal devices (for example, terminal device 1 and terminal device 2).
[0080] Terminal devices can communicate with network devices via wireless interfaces (such as Uu ports). Terminal devices can communicate with each other through network devices or directly, such as through the PC5 interface between them. The link between terminal devices can be called a sidelink, edge link, side link, PC5 interface link, or inter-terminal device link.
[0081] The terminal device in the embodiment of the present application may also be referred to as user equipment (UE), mobile station (MS), mobile terminal (MT), etc., and is a device with wireless transceiver functions. For example, the terminal device may be: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.), an in-vehicle device (such as a car, a bicycle, an electric car, an airplane, a ship, a train, a high-speed train, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a smart home device (such as a refrigerator, a television, an air conditioner, an electric meter, etc.), an intelligent robot, workshop equipment, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, an aerial device (such as an intelligent robot, a hot air balloon, a drone, an airplane), etc.
[0082] The network device in the embodiment of the present application is a device in the network for accessing a terminal device to a wireless network. The network device may be a node in a radio access network, which may also be referred to as a base station, or may also be referred to as a radio access network (RAN) node (or device). For example, the network device may include an evolved base station (NodeB or eNB or e-NodeB, evolutionary Node B) in a long term evolution (LTE) system or an evolved LTE system (LTE-Advanced, LTE-A), or may also include a next generation node B (next generation node B, gNB) in a fifth generation (5G) new radio (NR) system, or may also include a transmission reception point (TRP), a home base station (e.g., home evolved NodeB, or home Node B, HNB), a base band unit (BBU), or a WiFi access point (AP), etc.
[0083] FIG1B is a schematic diagram of another communication system applicable to an embodiment of the present application. As shown in FIG1B , the communication system includes: a source terminal device (source UE), a relay device (also known as a terminal device to terminal device relay device, UE-to-UE relay), and a target terminal device (target UE).
[0084] In the communication system shown in FIG1B , in a sidelink UE-to-UE relay scenario, a source terminal device can communicate with a destination terminal device via a relay device on a sidelink. Thus, sidelink communication between terminal devices may include sidelink communication between the source terminal device and the relay device, and sidelink communication between the relay device and the destination terminal device.
[0085] The communication system shown in Figures 1A and 1B does not constitute a limitation on the communication system to which the embodiments of the present application can be applied. The communication method provided in the embodiments of the present application can be applied to communication systems of various standards, such as: long term evolution (LTE) communication system, 5G communication system, sixth generation (6G) communication system and future communication system, vehicle to everything (V2X), long term evolution - vehicle network (LTE-vehicle, LTE-V), vehicle to vehicle (V2V), vehicle network, machine type communication (MTC), Internet of Things (IoT), long term evolution - machine to machine (LTE-machine to machine, LTE-M), machine to machine (M2M), Internet of Things, etc.
[0086] In the present application, the first terminal device and the third terminal device may be terminal device 1 and terminal device 2, respectively, in the communication system shown in FIG1A , terminal device 2 and terminal device 1, respectively, in the communication system shown in FIG1A , or may be a source terminal device and a destination terminal device, respectively, in the communication system shown in FIG1B . The first relay device may be a relay device in the communication system shown in FIG1B .
[0087] Currently, the NR standard supports three types of sidelink communication modes: broadcast, multicast, and unicast. For unicast communication, two terminal devices can be allowed to communicate unicast via a direct link between them, for example, the unicast communication on the sidelink between terminal devices 1 and 2 shown in Figure 1A. It can also be allowed to communicate unicast via a relay device, for example, the unicast communication on the sidelink between the source terminal device and the destination terminal device via the relay device in Figure 1B.
[0088] FIG1C shows a method for unicast communication on a side link between a source terminal device and a destination terminal device via a relay device. The method includes:
[0089] S101: The relay device discovers a terminal device adjacent to the relay device.
[0090] Among them, the adjacent terminal device of the relay device should be a terminal device that can communicate directly with the relay device.
[0091] A relay device can discover neighboring end devices in one of the following ways:
[0092] Method 1: If the relay device receives a first announcement message from terminal device A, the relay device can discover terminal device A. In other words, terminal device A can be a neighboring terminal device of the relay device. The first announcement message is used for other communication devices to discover terminal device A.
[0093] Method 2: If the relay device receives a response message from terminal device B after sending a solicitation message carrying terminal device B's information, the relay device can discover terminal device B. In other words, terminal device B may be a neighboring terminal device of the relay device. The solicitation message is used by the relay device to discover other communication devices.
[0094] The first notification message in the first method and the request message and response message in the second method may also be collectively referred to as discovery messages.
[0095] Method 3: The terminal device has a direct unicast connection with the relay device.
[0096] Optionally, the neighboring terminal devices of the relay device may include a source terminal device and a destination terminal device.
[0097] S102: The relay device sends a second notification message.
[0098] Optionally, the relay device may broadcast the second notification message. In this way, the terminal devices adjacent to the relay device may receive the second notification message. For example, the source terminal device and the destination terminal device in FIG1C may receive the second notification message.
[0099] The relay device may periodically send the second notification message.
[0100] The second notification message may include: the type of discovery message, indication information of the relay device, a relay service code (RSC), and indication information of the neighboring terminal device. The indication information of the relay device may be a user information identifier (User info ID) of the relay device, such as an application layer identifier (APP ID) of the relay device. The indication information of the neighboring terminal device may be a user information identifier of the neighboring terminal device, such as an application layer identifier of the neighboring terminal device.
[0101] S103: The source terminal device sends a first unicast connection establishment request (direct communication request, DCR) to the relay device according to the second notification message. The first unicast connection establishment request carries the indication information of the relay device. The first unicast connection establishment request is used to request the establishment of a unicast connection between the source terminal device and the relay device. The indication information of the relay device may include the application layer identifier of the relay device. When the source terminal device wants to send a service data packet to the destination terminal device, the source terminal device may determine whether the indication information of the neighboring terminal device in the second notification message contains the indication information of the destination terminal device. If the indication information of the neighboring terminal device in the second notification message contains the indication information of the destination terminal device, the source terminal device determines that the relay device can communicate with the destination terminal device, and sends a first unicast connection establishment request to the relay device.
[0102] S104: The relay device sends a first unicast connection establishment accept (direct communication accept) message to the source terminal device.
[0103] The first unicast connection establishment acceptance message is a response message to the first unicast connection establishment request, and is used to indicate that the unicast connection between the source terminal device and the relay device has been established.
[0104] S105: The source terminal device sends indication information of the destination terminal device to the relay device.
[0105] The indication information of the destination terminal device may include the application layer identifier of the destination terminal device.
[0106] S106: The relay device sends a second unicast connection establishment request to the destination terminal device.
[0107] The second unicast connection establishment request is used to request to establish a unicast connection between the relay device and the destination terminal device.
[0108] S107: The destination terminal device sends a second unicast connection establishment acceptance message to the relay device.
[0109] The second unicast connection establishment acceptance message is a response message to the second unicast connection establishment request, and is used to indicate that the unicast connection between the relay device and the destination terminal device has been established.
[0110] S108: The source terminal device sends a third unicast connection establishment request to the destination terminal device through the relay device.
[0111] The third unicast connection establishment request carries indication information of the destination terminal device, and the third unicast connection establishment request is used to request establishment of an end-to-end unicast connection between the source terminal device and the destination terminal device.
[0112] Optionally, S108 may include steps P1-P2:
[0113] P1: The source terminal device sends a third unicast connection establishment request to the relay device;
[0114] After S104 , the source terminal device may execute step P1 .
[0115] P2: The relay device sends a third unicast connection establishment request to the destination terminal device.
[0116] Optionally, after S107 , the relay device may execute step P2 .
[0117] S109: The destination terminal device sends a third unicast connection establishment accept message to the source terminal device through the relay device.
[0118] The third unicast connection establishment acceptance message is a response message to the third unicast connection establishment request, and is used to indicate that the unicast connection between the source terminal device and the destination terminal device has been established.
[0119] Through the above method, the source terminal device establishes a connection with the destination terminal device through the relay device, and can thus communicate with the destination terminal device through the relay device.
[0120] However, the method shown in FIG1C has at least the following problems:
[0121] Question 1: In S102, the indication information of the neighboring terminal devices sent by the relay device may be inaccurate. Specifically, after the relay device discovers the neighboring terminal device, it may take some time before it sends the second notification message. For example, when the relay device periodically sends the second notification message, the relay device sends the second notification message in the first period and then sends the second notification message again in the second period. Since the terminal devices are mobile, when the relay device is about to send the second notification message, some terminal devices may have moved out of the communication range of the relay device. In this way, the indication information of the neighboring terminal devices sent by the relay device may include terminal devices that have moved out of the communication range of the relay device. If the source terminal device selects a relay device based on the indication information of the neighboring terminal device, it may select an inappropriate relay device, resulting in poor communication quality between terminal devices or even communication interruption. For example, the neighboring terminal devices initially determined by relay device A include: a source terminal device and a destination terminal device. If the destination terminal device has moved out of the communication range of relay device A when relay device A sends the second notification message, relay device A will still send the second notification message containing the destination terminal device's indication information according to the method shown in FIG1C. If the source terminal device selects relay device A to send a service data packet to the destination terminal device, communication will be interrupted.
[0122] Problem 2: In this method, the source terminal device selects a relay device based solely on the instructions from the neighboring terminal devices, that is, based solely on whether the relay device can communicate with the destination terminal device. This makes it impossible to guarantee the quality of communication through the relay device.
[0123] To solve the above problem 1, the present invention provides a communication method, which can be applied to the communication system shown in Figures 1A and 1B. The flow of the method will be described in detail below with reference to the flowchart shown in Figure 2.
[0124] S201: A first relay device obtains first indication information indicating a first set.
[0125] Optionally, the first relay device may obtain first indication information for indicating the first set when broadcasting indication information containing neighboring terminal devices.
[0126] The first set may include at least one terminal device, for example, the first combination may include at least one adjacent terminal device. The first indication information may include indication information of each terminal device in the first set. For example, the first indication information may include a user information identifier or a user equipment identifier of each terminal device in the first set, where the user information identifier is, for example, an application layer identifier, and the user equipment identifier is, for example, a generic public subscription identifier (GPSI) or a subscription permanent identifier (SUPI).
[0127] In some possible ways, the first relay device may use the indication information of the neighboring terminal devices in the first notification message sent last as the first indication information for indicating the first set. In other possible ways, the first relay device may discover the neighboring terminal devices of the first relay device and use the indication information of the discovered neighboring terminal devices as the first indication information for indicating the first set. The way in which the first relay device discovers the neighboring terminal devices of the first relay device can refer to Method 1, Method 2, or Method 3 in S101 and will not be repeated here.
[0128] S202: The first relay device determines whether each terminal device in the first set can communicate with the first relay device.
[0129] The second terminal device is any terminal device in the first set, and the first relay device can determine whether the second terminal device can communicate with the first relay device in the following manner:
[0130] If the first relay device receives the first message from the second terminal device, the first relay device can determine that the second terminal device can communicate with the first relay device; if the first relay device does not receive the first message from the second terminal device, the first relay device can determine that the second terminal device cannot communicate with the first relay device.
[0131] Optionally, the first message may be at least one of the following:
[0132] 1. The first notification message sent by the second terminal device: wherein the first notification message may be the first notification message in method 1, which is used by communication devices other than the second terminal device to discover the second terminal device.
[0133] 2. A response message sent by the second terminal device.
[0134] In some possible methods, the response message is used to respond to the request message sent by the first relay device, and the request message may be the request message in method 2, which is used for a communication device other than the first relay device to discover the first relay device. In this case, in S202, the first relay device may first send a request message to the second terminal device.
[0135] In some other possible embodiments, the response message is used to respond to a unicast connection establishment request sent by the first relay device, wherein the unicast connection establishment request is used to request establishment of a connection between the first relay device and the second terminal device. In this case, in S202, the first relay device may first send a unicast connection establishment request to the second terminal device.
[0136] S203: The first relay device sends second indication information indicating the second set to the first terminal device. Correspondingly, the first terminal device receives the second indication information indicating the second set from the first relay device.
[0137] The second set includes the terminal devices in the first set that can communicate with the first relay device. For example, the first set includes: the first terminal device, terminal device 2-terminal device 8, and the third terminal device; if in S202, the first relay device determines that the following terminal devices can communicate with the first relay device: the first terminal device, terminal device 2-terminal device 6, and the third terminal device, then the second set includes the first terminal device, terminal device 2-terminal device 6, and the third terminal device.
[0138] Optionally, the second indication information includes indication information of each terminal device in the second set. For example, the second indication information may include a user information identifier (e.g., an application layer identifier) or a user equipment identifier (e.g., GPSI or SUPI) of each terminal device in the second set.
[0139] The second indication information for indicating the second set may be carried in an existing message (eg, the second notification message shown in FIG. 1C ) or in a new message.
[0140] In addition, the first relay device may send second indication information for indicating the second set to the first terminal device by broadcasting.
[0141] With this method, after checking whether all terminal devices in the first set can communicate with the first relay device, the first relay device sends second indication information to indicate the second set containing terminal devices that can communicate with the first relay device, thereby improving the accuracy of the information sent by the first relay device. In this way, the first terminal device can select the first relay device for inter-terminal device communication based on the accurate second indication information, thereby improving the communication quality between the terminal devices.
[0142] Optionally, within a first time period after S202, the first relay device may execute S203. That is, within the first time period after determining whether each terminal device in the first set can communicate with the first relay device, the first relay device may send second indication information indicating the second set to the first terminal device. The first time period may be pre-set or obtained from another communication device (e.g., a network device). Exemplarily, the first time period may be 7 seconds.
[0143] Through this method, the first relay device can send indication information for indicating the second set to the first terminal device within the first time period when it is determined that it can communicate with each terminal device in the second set, thereby improving the accuracy of the indication information of the second set.
[0144] Optionally, in order to improve communication quality and efficiency, the first relay device may further restrict the terminal devices in the second set. Specifically, each terminal device in the second set may also meet at least one of the following conditions:
[0145] Condition 1: Each terminal device in the second set has the ability to communicate with the terminal device through the relay device.
[0146] For example, the first set includes: the first terminal device, terminal device 2-terminal device 8, and the third terminal device. If in S202, the first relay device determines that the following terminal devices can communicate with the first relay device: the first terminal device, terminal device 2-terminal device 6, and the third terminal device, and the following terminal devices have the ability to communicate with the terminal device through the relay device: the first terminal device, terminal device 2-terminal device 5, and the third terminal device, then the second set includes: the first terminal device, terminal device 2-terminal device 5, and the third terminal device.
[0147] Optionally, the first relay device may determine whether each terminal device in the first set has the ability to communicate with the terminal device through the relay device based on the capability indication information of each terminal device in the first set, thereby determining the second set. Specifically, before sending the second indication information for indicating the second set to the first terminal device, the first relay device may obtain the capability indication information of each terminal device in the first set, where the capability indication information of each terminal device in the first set is used to indicate whether each terminal device has the ability to communicate with the terminal device through the relay device; then, the first relay device may determine whether each terminal device in the first set has the ability to communicate with the terminal device through the relay device. The capability indication information of each terminal device in the first set may display the capability of the corresponding terminal device, or may indicate whether the corresponding terminal device has the ability to communicate with the terminal device through the relay device through a field. The capability indication information of each terminal device in the first set may be carried in an existing message (for example, the first notification message of method one) or in a new message, and this application does not limit this.
[0148] By using condition 1, the first relay device can further restrict the terminal devices in the second set, thereby reducing signaling overhead and conserving transmission resources. Furthermore, each terminal device in the second set has the ability to communicate with other terminal devices via the relay device. This prevents the first terminal device from requesting communication via the relay device with a terminal device that does not have this capability, thereby improving communication quality and efficiency.
[0149] Condition 2: The signal quality between each terminal device in the second set and the first relay device is greater than or equal to the first threshold.
[0150] For example, the first set includes: the first terminal device, terminal devices 2-8, and the third terminal device. If, in S202, the first relay device determines that the following terminal devices are capable of communicating with the first relay device: the first terminal device, terminal devices 2-6, and the third terminal device, and the signal quality between the following terminal devices and the first relay device is greater than or equal to the first threshold: the first terminal device, terminal devices 2-4, and the third terminal device, then the second set includes: the first terminal device, terminal devices 2-4, and the third terminal device.
[0151] Optionally, the first relay device may detect the signal quality between each terminal device in the first set and the first relay device, thereby determining the second set. The first relay device may determine the signal quality between each terminal device in the first set and the first relay device by detecting the signal strength of a first message sent by each terminal device in the first set. The specific content of the first message can be found in S202 and will not be further described here.
[0152] In addition, the first threshold may be preset or acquired from other communication devices (eg, network devices).
[0153] By using condition 2, the first relay device can further restrict the terminal devices in the second set, thereby reducing signaling overhead and conserving transmission resources. Furthermore, the signal quality between each terminal device in the second set and the first relay device is greater than or equal to the first threshold. This ensures communication quality when the first terminal device communicates with other terminal devices through the first relay device.
[0154] Condition 3: The signal quality between each terminal device in the second set and the first relay device is greater than or equal to the first threshold and less than the second threshold, and the second threshold is greater than the first threshold.
[0155] For example, the first set includes: the first terminal device, terminal device 2-terminal device 8, and the third terminal device. If, in S202, the first relay device determines that the following terminal devices are capable of communicating with the first relay device: the first terminal device, terminal device 2-terminal device 6, and the third terminal device, and the signal quality between the following terminal devices and the first relay device is greater than or equal to the first threshold and less than the second threshold: the first terminal device, terminal device 2-terminal device 3, and the third terminal device, then the second set includes: the first terminal device, terminal device 2-terminal device 3, and the third terminal device.
[0156] Optionally, the first relay device may detect the signal quality between each terminal device in the first set and the first relay device, thereby determining the second set. The manner in which the first relay device detects the signal quality between each terminal device in the first set and the first relay device may refer to condition 2 and will not be repeated here.
[0157] In addition, the first threshold and the second threshold may be preset, or may be acquired from other communication devices (eg, network devices).
[0158] Through condition 3, the first relay device can further limit the terminal devices in the second set, thereby reducing signaling overhead and saving transmission resources. In addition, in the second set, the signal quality between each terminal device and the first relay device is greater than or equal to the first threshold. In this way, when the first terminal device communicates with other terminal devices through the first relay device, the communication quality can be guaranteed. Moreover, in the second set, the signal quality between each terminal device and the first relay device is less than the second threshold, so that terminal devices that are closer to the first relay device can be eliminated, thereby improving the communication efficiency between terminal devices.
[0159] Optionally, after S202, the method further includes step M1:
[0160] M1: The first relay device may further send information indicating signal quality between each terminal device in the second set and the first relay device.
[0161] For example, the second set includes the first terminal device and the terminal device 2, and the first relay device can send information indicating the signal quality between the first terminal device and the first relay device, and information indicating the signal quality between the terminal device 2 and the first relay device.
[0162] This application does not limit the execution order of steps M1 and S203.
[0163] To solve the above problem 2, the present invention provides a communication method, which can be applied to the communication system shown in Figures 1A and 1B. The flow of the method will be described in detail below with reference to the flowchart shown in Figure 3.
[0164] S301: The first terminal device determines whether a direct link can be established between the first terminal device and the third terminal device.
[0165] When the first terminal device is about to send a service data packet to the third terminal device, the first terminal device may determine whether a direct link can be established between the first terminal device and the third terminal device.
[0166] Optionally, the first terminal device may determine whether a direct link can be established between the first terminal device and the third terminal device by one of the following implementation methods:
[0167] Implementation Method 1: The first terminal device determines whether a direct link can be established between the first terminal device and the third terminal device based on the signal quality of the second message from the third terminal device. Specifically, when the signal quality of the second message from the third terminal device is less than a fifth threshold, the first terminal device may determine that a direct link cannot be established between the first terminal device and the third terminal device; when the signal quality of the second message from the third terminal device is greater than or equal to the fifth threshold, the first terminal device may determine that a direct link can be established between the first terminal device and the third terminal device.
[0168] The signal quality of the second message from the third terminal device can be detected by the first terminal device. The second message can be an existing message transmitted between the first terminal device and the third terminal device (for example, a first notification message as a discovery message, a unicast connection establishment request, or a response message to a unicast connection establishment request), or a new message. The fifth threshold can be pre-set or obtained by the first terminal device from another communication device (for example, a network device).
[0169] Implementation method 2: The first terminal device determines whether a direct link can be established between the first terminal device and the third terminal device based on whether the first terminal device can receive the second message from the third terminal device.
[0170] The specific content of the second message can be referred to in implementation method 1 and will not be repeated here.
[0171] In addition, when the second message is a request message or a response message to a unicast connection establishment request, the first terminal device may determine whether a direct link can be established between the first terminal device and the third terminal device in one of the following ways:
[0172] Method A: If the first terminal device does not receive the second message from the third terminal device, the first terminal device may send a request message or a unicast connection establishment request multiple times within the second time period until the second message is received or the second time period ends. If the first terminal device receives the second message from the third terminal device within the second time period, the first terminal device may determine that a direct link can be established between the first terminal device and the third terminal device; if the first terminal device does not receive the second message from the third terminal device within the second time period, the first terminal device may determine that a direct link cannot be established between the first terminal device and the third terminal device. The second time period may be pre-set or obtained by the first terminal device from other communication devices.
[0173] Method B: If the first terminal device does not receive the second message from the third terminal device, the first terminal device may send a request message or a unicast connection establishment request multiple times until the second message is received or the set number of transmissions is reached. If the first terminal device receives the second message from the third terminal device, the first terminal device may determine that a direct link can be established between the first terminal device and the third terminal device. If the first terminal device still does not receive the second message from the third terminal device after sending the request message or the unicast connection establishment request the set number of times, the first terminal device may determine that a direct link cannot be established between the first terminal device and the third terminal device.
[0174] S302: If it is determined that a direct link cannot be established between the first terminal device and the third terminal device, the first terminal device selects a first relay device from M relay devices that can communicate with the third terminal device according to the first information, where M is a positive integer.
[0175] The first information includes: the signal quality between each of the M relay devices and the first terminal device. Optionally, the first terminal device can determine the signal quality between each of the M relay devices and the first terminal device by detecting the signal quality of the fourth message sent by each of the M relay devices to the first terminal device. The fourth message can be an existing message transmitted between the first terminal device and each of the M relay devices (for example, a notification message as a discovery message, a unicast connection establishment request, or a response message to the unicast connection establishment request), or it can be a new message.
[0176] Optionally, the first relay device determined by the first terminal device should meet at least one of the following conditions:
[0177] Condition 1: The signal quality between the first relay device and the first terminal device is greater than or equal to the third threshold. In other words, the first terminal device can select a relay device from the M relay devices whose signal quality with the first terminal device is greater than or equal to the third threshold, i.e., the first relay device.
[0178] Optionally, when there are multiple relay devices among the M relay devices whose signal quality with the first terminal device is greater than or equal to a third threshold, the first terminal device may select the relay device among the multiple relay devices whose signal quality with the first terminal device is the highest, i.e., the first relay device; or may randomly select one relay device from the multiple relay devices, i.e., the first relay device.
[0179] Condition 2: The first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices. In other words, the first terminal device can select the relay device with the highest signal quality between it and the first terminal device among the M relay devices, namely the first relay device.
[0180] Through this method, the first terminal device can select a relay device whose signal quality meets condition one and / or condition two to transmit service data packets based on the signal quality between the relay device and the first terminal device, thereby ensuring communication quality.
[0181] Optionally, the first information may further include the signal quality between each of the M relay devices and the third terminal device. In this case, the first relay device determined by the first terminal device should meet one of the following conditions:
[0182] Condition A: The signal quality between the first relay device and the first terminal device is greater than or equal to the third threshold, and the signal quality between the first relay device and the third terminal device is greater than or equal to the fourth threshold. In other words, the first terminal device selects the relay device that meets Condition A from among the M relay devices, namely, the first relay device.
[0183] Optionally, when there are S relay devices among the M relay devices that meet condition A, the first terminal device may randomly select a relay device from the S relay devices, i.e., the first relay device; or, alternatively, select a relay device from the S relay devices that has the highest signal quality with the first terminal device and / or the highest signal quality with the third terminal device, i.e., the first relay device. S is a positive integer greater than or equal to 2.
[0184] Condition B: The first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices, and the signal quality between the first relay device and the third terminal device is greater than or equal to a fourth threshold. In other words, the first terminal device selects the relay device that meets Condition B from the M relay devices, namely, the first relay device.
[0185] Optionally, when there are O relay devices among the M relay devices that meet condition B, the first terminal device may randomly select a relay device from the O relay devices, namely, the first relay device; or the first terminal device may select a relay device from the O relay devices that has the highest signal quality with the third terminal device, namely, the first relay device. Where O is a positive integer greater than or equal to 2.
[0186] Condition C: The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold, and the first relay device has the highest signal quality with the third terminal device among the M relay devices. In other words, the first terminal device selects the relay device that meets Condition C from the M relay devices, namely, the first relay device.
[0187] Optionally, when there are T relay devices among the M relay devices that meet condition C, the first terminal device may randomly select a relay device from the T relay devices, i.e., the first relay device; or, alternatively, select a relay device from the T relay devices with the highest signal quality to the first terminal device, i.e., the first relay device. Where T is a positive integer greater than or equal to 2.
[0188] Condition D: The first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices, and the first relay device is also the relay device with the highest signal quality between it and the third terminal device among the M relay devices. In other words, the first terminal device selects the relay device that meets condition D from among the M relay devices, namely, the first relay device.
[0189] Through this method, the first terminal device can select a relay device whose signal quality meets any one of conditions A to D to transmit service data packets based on the signal quality between the relay device and the first terminal device and the signal quality between the relay device and the third terminal device, thereby ensuring the communication quality.
[0190] Optionally, the first terminal device may determine the signal quality between each of the M relay devices and the third terminal device through the following steps A1-A2:
[0191] A1: The first terminal device receives signal quality indication information from each of the M relay devices respectively.
[0192] The signal quality indication information from each of the M relay devices is used to indicate the signal quality between the corresponding relay device and the third terminal device. For example, the M relay devices include relay device 2, which is capable of communicating with the third terminal device. The signal quality indication information from relay device 2 may indicate the signal quality between relay device 2 and the third terminal device.
[0193] Optionally, the signal quality indication information from each of the M relay devices may be carried in an existing message (eg, the second notification message in S102 ) or in a new message.
[0194] A2: The first terminal device determines the signal quality between each relay device and the third terminal device based on the signal quality indication information from each relay device in the M relay devices.
[0195] For example, the M relay devices include relay device 2, which can communicate with the third terminal device. The first terminal device can determine the signal quality between relay device 2 and the third terminal device based on the signal quality indication information from relay device 2.
[0196] In this way, the first terminal device can determine the signal quality between each relay device and the third terminal device.
[0197] Optionally, the first information may further include the connection status between each of the M relay devices and the first terminal device. At this point, a unicast connection has been established between the first relay device and the first terminal device. In other words, the first terminal device selects a relay device with which a unicast connection has been established from the M relay devices as the first relay device.
[0198] For example, when there are U relay devices among the M relay devices that meet any one of conditions A to D, the first terminal device may select a relay device with which a unicast connection has been established as the first relay device from among the U relay devices. U is a positive integer greater than 1.
[0199] For another example, when there are V relay devices among the M relay devices that meet any one of conditions A to D, and the V relay devices all establish unicast connections with the first terminal device, the first relay device may be the relay device among the V relay devices that has the highest signal quality with the first terminal device, and / or the first relay device may be the relay device among the V relay devices that has the highest signal quality with a third terminal device. V is a positive integer greater than 1.
[0200] In this method, the first terminal device preferentially selects the first relay device with which a unicast connection has been established to transmit service data packets; in this way, the first terminal device no longer needs to establish a unicast connection, thereby saving transmission delay.
[0201] Optionally, in S302, the first terminal device may determine M relay devices that can communicate with the third terminal device through the following steps B1-B2.
[0202] B1: Before selecting the first relay device from the M relay devices that can communicate with the third terminal device according to the first information, the first terminal device receives instruction information from each of the N relay devices respectively.
[0203] The indication information from each of the N relay devices is used to indicate at least one terminal device that can communicate with each relay device, where N is a positive integer.
[0204] Optionally, the specific content of step B1 can refer to the description of "the first terminal device receives the second indication information for indicating the second set from the first relay device" in the method shown in Figure 2, except that the first relay device is replaced by each of the N relay devices, and the second indication information for indicating the second set is replaced by indication information for indicating at least one terminal device that can communicate with each relay device.
[0205] B2: The first terminal device determines M relay devices among the N relay devices that can communicate with the third terminal device according to the instruction information from the N relay devices.
[0206] For example, the N relay devices include relay device 3 and relay device 4. The indication information from relay device 3 indicates that relay device 3 can communicate with the following terminal devices: the first terminal device, terminal device 2, and the third terminal device; the indication information from relay device 4 indicates that relay device 4 can communicate with the following terminal devices: the first terminal device and terminal device 2. The first terminal device can then determine that the M relay devices that can communicate with the third terminal device include relay device 3.
[0207] In this way, the first terminal device can determine M relay devices that can communicate with the third terminal device.
[0208] S303: The first terminal device sends a service data packet to the first relay device to be sent to the third terminal device.
[0209] Optionally, the service data packet includes indication information of the third terminal device.
[0210] Optionally, to establish a unicast connection between the first terminal device and the third terminal device, before S303, the method further includes steps N1 to N9:
[0211] N1: The first terminal device sends a first request to the first relay device, where the first request is used to request to establish a unicast connection between the first terminal device and the first relay device.
[0212] The first request may be an existing message (eg, a unicast connection establishment request) or a new message. The specific content of the first request may refer to the first unicast connection establishment request in S103 and will not be described in detail here.
[0213] N2: The first relay device sends a first response to the first terminal device.
[0214] The first response is a response message to the first request, which is used to indicate that a unicast connection has been established between the first terminal device and the first relay device.
[0215] In addition, the first response can be an existing message (Unicast Connection Establishment Accept) or a new message.
[0216] N3: The first terminal device sends indication information of the third terminal device to the first relay device.
[0217] The indication information of the third terminal device may include the application layer identifier of the third terminal device.
[0218] Step N3 is an optional step. For example, when the first request includes indication information of the third terminal device, step N3 is optional.
[0219] N4: The first relay device sends a second request to the third terminal device.
[0220] The second request is used to request establishment of a unicast connection between the relay device and the third terminal device.
[0221] In addition, the second request may be an existing message (eg, a unicast connection establishment request) or a new message.
[0222] N5: The third terminal device sends a second response to the first relay device.
[0223] The second response is a response message to the second request, which is used to indicate that a unicast connection has been established between the first relay device and the third terminal device.
[0224] In addition, the second response may be an existing message (Unicast Connection Establishment Accept) or a new message.
[0225] N6: The first terminal device sends a third request to the first relay device.
[0226] The third request carries indication information of the third terminal device, and the third request is used to request establishment of an end-to-end unicast connection between the first terminal device and the third terminal device.
[0227] In addition, the third request may be an existing message (eg, a unicast connection establishment request) or a new message.
[0228] Optionally, after step N2, the first terminal device may execute step N6.
[0229] N7: The first relay device sends a third request to the third terminal device.
[0230] Optionally, after step N5, the first relay device may execute step N7.
[0231] N8: The third terminal device sends a third response to the first relay device.
[0232] The third response is a response message to the third request, which is used to indicate that a unicast connection has been established between the first terminal device and the third terminal device through the first relay device.
[0233] In addition, the third response may be an existing message (Unicast Connection Establishment Accept) or a new message.
[0234] N9: The first relay device sends a third response to the first terminal device.
[0235] S304: The first relay device sends a service data packet to be sent to the third terminal device to the third terminal device.
[0236] Optionally, the first relay device may determine that the target terminal device of the service data packet is the third terminal device according to the indication information of the third terminal device, and send the service data packet to the third terminal device.
[0237] Optionally, if in S301, the first terminal device determines that a direct link can be established between the first terminal device and the third terminal device, then after S301, the method shown in FIG3 further includes step S305:
[0238] S305: The first terminal device sends a service data packet to be sent to the third terminal device to the third terminal device through the direct link between the first terminal device and the third terminal device.
[0239] In some possible implementations, a direct link already exists between the first terminal device and the third terminal device. The first terminal device can send the service data packet to the third terminal device via the direct link. In other possible implementations, when a direct link does not exist between the first terminal device and the third terminal device, the first terminal device can send a unicast connection establishment request to the third terminal device to request the establishment of a direct link. After the direct link is established between the first terminal device and the third terminal device, the service data packet is sent to the third terminal device.
[0240] Through this method, the first terminal device preferentially selects the direct link between the first terminal device and the third terminal device to transmit the service data packet, thereby reducing the transmission delay of the service data packet.
[0241] Optionally, when in S302, the first terminal device fails to select the first relay device from the M relay devices according to the first information, the method shown in FIG3 further includes step C1:
[0242] C1: The first terminal device may send a third message to the third terminal device.
[0243] The third message is used to request the establishment of a direct link between the first terminal device and the third terminal device. Thus, after the direct link between the first terminal device and the third terminal device is established, the first terminal device can send a service data packet intended for the third terminal device to the third terminal device via the direct link.
[0244] Optionally, the third message may be an existing message (eg, a unicast connection establishment request) or a new message.
[0245] Through this method, when the direct link between the first terminal device and the third terminal device does not meet the signal quality requirements, and the first terminal device fails to find the first relay device through S302, that is, the first terminal device fails to find a non-direct path that meets the signal quality requirements, the first terminal device can communicate with the third terminal device through the direct link, thereby reducing the complexity of communication and saving signaling overhead.
[0246] Optionally, S302-S304 may be applicable to the reselection process. Before S302, the method shown in FIG3 further includes steps D1-D2:
[0247] D1: The first terminal device can communicate with the third terminal device through the second relay device.
[0248] Among them, the way in which the first terminal device selects the second relay device can refer to S302, except that the first relay device is replaced by the second relay device, which will not be repeated here.
[0249] D2: When the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, the first terminal device may also reselect a relay device, ie, the first relay device, through S302.
[0250] Among them, the first terminal device can detect whether the connection between the first terminal device and the second relay device is interrupted. Specifically, the first terminal device can send a heartbeat signal to the second relay device periodically or non-periodically. If the first terminal device receives a response signal to the heartbeat signal from the second relay device within a set time after sending the heartbeat signal, the first terminal device determines that the connection between the first terminal device and the second relay device is not interrupted; if the first terminal device does not receive a response signal to the heartbeat signal from the second relay device within a set time after sending the heartbeat signal, the first terminal device determines that the connection between the first terminal device and the second relay device is interrupted. Among them, the heartbeat signal can be replaced by a path detection message.
[0251] The first terminal device may determine whether the connection between the third terminal device and the second relay device is interrupted based on the first connection indication information from the second relay device. The first connection indication information from the second relay device may be used to indicate whether the connection between the second relay device and the third terminal device is interrupted. The first connection indication information from the second relay device may be carried in an existing message or in a new message.
[0252] Through this method, in the reselection process, the first terminal device can select the relay device according to the signal quality, thereby ensuring the communication quality when the service data packet is transmitted through the relay device.
[0253] Optionally, before “selecting a first relay device from M relay devices capable of communicating with the third terminal device based on the first information” in S302, if the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, the end-to-end connection between the first terminal device and the third terminal device, that is, the first connection, may be released in one of the following implementation methods:
[0254] Implementation method 1: The first terminal device releases the first connection between the first terminal device and the third terminal device.
[0255] The first terminal device may release the first connection between the first terminal device and the third terminal device after determining that the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, in the manner of step D1.
[0256] Implementation method 2: The third terminal device releases the first connection between the first terminal device and the third terminal device.
[0257] The third terminal device can detect whether the connection between the third terminal device and the second relay device is interrupted. The specific detection method can refer to step D1, except that the first terminal device is replaced by the third terminal device, which will not be repeated here.
[0258] The third terminal device may determine whether the connection between the first terminal device and the second relay device is interrupted based on the second connection indication information from the second relay device. The second connection indication information from the second relay device is used to indicate whether the connection between the second relay device and the first terminal device is interrupted. The second connection indication information from the second relay device may be carried in an existing message or in a new message.
[0259] Through this method, when the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, the first terminal device or the third terminal device can release the connection between the first terminal device and the third terminal device in time, thereby avoiding unnecessary occupation of resources.
[0260] The present application also provides a communication method, which can be applied to the communication system shown in Figures 1A and 1B. The flow of the method will be described in detail below with reference to the flowchart shown in Figure 4.
[0261] S401: The first relay device sends third indication information to the first terminal device. Correspondingly, the first terminal device receives the third indication information from the first relay device.
[0262] Optionally, the first relay device may send third indication information to the first terminal device when broadcasting information about neighboring terminal devices. For example, when the first relay device is sending the second notification message in the method shown in FIG1C , the third indication information is sent to the first terminal device.
[0263] The third indication information is used to indicate at least one service, and the service data packet of each service in the at least one service is a service data packet that at least one terminal device capable of communicating with the first relay device expects to receive.
[0264] Optionally, the third indication information includes service indication information for each of at least one service, such as a service identifier. For example, the terminal devices capable of communicating with the first relay device include: a first terminal device, terminal device 2, and a third terminal device. The first terminal device expects to receive service data packets for services 1 and 2; terminal device 2 expects to receive service data packets for services 2 and 3; and the third terminal device expects to receive service data packets for service 4. In this case, the third indication information may include the service identifiers for services 1 through 4.
[0265] In addition, the third indication information may be carried in an existing message (eg, the second notification message in the method shown in FIG. 1C ) or in a new message.
[0266] Optionally, before S401, the first relay device may receive indication information from each of the P terminal devices that can communicate with the first relay device. The indication information of each of the P terminal devices is used to indicate Q services, and the service data packet of each of the Q services is the service data packet that each terminal device expects to receive. P and Q are positive integers. For example, the first relay device receives indication information from the first terminal device indicating services 1 and 2, thereby determining that the first terminal device expects to receive service data packets of services 1 and 2. For another example, the first relay device receives indication information from terminal device 2 indicating services 2 and 3, thereby determining that terminal device 2 expects to receive service data packets of services 2 and 3. For another example, the first relay device receives indication information from the third terminal device indicating service 4, thereby determining that the third terminal device expects to receive service data packets of service 4. In addition, the indication information of each of the P terminal devices may be carried in an existing message or in a new message.
[0267] Through this method, the first relay device can learn which service data packets of the services each terminal device in the P terminal devices communicating with the first relay device expects to receive.
[0268] Optionally, through the method in S401, the first terminal device may receive third indication information from each of the R relay devices. The third indication information from each of the R relay devices may be used to indicate at least one service, where a service data packet of each of the at least one service is a service data packet that at least one terminal device capable of communicating with each relay device expects to receive. R is a positive integer.
[0269] S402: The first terminal device selects a first relay device from the R relay devices according to third indication information from each of the R relay devices.
[0270] The first relay device is capable of communicating with a third terminal device that desires to receive service data packets of a target service.
[0271] Optionally, when the first terminal device wants to send a service data packet of a target service, it may select a first relay device from the R relay devices based on instruction information from each of the R relay devices.
[0272] For example, the R relay devices include a first relay device and a third relay device. The third indication information from the first relay device includes the service identifiers of services 1 through 4; the third indication information from the third relay device includes the service identifiers of services 1, 2, and 5. If the target service is service 4, the first terminal device can select the first relay device from the R relay devices.
[0273] S403: The first terminal device sends a service data packet of the target service to the first relay device. Correspondingly, the first relay device receives the service data packet of the target service from the first terminal device.
[0274] The first terminal device may send a service data packet for the target service to the first relay device through the connection between the first terminal device and the first relay device.
[0275] Optionally, the service data packet of the target service includes indication information of the target service, for example, an identifier of the target service.
[0276] S404: The first relay device sends a service data packet of the target service to the third terminal device. Correspondingly, the third terminal device receives the service data packet of the target service from the first relay device.
[0277] Among them, the third terminal device is a terminal device that expects to receive service data packets of the target service among the P terminal devices that can communicate with the first relay device.
[0278] Optionally, the first relay device may select a third terminal device from the P terminal devices based on the target service indication information. For example, the P terminal devices capable of communicating with the first relay device include: the first terminal device, terminal device 2, and the third terminal device. The first terminal device expects to receive service data packets for services 1 and 2; terminal device 2 expects to receive service data packets for services 2 and 3; and the third terminal device expects to receive service data packets for service 4. If the target service is service 4, the first relay device may send the service data packets for service 4 to the third terminal device.
[0279] Through this method, a first relay device may broadcast third indication information indicating at least one service, where each service data packet of the at least one service is a service data packet that at least one terminal device capable of communicating with the first relay device expects to receive. When a terminal device intends to send a service data packet of a target service, it may, based on the third indication information, locate a suitable relay device to forward the service data packet of the target service to a terminal device that expects to receive the service data packet of the target service, thereby ensuring the correct transmission of the service data packet.
[0280] Optionally, before S403, the first terminal device establishes a connection between the first terminal device and the third terminal device via the first relay device. Specifically, the method shown in FIG4 further includes steps E1-E5:
[0281] E1: The first terminal device sends a first request to the first relay device. Correspondingly, the first relay device receives the first request from the first terminal device.
[0282] The first request is used to request to establish a unicast connection between the first terminal device and the first relay device. The first request may be an existing message (eg, a unicast connection establishment request) or a new message.
[0283] Optionally, the first request includes indication information of the target service.
[0284] Optionally, after step E1, the first relay device may send a first response to the first terminal device. For details, please refer to step N2 and will not be repeated here.
[0285] E2: The first relay device determines a third terminal device from the P terminal devices according to the indication information of the target service.
[0286] The specific content of step E2 can refer to the description of "the first relay device can select a third terminal device from P terminal devices according to the indication information of the target service" in S404, which will not be repeated here.
[0287] E3: The first relay device sends a second request to the third terminal device. Correspondingly, the third terminal device receives the second request from the first relay device.
[0288] The second request is used to request to establish a unicast connection between the first relay device and the third terminal device. The second request can be an existing message (eg, a unicast connection establishment request) or a new message.
[0289] Optionally, the second request also includes indication information of the target service.
[0290] Optionally, after step E3, the third terminal device may send a second response to the first relay device. The specific content can be referred to step N5 and will not be repeated here.
[0291] E4: The first terminal device sends a third request to the first relay device.
[0292] The third request is used to request establishment of an end-to-end unicast connection between the first terminal device and the third terminal device.
[0293] E5: The first relay device sends a third request to the third terminal device.
[0294] The specific contents of steps E4-E5 can be referred to steps N6-N7 and will not be repeated here.
[0295] Optionally, after step E5, the first relay device may send a third response to the first terminal device after receiving the third response from the third terminal device. The third response is used to indicate that a unicast connection has been established between the first terminal device and the third terminal device through the first relay device. The specific content of the third response can be found in step N8 and is not repeated here.
[0296] Optionally, if a unicast connection has been established between the first terminal device and the first relay device after S402, step E1 is optional. At this point, the first terminal device may send indication information about the target service to the first relay device. If a unicast connection has been established between the first relay device and the third terminal device after step E2, step E3 is optional.
[0297] Through this method, the first terminal device can establish a unicast connection between the first terminal device and the third terminal device through the first relay device, so that the service data packet can be transmitted through the unicast connection.
[0298] Optionally, the first and third terminal devices can simultaneously communicate with multiple relay devices. This means that multiple indirect paths exist between the first and third terminal devices. In this case, the first or third terminal device can select a path for communication. The following uses the example of two indirect paths between the first and third terminal devices to illustrate these two paths.
[0299] The first terminal device may select a path to communicate with the third terminal device through the following steps F1-F3:
[0300] F1: The first relay device sends a third response to the first terminal device. Correspondingly, the first terminal device receives the third response from the first relay device.
[0301] The third response may be a response message to the third request in step E4. The third response is used to indicate that a second connection between the first terminal device and the third terminal device is established through the first relay device.
[0302] F2: The fourth relay device sends a fourth response to the first terminal device. Correspondingly, the first terminal device receives the fourth response from the fourth relay device.
[0303] The fourth relay device is capable of communicating with the third terminal device. The fourth response is used to indicate that a third connection between the first terminal device and the third terminal device is established through the fourth relay device.
[0304] Optionally, before step F2, the first terminal device may request to establish a connection between the first terminal device and the third terminal device through the fourth relay device. For details, refer to steps E1-E5, except that the first relay device is replaced by the fourth relay device.
[0305] F3: When the signal quality of the second connection is greater than or equal to the signal quality of the third connection, the first terminal device selects the first relay device to transmit the service data packet of the target service. In other words, S404 may include: when the signal quality of the second connection is greater than or equal to the signal quality of the third connection, the first terminal device transmits the service data packet of the target service to the first relay device.
[0306] The signal quality of the second connection may include: the signal quality between the first terminal device and the first relay device, and / or the signal quality between the third terminal device and the first relay device. The signal quality of the third connection may include: the signal quality between the first terminal device and the fourth relay device, and / or the signal quality between the third terminal device and the fourth relay device. The manner in which the first terminal device determines the signal quality of the second connection and the signal quality of the third connection can be referred to S302 and will not be repeated here.
[0307] Through this method, the first terminal device selects a path to communicate with the third terminal device, thereby avoiding waste of resources.
[0308] The third terminal device can select a path to communicate with the first terminal device through the following steps:
[0309] H1: The first terminal device sends a fourth request to the fourth relay device, where the fourth request is used to request establishment of a unicast connection between the fourth relay device and the first terminal device.
[0310] H2: The fourth relay device determines the third terminal device from the terminal devices that can communicate with the fourth relay device according to the indication information of the target service.
[0311] H3: The fourth relay device sends a fifth request to the third terminal device, where the fifth request is used to request establishment of a unicast connection between the fourth relay device and the third terminal device.
[0312] H4: The first terminal device sends a sixth request to the fourth relay device.
[0313] The sixth request is used to request establishment of an end-to-end unicast connection between the first terminal device and the third terminal device. The fourth response in step F2 may be a response message to the sixth request.
[0314] H5: The fourth relay device sends a sixth request to the third terminal device.
[0315] The specific contents of H1-H5 can refer to E1-E5, except that the first relay device is replaced by the fourth relay device, the first request is replaced by the fourth request, the second request is replaced by the fifth request, and the third request is replaced by the sixth request.
[0316] This application does not limit the execution order of H1-H5 and E1-E5.
[0317] H6: The third terminal device selects the first relay device from the first relay device and the fourth relay device, and sends a third response to the first relay device. The specific content of the third response can be found in step F1 and will not be repeated here.
[0318] Optionally, when the signal quality of the second connection is greater than or equal to the signal quality of the third connection, the third terminal device selects the first relay device from the first relay device and the fourth relay device. The second connection is a connection between the first terminal device and the third terminal device established via the first relay device; and the third connection is a connection between the first terminal device and the third terminal device established via the fourth relay device.
[0319] The signal quality of the second connection may include: the signal quality between the first terminal device and the first relay device, and / or the signal quality between the third terminal device and the first relay device. The signal quality of the third connection may include: the signal quality between the first terminal device and the fourth relay device, and / or the signal quality between the third terminal device and the fourth relay device.
[0320] The third terminal device can detect the signal quality between the third terminal device and the first relay device, as well as the signal quality between the third terminal device and the fourth relay device. The third terminal device can obtain information indicating the signal quality between the first terminal device and the first relay device from the first relay device, and obtain information indicating the signal quality between the first terminal device and the fourth relay device from the fourth relay device. For details, refer to the first terminal device receiving signal quality indication information from each of the M relay devices in S302, except that the first terminal device is replaced by the third terminal device, and will not be repeated here.
[0321] Through this method, the third terminal device selects a path to communicate with the first terminal device, and the third terminal device can only send a third response to the first relay device, thereby saving signaling overhead and avoiding resource waste.
[0322] The present application also provides a communication method, which illustrates a possible implementation of the method shown in FIG2 or FIG3. This method can be applied to the communication system shown in FIG1A-FIG1B. The method is described in detail below with reference to the flowchart shown in FIG5.
[0323] S501: A first relay device obtains first indication information indicating a first set.
[0324] The specific content of S501 can be found in S201 and will not be repeated here.
[0325] S502: The first relay device updates the first set to obtain a second set.
[0326] After determining whether each terminal device in the first set can communicate with the first relay device, the first relay device may obtain a second set, where the second set may include the terminal devices in the first set that can communicate with the first relay device. For details of the first relay device determining whether each terminal device in the first set can communicate with the first relay device, refer to S202. For details of the second set, refer to S203, and are not further described here.
[0327] Optionally, the fourth terminal device is any terminal device in the first set. During the first time period in which the first relay device discovers the fourth terminal device, it can be considered that the first relay device can communicate with the fourth terminal device. At this time, it is not necessary to determine whether the fourth terminal device can communicate with the first relay device through the method in S202. After the first relay device discovers the first time period in which the fourth terminal device discovers the fourth terminal device, it can be determined whether the fourth terminal device can communicate with the first relay device through the method in S202. The specific content of the first time period can be referred to the description of the "first time period" in the method shown in Figure 2, and will not be repeated here.
[0328] In addition, the fifth terminal device is any terminal device in the first set. If a unicast connection exists between the fifth terminal device and the first relay device, the first relay device may determine that the first relay device can communicate with the fifth terminal device.
[0329] S503: The first relay device sends a second notification message.
[0330] The second notification message may include second indication information for indicating the second set. For the specific content of the second indication information for indicating the second set, reference may be made to S203, and repeated details will not be repeated.
[0331] Optionally, the first relay device may broadcast the second notification message, thereby sending the second notification message to the first terminal device and the third terminal device.
[0332] In addition, the second notification message may further include at least one of the following items: the type of discovery message, RSC and indication information of the first relay device. For specific content, please refer to S102 and will not be repeated here.
[0333] Optionally, the first relay device may periodically send the second notification message, or may send the second notification message when a set event is met. For example, the set event is a change in a terminal device in the first set, that is, an update to the list of neighboring terminal devices. Another example is the set event being the first relay device receiving a request from a neighboring terminal device to send the second notification message.
[0334] S504: The first terminal device determines whether a direct link can be established between the first terminal device and the third terminal device.
[0335] The specific content of S504 can be referred to S301, and the repeated parts will not be repeated.
[0336] In addition, the third terminal device may be a target terminal device, or may be a terminal device that expects to receive a target service.
[0337] S505: If the first terminal device determines that a direct link can be established between the first terminal device and the third terminal device, the first terminal device sends a service data packet to be sent to the third terminal device to the third terminal device through the direct link between the first terminal device and the third terminal device.
[0338] The specific content of S505 can be found in S305 and will not be repeated here.
[0339] In addition, this application does not limit the execution order between S501-S503 and S504-S505.
[0340] S506: If it is determined that a direct link cannot be established between the first terminal device and the third terminal device, the first terminal device selects a first relay device from M relay devices that can communicate with the third terminal device according to the first information, where M is a positive integer.
[0341] The specific content of S506 can be found in S302 and will not be repeated here.
[0342] S507: The first terminal device sends a service data packet to the first relay device to be sent to the third terminal device.
[0343] S508: The first relay device sends a service data packet to be sent to the third terminal device to the third terminal device.
[0344] The specific contents of S507-S508 can be referred to S303-S304 and will not be repeated here.
[0345] S509: If in S506, the first terminal device fails to select the first relay device from the M relay devices according to the first information, the first terminal device may send a third message to the third terminal device, where the third message is used to request establishment of a direct link between the first terminal device and the third terminal device.
[0346] S509 is an optional step, and its specific content can be referred to step C1, which will not be repeated here.
[0347] After the direct link between the first terminal device and the third terminal device is established, the first terminal device may send a service data packet to be sent to the third terminal device to the third terminal device through the direct link between the first terminal device and the third terminal device.
[0348] Through this method, the first terminal device preferentially selects the direct link between the first terminal device and the third terminal device to transmit the service data packet, thereby reducing the transmission delay of the service data packet.
[0349] Furthermore, in this method, after checking whether all terminal devices in the first set can communicate with the first relay device, the first relay device sends second indication information to indicate the second set of terminal devices that can communicate with the first relay device, thereby improving the accuracy of the information sent by the first relay device. In this way, the first terminal device can select the first relay device for inter-terminal device communication based on the accurate second indication information, thereby improving the communication quality between the terminal devices.
[0350] The present application also provides a communication method, which illustrates a possible implementation of the method shown in FIG4 . This method can be applied to the communication system shown in FIG1A and FIG1B . The method is described in detail below with reference to the flowchart shown in FIG6 .
[0351] S601: A first relay device obtains first indication information indicating a first set.
[0352] The specific content of S601 can be referred to S201, and the repeated parts will not be repeated.
[0353] Optionally, the first relay device may further obtain indication information of at least one service, where the service data packet of each service in the at least one service is a service data packet that at least one terminal device in the first set expects to receive. The specific content of the indication information of the at least one service can be referred to the third indication information in S401 and will not be repeated here.
[0354] S602: The first relay device updates the first set to obtain a second set.
[0355] The specific content of S602 can be found in S502 and will not be repeated here.
[0356] S603: The first relay device sends a second notification message.
[0357] The second notification message may include third indication information. The third indication information is used to indicate at least one service, where the service data packets of each service in the at least one service are service data packets that at least one terminal device capable of communicating with the first relay device expects to receive. The specific content of the third indication information can be found in S401 and is not further described here.
[0358] Optionally, through the methods in S601-S603, the first terminal device may receive third indication information from each of the R relay devices. The third indication information from each of the R relay devices may be used to indicate at least one service, where a service data packet of each of the at least one service is a service data packet that at least one terminal device capable of communicating with each relay device expects to receive. R is a positive integer.
[0359] S604: The first terminal device selects a first relay device from the R relay devices according to the third indication information from each of the R relay devices.
[0360] The specific content of S604 can be found in S402 and will not be repeated here.
[0361] S605: The first terminal device sends a first request to the first relay device, where the first request is used to request establishment of a unicast connection between the first relay device and the first terminal device.
[0362] S606: The first relay device sends a first response to the first terminal device, where the first response is used to indicate that a unicast connection has been established between the first relay device and the first terminal device.
[0363] S607: The first relay device sends a second request to the third terminal device, where the second request is used to request establishment of a unicast connection between the first relay device and the third terminal device.
[0364] Optionally, if multiple terminal devices that can connect to the first relay device all desire to receive service data packets of the target service, the first relay device may send a second request to each of the multiple terminal devices. In this way, the first relay device can establish a connection with each of the multiple terminal devices.
[0365] S608: The third terminal device sends a second response to the first relay device, where the second response is used to indicate that a unicast connection has been established between the first relay device and the third terminal device.
[0366] S609: The first terminal device sends a third request to the first relay device, where the third request is used to request establishment of an end-to-end unicast connection between the first terminal device and the third terminal device.
[0367] S610: The first relay device sends a third request to the third terminal device.
[0368] S611: The third terminal device sends a third response to the first relay device, where the third response is used to indicate that a unicast connection has been established between the first terminal device and the third terminal device through the first relay device.
[0369] S612: The first relay device sends a third response to the first terminal device.
[0370] The specific contents of S605-612 can be referred to steps E1-E5, which will not be repeated here.
[0371] Through S605 - S612 , the first terminal device establishes an end-to-end unicast connection between the first terminal device and the third terminal device through the first relay device.
[0372] It should be understood that the first relay device is used as an example for explanation in S605-S612, and a connection between the first terminal device and the third terminal device can also be established through other relay devices in a similar manner.
[0373] S613: If the first terminal device receives third responses from multiple relay devices, the first terminal device selects the first relay device from the multiple relay devices. In other words, when there are multiple indirect paths between the first terminal device and the third terminal device, the first terminal device can select one path for communication.
[0374] Among them, the way in which the first terminal device selects a path for communication can be referred to steps F1-F3, which will not be repeated here.
[0375] Optionally, when there are multiple indirect paths between the first terminal device and the third terminal device, in S611, the third terminal device may select a path for communication, for which details may be referred to steps H1-H6 and will not be described in detail here. In this case, S613 is an optional step.
[0376] Optionally, if after S607, the third terminal device determines that a direct link has been established between the first terminal device and the third terminal device, then S608-S612 are optional steps.
[0377] Optionally, if after S604, the first terminal device determines that a direct link has been established between the first terminal device and the third terminal device, S605-613 are optional steps.
[0378] Through this method, a first relay device may broadcast third indication information indicating at least one service, where each service data packet of the at least one service is a service data packet that at least one terminal device capable of communicating with the first relay device expects to receive. Thus, when the first terminal device wishes to send a service data packet of the target service, it can use the third indication information to locate a suitable relay device to forward the service data packet of the target service to the terminal device that expects to receive the service data packet of the target service, thereby ensuring the correct transmission of the service data packet.
[0379] Based on the same inventive concept as the method embodiments of Figures 2 to 6, the embodiment of the present application provides a communication device through Figure 7, which can be used to perform the functions of the relevant steps in the above method embodiments. The functions can be implemented by hardware, or by software or hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above functions. The structure of the communication device is shown in Figure 7, including a communication unit 701 and a processing unit 702. The communication device 700 can be applied to the terminal device in the communication system shown in Figure 1A, or the relay device or source terminal device in the communication system shown in Figure 1B, and can implement the communication methods provided in the above embodiments of the present application and examples. The functions of each unit in the communication device 700 are introduced below.
[0380] The communication unit 701 is used to receive and send data.
[0381] Optionally, the communication unit 701 may be implemented by a transceiver, for example, a mobile communication module. The mobile communication module may include at least one antenna, at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The AN device may communicate with the connected terminal device via the mobile communication module.
[0382] The processing unit 702 can be used to support the communication device 700 in performing the processing actions in the above method embodiment. The processing unit 702 can be implemented by a processor. For example, the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.
[0383] In one embodiment, the communication device 700 is applied to the first relay device in the embodiment of the present application shown in Figure 2 or Figure 5. The specific functions of the processing unit 702 in this embodiment are introduced below.
[0384] The processing unit 702 is used to: obtain first indication information for indicating a first set, where the first set includes at least one terminal device; determine whether each terminal device in the first set can communicate with the first relay device; and send second indication information for indicating a second set to the first terminal device through the communication unit 701, where the second set includes terminal devices in the first set that can communicate with the first relay device.
[0385] Optionally, the second terminal device is any terminal device in the first set, and the processing unit 702 is specifically used to: if a first message is received from the second terminal device, determine that the second terminal device can communicate with the first relay device; if the first message is not received from the second terminal device, determine that the second terminal device cannot communicate with the first relay device.
[0386] Optionally, the first message is at least one of the following:
[0387] A notification message sent by the second terminal device, where the notification message is used by a communication device other than the second terminal device to discover the second terminal device;
[0388] The response message sent by the second terminal device is used to respond to the request message or unicast connection establishment request sent by the first relay device. The request message is used for communication devices other than the first relay device to discover the first relay device. The unicast connection establishment request is used to request to establish a connection between the first relay device and the second terminal device.
[0389] Optionally, the processing unit 702 is specifically used to: within a first time period after determining whether each terminal device in the first set can communicate with the first relay device, send second indication information for indicating the second set to the first terminal device through the communication unit 701.
[0390] Optionally, each terminal device in the second set has the ability to communicate with the terminal device through the relay device.
[0391] Optionally, the processing unit 702 is specifically used to: before sending the second indication information for indicating the second set to the first terminal device, obtain the capability indication information of each terminal device in the first set, and the capability indication information of each terminal device in the first set is used to indicate whether each terminal device has the ability to communicate with the terminal device through the relay device.
[0392] Optionally, the signal quality between each terminal device in the second set and the first relay device is greater than or equal to a first threshold.
[0393] Optionally, the signal quality between each terminal device in the second set and the first relay device is less than a second threshold, and the second threshold is greater than the first threshold.
[0394] Optionally, the processing unit 702 is specifically used to: after determining whether each terminal device in the first set can communicate with the first relay device, send information indicating the signal quality between each terminal device in the second set and the first relay device through the communication unit 701.
[0395] Optionally, the first indication information includes indication information of each terminal device in the first set; the second indication information includes indication information of each terminal device in the second set.
[0396] In another embodiment, the communication device 700 is applied to the first terminal device in the embodiment of the present application shown in Figure 3 or Figure 5. The specific functions of the processing unit 702 in this embodiment are introduced below.
[0397] The processing unit 702 is used to: determine whether a direct link can be established between the first terminal device and the third terminal device; if it is determined that a direct link cannot be established between the first terminal device and the third terminal device, select a first relay device from M relay devices that can communicate with the third terminal device based on the first information; the first information includes: the signal quality between each of the M relay devices and the first terminal device; M is a positive integer; and send a service data packet to be sent to the third terminal device to the first relay device through the communication unit 701.
[0398] Optionally, the processing unit 702 is specifically used to: when it is determined that a direct link can be established between the first terminal device and the third terminal device, send a service data packet to the third terminal device through the direct link between the first terminal device and the third terminal device through the communication unit 701.
[0399] Optionally, the processing unit 702 is specifically used to: when the signal quality of the second message from the third terminal device is less than a fifth threshold, determine that a direct link cannot be established between the first terminal device and the third terminal device; when the signal quality of the second message from the third terminal device is greater than or equal to the fifth threshold, determine that a direct link can be established between the first terminal device and the third terminal device.
[0400] Optionally, the signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold; and / or, the first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices.
[0401] Optionally, the first information further includes the signal quality between each of the M relay devices and the third terminal device.
[0402] The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold, and the signal quality between the first relay device and the third terminal device is greater than or equal to a fourth threshold; or
[0403] The first relay device is a relay device having the highest signal quality with the first terminal device among the M relay devices, and the signal quality between the first relay device and the third terminal device is greater than or equal to a fourth threshold; or
[0404] The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold, and the first relay device is the relay device with the highest signal quality between the first relay device and the third terminal device among the M relay devices; or
[0405] The first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices, and the first relay device is the relay device with the highest signal quality between it and the third terminal device among the M relay devices.
[0406] Optionally, the processing unit 702 is specifically used to: before selecting a first relay device from M relay devices that can communicate with a third terminal device based on the first information, receive signal quality indication information from each of the M relay devices through the communication unit 701, and the signal quality indication information from each of the M relay devices is used to indicate the signal quality between each relay device and the third terminal device.
[0407] Optionally, the first information also includes the connection status between each of the M relay devices and the first terminal device, and a unicast connection has been established between the first relay device and the first terminal device.
[0408] Optionally, the processing unit 702 is specifically used to: before selecting a first relay device from M relay devices that can communicate with a third terminal device based on the first information, receive indication information from each of the N relay devices through the communication unit 701, where the indication information from each of the N relay devices is used to indicate at least one terminal device that can communicate with each relay device, where N is a positive integer; and determine M relay devices among the N relay devices that can communicate with the third terminal device based on the indication information from the N relay devices.
[0409] Optionally, the processing unit 702 is specifically used to: when the first terminal device fails to select the first relay device from M relay devices based on the first information, send a third message to the third terminal device through the communication unit 701, and the third message is used to request to establish a direct link between the first terminal device and the third terminal device.
[0410] Optionally, the processing unit 702 is specifically used to: when the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, select the first relay device from M relay devices that can communicate with the third terminal device according to the first information.
[0411] Optionally, the processing unit 702 is specifically used to: before selecting the first relay device from M relay devices that can communicate with the third terminal device based on the first information, when the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, release the first connection between the first terminal device and the third terminal device, the first connection being an end-to-end connection between the first terminal device and the third terminal device.
[0412] In another embodiment, the communication device 700 is applied to the first relay device in the embodiment of the present application shown in Figure 4 or Figure 6. The specific functions of the processing unit 702 in this embodiment are introduced below.
[0413] The processing unit 702 is used to: send third indication information to the first terminal device through the communication unit 701, the third indication information is used to indicate at least one service, and the service data packet of each service in the at least one service is a service data packet that at least one terminal device that can communicate with the first relay device expects to receive; receive service data packets of the target service from the first terminal device through the communication unit 701, and at least one service includes the target service; send service data packets of the target service to the third terminal device through the communication unit 701, and the third terminal device is a terminal device that expects to receive service data packets of the target service among P terminal devices that can communicate with the first relay device, and P is a positive integer.
[0414] Optionally, before receiving the service data packet of the target service from the first terminal device, the processing unit 702 is specifically used to: receive a first request from the first terminal device through the communication unit 701, the first request being used to request establishment of a unicast connection between the first relay device and the first terminal device, and the first request including indication information of the target service; determine a third terminal device from P terminal devices based on the indication information of the target service; send a second request to the third terminal device through the communication unit 701, the second request being used to request establishment of a unicast connection between the first relay device and the third terminal device; receive a third request from the first terminal device through the communication unit 701, the third request being used to request establishment of an end-to-end unicast connection between the first terminal device and the third terminal device; and send a third request to the third terminal device through the communication unit 701.
[0415] Optionally, the processing unit 702 is specifically used to: before sending the third indication information to the first terminal device, receive indication information from each of the P terminal devices through the communication unit 701, the indication information of each of the P terminal devices is used to indicate Q services, and the service data packet of each of the Q services is the service data packet that each terminal device expects to receive, and Q is a positive integer.
[0416] In yet another embodiment, the communication device 700 is applied to the first terminal device in the embodiment of the present application shown in Figure 4 or Figure 6. The specific functions of the processing unit 702 in this embodiment are introduced below.
[0417] The processing unit 702 is used to: receive third indication information from each of the R relay devices respectively through the communication unit 701, where the third indication information from each of the R relay devices is used to indicate at least one service, and the service data packet of each service in the at least one service is a service data packet that at least one terminal device that can communicate with each relay device expects to receive, and R is a positive integer; based on the third indication information from each of the R relay devices, select a first relay device from the R relay devices, where the first relay device can communicate with a third terminal device that expects to receive the service data packet of the target service; and send the service data packet of the target service to the first relay device through the communication unit 701.
[0418] Optionally, the R relay devices also include a fourth relay device, which can communicate with the third terminal device, and the processing unit 702 is specifically used to: receive a third response from the first relay device through the communication unit 701, the third response is used to indicate that a second connection is established between the first terminal device and the third terminal device through the first relay device; receive a fourth response from the fourth relay device through the communication unit 701, the fourth response is used to indicate that a third connection is established between the first terminal device and the third terminal device through the fourth relay device; when the signal quality of the second connection is greater than or equal to the signal quality of the third connection, send a service data packet of the target service to the first relay device through the communication unit 701.
[0419] It should be noted that the division of modules in the above embodiments of the present application is illustrative and is only a logical functional division. In actual implementation, there may be other division methods. In addition, the functional units in the various embodiments of the present application may be integrated into a processing unit, or may exist separately physically, or two or more units may be integrated into a single unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0420] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it 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 all or 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 a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor 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.
[0421] Based on the same technical concept, the embodiment of the present application provides a communication device as shown in Figure 8, which can be used to perform the relevant steps in the above method embodiment. The communication device can be applied to the terminal device in the communication system shown in Figure 1A, or the relay device or source terminal device in the communication system shown in Figure 1B, and can implement the communication method provided in the above embodiments and examples of the present application, and has the functions of the communication device shown in Figure 7. Referring to Figure 8, the communication device 800 includes: a communication module 801, a processor 802 and a memory 803. Among them, the communication module 801, the processor 802 and the memory 803 are interconnected.
[0422] Optionally, the communication module 801, the processor 802, and the memory 803 are interconnected via a bus 804. The bus 804 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG8 shows only one thick line, but this does not mean that there is only one bus or one type of bus.
[0423] The communication module 801 is used to receive and send data to realize communication interaction with other devices. For example, the communication module 801 can be realized through a physical interface, a communication module, a communication interface, and an input / output interface.
[0424] The processor 802 may be configured to support the communication device 800 in executing the processing actions in the above-described method embodiment. When the communication device 800 is configured to implement the above-described method embodiment, the processor 802 may also be configured to implement the functions of the processing unit 702. The processor 802 may be a CPU, other general-purpose processors, DSPs, ASICs, FPGAs, other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.
[0425] In one embodiment, the communication device 800 is applied to the first relay device in the embodiment of the present application shown in Figure 2 or Figure 5. The processor 802 is specifically configured to: obtain first indication information indicating a first set, where the first set includes at least one terminal device; determine whether each terminal device in the first set can communicate with the first relay device; and send, via the communication module 801, second indication information indicating a second set to the first terminal device, where the second set includes terminal devices in the first set that can communicate with the first relay device.
[0426] In another embodiment, the communication device 800 is applied to the first terminal device in the embodiment of the present application shown in FIG3 or FIG5 . The processor 802 is specifically configured to: determine whether a direct link can be established between the first terminal device and the third terminal device; if it is determined that a direct link cannot be established between the first terminal device and the third terminal device, select a first relay device from M relay devices that can communicate with the third terminal device based on first information; the first information includes: signal quality between each of the M relay devices and the first terminal device; M is a positive integer; and send a service data packet to be sent to the third terminal device to the first relay device via the communication module 801.
[0427] In another embodiment, the communication device 800 is applied to the first relay device in the embodiment of the present application shown in Figure 4 or Figure 6. The processor 802 is specifically configured to: send third indication information to the first terminal device through the communication module 801, the third indication information being used to indicate at least one service, wherein the service data packet of each service in the at least one service is a service data packet that at least one terminal device capable of communicating with the first relay device expects to receive; receive a service data packet of a target service from the first terminal device through the communication module 801, wherein the at least one service includes a target service; and send a service data packet of the target service to a third terminal device through the communication module 801, wherein the third terminal device is a terminal device that expects to receive the service data packet of the target service among P terminal devices capable of communicating with the first relay device, where P is a positive integer.
[0428] In another embodiment, the communication device 800 is applied to the first terminal device in the embodiment of the present application shown in Figure 4 or Figure 6. The processor 802 is specifically configured to: receive third indication information from each of the R relay devices through the communication module 801, respectively, where the third indication information from each of the R relay devices is used to indicate at least one service, where the service data packet of each service in the at least one service is a service data packet that at least one terminal device capable of communicating with each relay device expects to receive, and R is a positive integer; select a first relay device from the R relay devices based on the third indication information from each of the R relay devices, where the first relay device is capable of communicating with a third terminal device that expects to receive the service data packet of the target service; and send the service data packet of the target service to the first relay device through the communication module 801.
[0429] The specific functions of the processor 802 can refer to the description of the communication method provided in the above embodiments and examples of the present application, as well as the specific functional description of the communication device 700 in the embodiment of the present application shown in Figure 7, which will not be repeated here.
[0430] The memory 803 is used to store program instructions and data. Specifically, the program instructions may include program code, which includes computer operating instructions. The memory 803 may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. The processor 802 executes the program instructions stored in the memory 803 and uses the data stored in the memory 803 to implement the above functions, thereby realizing the communication method provided in the above embodiment of the present application.
[0431] It is understood that the memory 803 in FIG. 8 of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be ROM, programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory can be 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.
[0432] Based on the above embodiments, an embodiment of the present application further provides a computer program, which, when executed on a computer, enables the computer to execute the method provided in the above embodiments.
[0433] Based on the above embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in the above embodiments.
[0434] The storage medium may be any available medium that can be accessed by a computer. By way of example and not limitation, computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.
[0435] Based on the above embodiments, an embodiment of the present application further provides a chip, which is used to read a computer program stored in a memory to implement the method provided in the above embodiments.
[0436] Based on the above embodiments, embodiments of the present application provide a chip system, which includes a processor for supporting a computer device to implement the functions involved in each device in the above embodiments. In one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.
[0437] In summary, embodiments of the present application provide a communication method, apparatus, and device. In this method, after determining whether each terminal device in a first set can communicate with a first relay device, the first relay device may send second indication information to the first terminal device, indicating a second set, where the second set includes the terminal devices in the first set that can communicate with the first relay device. This method improves the accuracy of the information sent by the first relay device; thus, the first terminal device can select the first relay device for inter-terminal device communication based on the accurate second indication information, thereby improving the quality of communication between the terminal devices.
[0438] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0439] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0440] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.
[0441] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0442] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0443] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.
Claims
1. A communication method, applied to a first relay device, characterized in that: include: Acquire first indication information for indicating a first set, where the first set includes at least one terminal device; determining whether each terminal device in the first set can communicate with the first relay device; Second indication information for indicating a second set is sent to the first terminal device, where the second set includes terminal devices in the first set that can communicate with the first relay device.
2. The method according to claim 1, wherein Determining whether each terminal device in the first set can communicate with the first relay device includes: The second terminal device is any terminal device in the first set. If the first message from the second terminal device is received, it is determined that the second terminal device can communicate with the first relay device; if the first message from the second terminal device is not received, it is determined that the second terminal device cannot communicate with the first relay device.
3. The method according to claim 2, wherein The first message is at least one of the following: A notification message sent by the second terminal device, where the notification message is used by a communication device other than the second terminal device to discover the second terminal device; The response message sent by the second terminal device is used to respond to the request message or unicast connection establishment request sent by the first relay device, the request message is used for a communication device other than the first relay device to discover the first relay device, and the unicast connection establishment request is used to request to establish a connection between the first relay device and the second terminal device.
4. The method according to any one of claims 1 to 3, wherein Sending second indication information for indicating the second set to the first terminal device includes: Within a first time period after determining whether each terminal device in the first set is capable of communicating with the first relay device, the second indication information for indicating the second set is sent to the first terminal device.
5. The method according to any one of claims 1 to 4, characterized in that Each terminal device in the second set has the capability of communicating with the terminal device through the relay device.
6. The method according to claim 5, wherein Before sending second indication information indicating the second set to the first terminal device, the method further includes: Capability indication information of each terminal device in the first set is obtained, where the capability indication information of each terminal device in the first set is used to indicate whether each terminal device has the capability to communicate with the terminal device through the relay device.
7. The method according to any one of claims 1 to 6, wherein: The signal quality between each terminal device in the second set and the first relay device is greater than or equal to a first threshold.
8. The method according to claim 7, wherein The signal quality between each terminal device in the second set and the first relay device is less than a second threshold, and the second threshold is greater than the first threshold.
9. The method according to any one of claims 1 to 8, wherein After determining whether each terminal device in the first set is capable of communicating with the first relay device, the method further includes: Send information indicating signal quality between each terminal device in the second set and the first relay device.
10. The method according to any one of claims 1 to 9, wherein The first indication information includes indication information of each terminal device in the first set; the second indication information includes indication information of each terminal device in the second set.
11. A communication method, applied to a first terminal device, characterized in that: include: Determining whether a direct link can be established between the first terminal device and the third terminal device; If it is determined that a direct link cannot be established between the first terminal device and the third terminal device, selecting a first relay device from M relay devices that can communicate with the third terminal device according to the first information; The first information includes: signal quality between each of the M relay devices and the first terminal device; M is a positive integer; Sending a service data packet to be sent to the third terminal device to the first relay device.
12. The method according to claim 11, wherein The method further comprises: If it is determined that a direct link can be established between the first terminal device and the third terminal device, the service data packet is sent to the third terminal device through the direct link between the first terminal device and the third terminal device.
13. The method according to claim 11 or 12, wherein: Determining whether a direct link can be established between the first terminal device and the third terminal device includes: When the signal quality of the second message from the third terminal device is less than a fifth threshold, determining that a direct link cannot be established between the first terminal device and the third terminal device; When the signal quality of the second message from the third terminal device is greater than or equal to the fifth threshold, it is determined that a direct link can be established between the first terminal device and the third terminal device.
14. The method according to any one of claims 11 to 13, wherein: The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold; and / or, The first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices.
15. The method according to any one of claims 11 to 14, wherein: The first information also includes the signal quality between each of the M relay devices and the third terminal device, The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold, and the signal quality between the first relay device and the third terminal device is greater than or equal to a fourth threshold; or The first relay device is a relay device having the highest signal quality with the first terminal device among the M relay devices, and the signal quality between the first relay device and the third terminal device is greater than or equal to a fourth threshold; or The signal quality between the first relay device and the first terminal device is greater than or equal to a third threshold, and the first relay device is the relay device with the highest signal quality between the first relay device and the third terminal device among the M relay devices; or The first relay device is the relay device with the highest signal quality between it and the first terminal device among the M relay devices, and the first relay device is the relay device with the highest signal quality between it and the third terminal device among the M relay devices.
16. The method according to claim 15, wherein Before selecting the first relay device from the M relay devices capable of communicating with the third terminal device according to the first information, the method further includes: Signal quality indication information from each of the M relay devices is received respectively, where the signal quality indication information from each of the M relay devices is used to indicate the signal quality between each relay device and the third terminal device.
17. The method according to any one of claims 11 to 16, wherein: The first information also includes a connection status between each of the M relay devices and the first terminal device, and a unicast connection has been established between the first relay device and the first terminal device.
18. The method according to any one of claims 11 to 17, wherein: Before selecting the first relay device from the M relay devices capable of communicating with the third terminal device according to the first information, the method further includes: Receiving indication information from each of N relay devices respectively, where the indication information from each of the N relay devices is used to indicate at least one terminal device that can communicate with each relay device, where N is a positive integer; The M relay devices among the N relay devices that can communicate with the third terminal device are determined according to the indication information from the N relay devices.
19. The method according to any one of claims 11 to 18, wherein: The method further comprises: When the first terminal device fails to select the first relay device from the M relay devices according to the first information, a third message is sent to the third terminal device, where the third message is used to request establishment of a direct link between the first terminal device and the third terminal device.
20. The method according to any one of claims 11 to 19, wherein: Selecting, according to the first information, a first relay device from M relay devices capable of communicating with the third terminal device, comprising: When the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, the first relay device is selected from the M relay devices that can communicate with the third terminal device based on the first information.
21. The method according to claim 20, wherein Before selecting the first relay device from the M relay devices capable of communicating with the third terminal device according to the first information, the method further includes: When the connection between the first terminal device and the second relay device is interrupted, or the connection between the third terminal device and the second relay device is interrupted, the first connection between the first terminal device and the third terminal device is released, where the first connection is an end-to-end connection between the first terminal device and the third terminal device.
22. A communication device, characterized in that: Including communication unit and processing unit: The communication unit is used to input and / or output signaling or data; The processing unit is configured to execute, through the communication unit: the method according to any one of claims 1 to 10, or the method according to any one of claims 11 to 21.
23. A communication device, characterized in that: Including communication module and processor: The communication module is used to input and / or output signaling or data; The processor is configured to execute a computer-executable program so that the method according to any one of claims 1 to 10 is executed, or the method according to any one of claims 11 to 21 is executed.
24. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when called by a computer, enable the method according to any one of claims 1 to 10 to be executed, or enable the method according to any one of claims 11 to 21 to be executed.
25. A chip, characterized in that: The chip is coupled to a memory, and the chip reads a computer program stored in the memory to execute the method according to any one of claims 1 to 10, or executes the method according to any one of claims 11 to 21.
26. A communication system, characterized in that: The invention comprises a communication device for executing the method according to any one of claims 1 to 10, and a communication device for executing the method according to any one of claims 11 to 21.
