Communication method, device and communication system

By sending relevant parameters to network devices in the relay scenario and configuring appropriate timer values, the problem of low communication performance in the relay scenario is solved, and the accurate control of the timer and the improvement of communication performance is achieved.

CN119316979APending Publication Date: 2025-01-14HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310875943.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-14
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In relay scenarios, it is difficult for the prior art to effectively improve communication performance, especially when communication between terminal devices is conducted through relay terminal devices, the timer configuration method is insufficient, resulting in a degradation of communication performance.

Method used

By sending relevant parameters to the network device, determining the number or hops of the relay terminal device, thereby configuring a suitable timer value, so that the terminal device can start or stop the timer correctly, improving the communication performance of the relay scenario.

Benefits of technology

It realizes the accurate configuration of the timer in the relay scenario, improves communication performance, avoids communication failure caused by the premature expiration of the timer, and improves link stability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316979A_ABST
    Figure CN119316979A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method, a communication device and a communication system, which are used for improving the communication performance of a relay scene. A first terminal device sends a first parameter to a network device, and receives a value of a first timer from the network device. Wherein the first parameter is related to the number of relay terminal devices between a first terminal device and a second terminal device, the first terminal device communicates with the second terminal device through the relay terminal devices, or the first parameter is related to the hop count between the first terminal device and the second terminal device. Thus, the first terminal equipment can report the first parameter to the network equipment, so that the network equipment sends the value of the first timer to the first terminal equipment based on the first parameter, thereby realizing timer configuration in a relay scene, and enabling the subsequent first terminal equipment to correctly start or stop the timer when meeting conditions. And the communication performance of the relay scene is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method, device and communication system. Background Art

[0002] In a wireless communication system, terminal devices can communicate with each other through a network, or they can communicate with each other directly without the help of network devices. When terminal devices communicate with each other directly, the link between them is called a sidelink (SL). Terminal devices can directly transmit data through a sidelink without going through a network, which can effectively reduce communication delays.

[0003] In some scenarios, terminal devices can communicate with each other through one or more relay terminal devices to improve the sidelink coverage and capacity. In this scenario, the source terminal device and the relay terminal device, the relay terminal device and the target terminal device, and the relay terminal devices communicate with each other through the sidelink.

[0004] Currently, in the scenario where two terminal devices communicate directly, when a terminal device sends a sidelink configuration message, it starts a timer for the target terminal device that receives the message, and stops the timer when it receives a configuration response message or a link failure message returned by the target terminal device. If the timer expires, the terminal device determines that the link has failed. However, there is currently no clear method for how to ensure communication performance in relay scenarios. Based on this, how to improve the communication performance of relay scenarios is an urgent problem to be solved. Summary of the invention

[0005] The present application provides a communication method, device and communication system for improving the communication performance in a relay scenario.

[0006] In a first aspect, the present application provides a communication method, which can be applied to a first terminal device, or a component (such as a processor, a chip, a chip system, a circuit or other, etc.) configured in the first terminal device, or a software module. The method may include: sending a first parameter to a network device, and receiving a value of a first timer from the network device. The first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0007] Based on the above communication method, the first terminal device can report the first parameter to the network device so that the network device sends the value of the first timer to the first terminal device based on the first parameter, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met, thereby improving the communication performance of the relay scenario.

[0008] In a possible design, the value of the first timer is determined based on the first parameter. This allows the network device to accurately determine the value of the first timer based on the first parameter and then configure it to the first terminal device.

[0009] In one possible design, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, including: the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus 1. In this way, the first parameter can be accurately determined in combination with the number of relay terminal devices between the first terminal device and the second terminal device, and then the value of the first timer can be accurately determined.

[0010] In one possible design, the first parameter is related to the number of hops between the first terminal device and the second terminal device, including: the first parameter is the number of hops between the first terminal device and the second terminal device; or the first parameter is the number of hops between the first terminal device and the second terminal device minus one. In this way, the first parameter can be accurately determined in combination with the number of hops between the first terminal device and the second terminal device, and then the value of the first timer can be accurately determined.

[0011] In one possible design, it is determined that the first condition is met and the first timer is stopped; wherein the first condition may include: receiving first indication information from the first relay terminal device, the first indication information is used to instruct the first terminal device to retain the unicast connection with the first relay terminal device, or to instruct the first terminal device to release the unicast connection with the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and a third terminal device, the third terminal device is the second terminal device or the third terminal device is a relay terminal device between the first relay terminal device and the second terminal device, the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device. In this way, the first terminal device can correctly stop the first timer when it is determined that the first condition is met.

[0012] In a possible design, if the first timer expires, one or more of the following operations may be performed: a message is sent to the first relay terminal device to indicate that the link between the first relay terminal device and the fourth terminal device is kept activated, the first relay terminal device is one of the relay terminal devices, the first relay terminal device communicates directly with the first terminal device, the fourth terminal device is the second terminal device or the fourth terminal device is a relay terminal device between the first relay terminal device and the second terminal device; or, second indication information is sent to the first relay terminal device, the second indication information is used to indicate that the first timer expires. In this way, after the first timer expires, the first terminal device can perform a corresponding operation.

[0013] In one possible design, a first parameter is determined so that the first parameter is subsequently reported to a network device.

[0014] In a possible design, the first parameter can be determined by the following method: the first parameter is determined according to the fourth parameter, the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter includes the identifier of one or more relay terminal devices; wherein the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device. In this way, the first parameter can be accurately determined based on the fourth parameter, and then subsequently reported to the network device.

[0015] In one possible design, a fourth parameter is determined, so that the first terminal device determines the first parameter based on the fourth parameter.

[0016] In a possible design, the fourth parameter can be determined by the following method: receiving the fourth parameter from the first relay terminal device. In this way, the fourth parameter can be directly obtained from the first relay terminal device, thereby accurately determining the first parameter.

[0017] In a possible design, the fourth parameter may be determined by the following method: receiving a first value of the fourth parameter, so that the first parameter may be subsequently determined based on the first value of the fourth parameter.

[0018] In one possible design, the second value of the fourth parameter is sent, and the second value is used to determine the first value. In this way, the relay terminal device and the second terminal device can accurately determine the first value of the fourth parameter in combination with the second value of the fourth parameter.

[0019] In a possible design, the fourth parameter can be determined by the following method: sending the fifth parameter and the sixth parameter, the fifth parameter represents the maximum number of relay terminal devices, the sixth parameter represents the remaining number of relay terminal devices, or the fifth parameter represents the maximum number of hops, the sixth parameter represents the remaining number of hops; receiving the fourth parameter, the fourth parameter is determined based on the fifth parameter and the sixth parameter. In this way, the fourth parameter can be accurately determined, and then the first parameter can be accurately determined.

[0020] In a possible design, the first parameter is determined according to the fourth parameter, and the method may be: when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; or, when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two. In this way, the first parameter can be accurately determined based on the fourth parameter.

[0021] In a possible design, the first parameter is sent to the second terminal device so that the first parameters of the second terminal device and the first terminal device are aligned, and then a suitable timer is started when the second terminal device subsequently transmits information to the first terminal device.

[0022] In a second aspect, the present application provides a communication method, which can be applied to a network device, or a component (such as a processor, a chip, a chip system, a circuit or other, etc.) configured in the network device, or a software module. The method may include: receiving a first parameter from a first terminal device, and sending a value of a first timer to the first terminal device. The first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0023] Based on the above communication method, the first terminal device reports the first parameter to the network device so that the network device sends the value of the first timer to the first terminal device based on the first parameter, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met, thereby improving the communication performance of the relay scenario.

[0024] In one possible design, the value of the first timer is determined according to the first parameter. In this way, the network device can accurately determine the value of the first timer based on the first parameter, and then configure the value of the first timer to the first terminal device.

[0025] In one possible design, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, including: the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus 1. In this way, the first parameter can be accurately determined in combination with the number of relay terminal devices between the first terminal device and the second terminal device, and then the value of the first timer can be accurately determined.

[0026] The first parameter is related to the number of hops between the first terminal device and the second terminal device, including: the first parameter is the number of hops between the first terminal device and the second terminal device; or the first parameter is the number of hops between the first terminal device and the second terminal device minus 1. In this way, the first parameter can be accurately determined in combination with the number of hops between the first terminal device and the second terminal device, and then the value of the first timer can be accurately determined.

[0027] In a third aspect, the present application provides a communication method, which can be applied to a first terminal device, or a component (such as a processor, a chip, a chip system, a circuit or other, etc.) configured in the first terminal device, or a software module. The method may include: determining first information, and determining a value of a first timer according to the first information. The first information includes a first parameter; the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0028] Based on the above communication method, the first terminal device can accurately determine the value of the first timer based on the first parameter, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met, thereby improving the communication performance of the relay scenario.

[0029] In one possible design, the value of the first timer is positively correlated with the first parameter.

[0030] In one possible design, the first information also includes a second parameter and a third parameter, or the first information also includes a second parameter, the second parameter includes a value of the second timer, and the third parameter includes an offset value. In this way, the first terminal device can also accurately determine the value of the first timer in combination with the second parameter or the second parameter and the third parameter.

[0031] In one possible design, when the first information also includes a second parameter and a third parameter, the value of the first timer is positively correlated with the first parameter, the second parameter and the third parameter, or the value of the first timer is positively correlated with the first parameter and the second parameter and negatively correlated with the third parameter; when the first information also includes a second parameter, the value of the first timer is positively correlated with the first parameter and the second parameter.

[0032] In one possible design, determining the value of the first timer according to the first information may include: the value of the first timer = T0+N*T1; or, the value of the first timer = N*T0+T1; or, the value of the first timer = N*T0-T1; or, the value of the first timer = N*(T0+T1); or, the value of the first timer = N*(T0-T1); or, the value of the first timer = T0+(N-1)*T1; or, the value of the first timer = (N-1)*T0+T1; or, the value of the first timer = (N-1)*T0-T1; or, the value of the first timer = (N-1)*(T0+T1); or, the value of the first timer = (N-1)*(T0-T1); or, the value of the first timer = (N+1)*T0; or, the value of the first timer = N*T0. Wherein, T0 is the value of the second timer, and T0 is a positive number; T1 is the offset value, and T1 is a number greater than or equal to 0; N is the first parameter, and the first parameter is a positive integer. In this way, the value of the first timer can be accurately determined.

[0033] In one possible design, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, including: the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus 1. In this way, the first parameter can be accurately determined in combination with the number of relay terminal devices between the first terminal device and the second terminal device, and then the value of the first timer can be accurately determined.

[0034] In one possible design, the first parameter is related to the number of hops between the first terminal device and the second terminal device, including: the first parameter is the number of hops between the first terminal device and the second terminal device; or the first parameter is the number of hops between the first terminal device and the second terminal device minus one. In this way, the first parameter can be accurately determined in combination with the number of hops between the first terminal device and the second terminal device, and then the value of the first timer can be accurately determined.

[0035] In one possible design, it is determined that the first condition is met and the first timer is stopped; wherein the first condition may include: receiving first indication information from the first relay terminal device, the first indication information is used to instruct the first terminal device to retain the unicast connection with the first relay terminal device, or to instruct the first terminal device to release the unicast connection with the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and a third terminal device, the third terminal device is the second terminal device or the third terminal device is a relay terminal device between the first relay terminal device and the second terminal device, the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device. In this way, the first terminal device can correctly stop the first timer when it is determined that the first condition is met.

[0036] In a possible design, if the first timer expires, one or more of the following operations may be performed: a message is sent to the first relay terminal device to indicate that the link between the first relay terminal device and the fourth terminal device is kept activated, the first relay terminal device is one of the relay terminal devices, the first relay terminal device communicates directly with the first terminal device, the fourth terminal device is the second terminal device or the fourth terminal device is a relay terminal device between the first relay terminal device and the second terminal device; or, second indication information is sent to the first relay terminal device, the second indication information is used to indicate that the first timer expires. In this way, after the first timer expires, the first terminal device can perform a corresponding operation.

[0037] In a possible design, the first parameter included in the first information can be determined by the following method: the first parameter is determined according to the fourth parameter, the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter includes the identification of one or more relay terminal devices; wherein the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device. In this way, the first parameter can be accurately determined based on the fourth parameter, and then reported to the network device later.

[0038] In one possible design, a fourth parameter is determined, so that the first terminal device determines the first parameter based on the fourth parameter.

[0039] In a possible design, the fourth parameter can be determined by the following method: receiving the fourth parameter from the first relay terminal device. In this way, the fourth parameter can be directly obtained from the first relay terminal device, thereby accurately determining the first parameter.

[0040] In a possible design, the fourth parameter may be determined by the following method: receiving a first value of the fourth parameter, so that the first parameter may be subsequently determined based on the first value of the fourth parameter.

[0041] In one possible design, the second value of the fourth parameter is sent, and the second value is used to determine the first value. In this way, the relay terminal device and the second terminal device can accurately determine the first value of the fourth parameter in combination with the second value of the fourth parameter.

[0042] In a possible design, the fourth parameter can be determined by the following method: sending the fifth parameter and the sixth parameter, the fifth parameter represents the maximum number of relay terminal devices, the sixth parameter represents the remaining number of relay terminal devices, or the fifth parameter represents the maximum number of hops, the sixth parameter represents the remaining number of hops; receiving the fourth parameter, the fourth parameter is determined based on the fifth parameter and the sixth parameter. In this way, the fourth parameter can be accurately determined, and then the first parameter can be accurately determined.

[0043] In a possible design, the first parameter is determined according to the fourth parameter, and the method may be: when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; or, when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two. In this way, the first parameter can be accurately determined based on the fourth parameter.

[0044] In a possible design, the first parameter is sent to the second terminal device so that the first parameters of the second terminal device and the first terminal device are aligned, and then a suitable timer is started when the second terminal device subsequently transmits information to the first terminal device.

[0045] In a fourth aspect, the present application provides a communication method, which can be applied to a first terminal device, or a component (such as a processor, a chip, a chip system, a circuit or other, etc.) configured in the first terminal device, or a software module. The method may include: determining second information, and determining the value of a first timer according to the second information. The second information includes a second parameter and a third parameter, or the second information includes a second parameter, the second parameter includes the value of a second timer, and the third parameter includes an offset value.

[0046] Based on the above communication method, in a scenario with only one relay terminal device, the first terminal device can accurately determine the value of the first timer, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met.

[0047] In a possible design, the value of the first timer is determined according to the second information, and the method may be: when the second information includes the second parameter, the value of the first timer = a multiple of the value of the second timer; when the second information includes the second parameter and the third parameter, the value of the first timer is the sum of the value of the second timer and the offset value, or the value of the first timer is the difference between the multiple of the value of the second timer and the offset value. In this way, the first terminal device can accurately determine the value of the first timer based on the second information.

[0048] In one possible design, the multiple of the value of the second timer may be twice the value of the second timer.

[0049] In one possible design, it is determined that the first condition is met and the first timer is stopped; wherein the first condition may include: receiving first indication information from the first relay terminal device, the first indication information is used to instruct the first terminal device to retain the unicast connection with the first relay terminal device, or to instruct the first terminal device to release the unicast connection with the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the first relay terminal device. In this way, the first terminal device can correctly stop the first timer when it is determined that the first condition is met.

[0050] In a possible design, if the first timer expires, one or more of the following operations may be performed: a message is sent to the first relay terminal device to instruct the first relay terminal device to keep the link activated with the second terminal device, and the first terminal device communicates with the second terminal device through the first relay terminal device; or, a second indication message is sent to the first relay terminal device, and the second indication message is used to indicate the expiration of the first timer. In this way, after the first timer expires, the first terminal device can perform the corresponding operation.

[0051] In a fifth aspect, the present application provides a communication method, which can be applied to a network device, or a component (such as a processor, a chip, a chip system, a circuit or other, etc.) configured in the network device, or a software module. The method may include: determining a value of a first timer, and sending the value of the first timer to a first terminal device.

[0052] Based on the above communication method, in a scenario with only one relay terminal device, the first terminal device can obtain the value of the first timer from the network device, thereby implementing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met.

[0053] In one possible design, the second parameter may be obtained, or the second parameter and the third parameter may be obtained, and then the value of the first timer may be determined based on the second parameter or the second parameter and the third parameter. In this way, the network device may accurately determine the value of the first timer.

[0054] In a sixth aspect, the present application provides a communication method, which can be applied to a first terminal device, or a component (such as a processor, a chip, a chip system, a circuit or other, etc.) configured in the first terminal device, or a software module. The method may include: determining a first parameter, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0055] Based on the above communication method, the first terminal device can accurately determine the first parameter, and then subsequently determine the value of the first timer based on the first parameter, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met.

[0056] In a possible design, the first parameter can be determined based on the following method: the first parameter is determined according to the fourth parameter, the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter includes the identifier of one or more relay terminal devices; wherein the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device. In this way, the first parameter can be accurately determined based on the fourth parameter, and then subsequently reported to the network device.

[0057] In one possible design, a fourth parameter is determined, so that the first terminal device determines the first parameter based on the fourth parameter.

[0058] In a possible design, the fourth parameter may be determined based on the following method: receiving the fourth parameter from the first relay terminal device. In this way, the fourth parameter may be directly obtained from the first relay terminal device, thereby accurately determining the first parameter.

[0059] In a possible design, the fourth parameter may be determined based on the following method: a first value of the fourth parameter is received, so that the first parameter may be subsequently determined based on the first value of the fourth parameter.

[0060] In one possible design, the second value of the fourth parameter is sent, and the second value is used to determine the first value. In this way, the relay terminal device and the second terminal device can accurately determine the first value of the fourth parameter in combination with the second value of the fourth parameter.

[0061] In a possible design, the fourth parameter can be determined based on the following method: sending the fifth parameter and the sixth parameter, the fifth parameter represents the maximum number of relay terminal devices, the sixth parameter represents the remaining number of relay terminal devices, or the fifth parameter represents the maximum number of hops, the sixth parameter represents the remaining number of hops; receiving the fourth parameter, the fourth parameter is determined based on the fifth parameter and the sixth parameter. In this way, the fourth parameter can be accurately determined, and then the first parameter can be accurately determined.

[0062] In a possible design, the first parameter is determined according to the fourth parameter, and the method may be: when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; or, when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two. In this way, the first parameter can be accurately determined based on the fourth parameter.

[0063] In one possible design, a first parameter is sent to the second terminal device to align the first parameters of the second terminal device with those of the first terminal device, and then a suitable timer is started when the second terminal device subsequently transmits information to the first terminal device.

[0064] In a seventh aspect, the present application provides a communication method, which can be applied to a first terminal device, or a component (such as a processor, chip, chip system, circuit or other, etc.) configured in the first terminal device, or a software module. The method may include: determining that a first condition is met and stopping a first timer; wherein the first condition may include: receiving a first indication information from a first relay terminal device, the first indication information is used to indicate that the first terminal device retains a unicast connection with the first relay terminal device, or is used to indicate that the first terminal device releases a unicast connection with the first relay terminal device, or is used to indicate that a wireless link failure occurs between the first relay terminal device and a third terminal device, the third terminal device is the second terminal device or the third terminal device is a relay terminal device between the first relay terminal device and the second terminal device, the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device. In this way, the first terminal device can correctly stop the first timer when it is determined that the first condition is met.

[0065] In an eighth aspect, the present application provides a communication method, which can be applied to a first terminal device, or a component (such as a processor, chip, chip system, circuit or other, etc.) configured in the first terminal device, or a software module. The method may include: if the first timer expires, one or more of the following operations may be performed: sending a message to the first relay terminal device to indicate that the link between the first relay terminal device and the fourth terminal device is kept activated, the first relay terminal device is one of the relay terminal devices, the first relay terminal device communicates directly with the first terminal device, the fourth terminal device is the second terminal device or the fourth terminal device is a relay terminal device between the first relay terminal device and the second terminal device; or, sending a second indication information to the first relay terminal device, the second indication information is used to indicate that the first timer expires. In this way, after the first timer expires, the first terminal device can perform the corresponding operation.

[0066] In a ninth aspect, the present application further provides a communication device, which may be a first terminal device. The communication device has the function of implementing the first aspect or each possible design example of the first aspect, or the third aspect or each possible design example of the third aspect, or the fourth aspect or each possible design example of the fourth aspect, or the sixth aspect or each possible design example of the sixth aspect. The function can be implemented by hardware, or the corresponding software can be implemented by hardware. The hardware or software includes one or more modules corresponding to the above functions.

[0067] In a possible design, the structure of the communication device includes a processing unit, and optionally, may also include a transceiver unit. These units may perform the corresponding functions in the first aspect or each possible design example of the first aspect, or the third aspect or each possible design example of the third aspect, or the fourth aspect or each possible design example of the fourth aspect, or the sixth aspect or each possible design example of the sixth aspect, and refer to the detailed description in the method example for details, which will not be described in detail here.

[0068] In one possible design, the structure of the communication device includes a processor, and optionally also includes a transceiver and / or a memory. The transceiver is used to send and receive information, and to communicate and interact with other devices in the system. The processor is configured to support the communication device to perform the corresponding functions in the first aspect or each possible design example of the first aspect, or the third aspect or each possible design example of the third aspect, or the fourth aspect or each possible design example of the fourth aspect, or the sixth aspect or each possible design example of the sixth aspect. The memory is coupled to the processor, which stores the necessary program instructions and data for the communication device.

[0069] In a tenth aspect, the present application further provides a communication device, which may be a network device. The communication device has the function of implementing the second aspect or each possible design example of the second aspect, or the fifth aspect or each possible design example of the fifth aspect. The function may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0070] In one possible design, the structure of the communication device includes a processing unit, and optionally, may also include a transceiver unit. These units may perform the corresponding functions in the second aspect or each possible design example of the second aspect, or in the fifth aspect or each possible design example of the fifth aspect, and refer to the detailed description in the method example for details, which will not be described here.

[0071] In one possible design, the structure of the communication device includes a processor, and optionally also includes a transceiver and / or a memory. The transceiver is used to send and receive information, and to communicate and interact with other devices in the system. The processor is configured to support the communication device to perform the corresponding functions in the above second aspect or each possible design example of the second aspect, or in the above fifth aspect or each possible design example of the fifth aspect. The memory is coupled to the processor, and stores the necessary program instructions and data for the communication device.

[0072] In an eleventh aspect, the present application provides a communication system, which may include a first terminal device, a second terminal device, a network device, and a relay terminal device between the first terminal device and the second terminal device; or the communication system may include a first terminal device and a second terminal device, and a relay terminal device between the first terminal device and the second terminal device.

[0073] In the twelfth aspect, a computer-readable storage medium provided by an embodiment of the present application stores program instructions, and when the program instructions are run on a computer, the computer executes the method in the first aspect of the embodiment of the present application and any possible design thereof, or the method in the second aspect and any possible design thereof, or the method in the third aspect and any possible design thereof, or the method in the fourth aspect and any possible design thereof, or the method in the fifth aspect and any possible design thereof, or the method in the sixth aspect and any possible design thereof. Exemplarily, the computer-readable storage medium can be any available medium that can be accessed by a computer. Taking this as an example but not limited to: the computer-readable medium can include a non-transient computer-readable medium, a random-access memory (RAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a CD-ROM or other optical disk storage, a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.

[0074] In a thirteenth aspect, an embodiment of the present application provides a computer program product, comprising computer program codes or instructions. When the computer program codes or instructions are run on a computer, the method of the first aspect or any possible design of the first aspect, or the method of the second aspect or any possible design of the second aspect, or the method of the third aspect or any possible design of the third aspect, or the method of the fourth aspect or any possible design of the fourth aspect, or the method of the fifth aspect or any possible design of the fifth aspect, or the method of the sixth aspect or any possible design of the sixth aspect is executed.

[0075] In the fourteenth aspect, the present application also provides a chip, including a processor, which is coupled to a memory and is used to read and execute program instructions stored in the memory, so that the chip implements the method of the above-mentioned first aspect or any possible design of the first aspect, or the above-mentioned second aspect or any possible design of the second aspect, or the above-mentioned third aspect or any possible design of the third aspect, or the above-mentioned fourth aspect or any possible design of the fourth aspect, or the above-mentioned fifth aspect or any possible design of the fifth aspect, or the above-mentioned sixth aspect or any possible design of the sixth aspect.

[0076] For each of the above-mentioned aspects 7 to 14 and the technical effects that may be achieved by each of the aspects 7 to 14, please refer to the technical effects that can be achieved by the above-mentioned first aspect or the various possible schemes in the first aspect, or the above-mentioned second aspect or the various possible schemes in the second aspect, or the third aspect and the various possible schemes in the third aspect, or the fourth aspect and the various possible schemes in the fourth aspect, or the fifth aspect and the various possible schemes in the fifth aspect, or the sixth aspect and the various possible schemes in the sixth aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A schematic diagram of the architecture of a communication system provided for this application;

[0078] Figure 2a A flow chart of a communication method provided for this application;

[0079] Figure 2b A schematic diagram of a scenario provided for this application;

[0080] Figure 2c Another scenario diagram provided for this application;

[0081] Figure 2d Another scenario diagram provided for this application;

[0082] Figure 2e Another scenario diagram provided for this application;

[0083] Figure 2f Another scenario diagram provided for this application;

[0084] Figure 2g Another scenario diagram provided for this application;

[0085] Figure 3 A flow chart of another communication method provided by the present application;

[0086] Figure 4 A flow chart of another communication method provided by the present application;

[0087] Figure 5 A flow chart of another communication method provided by the present application;

[0088] Figure 6 A flow chart of another communication method provided by the present application;

[0089] Figure 7 A schematic diagram of the structure of a communication device provided by the present application;

[0090] Figure 8 A structural diagram of a communication device provided in this application. DETAILED DESCRIPTION

[0091] The present application will be described in further detail below in conjunction with the accompanying drawings.

[0092] The embodiments of the present application provide a communication method, device and communication system for improving the communication performance of relay scenarios. The method and device described in the present application are based on the same technical concept. Since the principles of solving problems by the method and device are similar, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.

[0093] In the description of this application, words such as “first” and “second” are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.

[0094] In the description of this application, "at least one" means one or more, and more means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or plural.

[0095] In the description of this application, "and / or" describes the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. " / " means "or", for example, a / b means a or b.

[0096] In order to more clearly describe the technical solution of the embodiments of the present application, the communication method and device provided in the embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0097] The embodiments of the present application can be applied to user equipment-to-user equipment (U2U) scenarios. Figure 1 A schematic diagram of the architecture of a possible communication system applicable to the communication method provided by the present application is shown. The architecture of the communication system may include network devices (such as Figure 1 The network devices 1 and 2 shown in the figure), and the terminal devices (eg Figure 1 The source terminal device, relay terminal device and target terminal device shown in FIG. 1 are shown in FIG. 1 .

[0098] A network device is a device that provides access to a terminal device. A network device may include a radio access network (RAN) device, such as a base station. A network device may be a base station, an evolved Node B in a long term evolution (LTE) system or an advanced long term evolution (LTE-A), which may be referred to as eNB or e-NodeB for short), a transmission reception point (TRP), a next generation base station (next generation NodeB, gNB) in a fifth generation (5G) mobile communication system, a next generation base station in a sixth generation (6G) mobile communication system, a base station in a future mobile communication system, or an access node in a wireless local area network (WiFi) system, etc. It may also be an access network device in an open access network (open RAN, ORAN) system, etc. Optionally, the network device may also be a module or unit that completes part of the functions of the base station. For example, the network device may be a centralized unit (CU), a distributed unit (DU), a CU-control plane (CP), a CU-user plane (UP), or a radio unit (RU). The CU here completes the functions of the radio resource control protocol and the packet data convergence protocol (PDCP) of the base station, and can also complete the function of the service data adaptation protocol (SDAP); the DU completes the functions of the radio link control layer and the medium access control (MAC) layer of the base station, and can also complete the functions of part of the physical layer or all of the physical layer. Among them, in different systems, CU (or CU-CP and CU-UP), DU or RU may also have different names, but those skilled in the art can understand their meanings. For example, in the ORAN system, CU can also be called O-CU, DU can also be called open (open, O)-DU, CU-CP can also be called O-CU-CP, CU-UP can also be called O-CUP-UP, and RU can also be called O-RU.

[0099] Exemplarily, the network device may be a macro base station, a micro base station (also called a small station) or an indoor station, or a relay node or a donor node, etc. The network device may also be a radio network controller (RNC), a node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (e.g., a home evolved NodeB, or a homeNode B, HNB), a base band unit (BBU) or a remote radio unit (RRU), or a wireless fidelity (Wifi) access point (AP), or a base band pool (BBU pool) and RRU in a cloud radio access network (CRAN), etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the network device.

[0100] In the present application, the network device may also be a functional module, a chip or a chip system. Optionally, the functional module, the chip or the chip system may be arranged in the network device.

[0101] Terminal equipment, which can also be called user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device that provides voice and / or data connectivity to users. For example, terminal equipment may include handheld devices, vehicle-mounted devices, etc. with wireless connection functions. At present, terminal equipment may be: mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, XR devices, MR devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes, etc.

[0102] The terminal device may also be a device-to-device (D2D) communication terminal device, a vehicle to everything (V2X) communication terminal device, an intelligent vehicle, a vehicle-to-machine system (or a vehicle networking system) (telematics box, TBOX), a machine-to-machine / machine-type communication (machine-to-machine / machine-typecommunications, M2M / MTC) terminal device, or an Internet of Things (IoT) terminal device. For example, the terminal device may be a vehicle, ship, or aircraft, or a terminal-type roadside unit, or a communication module or chip built into a vehicle or roadside unit. For example, the terminal device may be a vehicle-mounted module. The terminal device may also be a roadside unit (RSU).

[0103] In the present application, the terminal device may also be a functional module, a chip or a chip system. Optionally, the functional module, the chip or the chip system may be arranged in the terminal device.

[0104] In the present application, a relay terminal device is a terminal device that supports providing a relay service, and a source terminal device and a target terminal device support communicating with each other through a relay service. The relay terminal device can assist the source terminal device and the target terminal device in communicating, thereby achieving the effect of expanding the communication range, and forwarding data between the source terminal device and the target terminal device. Sidelink (SL) communication can be performed between terminal devices. For example, SL unicast communication is performed between the source terminal device and the relay terminal device, and between the relay terminal device and the target terminal device.

[0105] In the present application, the source terminal device, the relay terminal device and the target terminal device may be in a radio resource control (RRC) connected state, an RRC idle state, an RRC inactive state, or an out of coverage (OOC) state.

[0106] It should be understood that Figure 1 The number of devices in the communication system shown is only an example and is not intended to limit the present application. For example, more relay terminal devices may be included.

[0107] At present, in the scenario where two terminal devices communicate directly, when the source terminal device sends a sidelink reconfiguration message, it will start a timer for the target terminal device that receives the message, such as timer T400, and stop the timer when the configuration response message or link failure message returned by the target terminal device is received. If the timer expires, the source terminal device determines that the link has failed. However, the above-mentioned timer is currently only applicable to the scenario where two terminal devices communicate directly, that is, the scenario where there is no relay terminal device. In the scenario where there are one or more relay terminal devices between the terminal devices, if the judgment method of the above-mentioned timer is still used, the source terminal device will prematurely judge that the timer has expired, resulting in communication failure. Based on this, an embodiment of the present application provides a communication method that can improve the communication performance of the relay scenario. For example, the communication performance of the relay scenario can be improved by flexibly configuring the timer of the source terminal device in the scenario where a relay terminal device exists.

[0108] It should be noted that in the following description of this application, the operation performed by a certain device may also be performed by a processor of a certain device, or a chip or chip system, or a functional module, etc. This application is only described by taking the execution of a certain device as an example, but it is not intended to limit this application.

[0109] Based on the above description, a communication method provided in an embodiment of the present application is applicable to Figure 1 The communication system shown. Figure 2a As shown, the specific process of the method may include:

[0110] Step 201: The first terminal device determines the first information, the first information includes a first parameter; the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0111] It should be understood that the number can also be described as quantity, etc. The number of relay terminal devices between the first terminal device and the second terminal device can be understood as how many relay terminal devices exist on the link between the first terminal device and the second terminal device, and can also be understood as how many relay terminal devices the first terminal device and the second terminal device communicate through.

[0112] The number of hops between the first terminal device and the second terminal device can be understood as the number of hops in the transmission process from the first terminal device to the second terminal device through the relay terminal device. For example, when the first terminal device and the second terminal device have a relay terminal device, the number of hops between the first terminal device and the second terminal device is 2, from the first terminal device to the relay terminal device is the first hop, and from the relay terminal device to the second terminal device is the second hop.

[0113] Among them, step 201 may be an optional step.

[0114] Optionally, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and may include: the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0115] When the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one, it can also be understood that the first parameter is numerically equal to the number of hops between the first terminal device and the second terminal device.

[0116] Optionally, the first parameter is related to the number of hops between the first terminal device and the second terminal device, which may include: the first parameter is the number of hops between the first terminal device and the second terminal device; or the first parameter is the number of hops between the first terminal device and the second terminal device minus one.

[0117] Among them, when the first parameter is the number of hops of the relay terminal device between the first terminal device and the second terminal device minus one, it can also be understood that the first parameter is numerically equal to the number of relay terminal devices between the first terminal device and the second terminal device.

[0118] Step 202: The first terminal device determines the value of the first timer according to the first information.

[0119] Based on the above method, in a scenario where a relay terminal device exists, the first terminal device can accurately configure the first timer.

[0120] Exemplarily, the first timer is used to serve end-to-end transmission. For example, the first timer can be used to determine whether end-to-end message transmission fails.

[0121] In some embodiments, the first information may further include a second parameter and a third parameter, or the first information may further include a second parameter, the second parameter may include a value of the second timer, and the third parameter may include an offset value.

[0122] It should be understood that when the first information includes the second parameter and the third parameter, it can be understood that the first terminal device determines the value of the first timer based on the first parameter, the second parameter and the third parameter. Optionally, the third parameter can be predefined or preconfigured. When the first information includes the third parameter, it can be understood that the first terminal device obtains the predefined or preconfigured third parameter. Of course, in this scenario, it can also be understood that the first information can include the second parameter, and the first terminal device determines the value of the first timer based on the first parameter and the second parameter in the first information, combined with the predefined or preconfigured third parameter.

[0123] The value of the first timer can be understood as the maximum time value of the first timer. The value of the second timer can be understood as the maximum time value of the second timer. Among them, the maximum time value can be understood as a period of time or a duration, etc. The maximum time value can represent the maximum timing time of the timer, that is, when the time value of the timer reaches the maximum time value, it can be understood that the timer expires. The time value can be in units of microseconds (us), milliseconds (ms) or seconds (s).

[0124] In a possible case, the first timer and the second timer are the same, for example, the first timer and the second timer may be timer T400. In this case, the value of the first timer is different from the value of the second timer.

[0125] In another possible situation, the first timer and the second timer may be different. For example, the second timer may be timer T400, and the first timer may be another newly defined timer, which is not limited in the present application.

[0126] It should be understood that the multiple parameters included in the first information can be obtained separately through multiple signaling or multiple methods, or some of the multiple parameters can be obtained through one same signaling or one same method, and another part of the parameters can be obtained through another same signaling or another same method, or multiple parameters can also have other acquisition methods, which is not limited in this application.

[0127] In some embodiments, the network device is not aware of the topology of the U2U relay communication. When the first terminal device is in a different state, the first terminal device determines the second parameter in the first information, or determines the second parameter and the third parameter in the first information, which may include the following methods:

[0128] When the first terminal device is in the OOC state, the first terminal device may obtain the second parameter from a pre-configuration, or obtain the second parameter and the third parameter.

[0129] When the first terminal device is in an idle (IDLE) state or an inactive (INACTIVE) state, the first terminal device may obtain the second parameter from a system information block (SIB), or obtain the second parameter and the third parameter.

[0130] When the first terminal device is in a connected state, the first terminal device may obtain the second parameter, or the second parameter and the third parameter, from a dedicated signaling, wherein the dedicated signaling may be an RRC reconfiguration message or other RRC messages, which is not limited in this application.

[0131] In some other embodiments, the network device can sense the topology of U2U relay communication, and when the first terminal device is in the OOC state, IDLE state or INACTIVE state, the method for determining the second parameter in the first information, or determining the second parameter and the third parameter in the first information is the same as the method in the case where the above-mentioned network device does not sense the topology of U2U relay communication, and they can refer to each other and will not be repeated here.

[0132] In an optional implementation, the value of the first timer is positively correlated with the first parameter.

[0133] Further, when the first information also includes the second parameter and the third parameter, the value of the first timer is positively correlated with the first parameter, the second parameter and the third parameter, or the value of the first timer is positively correlated with the first parameter and the second parameter and negatively correlated with the third parameter. When the first information also includes the second parameter, the value of the first timer is positively correlated with the first parameter and the second parameter.

[0134] Exemplarily, the first terminal device may determine the value of the first timer based on the first parameter, the value of the second timer and / or the offset value.

[0135] For example, when the first information includes the first parameter, the second parameter, and the third parameter, the first terminal device determines the value of the first timer according to the first information, which may include the following method:

[0136] Method a1: the value of the first timer = T0 + N*T1.

[0137] Method a2: the value of the first timer = N*T0+T1.

[0138] Method a3: the value of the first timer = N*T0-T1.

[0139] Method a4: the value of the first timer = N*(T0+T1).

[0140] Method a5: the value of the first timer = N*(T0-T1).

[0141] Method a6: the value of the first timer = T0 + (N-1) * T1.

[0142] Method a7: The value of the first timer = (N-1)*T0+T1.

[0143] Method a8: The value of the first timer = (N-1)*T0-T1.

[0144] Method a9: The value of the first timer = (N-1)*(T0+T1).

[0145] Method a10: The value of the first timer = (N-1)*(T0-T1).

[0146] Among them, T0 is the value of the second timer, and T0 is a positive number; T1 is the offset value, and T1 is a number greater than or equal to 0; N is the first parameter, and the first parameter is a positive integer.

[0147] In the above methods a1-a5, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device, or the first parameter is the number of hops between the first terminal device and the second terminal device minus 1. In the above methods a6-a10, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus 1, or the first parameter is the number of hops between the first terminal device and the second terminal device.

[0148] In the case where the network device does not perceive the topology of U2U relay communication, when the first terminal device is in any of the states of OOC, IDLE, INACTIVE, and connected, the first terminal device can determine the value of the first timer through the above methods a1-a10.

[0149] When the first terminal device is in any state, the first terminal device can determine the value of the first timer through the above methods a1-a10.

[0150] For another example, when the first information includes the first parameter and the second parameter, the first terminal device determines the value of the first timer according to the first information, which may include the following method:

[0151] Method b1: the value of the first timer = (N+1)*T0.

[0152] For example, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device, or the first parameter is the number of hops between the first terminal device and the second terminal device minus one.

[0153] Method b2: the value of the first timer = N*T0.

[0154] For example, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one, or the first parameter is the number of hops between the first terminal device and the second terminal device.

[0155] In the case where the network device is not aware of the topology of the U2U relay communication, when the first terminal device is in any of the OOC state, IDLE state, INACTIVE state, and connected state, the first terminal device can determine the value of the first timer through the above methods b1 and b2. In the case where the network device is aware of the topology of the U2U relay communication, when the first terminal device is in any of the OOC state, IDLE state, and INACTIVE state, the first terminal device can determine the value of the first timer through the above methods b1 and b2.

[0156] After the first terminal device determines the value of the first timer, the first terminal device may start the first timer after sending a sidelink reconfiguration message (RRCReconfigurationSidelink) to the second terminal device.

[0157] In an optional implementation, the first terminal device determines that the first condition is satisfied and stops the first timer; illustratively, the first condition may include one or more of the following: the first terminal device receives a sidelink reconfiguration completion (RRCReconfigurationCompleteSidelink) message from the second terminal device; or the first terminal device receives a first indication message from the first relay terminal device, the first indication message is used to instruct the first terminal device to retain the unicast connection with the first relay terminal device, or to instruct the first terminal device to release the unicast connection with the first relay terminal device, or to indicate that a radio link failure occurs between the first relay terminal device and the third terminal device, the third terminal device is the second terminal device or the third terminal device is a relay terminal device between the first relay terminal device and the second terminal device, the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device. Based on the above method, the first terminal device can recognize the completion of the link communication or the link failure in advance without waiting for the first timer to expire, so as to perform link reconstruction or relay terminal device reselection.

[0158] In another optional implementation, if the first timer expires, the first terminal device may perform one or more of the following operations: the first terminal device reselects the relay terminal device; or, the first terminal device retransmits the sidelink reconfiguration message; or, the first terminal device sends a unicast connection release message to the first relay terminal device; or, the first terminal device sends a message to the first relay terminal device for indicating that the link between the first relay terminal device and the fourth terminal device is kept activated, where the fourth terminal device is the second terminal device or the fourth terminal device is a relay terminal device between the first relay terminal device and the second terminal device. For example, the fourth terminal device may be as follows: Figure 2b and Figure 2c As shown in , it should be understood that Figure 2b and Figure 2c Only two possible situations are shown. When there are multiple relay terminal devices between the first relay terminal device and the second terminal device, the fourth terminal device can be any one of the multiple relay terminal devices, which is not shown here; or, the first terminal device sends a second indication information to the first relay terminal device, and the second indication information is used to indicate that the first timer has expired. Based on the above method, the communication resources of the first terminal device can be saved, or the first terminal device can identify which links can continue to be used, thereby shortening the end-to-end communication delay.

[0159] Optionally, after the first relay terminal device receives a message instructing the first relay terminal device to keep the link between the first relay terminal device and the fourth terminal device activated, the first relay terminal device may forward the message to the fourth terminal device.

[0160] Exemplarily, after the first relay terminal device receives the second indication information, the first relay terminal device may send a message to the fifth terminal device for indicating that the link between the first relay terminal device and the fifth terminal device should be kept activated, where the fifth terminal device is the second terminal device or the fifth terminal device is a relay terminal device between the first relay terminal device and the second terminal device. Alternatively, the first relay terminal device may also forward the second indication information to the fifth terminal device. For example, the fifth terminal device may Figure 2d and Figure 2e As shown in , it should be understood that Figure 2d and Figure 2e Only two possible situations are shown. When there are multiple relay terminal devices between the first relay terminal device and the second terminal device, the fifth terminal device can be any one of the multiple relay terminal devices, which is not shown in the figure here.

[0161] In some embodiments, the first terminal device may determine the first parameter included in the first information by the following method: the first terminal device determines the first parameter based on a fourth parameter, where the fourth parameter may be the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter may be the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter may be the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter may include the identification of one or more relay terminal devices.

[0162] Before determining the first parameter, the first terminal device may determine the fourth parameter. For example, the first terminal device may determine the fourth parameter by one or more of a plurality of methods. For example, the first terminal device may determine the fourth parameter by one or more of the following methods c1 to c4, which are not limited in this application.

[0163] Method c1: The first terminal device receives a fourth parameter from the first relay terminal device.

[0164] For example, the method can be applied to a process of discovering a terminal device, such as a process in which a terminal device broadcasts a message so as to be discovered by other terminal devices, such as a Model A discovery process; or a process in which a terminal device discovers other terminal devices by broadcasting a message, such as a Model B discovery process.

[0165] In one possible manner, the first terminal device may receive the fourth parameter by receiving a first message from the first relay terminal device. For example, the first message may be an announcement message. In the following description, the first message is taken as an example of an announcement message. Optionally, the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter may be the number of relay terminal devices between the first relay terminal device and the second terminal device. For example, the fourth parameter is indicated by M, where M is an integer greater than or equal to 0.

[0166] Before the first relay terminal device sends an announcement message to the first terminal device, the first relay terminal device may determine the list information in the announcement message, wherein the list information may include the correspondence between the remote UE and the fourth parameter M. The list information may include the correspondence in such a way that each entry in the list includes a remote UE identifier and a fourth parameter M; or it may include two lists, list #1 includes a remote UE identifier, list #2 includes the fourth parameter M, and the remote UE identifier in list #1 corresponds to the fourth parameter M in list #2 according to the order of arrangement in the list. For example, list #1 includes {remote UE#1, remote UE#2}, and list #2 includes {M#1, M#2}, then remote UE#1 corresponds to M#1, and remote UE#2 corresponds to M#2. The remote UE identifier may be a user information identifier (user infoID).

[0167] The first relay terminal device may determine the above list information in a manner that is a combination of one or more of the following manners 1 and 2:

[0168] Method 1: The first relay terminal device receives an announcement message from other relay terminal devices. The other relay terminal devices may be relay terminal devices around the first relay terminal device that can mutually discover or communicate with the first relay terminal device. For example, the other terminal devices may be Figure 2fThe second relay terminal device, the third relay terminal device and the fourth relay terminal device shown. For example, the first relay terminal device receives an announcement message from the second relay terminal device. Optionally, the first relay terminal device can receive an announcement message from the second relay terminal device, which can be understood as the first relay terminal device and the second relay terminal device can communicate directly. Among them, the announcement message of other relay terminal devices may include a remote UE identifier, and a corresponding parameter M1, M1 is the number of hops between other relay terminal devices and the remote UE, or may be the number of relay terminal devices between other relay terminal devices and the remote UE. The first relay terminal device adds the remote UE identifier carried in the announcement message of other relay terminal devices to the list information, and the corresponding M=M1+1, M1 is an integer greater than or equal to 0.

[0169] Optionally, the first relay terminal device determines whether M1 is greater than the maximum number of hops minus two or the maximum number of relays minus two. If not, the remote UE identifier is added to the list information, otherwise it is not added.

[0170] Mode 2: The first relay terminal device receives the second message from other terminal devices (such as other relay terminal devices or remote UE). For example, the other terminal devices may be relay terminal devices around the first relay terminal device that can mutually discover or communicate with the first relay terminal device. For example, the other terminal devices may be Figure 2g The second relay terminal device and the third relay terminal device shown in FIG. 1 may be a relay terminal device; or other terminal devices may also be Figure 2g The second terminal device shown. For example, the second message may be a solicitation message or a response message. The second message may carry a remote UE identifier and parameter M2, where M2 represents the number of relay terminals or the number of hops between the remote UE and the first relay terminal device, and M2 is an integer greater than or equal to 0. The first relay terminal device adds the remote UE identifier carried in the solicitation message or the response message to the list information, and the corresponding M may be:

[0171] M=M2, M is the number of hops between the first relay terminal device and the second terminal device, and M2 is the number of hops between the remote UE and the first relay terminal device; or, M is the number of relay terminal devices between the first relay terminal device and the second terminal device, and M2 is the number of relay terminals between the remote UE and the first relay terminal device; or

[0172] M=M2+1, where M is the number of hops between the first relay terminal device and the second terminal device, and M2 is the number of relay terminals between the remote UE and the first relay terminal device; or

[0173] M=M2-1, M is the number of relay terminal devices between the first relay terminal device and the second terminal device, and M2 is the number of hops between the remote UE and the first relay terminal device.

[0174] In the above manner, the first relay terminal device can obtain the identifiers of one or more remote UEs and their corresponding M, and then the first relay terminal device can carry the identifiers of the one or more remote UEs and their corresponding M in the first message and send it to the first terminal device. Among them, the one or more remote UEs include the second terminal device, so that the first terminal device can identify the M corresponding to the second terminal device, which is the fourth parameter.

[0175] Further, the first terminal device determines the first parameter according to the fourth parameter, which may include:

[0176] When the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; in this case, the first parameter is the number of hops between the first terminal device and the second terminal device minus one; or

[0177] When the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; in this case, the first parameter is the number of hops between the first terminal device and the second terminal device; or

[0178] When the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; in this case, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or

[0179] When the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two; at this time, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0180] In a possible manner, the first terminal device may receive the fourth parameter by receiving the third message from the first relay terminal device. For example, the fourth parameter may include identifications of one or more relay terminal devices.

[0181] Exemplarily, this approach may be applied to one or more of the Model B discovery process, the discovery integration into the unicast connection establishment process, or the hop-by-hop unicast connection establishment process.

[0182] In different processes, the third message may be different messages.

[0183] For example, the third message may be a response message sent by the first relay terminal device to the first terminal device.

[0184] Exemplarily, after the first terminal device broadcasts a solicitation message, the first relay terminal device broadcasts a solicitation message after receiving the solicitation message broadcast by the first terminal device. After the second terminal device receives the solicitation message broadcast by the first relay terminal device, it sends a response message to the first relay terminal device. Afterwards, the first relay terminal device sends a response message to the first terminal device, wherein the response message sent by the first relay terminal device to the first terminal device includes an identifier of the first relay terminal device. The identifier of the first relay terminal device may be the userinfo ID of the first relay terminal device.

[0185] It should be understood that the above description uses the example of the first terminal device and the second terminal device communicating through the first relay terminal device. When the first terminal device and the second terminal device communicate through the first relay terminal device and other relay terminal devices, the response message received by the first relay terminal device from the other relay terminal devices includes the identifiers of the other relay terminals, and then the response message sent by the first relay terminal device to the first terminal device includes the identifier of the first relay terminal device and the identifiers of the other relay terminal devices.

[0186] For another example, the third message may be a direct communication accept (DCA) message sent by the first relay terminal device to the first terminal device.

[0187] Exemplarily, the first terminal device broadcasts a direct communication request (DCR) message, and after the first relay terminal device receives the DCR message broadcast by the first terminal device, it broadcasts the DCR message. After the second terminal device receives the DCR message broadcast by the first relay terminal device, it sends a DCA message to the first relay terminal device. Afterwards, the first relay terminal device sends a DCA message to the first terminal device, wherein the DCA message sent by the first relay terminal device to the first terminal device includes an identifier of the first relay terminal device. Similarly, the identifier of the first relay terminal device may be the user info ID of the first relay terminal device.

[0188] It should be understood that the above description uses the example of the first terminal device and the second terminal device communicating through the first relay terminal device. When the first terminal device and the second terminal device communicate through the first relay terminal device and other relay terminal devices, the DCA message received by the first relay terminal device from the other relay terminal devices includes the identifiers of the other relay terminals, and then the DCA message sent by the first relay terminal device to the first terminal device includes the identifier of the first relay terminal device and the identifiers of the other relay terminal devices.

[0189] Furthermore, the first terminal device may determine the first parameter according to the number of identifiers of the relay terminal devices included in the third message.

[0190] For example:

[0191] The first parameter=the number of identifiers of relay terminal devices, in which case the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or

[0192] The first parameter=the number of identifications of relay terminal devices+1. In this case, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0193] Method c2: The first terminal device may receive a first value of the fourth parameter. In this case, the first value of the fourth parameter is the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device.

[0194] Exemplarily, the method may be applied to one or more of the Model B discovery process, the discovery integration into the unicast connection establishment process, or the hop-by-hop unicast connection establishment process.

[0195] Optionally, the first terminal device may receive the first value of the fourth parameter by receiving a fourth message from the first relay terminal device.

[0196] In different processes, the fourth message may be a different message.

[0197] For example, the fourth message may be a response message sent by the first relay terminal device to the first terminal device.

[0198] Exemplarily, after the first terminal device broadcasts a solicitation message, the first relay terminal device broadcasts a solicitation message after receiving the solicitation message broadcast by the first terminal device. After the second terminal device receives the solicitation message broadcast by the first relay terminal device, it sends a response message to the first relay terminal device. The response message sent by the second terminal device to the first relay terminal device may carry the third value of the fourth parameter. For example, the fourth parameter may be denoted as X. X is used as an example below. The value of X is 0 or 1, that is, the third value of the fourth parameter is 0 or 1. For example, X may include the following three designs:

[0199] Design 1: X represents the number of relay terminal devices, and the value of X is 0; the value of X being 0 can indicate that when the second terminal device sends a response message, it has not passed through the relay terminal device.

[0200] Design 2, X represents the number of hops, and the value of X is 0; the value of X being 0 can indicate that when the second terminal device sends a response message, the link between the second terminal device and the relay terminal device (e.g., the first relay terminal device) that directly receives the response message from the second terminal device does not count as the number of hops. Among them, the relay terminal device that directly receives the response message from the second terminal device can also be understood as the destination relay terminal device of the response message, and the same applies below.

[0201] Design three, X represents the number of hops, and the value of X is 1; the value of X is 1, which means that when the second terminal device sends a response message, the link between the second terminal device and the relay terminal device (such as the first relay terminal device) that directly receives the response message from the second terminal device is counted as one hop.

[0202] Afterwards, the first relay terminal device sends a response message to the first terminal device, wherein the value of X contained in the response message sent by the first relay terminal device to the first terminal device is one more than the value of X carried in the response message sent by the second terminal device to the first relay terminal device. The value of X carried in the response message sent by the first relay terminal device to the first terminal device is the first value of the fourth parameter.

[0203] It should be understood that the above process is explained by taking the communication between the first terminal device and the second terminal device through the first relay terminal device as an example. When the first terminal device and the second terminal device communicate through the first relay terminal device and other relay terminal devices, the response message received by the first relay terminal device from the other relay terminal devices contains another value of X, and then the response message sent by the first relay terminal device to the first terminal device contains another value of X plus one. After the response message is sent from the second terminal device, the corresponding value of X is increased by one for each relay terminal device passed. For example, when there are three relay terminal devices between the first terminal device and the second terminal device, the first value of the fourth parameter received by the first terminal device is the value obtained by adding 3 to the initial value of X (here, the third value).

[0204] For another example, the fourth message may be a DCA message sent by the first relay terminal device to the first terminal device.

[0205] Exemplarily, after the first terminal device broadcasts a DCR message, the first relay terminal device broadcasts a DCR message after receiving the DCR message broadcast by the first terminal device. After the second terminal device receives the DCR message broadcast by the first relay terminal device, it sends a DCA message to the first relay terminal device. The DCA message sent by the second terminal device to the first relay terminal device may carry X, where X takes a value of 0 or 1, and may include, for example, the three designs described above, which will not be described in detail here.

[0206] Afterwards, the first relay terminal device sends a DCA message to the first terminal device, wherein the value of X contained in the DCA message sent by the first relay terminal device to the first terminal device is increased by one relative to the value of X carried in the DCA message sent by the second terminal device to the first relay terminal device. The value of X carried in the DCA message sent by the first relay terminal device to the first terminal device is the first value of the fourth parameter.

[0207] It should be understood that the above process is explained by taking the communication between the first terminal device and the second terminal device through the first relay terminal device as an example. When the first terminal device and the second terminal device communicate through the first relay terminal device and other relay terminal devices, the DCA message received by the first relay terminal device from other relay terminal devices contains another value of X, and then the DCA message sent by the first relay terminal device to the first terminal device contains another value of X plus one. After the DCA message is sent from the second terminal device, the corresponding value of X is increased by one for each relay terminal device passed. For example, when there are three relay terminal devices between the first terminal device and the second terminal device, the first value of the fourth parameter received by the first terminal device is the value obtained by adding 3 to the initial value of X.

[0208] Furthermore, the first terminal device may determine the first parameter by using the first value of the fourth parameter included in the fourth message. For example:

[0209] For the above design 1:

[0210] The first parameter=the first value of the fourth parameter, where the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or

[0211] The first parameter=the first value of the fourth parameter+1, where the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0212] For the above design 2:

[0213] The first parameter=the first value of the fourth parameter, where the first parameter is the number of hops between the first terminal device and the second terminal device minus one; or

[0214] The first parameter=the first value of the fourth parameter+1, where the first parameter is the number of hops between the first terminal device and the second terminal device.

[0215] For the above design three:

[0216] The first parameter=the first value of the fourth parameter-1, where the first parameter is the number of hops between the first terminal device and the second terminal device minus one; or

[0217] The first parameter=the first value of the fourth parameter, where the first parameter is the number of hops between the first terminal device and the second terminal device.

[0218] Method c3: The first terminal device may send a second value of the fourth parameter, the second value being used to determine the first value of the fourth parameter; the first terminal device receives the first value of the fourth parameter. For example, the first value of the fourth parameter is the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device.

[0219] Exemplarily, the method may be applied to one or more of the Model B discovery process, the discovery integration into the unicast connection establishment process, or the hop-by-hop unicast connection establishment process.

[0220] Exemplarily, the first terminal device may send the second value of the fourth parameter through a fifth message, and receive the first value of the fourth parameter by receiving a sixth message from the first relay terminal device.

[0221] In different processes, the fifth message may be a different message, and correspondingly the sixth message may be a different message.

[0222] For example, the fifth message may be a solicitation message broadcast by the first terminal device, and the sixth message may be a response message sent by the first relay terminal device to the first terminal device.

[0223] Exemplarily, the first terminal device broadcasts a solicitation message, and the second value of the fourth parameter is carried in the request message broadcast by the first terminal device. The fourth parameter can be recorded as W. The following takes W as an example. The value of W is 0 or 1, that is, the second value of the fourth parameter is 0 or 1. For example, W can include the following three designs:

[0224] Design 1, W represents the number of relay terminal devices, and the value of W is 0; the value of W is 0, which means that when the first terminal device broadcasts the request message, it has not passed through the relay terminal device.

[0225] Design 2, W represents the number of hops, and the value of W is 0; the value of W is 0, which means that when the first terminal device broadcasts a request message, the link between the first terminal device and the relay terminal device (e.g., the first relay terminal device) that directly receives the request message from the first terminal device does not count as the number of hops. Among them, the relay terminal device that directly receives the response message from the first terminal device can also be understood as the destination relay terminal device of the response message, and the same applies below.

[0226] Design 3, W represents the number of hops, and the value of W is 1; the value of W is 1, which means that when the first terminal device broadcasts a request message, the link between the first terminal device and the relay terminal device (such as the first relay terminal device) that directly receives the request message from the first terminal device is counted as one hop.

[0227] After receiving the solicitation message broadcast by the first terminal device, the first relay terminal device broadcasts the solicitation message. The value of W contained in the solicitation message broadcast by the first relay terminal device is increased by one relative to the value of W in the solicitation message broadcast by the first terminal device. After receiving the solicitation message broadcast by the first relay terminal device, the second terminal device sends a response message to the first relay terminal device. Among them, for the above-mentioned Design 1 and Design 3, the value of W contained in the response message sent by the second terminal device to the first relay terminal device remains unchanged relative to the value of W in the solicitation message broadcast by the first relay terminal device; for the above-mentioned Design 2, the value of W contained in the response message sent by the second terminal device to the first relay terminal device is increased by one relative to the value of W in the solicitation message broadcast by the first relay terminal device.

[0228] Afterwards, the first relay terminal device sends a response message to the first terminal device, wherein the value of W contained in the response message sent by the first relay terminal device to the first terminal device remains unchanged relative to the value of W carried in the response message sent by the second terminal device to the first relay terminal device. The value of W carried in the response message sent by the first relay terminal device to the first terminal device is the first value of the fourth parameter.

[0229] It should be understood that the above process is explained by taking the communication between the first terminal device and the second terminal device through the first relay terminal device as an example. When the first terminal device and the second terminal device communicate through the first relay terminal device and other relay terminal devices, the second terminal device receives another value of W from the broadcast request message from other relay terminal devices, and then the second terminal device performs the above unchanged or plus one operation based on the other value of W contained in the request message broadcast by other relay terminal devices. Among them, after the request message is broadcast from the first terminal device, the corresponding value of W is increased by one each time it passes through a relay terminal device. For example, when there are three relay terminal devices between the first terminal device and the second terminal device, for Design 1 and Design 3, the first value of the fourth parameter received by the first terminal device is the value obtained by adding 2 to the second value of W; for Design 2, the first value of the fourth parameter received by the first terminal device is the value obtained by adding 3 to the second value of W.

[0230] For another example, the fifth message is a DCR message broadcast by the first terminal device, and the sixth message may be a DCA message sent by the first relay terminal device to the first terminal device.

[0231] Exemplarily, the first terminal device broadcasts a DCR message, and the DCR message broadcast by the first terminal device carries W, where W takes a value of 0 or 1, that is, the second value of the fourth parameter is 0 or 1. For example, W can include the three designs described above, which are not repeated here.

[0232] After receiving the DCR message broadcast by the first terminal device, the first relay terminal device broadcasts the DCR message. The value of W contained in the DCR message broadcast by the first relay terminal device is increased by one relative to the value of W in the DCR message broadcast by the first terminal device. After receiving the DCR message broadcast by the first relay terminal device, the second terminal device sends a DCA message to the first relay terminal device. Among them, for the above-mentioned Design 1 and Design 3, the value of W contained in the DCA message sent by the second terminal device to the first relay terminal device remains unchanged relative to the value of W in the DCR message broadcast by the first relay terminal device; for the above-mentioned Design 2, the value of W contained in the DCA message sent by the second terminal device to the first relay terminal device is increased by one relative to the value of W in the DCR message broadcast by the first relay terminal device.

[0233] Afterwards, the first relay terminal device sends a DCA message to the first terminal device, wherein the value of W contained in the DCA message sent by the first relay terminal device to the first terminal device remains unchanged relative to the value of W carried in the DCA message sent by the second terminal device to the first relay terminal device. The value of W carried in the DCA message sent by the first relay terminal device to the first terminal device is the first value of the fourth parameter.

[0234] It should be understood that the above process is explained by taking the communication between the first terminal device and the second terminal device through the first relay terminal device as an example. When the first terminal device and the second terminal device communicate through the first relay terminal device and other relay terminal devices, the broadcast DCR message received by the second terminal device from other relay terminal devices contains another value of W, and then the second terminal device performs the above unchanged or plus one operation based on the other value of W contained in the DCR message broadcast by other relay terminal devices. Among them, after the DCR message is broadcast from the first terminal device, the corresponding value of W is increased by one each time it passes through a relay terminal device. For example, when there are three relay terminal devices between the first terminal device and the second terminal device, for Design 1 and Design 3, the first value of the fourth parameter received by the first terminal device is the value obtained by adding 2 to the second value of W; for Design 2, the first value of the fourth parameter received by the first terminal device is the value obtained by adding 3 to the second value of W.

[0235] Further, the first terminal device may determine the first parameter by using the first value of the fourth parameter included in the sixth message. For example:

[0236] The first parameter=the first value of the fourth parameter-1, the first value of the fourth parameter is the number of hops between the first terminal device and the second terminal device, and the first parameter is the number of hops between the first terminal device and the second terminal device minus one; or

[0237] The first parameter = the first value of the fourth parameter, in which case the fourth parameter is the number of relay terminal devices between the first terminal device and the second terminal device, and the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device, or the first value of the fourth parameter is the number of hops between the first terminal device and the second terminal device, and the first parameter is the number of hops between the first terminal device and the second terminal device; or

[0238] The first parameter = the first value of the fourth parameter + 1. At this time, the fourth parameter is the number of relay terminal devices between the first terminal device and the second terminal device, and the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0239] Method c4: The first terminal device may send a fifth parameter and a sixth parameter, wherein the fifth parameter indicates the maximum number of relay terminal devices, and the sixth parameter indicates the remaining number of relay terminal devices, or the fifth parameter indicates the maximum number of hops, and the sixth parameter indicates the remaining number of hops; the first terminal device may receive a fourth parameter, which is determined based on the fifth parameter and the sixth parameter. In this case, the fourth parameter is the number of relay terminal devices between the first terminal device and the second terminal device, or the fourth parameter is the number of hops between the first terminal device and the second terminal device.

[0240] Exemplarily, the method may be applied to one or more of the Model B discovery process, the discovery integration into the unicast connection establishment process, or the hop-by-hop unicast connection establishment process.

[0241] Exemplarily, the first terminal device may send the fifth parameter and the sixth parameter via a seventh message, and the first terminal device may receive the fourth parameter by receiving an eighth message from the first relay terminal device.

[0242] In different processes, the seventh message may be a different message, and the eighth message may be a different message.

[0243] For example, the seventh message may be a solicitation message broadcast by the first terminal device, and the eighth message may be a response message sent by the first relay terminal device to the first terminal device.

[0244] Exemplarily, in the process of discovering the other end, the first terminal device broadcasts a request (solicitation) message, and the request message broadcast by the first terminal device carries a fifth parameter (denoted as MAX) and a sixth parameter (denoted as Y1), and initially Y1=MAX or Y1=MAX-1. After the first relay terminal device receives the request (solicitation) message broadcast by the first terminal device, it broadcasts the request (solicitation) message. Among them, the request message broadcast by the first relay terminal device carries MAX and Y1, and the value of Y1 is one less than the value of Y1 carried in the request message broadcast by the first terminal device. After receiving the request message broadcast by the first relay terminal device, the second terminal device sends a response (response) message to the first relay terminal device, and the response message carries parameter Y2, and the value of Y2 is Y2=MAX-Y1+1 or Y2=MAX-Y1, and the value of Y1 is the value of Y1 carried in the request message broadcast by the first relay terminal device. Afterwards, the first relay device sends a response message to the first terminal device, and the message carries Y2, whose value remains unchanged relative to the value of Y2 in the response message sent by the second terminal device to the first relay terminal device. Among them, Y2 carried in the response message sent by the first relay terminal device to the first terminal device is the fourth parameter.

[0245] For another example, the seventh message is a DCR message broadcast by the first terminal device, and the eighth message may be a DCA message sent by the first relay terminal device to the first terminal device.

[0246] Exemplarily, in the process of discovering integration into unicast connection establishment, or in the process of hop-by-hop unicast connection establishment, the first terminal device broadcasts a DCR message, and the DCR message broadcast by the first terminal device carries a fifth parameter (denoted as MAX) and a sixth parameter (denoted as Y1), and initially Y1=MAX or Y1=MAX-1. After receiving the DCR message broadcast by the first terminal device, the first relay terminal device broadcasts the DCR message. Among them, the DCR message broadcast by the first relay terminal device carries MAX and Y1, and the value of Y1 is one less than the value of Y1 carried in the DCR message broadcast by the first terminal device. After receiving the DCR message broadcast by the first relay terminal device, the second terminal device sends a DCA message to the first relay terminal device, and the response message carries parameter Y2, and the value of Y2 is Y2=MAX-Y1+1 or Y2=MAX-Y1, wherein the value of Y1 is the value of Y1 carried in the request message broadcast by the first relay terminal device. Afterwards, the first relay device sends a DCA message to the first terminal device, and the message carries Y2, whose value remains unchanged relative to the value of Y2 in the DCA message sent by the second terminal device to the first relay terminal device. Among them, Y2 carried in the DCA message sent by the first relay terminal device to the first terminal device is the fourth parameter.

[0247] Furthermore, the first terminal device may determine the first parameter by including the fourth parameter in the eighth message. For example:

[0248] The first parameter=the fourth parameter-1, in which case the fourth parameter is the number of hops between the first terminal device and the second terminal device, and the first parameter is the number of hops between the first terminal device and the second terminal device minus one; or

[0249] The second parameter = the fourth parameter, in which case the fourth parameter is the number of relay terminal devices between the first terminal device and the second terminal device, and the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device, or the fourth parameter is the number of hops between the first terminal device and the second terminal device, and the first parameter is the number of hops between the first terminal device and the second terminal device; or

[0250] The first parameter=the fourth parameter+1, at this time, the fourth parameter is the number of relay terminal devices between the first terminal device and the second terminal device, and the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0251] It should be understood that the above method for determining the first parameter is only an example, and there are many other methods for determining the first parameter, which will not be listed one by one in this application.

[0252] Optionally, after the first terminal device determines the first parameter, the first terminal device may send the first parameter to the second terminal device so that the first parameters of the second terminal device and the first terminal device are aligned, and then a suitable timer is started when the second terminal device subsequently transmits information to the first terminal device.

[0253] Exemplarily, the first terminal device may send the first parameter to the second terminal device via an end-to-end (E2E) DCR message. It should be understood that after the first terminal device sends the E2E DCR message, the relay terminal device forwards it to the second terminal device.

[0254] Optionally, after the first terminal device determines the first parameter, the corresponding relationship between the first parameter and the second terminal device may be saved.

[0255] Based on the above communication method, the first terminal device can accurately determine the value of the first timer based on the first parameter, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met, thereby improving the communication performance of the relay scenario.

[0256] Based on the above embodiments, the present application also provides another communication method suitable for Figure 1 The communication system shown. Figure 3 As shown, the specific process of the method may include:

[0257] Step 301: The first terminal device sends a first parameter to the network device. Correspondingly, the network device receives the first parameter from the first terminal device. The first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0258] Before the first terminal device sends the first parameter to the network device, the first terminal device determines the first parameter. For example, the method for the first terminal device to determine the first parameter can be found in Figure 2a The method for the first terminal device to determine the first parameter involved in the illustrated embodiment will not be described in detail here.

[0259] The description of the first parameter can also be found in the above Figure 2a The relevant descriptions involved in the illustrated embodiments will not be repeated here.

[0260] In an optional implementation, the first terminal device may send the first parameter to the network device through the following method: the network device may send sidelink uplink information (SUI) to the network device to send the first parameter to the network device.

[0261] Optionally, the SUI may include a correspondence between the first parameter and the second terminal device. In one example, the SUI carries an identifier of the second terminal device and the first parameter, and the identifier of the second terminal device may be a layer 2 identifier (L2 ID), a user info ID, or other terminal identifiers.

[0262] Step 302: The network device sends the value of the first timer to the first terminal device. Correspondingly, the first terminal device receives the value of the first timer from the network device.

[0263] In some embodiments, the network device may determine the value of the first timer based on the first parameter.

[0264] For example, the network device may also obtain the second parameter, or obtain the second parameter and the third parameter, and then determine the value of the first timer in combination with the first parameter. The description of the second parameter and the third parameter can be found in Figure 2a The relevant description involved in the example shown is not repeated here.

[0265] Furthermore, the method for the network device to determine the first parameter is similar to the method for the first terminal device to determine the first parameter, and they can refer to each other and will not be repeated here.

[0266] Exemplarily, the network device may send the value of the first timer to the first terminal device via an RRC message. Optionally, the RRC message may carry the correspondence between the second terminal device and the value of the first timer. For example, the RRC message may carry the identifier of the second terminal device and the value of the first timer, and the identifier of the second terminal device may be an L2 ID, a user info ID, or other terminal identifiers.

[0267] After the first terminal device receives the value of the first timer, it starts or stops the first timer under certain conditions, or the operation performed by the first terminal device after the first timer expires can be referred to above. Figure 2a The relevant descriptions involved in the illustrated embodiments will not be repeated here.

[0268] In some embodiments, the above process may be that the DU receives the first parameter from the first terminal device, the DU sends the first parameter to the CU, and the CU determines the value of the first timer according to the first parameter. Subsequently, the CU sends the value of the first timer to the DU, and the DU sends the value of the first timer to the first terminal device.

[0269] In the ORAN system, the above process may be that the O-DU receives the first parameter from the first terminal device, the O-DU sends the first parameter to the O-CU, and the O-CU determines the value of the first timer according to the first parameter. Subsequently, the O-CU sends the value of the first timer to the O-DU, and the O-DU sends the value of the first timer to the first terminal device.

[0270] Optionally, the operation of the O-CU in the ORAN system may be implemented by the O-CU-CP.

[0271] Exemplarily, the above method can be applied to a scenario where a network device perceives a U2U relay communication topology and the first terminal device is in a connected state.

[0272] Based on the above communication method, the first terminal device can report the first parameter to the network device so that the network device sends the value of the first timer to the first terminal device based on the first parameter, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met, thereby improving the communication performance of the relay scenario.

[0273] Based on the above embodiments, the present application also provides another communication method suitable for Figure 1 The communication system shown. Figure 4 As shown, the specific process of the method may include:

[0274] Step 401: The first terminal device determines second information, where the second information includes a second parameter and a third parameter, or the second information includes a second parameter, where the second parameter includes a value of a second timer, and the third parameter includes an offset value.

[0275] Step 402: The first terminal device determines the value of the first timer according to the second information.

[0276] Exemplarily, the method may be applied to a scenario where a relay terminal device exists between the first terminal device and the second terminal device.

[0277] In an optional implementation, the first terminal device determines the value of the first timer based on the second information. The method may be: when the second information includes the second parameter, the value of the first timer is a multiple of the value of the second timer; when the second information includes the second parameter and the third parameter, the value of the first timer is the sum of the value of the second timer and the offset value, or the value of the first timer is the difference between the multiple of the value of the second timer and the offset value.

[0278] Optionally, the multiple of the value of the first timer may be twice the value of the first timer, for example, the value of the first timer may be twice the value of the second timer.

[0279] The description of the first timer and the second timer can be found in Figure 2a The relevant descriptions involved in the illustrated embodiments will not be introduced in detail here.

[0280] After the first terminal device determines the value of the first timer, the first terminal device may start the first timer after sending a sidelink reconfiguration message (RRCReconfigurationSidelink) to the second terminal device.

[0281] In some embodiments, the first terminal device determines that the first condition is met and stops the first timer; exemplarily, the first condition may include: the first terminal device receives a sidelink reconfiguration completion (RRCReconfigurationCompleteSidelink) message from the second terminal device; or, the first terminal device receives first indication information from the first relay terminal device, the first indication information is used to instruct the first terminal device to retain the unicast connection between the first relay terminal device, or to instruct the first terminal device to release the unicast connection between the first relay terminal device, or to indicate that a radio link failure occurs between the first relay terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the first relay terminal device.

[0282] In other embodiments, if the first timer expires, the first terminal device performs one or more of the following operations: the first terminal device reselects the relay terminal device; or, the first terminal device retransmits the sidelink reconfiguration message; or, the first terminal device sends a unicast connection release message to the first relay terminal device; or, a message is sent to the first relay terminal device to instruct the first relay terminal device to keep the link activated with the second terminal device, and the first terminal device communicates with the second terminal device through the first relay terminal device; or, a second indication message is sent to the first relay terminal device, and the second indication message is used to indicate that the first timer has expired.

[0283] Based on the above communication method, the first terminal device can accurately determine the value of the first timer, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met, thereby improving the communication performance of the relay scenario.

[0284] Based on the above embodiments, the present application also provides another communication method suitable for Figure 1 The communication system shown. Figure 5 As shown, the specific process of the method may include:

[0285] Step 501: The network device determines the value of a first timer.

[0286] Exemplarily, the network device may obtain the second parameter, or obtain the second parameter and the third parameter, and then determine the value of the first timer based on the second parameter or the second parameter and the third parameter. The specific method is similar to the method for the first terminal device to determine the value of the first timer, which can be seen in Figure 4 The relevant descriptions involved in the illustrated embodiment will not be described in detail here.

[0287] Step 502: The network device sends the value of the first timer to the first terminal device, and correspondingly, the first terminal device receives the value of the first timer from the network device.

[0288] Accordingly, the subsequent operation of the first terminal device after receiving the value of the first timing can participate in Figure 4 The relevant descriptions involved in the illustrated embodiments will not be repeated here.

[0289] In some embodiments, the above process may be that the CU determines the value of the first timer. Subsequently, the CU sends the value of the first timer to the DU, and the DU sends the value of the first timer to the first terminal device.

[0290] In the ORAN system, the above process may be that the O-CU determines the value of the first timer. Subsequently, the O-CU sends the value of the first timer to the O-DU, and the O-DU sends the value of the first timer to the first terminal device.

[0291] Optionally, the operation of the O-CU in the ORAN system may be implemented by the O-CU-CP.

[0292] Exemplarily, the method may be applied to a scenario where a relay terminal device exists between the first terminal device and the second terminal device.

[0293] Based on the above communication method, the first terminal device can obtain the value of the first timer from the network device, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met, thereby improving the communication performance of the relay scenario.

[0294] Based on the above embodiments, the present application also provides another communication method suitable for Figure 1 The communication system shown in FIG. 1 can realize the determination of a first parameter for determining the value of a first timer. Figure 6 As shown, the specific process of the method may include:

[0295] Step 601: The first terminal device determines a first parameter, where the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0296] For a description of the first parameter and a method for the first terminal device to determine the first parameter, see Figure 2a The relevant descriptions involved in the illustrated embodiments will not be repeated here.

[0297] Optionally, the first terminal device may further execute step 602: the first terminal device sends a first parameter to the second terminal device.

[0298] Based on the above communication method, the first terminal device can accurately determine the first parameter, and then subsequently determine the value of the first timer based on the first parameter, thereby realizing the timer configuration in the relay scenario, so that the subsequent first terminal device can correctly start or stop the timer when the conditions are met.

[0299] Based on the above embodiments, the present application also provides a communication device, referring to Figure 7 As shown, the communication device 700 may include a processing unit 702. Optionally, the communication device may also include a transceiver unit 701. The transceiver unit 701 may be used to send and receive information, etc. The processing unit 702 may control and manage the actions of the communication device 700. The processing unit 702 may also control the operations performed by the transceiver unit 701.

[0300] Exemplarily, the communication device 700 may be the first terminal device, the processor of the first terminal device, or a chip, or a chip system, or a functional module, etc. in the above-mentioned embodiment. Alternatively, the communication device 700 may also be the network device, the processor of the network device, or a chip, or a chip system, or a functional module, etc. in the above-mentioned embodiment.

[0301] In one embodiment, the communication device 700 is used to implement the above Figure 2a In the embodiment shown, the function of the first terminal device may include: the processing unit 702 may be used to determine the first information, and determine the value of the first timer according to the first information. The first information includes a first parameter; the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0302] The value of the first timer is positively correlated with the first parameter.

[0303] In an optional implementation manner, the first information further includes a second parameter and a third parameter, or the first information further includes a second parameter, the second parameter includes a value of the second timer, and the third parameter includes an offset value.

[0304] Exemplarily, when the first information also includes a second parameter and a third parameter, the value of the first timer is positively correlated with the first parameter, the second parameter and the third parameter, or the value of the first timer is positively correlated with the first parameter and the second parameter and negatively correlated with the third parameter; when the first information also includes a second parameter, the value of the first timer is positively correlated with the first parameter and the second parameter.

[0305] In an optional implementation, when determining the value of the first timer according to the first information, the processing unit 702 is configured to:

[0306] The value of the first timer = T0 + N*T1; or

[0307] The value of the first timer = N*T0+T1; or

[0308] The value of the first timer = N*T0-T1; or

[0309] The value of the first timer = N*(T0+T1); or

[0310] The value of the first timer = N*(T0-T1); or

[0311] The value of the first timer = T0 + (N-1) * T1; or

[0312] The value of the first timer = (N-1)*T0+T1; or

[0313] The value of the first timer = (N-1)*T0-T1; or

[0314] The value of the first timer = (N-1)*(T0+T1); or

[0315] The value of the first timer = (N-1)*(T0-T1); or

[0316] The value of the first timer = (N+1)*T0; or

[0317] The value of the first timer = N*T0;

[0318] Among them, T0 is the value of the second timer, and T0 is a positive number; T1 is the offset value, and T1 is a number greater than or equal to 0; N is the first parameter, and the first parameter is a positive integer.

[0319] In one possible manner, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, including: the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0320] In another possible manner, the first parameter is related to the number of hops between the first terminal device and the second terminal device, including: the first parameter is the number of hops between the first terminal device and the second terminal device; or the first parameter is the number of hops between the first terminal device and the second terminal device minus one.

[0321] In one example, the processing unit 702 is also used to determine that a first condition is met and stop the first timer; wherein the first condition includes: receiving a first indication message from the first relay terminal device through the transceiver unit 701, the first indication message is used to instruct the first terminal device to retain the unicast connection with the first relay terminal device, or to instruct the first terminal device to release the unicast connection with the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and a third terminal device, the third terminal device is the second terminal device or the third terminal device is a relay terminal device between the first relay terminal device and the second terminal device, the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device.

[0322] In another example, the processing unit 702 is further used to perform one or more of the following operations if the first timer expires: sending a message to the first relay terminal device through the transceiver unit 701 to indicate that the link between the first relay terminal device and the fourth terminal device remains activated, the first relay terminal device is one of the relay terminal devices, the first relay terminal device communicates directly with the first terminal device, the fourth terminal device is the second terminal device or the fourth terminal device is a relay terminal device between the first relay terminal device and the second terminal device; or, sending second indication information to the first relay terminal device through the transceiver unit 701, the second indication information being used to indicate that the first timer has expired.

[0323] Exemplarily, when determining the first parameter included in the first information, the processing unit 702 is used to: determine the first parameter according to a fourth parameter, the fourth parameter being the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter being the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter being the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter including the identification of one or more relay terminal devices; wherein the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device.

[0324] Optionally, the processing unit 702 is further configured to determine a fourth parameter.

[0325] In a possible manner, when determining the fourth parameter, the processing unit 702 is configured to: receive the fourth parameter from the first relay terminal device through the transceiver unit 701 .

[0326] In another possible manner, when determining the fourth parameter, the processing unit 702 is configured to: receive a first value of the fourth parameter through the transceiver unit 701 .

[0327] Optionally, the processing unit 702 may also be configured to send a second value of the fourth parameter through the transceiver unit 701 , and the second value is used to determine the first value.

[0328] Another possible way is that, when determining the fourth parameter, the processing unit 702 is used to: send the fifth parameter and the sixth parameter through the transceiver unit 701, the fifth parameter represents the maximum number of relay terminal devices, and the sixth parameter represents the remaining number of relay terminal devices, or the fifth parameter represents the maximum number of hops, and the sixth parameter represents the remaining number of hops; receive the fourth parameter through the transceiver unit 701, and the fourth parameter is determined based on the fifth parameter and the sixth parameter.

[0329] In one example, when the processing unit 702 determines the first parameter based on the fourth parameter, it is used to: when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; or when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two.

[0330] Optionally, the transceiver unit 701 may be configured to send the first parameter to the second terminal device.

[0331] In another embodiment, the communication device 700 is used to implement the above Figure 3 In the embodiment shown, the function of the first terminal device may include: the transceiver unit 701 is used to send a first parameter to the network device and receive the value of the first timer from the network device. The first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device. The processing unit 702 is used to control the above operations of the transceiver unit 701.

[0332] The value of the first timer is determined based on the first parameter.

[0333] In one example, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, including: the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or, the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0334] In another example, the first parameter is related to the number of hops between the first terminal device and the second terminal device, including: the first parameter is the number of hops between the first terminal device and the second terminal device; or, the first parameter is the number of hops between the first terminal device and the second terminal device minus one.

[0335] In one possible manner, the processing unit 702 is also used to determine that the first condition is met and stop the first timer; wherein the first condition includes: receiving first indication information from the first relay terminal device through the transceiver unit 701, the first indication information is used to instruct the first terminal device to retain the unicast connection between the first relay terminal device, or to instruct the first terminal device to release the unicast connection between the first relay terminal device and the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and the third terminal device, the third terminal device is the second terminal device or the third terminal device is a relay terminal device between the first relay terminal device and the second terminal device, the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device.

[0336] In another possible embodiment, the processing unit 702 is further used to perform one or more of the following operations if the first timer expires: sending a message to the first relay terminal device through the transceiver unit 701 to indicate that the link between the first relay terminal device and the fourth terminal device remains activated, the first relay terminal device is one of the relay terminal devices, the first relay terminal device communicates directly with the first terminal device, the fourth terminal device is the second terminal device or the fourth terminal device is a relay terminal device between the first relay terminal device and the second terminal device; or, sending second indication information to the first relay terminal device, the second indication information being used to indicate that the first timer has expired.

[0337] Optionally, the processing unit 702 may also be configured to determine a first parameter.

[0338] Exemplarily, when the processing unit 702 determines the first parameter, it is used to: determine the first parameter according to a fourth parameter, the fourth parameter being the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter being the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter being the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter including the identification of one or more relay terminal devices; wherein the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device.

[0339] In one example, the processing unit 702 is further configured to determine a fourth parameter.

[0340] In a possible manner, when determining the fourth parameter, the processing unit 702 is configured to: receive the fourth parameter from the first relay terminal device through the transceiver unit 701 .

[0341] In another possible manner, when determining the fourth parameter, the processing unit 702 is configured to: receive a first value of the fourth parameter through the transceiver unit 701 .

[0342] Optionally, the processing unit 702 may also be configured to send a second value of the fourth parameter through the transceiver unit 701 , and the second value is used to determine the first value.

[0343] Another possible way is that, when determining the fourth parameter, the processing unit 702 is used to: send the fifth parameter and the sixth parameter through the transceiver unit 701, the fifth parameter represents the maximum number of relay terminal devices, and the sixth parameter represents the remaining number of relay terminal devices, or the fifth parameter represents the maximum number of hops, and the sixth parameter represents the remaining number of hops; receive the fourth parameter through the transceiver unit 701, and the fourth parameter is determined based on the fifth parameter and the sixth parameter.

[0344] In one example, when the processing unit 702 determines the first parameter according to the fourth parameter, it is used to: when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; or

[0345] When the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two.

[0346] Optionally, the transceiver unit 701 may also be configured to send the first parameter to the second terminal device.

[0347] In another embodiment, the communication device 700 is used to implement the above Figure 3 The functions of the network device in the illustrated embodiment may include: the transceiver unit 701 is used to receive a first parameter from a first terminal device and send a value of a first timer to the first terminal device. The first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device. The processing unit 702 may be used to control the transceiver operation of the transceiver unit 701.

[0348] In one example, the processing unit 702 may also be configured to determine a value of the first timer according to the first parameter.

[0349] In one possible manner, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, including: the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or the first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one.

[0350] In another possible manner, the first parameter is related to the number of hops between the first terminal device and the second terminal device, including: the first parameter is the number of hops between the first terminal device and the second terminal device; or the first parameter is the number of hops between the first terminal device and the second terminal device minus one.

[0351] In another embodiment, the communication device 700 is used to implement the above Figure 4 In the embodiment shown, the function of the first terminal device may include: the processing unit 702 is used to determine the second information, and determine the value of the first timer according to the second information. The second information includes the second parameter and the third parameter, or the second information includes the second parameter, the second parameter includes the value of the second timer, and the third parameter includes the offset value;

[0352] Exemplarily, when the processing unit 702 determines the value of the first timer based on the second information, it is used to: when the second information includes the second parameter, the value of the first timer = a multiple of the value of the second timer; when the second information includes the second parameter and the third parameter, the value of the first timer = the sum of the value of the second timer and the offset value, or the value of the first timer = the difference between the multiple of the value of the second timer and the offset value.

[0353] In one possible manner, the processing unit 702 can also be used to determine whether the first condition is met and stop the first timer; wherein the first condition includes: receiving first indication information from the first relay terminal device through the transceiver unit 701, the first indication information is used to instruct the first terminal device to retain the unicast connection between the first relay terminal device, or to instruct the first terminal device to release the unicast connection between the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and the second terminal device, and the first terminal device communicates with the second terminal device through the first relay terminal device.

[0354] In another possible embodiment, the processing unit 702 can also be used to perform one or more of the following operations if the first timer expires: sending a message to the first relay terminal device through the transceiver unit 701 to indicate that the link between the first relay terminal device and the second terminal device should remain activated, and the first terminal device communicates with the second terminal device through the first relay terminal device; or sending second indication information to the first relay terminal device through the transceiver unit 701, and the second indication information is used to indicate that the first timer has expired.

[0355] In another embodiment, the communication device 700 is used to implement the above Figure 6 The function of the first terminal device in the illustrated embodiment may include: the processing unit 702 is used to determine a first parameter, the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device.

[0356] Exemplarily, when determining the first parameter, the processing unit 702 is used to: determine the first parameter according to a fourth parameter, the fourth parameter being the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter being the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter being the number of relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter including the identification of one or more relay terminal devices; wherein the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device.

[0357] In one example, the processing unit 702 is further configured to determine a fourth parameter.

[0358] In a possible manner, when determining the fourth parameter, the processing unit 702 is configured to: receive the fourth parameter from the first relay terminal device through the transceiver unit 701 .

[0359] In another possible manner, when determining the fourth parameter, the processing unit 702 is configured to: receive a first value of the fourth parameter through the transceiver unit 701 .

[0360] Optionally, the processing unit 702 may also be configured to send a second value of the fourth parameter through the transceiver unit 701 , and the second value is used to determine the first value.

[0361] Another possible way is that, when determining the fourth parameter, the processing unit 702 is used to: send the fifth parameter and the sixth parameter through the transceiver unit 701, the fifth parameter represents the maximum number of relay terminal devices, and the sixth parameter represents the remaining number of relay terminal devices, or the fifth parameter represents the maximum number of hops, and the sixth parameter represents the remaining number of hops; receive the fourth parameter through the transceiver unit 701, and the fourth parameter is determined based on the fifth parameter and the sixth parameter.

[0362] In one example, when the processing unit 702 determines the first parameter according to the fourth parameter, it is used to: when the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; or

[0363] When the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or, when the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two.

[0364] Optionally, the transceiver unit 701 may also be configured to send the first parameter to the second terminal device.

[0365] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. Each functional unit in the embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0366] 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 to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0367] Based on the above embodiments, the present application also provides a communication device, referring to Figure 8 As shown, the communication device 800 may include a processor 802. Optionally, the communication device 800 may also include a transceiver 801 and / or a memory 803. The memory 803 may be disposed inside the communication device 800 or outside the communication device 800. The processor 802 may control the transceiver 801 to receive and send messages, etc.

[0368] Specifically, the processor 802 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 802 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0369] Among them, the transceiver 801, the processor 802 and the memory 803 are interconnected. Optionally, the transceiver 801, the processor 802 and the memory 803 are interconnected via a bus 804; the bus 804 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0370] In an optional implementation, the memory 803 is used to store programs, etc. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory 803 may include a RAM, and may also include a non-volatile memory (non-volatile memory), such as one or more disk memories. The processor 802 executes the application program stored in the memory 803 to implement the above functions, thereby realizing the functions of the communication device 800.

[0371] In one embodiment, the communication device 800 is Figure 2a When the function of the first terminal device in the method embodiment shown is used, the processor 802 can implement the above Figure 2a The operations performed by the first terminal device in the method embodiment shown are as follows. Figure 2a The relevant description in the illustrated embodiment will not be described in detail here.

[0372] In one embodiment, the communication device 800 is Figure 3 When the function of the first terminal device in the method embodiment shown is used, the transceiver 801 can implement the above Figure 3 The sending and receiving operations performed by the first terminal device in the method embodiment shown in the figure; the processor 802 can implement the above Figure 3 In the method embodiment shown, the first terminal device performs other operations except the sending and receiving operations. For specific related descriptions, please refer to the above Figure 3 The relevant description in the illustrated embodiment will not be described in detail here.

[0373] In one embodiment, the communication device 800 is Figure 3 When the function of the network device in the method embodiment shown is used, the transceiver 801 can implement the above Figure 3 The sending and receiving operations performed by the network device in the method embodiment shown in the figure; the processor 802 can implement the above Figure 3In the method embodiment shown, other operations other than the sending and receiving operations are performed by the network device. For specific related descriptions, please refer to the above Figure 3 The relevant description in the illustrated embodiment will not be described in detail here.

[0374] In one embodiment, the communication device 800 is Figure 4 When the function of the first terminal device in the method embodiment shown is used, the processor 802 can implement the above Figure 4 The operations performed by the first terminal device in the method embodiment shown are as follows. Figure 4 The relevant description in the illustrated embodiment will not be described in detail here.

[0375] In one embodiment, the communication device 800 is Figure 5 When the function of the first terminal device in the method embodiment shown is used, the transceiver 801 can implement the above Figure 5 The sending and receiving operations performed by the first terminal device in the method embodiment shown in the figure; the processor 802 can implement the above Figure 5 In the method embodiment shown, the first terminal device performs other operations except the sending and receiving operations. For specific related descriptions, please refer to the above Figure 5 The relevant description in the illustrated embodiment will not be described in detail here.

[0376] In one embodiment, the communication device 800 is Figure 5 When the function of the network device in the method embodiment shown is used, the transceiver 801 can implement the above Figure 5 The sending and receiving operations performed by the network device in the method embodiment shown in the figure; the processor 802 can implement the above Figure 5 In the method embodiment shown, other operations other than the sending and receiving operations are performed by the network device. For specific related descriptions, please refer to the above Figure 5 The relevant description in the illustrated embodiment will not be described in detail here.

[0377] In one embodiment, the communication device 800 is Figure 6 When the function of the first terminal device in the method embodiment shown is used, the transceiver 801 can implement the above Figure 6 The sending and receiving operations performed by the first terminal device in the method embodiment shown in the figure; the processor 802 can implement the above Figure 6 In the method embodiment shown, the first terminal device performs other operations except the sending and receiving operations. For specific related descriptions, please refer to the above Figure 6 The relevant description in the illustrated embodiment will not be described in detail here.

[0378] Based on the above embodiments, an embodiment of the present application provides a communication system, which may include the first terminal device, the second terminal device, and the relay terminal device between the first terminal device and the second terminal device involved in the above embodiments.

[0379] An embodiment of the present application also provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a computer, the computer can implement the communication method provided by the above method embodiment.

[0380] The embodiment of the present application also provides a computer program product, which is used to store a computer program. When the computer program is executed by a computer, the computer can implement the communication method provided by the above method embodiment.

[0381] An embodiment of the present application also provides a chip, including a processor, which is coupled to a memory and is used to call a program in the memory so that the chip implements the communication method provided by the above method embodiment.

[0382] An embodiment of the present application also provides a chip, which is coupled to a memory and is used to implement the communication method provided in the above method embodiment.

[0383] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may 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 may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0384] 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 process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart 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 generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0385] These computer program instructions may also be stored in a computer-readable memory capable of directing 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 an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0386] 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, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0387] Obviously, those skilled in the art can 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 also intended to include these modifications and variations.

Claims

1. A communication method, characterized in that: include: Sending a first parameter to a network device, where the first parameter is related to the number of relay terminal devices between a first terminal device and a second terminal device, through which the first terminal device communicates with the second terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device; A value of a first timer is received from the network device.

2. The method according to claim 1, characterized in that The value of the first timer is determined based on the first parameter.

3. The method according to claim 1 or 2, characterized in that The method further comprises: The first parameter is determined.

4. The method according to claim 3, characterized in that Determining the first parameter includes: determining the first parameter according to a fourth parameter, wherein the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter is the number of the relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter includes identifications of one or more relay terminal devices; The first relay terminal device is one of the relay terminal devices, and the first relay terminal device directly communicates with the first terminal device.

5. A communication method, characterized in that: include: receiving a first parameter from a first terminal device, the first parameter being related to the number of relay terminal devices between the first terminal device and a second terminal device, the first terminal device communicating with the second terminal device through the relay terminal device, or the first parameter being related to the number of hops between the first terminal device and the second terminal device; Send the value of the first timer to the first terminal device.

6. The method according to claim 5, characterized in that The method further comprises: A value of a first timer is determined according to the first parameter.

7. A communication method, characterized in that: include: Determine first information, the first information including a first parameter; the first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, the first terminal device communicates with the second terminal device through the relay terminal device, or the first parameter is related to the number of hops between the first terminal device and the second terminal device; A value of a first timer is determined according to the first information.

8. The method according to claim 7, characterized in that The value of the first timer is positively correlated with the first parameter.

9. The method according to claim 7 or 8, characterized in that The first information further includes a second parameter and a third parameter, or the first information further includes the second parameter, the second parameter includes a value of a second timer, and the third parameter includes an offset value.

10. The method according to claim 9, characterized in that When the first information further includes the second parameter and the third parameter, the value of the first timer is positively correlated with the first parameter, the second parameter and the third parameter, or the value of the first timer is positively correlated with the first parameter and the second parameter and negatively correlated with the third parameter; When the first information further includes the second parameter, the value of the first timer is positively correlated with the first parameter and the second parameter.

11. The method according to claim 9 or 10, characterized in that Determining a value of the first timer according to the first information includes: The value of the first timer = T0 + N*T1; or The value of the first timer = N*T0+T1; or The value of the first timer = N*T0-T1; or The value of the first timer = N*(T0+T1); or The value of the first timer = N*(T0-T1); or The value of the first timer = T0 + (N-1) * T1; or The value of the first timer = (N-1)*T0+T1; or The value of the first timer = (N-1)*T0-T1; or The value of the first timer = (N-1)*(T0+T1); or The value of the first timer = (N-1)*(T0-T1); or The value of the first timer=(N+1)*T0; or The value of the first timer = N*T0; Among them, T0 is the value of the second timer, and T0 is a positive number; T1 is the offset value, and T1 is a number greater than or equal to 0; N is the first parameter, and the first parameter is a positive integer.

12. The method according to any one of claims 7 to 11, characterized in that: Determining the first parameter included in the first information includes: determining the first parameter according to a fourth parameter, wherein the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, or the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, or the fourth parameter is the number of the relay terminal devices or the number of hops between the first terminal device and the second terminal device, or the fourth parameter includes identifications of one or more relay terminal devices; The first relay terminal device is one of the relay terminal devices, and the first relay terminal device directly communicates with the first terminal device.

13. The method according to any one of claims 1-4, 5, 6, 7-12, characterized in that: The first parameter is related to the number of relay terminal devices between the first terminal device and the second terminal device, including: The first parameter is the number of relay terminal devices between the first terminal device and the second terminal device; or The first parameter is the number of relay terminal devices between the first terminal device and the second terminal device plus one; The first parameter is related to the number of hops between the first terminal device and the second terminal device, including: The first parameter is the number of hops between the first terminal device and the second terminal device; or The first parameter is the number of hops between the first terminal device and the second terminal device minus one.

14. The method according to any one of claims 1 to 4 and 7 to 12, characterized in that: The method further comprises: Determining that a first condition is met, stopping the first timer; The first condition includes: First indication information is received from a first relay terminal device, wherein the first indication information is used to instruct the first terminal device to retain a unicast connection with the first relay terminal device, or to instruct the first terminal device to release a unicast connection with the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and a third terminal device, wherein the third terminal device is the second terminal device or the third terminal device is a relay terminal device between the first relay terminal device and the second terminal device, the first relay terminal device is one of the relay terminal devices, and the first relay terminal device communicates directly with the first terminal device.

15. The method according to any one of claims 1 to 4 and 7 to 12, characterized in that: The method further comprises: If the first timer expires, perform one or more of the following operations: Sending a message to a first relay terminal device for instructing the first relay terminal device to maintain a link activation with a fourth terminal device, where the first relay terminal device is one of the relay terminal devices, the first relay terminal device directly communicates with the first terminal device, and the fourth terminal device is the second terminal device or the fourth terminal device is a relay terminal device between the first relay terminal device and the second terminal device; or Send second indication information to the first relay terminal device, where the second indication information is used to indicate that the first timer has expired.

16. The method according to claim 4 or 12, characterized in that: The method further comprises: The fourth parameter is determined.

17. The method according to claim 16, characterized in that Determining the fourth parameter includes: Receive the fourth parameter from the first relay terminal device.

18. The method according to claim 16, characterized in that Determining the fourth parameter includes: A first value of the fourth parameter is received.

19. The method according to claim 18, characterized in that The method further comprises: A second value of the fourth parameter is sent, wherein the second value is used to determine the first value.

20. The method of claim 16, wherein: Determining the fourth parameter includes: Sending a fifth parameter and a sixth parameter, wherein the fifth parameter indicates the maximum number of relay terminal devices, and the sixth parameter indicates the remaining number of relay terminal devices, or the fifth parameter indicates the maximum number of hops, and the sixth parameter indicates the remaining number of hops; The fourth parameter is received, where the fourth parameter is determined based on the fifth parameter and the sixth parameter.

21. The method according to any one of claims 4, 12, 16-20, characterized in that: Determining the first parameter according to the fourth parameter includes: When the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter; or When the fourth parameter is the number of hops between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or When the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus one; or When the fourth parameter is the number of relay terminal devices between the first relay terminal device and the second terminal device, the first parameter is equal to the fourth parameter plus two.

22. The method according to any one of claims 1-4, 7-21, characterized in that: The method further comprises: Send the first parameter to the second terminal device.

23. A communication method, characterized in that: include: Determine second information, where the second information includes a second parameter and a third parameter, or the second information includes the second parameter, the second parameter includes a value of a second timer, and the third parameter includes an offset value; The value of the first timer is determined according to the second information.

24. The method of claim 23, wherein: Determining a value of the first timer according to the second information includes: When the second information includes the second parameter, the value of the first timer is a multiple of the value of the second timer; When the second information includes the second parameter and the third parameter, the value of the first timer is the sum of the value of the second timer and the offset value, or the value of the first timer is the difference between a multiple of the value of the second timer and the offset value.

25. The method according to claim 23 or 24, characterized in that The method further comprises: Determining that a first condition is met, stopping the first timer; The first condition includes: A first indication message is received from a first relay terminal device, wherein the first indication message is used to instruct the first terminal device to retain a unicast connection with the first relay terminal device, or to instruct the first terminal device to release a unicast connection with the first relay terminal device, or to indicate that a wireless link failure occurs between the first relay terminal device and a second terminal device, and the first terminal device communicates with the second terminal device through the first relay terminal device.

26. The method according to claim 23 or 24, characterized in that The method further comprises: If the first timer expires, perform one or more of the following operations: sending a message to the first relay terminal device for instructing the first relay terminal device to keep the link between the first relay terminal device and the second terminal device activated, so that the first terminal device communicates with the second terminal device through the first relay terminal device; or Send second indication information to the first relay terminal device, where the second indication information is used to indicate that the first timer has expired.

27. A communication device, characterized in that: The method comprises a module or unit for executing the method described in any one of claims 1 to 4 and 13 to 22, or comprises a module or unit for executing the method described in any one of claims 7 to 22, or comprises a module or unit for executing the method described in any one of claims 23 to 26.

28. A communication device, characterized in that: The method comprises a module or a unit for executing the method according to any one of claims 5 to 6 and 13.

29. A communication device, characterized in that: comprising a processor, wherein: The processor is coupled to the memory, and is used to call computer instructions in the memory to execute the method according to any one of claims 1-4, 13-22, or the method according to any one of claims 7-22, or the method according to any one of claims 23-26.

30. A communication device, characterized in that: comprising a processor, wherein: The processor is coupled to the memory, and is used to call computer instructions in the memory to execute the method according to any one of claims 5-6 and 13.

31. A communication system, characterized in that: Comprising the communication device as claimed in claim 27, or comprising the communication device as claimed in claims 27 and 28, or comprising the communication device as claimed in claim 29, or comprising the communication device as claimed in claims 29 and 30.

32. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when called by the computer, execute the method as described in any one of claims 1-4, 13-22, or the method as described in any one of claims 5-6, 13, or the method as described in any one of claims 7-22, or the method as described in any one of claims 23-26.

33. A computer program product, characterized in that Contains instructions, which, when executed on a computer, cause the method according to any one of claims 1-4, 13-22, or the method according to any one of claims 5-6, 13 to be executed, or the method according to any one of claims 7-22 to be executed, or the method according to any one of claims 23-26 to be executed.

34. A chip, characterized in that: The chip is coupled to the memory and is used to read and execute program instructions stored in the memory to implement the method as described in any one of claims 1-4, 13-22, or the method as described in any one of claims 5-6, 13, or the method as described in any one of claims 7-22, or the method as described in any one of claims 23-26.