Data transmission method, terminal equipment and network equipment
By utilizing a variety of information indication mechanisms, the first terminal decides whether to relay messages to the third terminal in D2D communication, solving the problem of relay decision making in D2D communication, and achieving flexible and efficient data transmission.
Patent Information
- Application Number
- CN202510127901.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2017-12-27
- Publication Date
- 2025-03-18
AI Technical Summary
In D2D communication, the first terminal needs to determine whether to relay the received message to the third terminal, and there is a lack of an effective decision-making mechanism.
By using at least one of geographic location information, signal quality information, information of the terminal device collection, resource pool information and relay direction information, the first terminal decides whether to relay the message to the third terminal.
Flexible relay transmission decisions are realized, and the efficiency and reliability of data transmission are improved.
Smart Images

Figure CN119653451A_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese invention patent application entitled “Method for Transmitting Data, Terminal Device and Network Device”. The application number of the original application is 201780094520.5, and the application date of the original application is December 27, 2017. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] Embodiments of the present application relate to the field of communications, and more specifically, to a method, a terminal device, and a network device for transmitting data. Background Art
[0003] Device to Device (D2D) is a terminal direct communication technology, which refers to a method in which adjacent terminals transmit data through a direct path within a short range. D2D technology does not require a central node (for example, a base station) to forward, and therefore has a higher data rate and lower transmission delay.
[0004] In D2D communication, the second terminal can also forward information to the third terminal through the first terminal, that is, the second terminal first sends the message to be transmitted to the first terminal, and then the first terminal sends the message to be transmitted to the third terminal. Therefore, after the first terminal receives the message, how to determine whether to relay the message to be transmitted to the third terminal is an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present application provide a method for transmitting data, a terminal device, and a network device, wherein a relay terminal determines whether to relay a specific message based on indication information.
[0006] In a first aspect, a method for transmitting data is provided, including: a first terminal receives a first message sent by a second terminal, the target terminal of the first message is a third terminal; the first terminal determines whether to relay the first message to the third terminal according to indication information.
[0007] In some possible implementations, the indication information is used to indicate geographic location information.
[0008] In some possible implementations, the geographic location information includes at least one of the geographic location information of the first terminal, the geographic location information of the second terminal, and the geographic location information of the third terminal.
[0009] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the geographic location information of the first terminal meets the first geographic location condition, the first terminal determines to relay the first message to the third terminal; or if the geographic location information of the first terminal does not meet the first geographic location condition, the first terminal determines not to relay the first message to the third terminal.
[0010] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the geographic location information of the second terminal meets the second geographic location condition, the first terminal determines to relay the first message to the third terminal; or if the geographic location information of the second terminal does not meet the second geographic location condition, the first terminal determines not to relay the first message to the third terminal.
[0011] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the geographic location information of the third terminal meets a third geographic location condition, the first terminal determines to relay the first message to the third terminal; or if the geographic location information of the third terminal does not meet the third geographic location condition, the first terminal determines not to relay the first message to the third terminal.
[0012] In some possible implementations, the first geographical location condition, the second geographical location condition, and the third geographical location condition are configured by a network device, or are pre-configured on the first terminal.
[0013] In some possible implementations, the geographic location information is absolute geographic location information or relative geographic location information.
[0014] In some possible implementations, the indication information is used to indicate at least one of the following: information of a relay terminal set, information of a sending terminal set, and information of a receiving terminal set; wherein the relay terminal set is used to indicate a set of terminal devices that can relay received messages, the sending terminal set is used to indicate a set of terminal devices that need to relay sent messages, and the receiving terminal set is used to indicate a set of terminal devices that need to receive messages via relay transmission.
[0015] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the first terminal belongs to the relay terminal set, the first terminal determines to relay the first message to the third terminal; or if the first terminal does not belong to the relay terminal set, the first terminal determines not to relay the first message to the third terminal.
[0016] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the second terminal belongs to the sending terminal set, the first terminal determines to relay the first message to the third terminal; or if the second terminal does not belong to the sending terminal set, the first terminal determines not to relay the first message to the third terminal.
[0017] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the third terminal belongs to the receiving terminal set, the first terminal determines to relay the first message to the third terminal; or if the third terminal does not belong to the receiving terminal set, the first terminal determines not to relay the first message to the third terminal.
[0018] In some possible implementations, the information of the relay terminal set, the information of the sending terminal set, and the information of the receiving terminal set are configured by a network device, or configured by the second terminal.
[0019] In some possible implementations, the information of the relay terminal set, the information of the sending terminal set, and the information of the receiving terminal set are identification information of terminal devices.
[0020] In some possible implementations, the indication information is used to indicate signal quality information.
[0021] In some possible implementations, the signal quality information includes signal quality information between the first terminal and the second terminal and / or signal quality information between the first terminal and the third terminal.
[0022] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the signal quality between the first terminal and the second terminal meets the first signal quality condition, the first terminal determines to relay the first message to the third terminal; or if the signal quality between the first terminal and the second terminal does not meet the first signal quality condition, the first terminal determines not to relay the first message to the third terminal.
[0023] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the signal quality between the first terminal and the third terminal meets the second signal quality condition, the first terminal determines to relay the first message to the third terminal; or if the signal quality between the first terminal and the third terminal does not meet the second signal quality condition, the first terminal determines not to relay the first message to the third terminal.
[0024] In some possible implementations, the first signal quality condition is a first signal quality threshold, and the second signal quality condition is a second signal quality threshold.
[0025] In some possible implementations, the first signal quality condition and the second signal quality condition are configured by a network device, or are pre-configured on the first terminal.
[0026] In some possible implementations, the indication information is used to indicate a set of specific resource pools.
[0027] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the resource pool for sending the first message belongs to the set of specific resource pools, the first terminal determines to relay the first message to the third terminal; or if the resource pool for sending the first message does not belong to the set of specific resource pools, the first terminal determines not to relay the first message to the third terminal.
[0028] In some possible implementations, the indication information is used to indicate a relay direction of the message.
[0029] In some possible implementations, the first terminal determines whether to relay the first message to the third terminal based on the indication information, including: if the relay direction of the first message is the first direction, the first terminal determines to relay the first message to the third terminal; or if the relay direction of the first message is not the first direction, the first terminal determines not to relay the first message to the third terminal.
[0030] In some possible implementations, the first direction is configured by a network device, or configured by the second terminal.
[0031] In some possible implementations, the indication information is also used to indicate a maximum number of relay transmissions, and the method further includes: when the number of relays of the first message reaches the maximum number, the first terminal stops relaying the first message to the third terminal.
[0032] In some possible implementations, after receiving the first message, the first terminal increases or decreases the maximum number of relay transmissions indicated by the indication information included in the first message by one, and relays the modified first message to the third terminal.
[0033] In some possible implementations, the method further includes: the first terminal receiving the indication information sent by a network device.
[0034] In some possible implementations, the method further includes: the first terminal receiving the indication information sent by the second terminal.
[0035] In some possible implementations, the second terminal sends the indication information via a physical layer (PHY) message, a media access control (MAC) message, a radio link control (RLC) message, a packet data convergence protocol (PDCP) message, an adaptation layer (adaptation layer) message, or a PC5 signaling (PC5-Signaling, PC5-S) message.
[0036] Therefore, in the method for transmitting data in an embodiment of the present application, the relay terminal can determine whether to relay the first message to the third terminal based on at least one of the geographic location information, signal quality information, information on the terminal device set to which the sending terminal, the relay terminal and the receiving terminal belong, resource pool information, and relay direction information, thereby enabling flexible relay transmission.
[0037] In a second aspect, a method for transmitting data is provided, comprising: a network device determines indication information, wherein the indication information is used by a first terminal to determine whether to relay a first message sent by a second terminal when the first terminal receives the first message sent by the second terminal; and the network device sends the indication information to the first terminal.
[0038] In some possible implementations, the indication information is used to indicate a geographic location condition.
[0039] In some possible implementations, the geographic location condition includes at least one of a first geographic location condition corresponding to the geographic location information of the first terminal, a second geographic location condition corresponding to the geographic location information of the second terminal, and a third geographic location condition corresponding to the geographic location information of the third terminal.
[0040] In some possible implementations, the geographic location information is absolute geographic location information or relative geographic location information.
[0041] In some possible implementations, the indication information is used to indicate at least one of the following: information of a relay terminal set, information of a sending terminal set, and information of a receiving terminal set; wherein the relay terminal set is used to indicate a set of terminal devices that can relay received messages, the sending terminal set is used to indicate a set of terminal devices that need to relay sent messages, and the receiving terminal set is used to indicate a set of terminal devices that need to receive messages via relay transmission.
[0042] In some possible implementations, the indication information is used to indicate a signal quality condition.
[0043] In some possible implementations, the signal quality condition includes a first signal quality condition corresponding to signal quality information between the first terminal and the second terminal and / or a second signal quality condition corresponding to signal quality information between the first terminal and the third terminal.
[0044] In some possible implementations, the indication information is used to indicate a set of specific resource pools.
[0045] In some possible implementations, the indication information is used to indicate a relay direction of the message.
[0046] In some possible implementations, the indication information is also used to indicate a maximum number of relay transmissions.
[0047] In a third aspect, a terminal device is provided, which is used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the terminal device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.
[0048] In a fourth aspect, a network device is provided, which is used to execute the method in the second aspect or any possible implementation of the second aspect. Specifically, the network device includes a unit for executing the method in the second aspect or any possible implementation of the second aspect.
[0049] In a fifth aspect, a terminal device is provided, the terminal device comprising: a memory, a processor, an input interface, and an output interface. The memory, the processor, the input interface, and the output interface are connected via a bus system. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory, so as to execute the method in the first aspect or any possible implementation of the first aspect.
[0050] In a sixth aspect, a network device is provided, the network device comprising: a memory, a processor, an input interface, and an output interface. The memory, the processor, the input interface, and the output interface are connected via a bus system. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory, so as to execute the method in the second aspect or any possible implementation of the second aspect.
[0051] In a seventh aspect, a computer storage medium is provided for storing computer software instructions for executing the method in the first aspect or any possible implementation of the first aspect, which includes a program designed for executing the above aspect.
[0052] In an eighth aspect, a computer storage medium is provided for storing computer software instructions for executing the method in the second aspect or any possible implementation of the second aspect, which includes a program designed for executing the above aspect.
[0053] In a ninth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the first aspect or any optional implementation of the first aspect.
[0054] In a tenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the second aspect or any optional implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 is a schematic diagram of a communication system according to an embodiment of the present application;
[0056] Figure 2 is a schematic flow chart of a method for transmitting data according to an embodiment of the present application;
[0057] Figure 3 is a schematic flow chart of a method for transmitting data according to an embodiment of the present application;
[0058] Figure 4 is a schematic block diagram of a terminal device according to an embodiment of the present application;
[0059] Figure 5 is a schematic block diagram of a network device according to an embodiment of the present application;
[0060] Figure 6 is a schematic block diagram of a terminal device according to an embodiment of the present application; and
[0061] Figure 7 It is a schematic block diagram of a network device according to an embodiment of the present application. DETAILED DESCRIPTION
[0062] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0063] It should be understood that the technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Long Term Evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), 4.5th generation (4.5G) network, fifth generation (5G) network, new radio (NR), etc. The embodiments of the present application can also be applied to vehicle to everything (V2X) system, such as vehicle to vehicle (V2V) system; or, it can also be applied to terminal to terminal (D2D) system, but the embodiments of the present application are not limited thereto.
[0064] It should be understood that the terminal device in the embodiments of the present application may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a vehicle user equipment (VUE), such as a wireless terminal in a vehicle or self-driving vehicle, etc.; or, the terminal device may also be a pedestrian handheld terminal (PHT), such as a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, etc.
[0065] It should be understood that the network device involved in the embodiments of the present application is a device deployed in a wireless access network to provide wireless communication functions for terminal devices. The network device may be a base station, and the base station may include various forms of macro base stations, micro base stations, relay stations, access points, etc. In systems using different wireless access technologies, the names of devices with base station functions may be different. For example, in an LTE network, it is called an evolved node B (eNB or eNodeB), in a third generation (3rd Generation, 3G) network, it is called a node B (Node B), and so on.
[0066] Figure 1FIG. 1 is a schematic diagram of a communication system according to an embodiment of the present application. Figure 1 As shown, the embodiments of the present application can be applied to various application scenarios. Here, the network device and the terminal device in the Internet of Vehicles system are used as an example for explanation, wherein the network device can be a base station 110, and the terminal device can be a vehicle-mounted terminal, such as vehicle 121 and vehicle 122.
[0067] In the Internet of Vehicles system, a sending terminal can send a message to a relay terminal. After the relay terminal receives the message, how to determine whether to relay the message to the target terminal (or receiving terminal) of the message is an urgent problem to be solved.
[0068] In view of this, an embodiment of the present application provides a method for transmitting data, and a relay terminal can determine whether to relay a message to a target terminal.
[0069] Figure 2 is a schematic flow chart of a method 200 for transmitting data according to an embodiment of the present application. The method 200 may be Figure 1 The terminal device in the communication system 100 shown in FIG. 1 performs, as shown in FIG. Figure 2 As shown, the method 200 may include the following contents:
[0070] S210, a first terminal receives a first message sent by a second terminal, where a target terminal of the first message is a third terminal;
[0071] S220: The first terminal determines whether to relay the first message to the third terminal according to the indication information.
[0072] In an embodiment of the present application, a first terminal may receive a first message from a second terminal, the target terminal of the second terminal is a third terminal, that is, the second terminal is a sending terminal, the third terminal is a receiving terminal, and the first terminal is a relay terminal. In this case, the first terminal may determine whether to relay the first message to the third terminal based on the indication information. The indication information may be sent by a network device to the first terminal, or may be sent by the second terminal to the first terminal. For example, the second terminal may send the indication information to the first terminal via a physical layer (PHY) message, a media access control (MAC) message, a radio link control (RLC) message, a packet data convergence protocol (PDCP) message, an adaptation layer (adaptation layer) message, or a PC5 signaling (PC5-S) message, etc. The embodiment of the present application does not limit this.
[0073] In an embodiment of the present application, the indication information may be used to indicate whether the first terminal determines whether to relay the first message according to specific parameters or information. For example, the indication information may be used to indicate whether the first terminal determines whether to relay the first message according to the type of the first message. For example, the first terminal may determine to relay the first message when the type of the first message belongs to a specific type. The specific type may be configured by a network device, or configured by the second terminal, or may be pre-configured on the first terminal, which is not limited in the embodiment of the present application.
[0074] In an embodiment of the present application, the indication information may be used to indicate geographic location information, that is, the first terminal may determine whether to relay the first message to the third terminal based on the geographic location information. In one embodiment, the geographic location information includes at least one of the geographic location information of the first terminal, the geographic location information of the second terminal, and the geographic location information of the third terminal. In this case, S220 may include:
[0075] The first terminal determines whether to relay the first message to the third terminal according to at least one of the geographic location information of the first terminal, the geographic location information of the second terminal, and the geographic location information of the third terminal.
[0076] That is to say, the first terminal can obtain the geographic location information of the first terminal, at least one of the geographic location information of the second terminal (the second terminal can report its own geographic location to the first terminal) and the geographic location information of the third terminal (the third terminal can report its own geographic location to the first terminal), and then determine whether to relay the first message to the third terminal based on the above geographic location information.
[0077] As an embodiment, the first terminal determines whether to relay the first message to the third terminal according to at least one of the geographic location information of the first terminal, the geographic location information of the second terminal, and the geographic location information of the third terminal, which may include:
[0078] If the geographical location information of the first terminal meets a first geographical location condition, the first terminal determines to relay the first message to the third terminal; or
[0079] If the geographic location information of the first terminal does not meet the first geographic location condition, the first terminal determines not to relay the first message to the third terminal.
[0080] It should be understood that the first geographical location condition may be configured by a network device, may be configured by the second terminal, or may be pre-configured on the first terminal, which is not limited in the embodiments of the present application. The first geographical location condition may be a specific geographical location range, or may be a relative geographical location condition, for example, the position of the first terminal relative to the second terminal, or the position of the first terminal relative to the third terminal, etc., which is not limited in the embodiments of the present application.
[0081] For example, the first terminal may determine to relay the first message to the third terminal when the current geographical location of the first terminal is within a certain geographical location range, and otherwise, determine not to relay the first message to the third terminal; or it may determine to relay the first message to the third terminal when the absolute geographical location of the first terminal is not within a certain geographical location range, and otherwise, determine not to relay the first message to the third terminal.
[0082] For another example, the first terminal may determine to relay the first message to the third terminal when the relative geographical location of the first terminal relative to the second terminal is within a certain specific range, and otherwise, determine not to relay the first message to the third terminal; or the first terminal may determine to relay the first message to the third terminal when the relative geographical location of the first terminal relative to the second terminal is not within a certain specific range, and otherwise, determine not to relay the first message to the third terminal.
[0083] For another example, the first terminal may determine to relay the first message to the third terminal when the relative geographical location of the first terminal relative to the third terminal is within a certain specific range, and otherwise, determine not to relay the first message to the third terminal; or the first terminal may determine to relay the first message to the third terminal when the relative geographical location of the first terminal relative to the third terminal is not within a certain specific range, and otherwise, determine not to relay the first message to the third terminal.
[0084] As another embodiment, the first terminal determining whether to relay the first message to the third terminal according to at least one of the geographical location information of the first terminal, the geographical location information of the second terminal, and the geographical location information of the third terminal may include:
[0085] If the geographical location information of the second terminal meets a second geographical location condition, the first terminal determines to relay the first message to the third terminal; or
[0086] If the geographic location information of the second terminal does not meet the second geographic location condition, the first terminal determines not to relay the first message to the third terminal.
[0087] Similar to the aforementioned first geographical location condition, the second geographical location condition may be configured by a network device, may be configured by the second terminal, or may be pre-configured on the first terminal. The second geographical location condition may be a specific geographical location range, or may be a relative geographical location condition, for example, the position of the second terminal relative to the first terminal, etc.
[0088] For example, the first terminal may determine to relay the first message to the third terminal when the current geographical location of the second terminal is within a certain specific geographical location range, and otherwise, determine not to relay the first message to the third terminal; or the first terminal may determine to relay the first message to the third terminal when the current geographical location of the second terminal is not within a certain specific geographical location range, and otherwise, determine not to relay the first message to the third terminal.
[0089] For another example, the first terminal may determine to relay the first message to the third terminal when the relative geographical location of the second terminal relative to the first terminal is within a certain specific range, and otherwise, determine not to relay the first message to the third terminal; or it may determine to relay the first message to the third terminal when the relative geographical location of the second terminal relative to the first terminal is not within a certain specific range, and otherwise, determine not to relay the first message to the third terminal.
[0090] As yet another embodiment, the first terminal determining, according to at least one of the geographic location information of the first terminal, the geographic location information of the second terminal, and the geographic location information of the third terminal, whether to relay the first message to the third terminal may include:
[0091] If the geographical location information of the third terminal meets a third geographical location condition, the first terminal determines to relay the first message to the third terminal; or
[0092] If the geographic location information of the third terminal does not meet the third geographic location condition, the first terminal determines not to relay the first message to the third terminal.
[0093] Similar to the aforementioned first geographic location condition and second geographic location condition, the third geographic location condition may be configured by a network device, may be configured by the second terminal, or may be pre-configured on the first terminal. The third geographic location condition may be a specific geographic location range, or may be a relative geographic location condition, for example, the position of the third terminal relative to the first terminal.
[0094] For example, the first terminal may determine to relay the first message to the third terminal when the current geographical location of the third terminal is within a certain specific geographical location range, and otherwise, determine not to relay the first message to the third terminal; or the first terminal may determine to relay the first message to the third terminal when the current geographical location of the third terminal is not within a certain specific geographical location range, and otherwise, determine not to relay the first message to the third terminal.
[0095] For another example, the first terminal may determine to relay the first message to the third terminal when the relative geographical location of the third terminal with respect to the first terminal is within a certain specific range, otherwise, determine not to relay the first message to the third terminal; or it may determine to relay the first message to the third terminal when it is not within a certain specific range, otherwise, determine not to relay the first message to the third terminal.
[0096] In an embodiment of the present application, the first terminal may also determine whether to relay the first message to the third terminal based on the geographic location information of at least two terminal devices among the first terminal, the second terminal and the third terminal. The specific implementation method is similar and will not be repeated here.
[0097] In the embodiment of the present application, the indication information is used to indicate at least one of the following:
[0098] Relay terminal set information, send terminal set information and receive terminal set information;
[0099] Among them, the relay terminal set is used to indicate the set of terminal devices that can relay received messages, the sending terminal set is used to indicate the set of terminal devices that need to relay sent messages, and the receiving terminal set is used to indicate the set of terminal devices that need to receive messages via relay transmission.
[0100] In this case, S220 may include:
[0101] The first terminal determines whether to relay the first message to the third terminal according to at least one of the information of the relay terminal set, the information of the sending terminal set, and the information of the receiving terminal set.
[0102] As an embodiment, the first terminal determines whether to relay the first message to the third terminal according to at least one of the information of the relay terminal set, the information of the sending terminal set, and the information of the receiving terminal set, including:
[0103] If the first terminal belongs to the relay terminal set, the first terminal determines to relay the first message to the third terminal; or
[0104] If the first terminal does not belong to the relay terminal set, the first terminal determines not to relay the first message to the third terminal.
[0105] That is to say, when the first terminal (i.e., the relay terminal) belongs to a specific set of terminal devices, the first terminal will relay the first message to the third terminal. For example, the specific set of terminal devices can be a cluster head or a cluster tail in each user group, or it can also be a group of terminal devices that meet certain conditions. The embodiments of the present application are not limited to this.
[0106] It should be understood that the relay terminal set can be a network device configured for the first terminal, or it can be a second terminal configured for the first terminal. The embodiment of the present application does not limit this. The indication information can be used to indicate the identification information of a group of terminal devices. Only the terminal devices in the relay terminal set can be used as relay terminals to relay the received message to the target terminal of the message.
[0107] As another embodiment, the first terminal determines whether to relay the first message to the third terminal according to at least one of the information of the relay terminal set, the information of the sending terminal set, and the information of the receiving terminal set, including:
[0108] If the second terminal belongs to the sending terminal set, the first terminal determines to relay the first message to the third terminal; or
[0109] If the second terminal does not belong to the sending terminal set, the first terminal determines not to relay the first message to the third terminal.
[0110] That is to say, the first terminal relays the first message to the third terminal only when the second terminal (i.e., the sending terminal) belongs to a specific terminal device set, that is to say, the first terminal only relays messages sent by terminal devices in the specific terminal device set. In one embodiment, the specific terminal device set can be a cluster head or a cluster tail in each user group, or can also be a group of terminal devices that meet certain conditions, which is not limited in the embodiment of the present application.
[0111] It should be understood that the sending terminal set can be configured by the network device to the first terminal, or it can be configured by the second terminal to the first terminal. The indication information can be used to indicate the identification information of a group of terminal devices. Only the messages sent by the terminal devices in the sending terminal set can be relayed to the target terminal of the message through the relay terminal.
[0112] As yet another embodiment, the first terminal determines, according to the indication information, whether to relay the first message to the third terminal, including:
[0113] If the third terminal belongs to the set of receiving terminals, the first terminal determines to relay the first message to the third terminal; or
[0114] If the third terminal does not belong to the receiving terminal set, the first terminal determines not to relay the first message to the third terminal.
[0115] That is to say, the first terminal relays the first message to the third terminal only when the third terminal (i.e., the receiving terminal) belongs to a specific terminal device set, that is to say, the first terminal only relays messages sent to a specific terminal device set. In one embodiment, the specific terminal device set can be a cluster head or a cluster tail in each user group, or can also be a group of terminal devices that meet certain conditions, which is not limited in the embodiment of the present application.
[0116] It should be understood that the receiving terminal set can be configured by the network device to the first terminal, or it can be configured by the second terminal to the first terminal. The indication information can be used to indicate the identification information of a group of terminal devices. Only messages sent to terminal devices in the receiving terminal set can (or need to) be relayed through the relay terminal.
[0117] In an embodiment of the present application, the first terminal may also determine whether to relay the first message to the third terminal based on the relationship between at least two terminal devices among the first terminal, the second terminal and the third terminal and the corresponding terminal device set. The specific implementation method is similar and will not be repeated here.
[0118] In an embodiment of the present application, the indication information is used to indicate signal quality information. In a specific embodiment, the signal quality information includes signal quality information between the first terminal and the second terminal and / or signal quality information between the first terminal and the third terminal. In this case, S220 may include:
[0119] The first terminal determines whether to relay the first message to the third terminal according to signal quality information between the first terminal and the second terminal and / or signal quality information between the first terminal and the third terminal.
[0120] That is, the first terminal may measure the signal quality information between the first terminal and the second terminal and / or the signal quality information between the first terminal and the third terminal, and then determine whether to relay the first message to the third terminal based on the measured signal quality information.
[0121] As an embodiment, the first terminal determines whether to relay the first message to the third terminal according to signal quality information between the first terminal and the second terminal and / or signal quality information between the first terminal and the third terminal, including:
[0122] If the signal quality between the first terminal and the second terminal meets a first signal quality condition, the first terminal determines to relay the first message to the third terminal; or
[0123] If the signal quality between the first terminal and the second terminal does not meet the first signal quality condition, the first terminal determines not to relay the first message to the third terminal.
[0124] It should be noted that the first signal quality condition may be a specific signal quality threshold, or a signal quality range, etc., which is not limited in the embodiment of the present application. For example, the first terminal may determine to relay the first message to the third terminal when the signal quality between the first terminal and the second terminal is higher or lower than a specific signal quality threshold, otherwise, determine not to relay the first message to the third terminal, wherein the first signal quality condition may be configured by a network device to the first terminal, or configured by the second terminal device to the first terminal, which is not limited in the embodiment of the present application.
[0125] As another embodiment, the first terminal determines whether to relay the first message to the third terminal according to signal quality information between the first terminal and the second terminal and / or signal quality information between the first terminal and the third terminal, including:
[0126] If the signal quality between the first terminal and the third terminal meets a second signal quality condition, the first terminal determines to relay the first message to the third terminal; or
[0127] If the signal quality between the first terminal and the third terminal does not satisfy the second signal quality condition, the first terminal determines not to relay the first message to the third terminal.
[0128] It should be noted that, similar to the first signal quality condition, the second signal quality condition may be a specific signal quality threshold, or a signal quality range, etc., which is not limited in the embodiment of the present application. For example, the first terminal may determine to relay the first message to the third terminal when the signal quality between the first terminal and the third terminal is higher or lower than a specific signal quality threshold. The second signal quality condition may be configured by a network device or by a second terminal device, which is not limited in the embodiment of the present application.
[0129] In the embodiment of the present application, the first terminal may also determine whether to relay the first message to the third terminal based on the signal quality information between the first terminal and the second terminal, and the signal quality information between the first terminal and the third terminal. For example, the first terminal may determine to relay the first message to the third terminal when the signal quality information between the first terminal and the second terminal meets the first signal quality condition, and the signal quality information between the first terminal and the third terminal meets the second signal quality condition, or may determine not to relay the first message to the third terminal when any of the above two conditions is not met, and the embodiment of the present application does not limit this.
[0130] In the embodiment of the present application, the indication information may also be used to indicate a set of specific resource pools. In this case, S220 may include:
[0131] If the sending resource pool of the first message belongs to the set of the specific resource pools, the first terminal determines to relay the first message to the third terminal; or
[0132] If the sending resource pool of the first message does not belong to the set of specific resource pools, the first terminal determines not to relay the first message to the third terminal.
[0133] That is to say, only messages sent through a specific resource pool can be relayed through the relay terminal. Then, after receiving the first message, the first terminal can determine whether the sending resource pool of the first message belongs to the set of the specific resource pool. If so, it is determined to relay the first message, otherwise, it is determined not to relay the first message. Alternatively, only messages sent by resource pools other than the specific resource pool can be relayed through the relay terminal, and the embodiments of the present application do not limit this.
[0134] In the embodiment of the present application, the indication information may also be used to indicate the relay direction of the message. In this case, S220 may include:
[0135] The first terminal determines whether to relay the first message to the third terminal according to the relay direction of the first message.
[0136] In a specific embodiment, the first terminal determines whether to relay the first message to the third terminal according to the relay direction of the first message, including:
[0137] If the relay direction of the first message is the first direction, the first terminal determines to relay the first message to the third terminal; or
[0138] If the relay direction of the first message is not the first direction, the first terminal determines not to relay the first message to the third terminal.
[0139] The first direction is configured by the network device to the first terminal, or configured by the second terminal to the first terminal. After receiving the first message, the first terminal can determine the relay direction of the first message according to the relative positions of the first terminal and the second terminal, and / or the relative positions of the first terminal and the third terminal. Further, it can be determined whether the relay direction is the first direction. If so, it is determined to relay the first message, otherwise it is determined not to relay the first message. Alternatively, it is also possible to determine to relay the first message when the relay direction of the first message is not the first direction, otherwise, it is determined not to relay the first message.
[0140] In an embodiment of the present application, the first terminal may also comprehensively consider at least two of the geographic location information, signal quality information, information on the terminal device set to which the sending terminal, relay terminal and receiving terminal belong, resource pool information, and relay direction information to determine whether to relay the first message to the third terminal. The specific implementation method can refer to the relevant description in the aforementioned embodiment, which will not be repeated here.
[0141] In the embodiment of the present application, the indication information is also used to indicate the maximum number of relay transmissions. In this case, the method 200 may further include:
[0142] When the number of relay times of the first message reaches the maximum number, the first terminal stops relaying the first message to the third terminal.
[0143] In one embodiment, the indication information may be a counter, and each time the first terminal relays the first message once, the maximum number of relay transmissions indicated by the indication information included in the first message is increased or decreased by one, and the modified first message is relayed to the third terminal until the count value of the counter reaches a specific value, and then the relaying of the first message is stopped. For example, the count value of the counter starts to be zero, and when the count value of the counter reaches the maximum number of times, the relaying of the first message is stopped, or the count value of the counter starts to be the maximum number of times, and when the count value of the counter is zero, the relaying of the first message is stopped.
[0144] Therefore, in the method for transmitting data in an embodiment of the present application, the relay terminal can determine whether to relay the first message to the third terminal based on at least one of the geographic location information, signal quality information, information on the terminal device set to which the sending terminal, the relay terminal and the receiving terminal belong, resource pool information, and relay direction information, thereby enabling flexible relay transmission.
[0145] Combination of the above Figure 2 , describes in detail the method for transmitting data according to an embodiment of the present application from the perspective of a terminal device, and the following is combined with Figure 3 , a method for transmitting data according to another embodiment of the present application is described in detail from the perspective of a network device. It should be understood that the description on the network device side corresponds to the description on the terminal device side, and similar descriptions can be found above. To avoid repetition, they will not be repeated here.
[0146] Figure 3 is a schematic flow chart of a method 300 for transmitting data according to another embodiment of the present application. The method 300 may be Figure 1 The network device in the Internet of Vehicles system shown in FIG. Figure 3 As shown, the method 300 includes the following contents:
[0147] S310, the network device determines indication information, where the indication information is used for the first terminal to determine whether to relay the first message to the third terminal when receiving the first message sent by the second terminal;
[0148] S320: The network device sends the indication information to the first terminal.
[0149] In some embodiments, the indication information is used to indicate a geographic location condition.
[0150] In some embodiments, the geographic location condition includes at least one of a first geographic location condition corresponding to the geographic location information of the first terminal, a second geographic location condition corresponding to the geographic location information of the second terminal, and a third geographic location condition corresponding to the geographic location information of the third terminal.
[0151] In some embodiments, the geographic location information is absolute geographic location information or relative geographic location information.
[0152] In some embodiments, the indication information is used to indicate at least one of the following:
[0153] Relay terminal set information, send terminal set information and receive terminal set information;
[0154] Among them, the relay terminal set is used to indicate the set of terminal devices that can relay received messages, the sending terminal set is used to indicate the set of terminal devices that need to relay sent messages, and the receiving terminal set is used to indicate the set of terminal devices that need to receive messages via relay transmission.
[0155] In some embodiments, the indication information is used to indicate a signal quality condition.
[0156] In some embodiments, the signal quality condition includes a first signal quality condition corresponding to signal quality information between the first terminal and the second terminal and / or a second signal quality condition corresponding to signal quality information between the first terminal and the third terminal.
[0157] In some embodiments, the indication information is used to indicate a set of specific resource pools.
[0158] In some embodiments, the indication information is used to indicate a relay direction of the message.
[0159] In some embodiments, the indication information is also used to indicate a maximum number of relay transmissions.
[0160] In the embodiment of the present application, the content in the method 300 may also be executed by the second terminal, ie, the sending terminal, which will not be described in detail here for the sake of brevity.
[0161] Combination of the above Figure 2 and Figure 3 , describes in detail the method embodiment of the present application, and the following is combined with Figures 4 to 7 , the device embodiments of the present application are described in detail. It should be understood that the device embodiments and the method embodiments correspond to each other, and similar descriptions can refer to the method embodiments.
[0162] Figure 4 FIG. 4 shows a schematic block diagram of a terminal device 400 according to an embodiment of the present application. Figure 4 As shown, the terminal device 400 includes:
[0163] The communication module 410 is configured to receive a first message sent by a second terminal, wherein a target terminal of the first message is a third terminal;
[0164] The determination module 420 is configured to determine whether to relay the first message to the third terminal according to the indication information.
[0165] In some embodiments, the indication information is used to indicate geographic location information.
[0166] In some embodiments, the geographic location information includes at least one of the geographic location information of the terminal device, the geographic location information of the second terminal, and the geographic location information of the third terminal.
[0167] In some embodiments, the determination module 420 is specifically used to:
[0168] If the geographical location information of the terminal device meets the first geographical location condition, determine to relay the first message to the third terminal; or
[0169] If the geographical location information of the terminal device does not meet the first geographical location condition, determine not to relay the first message to the third terminal.
[0170] In some embodiments, the determination module 420 is specifically used to:
[0171] If the geographical location information of the second terminal meets a second geographical location condition, determine to relay the first message to the third terminal; or
[0172] If the geographic location information of the second terminal does not meet the second geographic location condition, determine not to relay the first message to the third terminal.
[0173] In some embodiments, the determination module 420 is specifically used to:
[0174] If the geographical location information of the third terminal meets a third geographical location condition, determine to relay the first message to the third terminal; or
[0175] If the geographic location information of the third terminal does not meet the third geographic location condition, determine not to relay the first message to the third terminal.
[0176] In some embodiments, the first geographical location condition, the second geographical location condition and the third geographical location condition are configured by a network device, or are pre-configured on the terminal device.
[0177] In some embodiments, the geographic location information is absolute geographic location information or relative geographic location information.
[0178] In some embodiments, the indication information is used to indicate at least one of the following:
[0179] Relay terminal set information, send terminal set information and receive terminal set information;
[0180] Among them, the relay terminal set is used to indicate the set of terminal devices that can relay received messages, the sending terminal set is used to indicate the set of terminal devices that need to relay sent messages, and the receiving terminal set is used to indicate the set of terminal devices that need to receive messages via relay transmission.
[0181] In some embodiments, the determination module 420 is specifically used to:
[0182] If the terminal device belongs to the relay terminal set, determine to relay the first message to the third terminal; or
[0183] If the terminal device does not belong to the relay terminal set, it is determined not to relay the first message to the third terminal.
[0184] In some embodiments, the determination module 420 is specifically used to:
[0185] If the second terminal belongs to the sending terminal set, determine to relay the first message to the third terminal; or
[0186] If the second terminal does not belong to the sending terminal set, determine not to relay the first message to the third terminal.
[0187] In some embodiments, the determination module 420 is specifically used to:
[0188] If the third terminal belongs to the set of receiving terminals, determine to relay the first message to the third terminal; or
[0189] If the third terminal does not belong to the receiving terminal set, determine not to relay the first message to the third terminal.
[0190] In some embodiments, the information of the relay terminal set, the information of the sending terminal set and the information of the receiving terminal set are configured by a network device or configured by the second terminal.
[0191] In some embodiments, the information of the relay terminal set, the information of the sending terminal set, and the information of the receiving terminal set are identification information of terminal devices.
[0192] In some embodiments, the indication information is used to indicate signal quality information.
[0193] In some embodiments, the signal quality information includes signal quality information between the terminal device and the second terminal and / or signal quality information between the terminal device and the third terminal.
[0194] In some embodiments, the determination module 420 is specifically used to:
[0195] If the signal quality between the terminal device and the second terminal meets the first signal quality condition, determine to relay the first message to the third terminal; or
[0196] If the signal quality between the terminal device and the second terminal does not meet the first signal quality condition, determine not to relay the first message to the third terminal.
[0197] In some embodiments, the determination module 420 is specifically used to:
[0198] If the signal quality between the terminal device and the third terminal meets the second signal quality condition, determine to relay the first message to the third terminal; or
[0199] If the signal quality between the terminal device and the third terminal does not meet the second signal quality condition, determine not to relay the first message to the third terminal.
[0200] In some embodiments, the first signal quality condition is a first signal quality threshold, and the second signal quality condition is a second signal quality threshold.
[0201] In some embodiments, the first signal quality condition and the second signal quality condition are configured by a network device, or are preconfigured on the terminal device.
[0202] In some embodiments, the indication information is used to indicate a set of specific resource pools.
[0203] In some embodiments, the determination module 420 is specifically used to:
[0204] If the sending resource pool of the first message belongs to the set of the specific resource pools, determine to relay the first message to the third terminal; or
[0205] If the sending resource pool of the first message does not belong to the set of specific resource pools, it is determined not to relay the first message to the third terminal.
[0206] In some embodiments, the indication information is used to indicate a relay direction of the message.
[0207] In some embodiments, the determination module 420 is specifically used to:
[0208] If the relay direction of the first message is the first direction, determine to relay the first message to the third terminal; or
[0209] If the relay direction of the first message is not the first direction, determine not to relay the first message to the third terminal.
[0210] In some embodiments, the first direction is configured by a network device, or configured by the second terminal.
[0211] In some embodiments, the indication information is further used to indicate a maximum number of relay transmissions, and the communication module 410 is further used to:
[0212] When the number of relay times of the first message reaches the maximum number, stop relaying the first message to the third terminal.
[0213] In some embodiments, after receiving the first message, the terminal device increases or decreases the maximum number of relay transmissions indicated by the indication information contained in the first message by one, and relays the modified first message to the third terminal.
[0214] In some embodiments, the communication module 410 is further used to:
[0215] Receive the indication information sent by the network device.
[0216] In some embodiments, the communication module 410 is further used to:
[0217] The indication information sent by the second terminal is received.
[0218] In some embodiments, the second terminal sends the indication information via a physical layer message, a medium access control (MAC) message, a radio link control (RLC) message, a packet data convergence protocol (PDCP) message, an adaptation layer message, or a PC5-S message.
[0219] It should be understood that the terminal device 400 according to the embodiment of the present application may correspond to the first terminal in the method embodiment of the present application, and the above and other operations and / or functions of each unit in the terminal device 400 are respectively to implement Figure 2 For the sake of brevity, the corresponding process of the first terminal in the method 200 is not repeated here.
[0220] Figure 5 It is a schematic block diagram of a network device according to an embodiment of the present application. Figure 5 The network device 500 includes:
[0221] A determination module 510, configured to determine indication information, wherein the indication information is used by the first terminal to determine whether to relay the first message to a third terminal when the first terminal receives the first message sent by the second terminal;
[0222] The communication module 520 is configured to send the indication information to the first terminal.
[0223] In some embodiments, the indication information is used to indicate a geographic location condition.
[0224] In some embodiments, the geographic location condition includes at least one of a first geographic location condition corresponding to the geographic location information of the first terminal, a second geographic location condition corresponding to the geographic location information of the second terminal, and a third geographic location condition corresponding to the geographic location information of the third terminal.
[0225] In some embodiments, the geographic location information is absolute geographic location information or relative geographic location information.
[0226] In some embodiments, the indication information is used to indicate at least one of the following:
[0227] Relay terminal set information, send terminal set information and receive terminal set information;
[0228] Among them, the relay terminal set is used to indicate the set of terminal devices that can relay received messages, the sending terminal set is used to indicate the set of terminal devices that need to relay sent messages, and the receiving terminal set is used to indicate the set of terminal devices that need to receive messages via relay transmission.
[0229] In some embodiments, the indication information is used to indicate a signal quality condition.
[0230] In some embodiments, the signal quality condition includes a first signal quality condition corresponding to signal quality information between the first terminal and the second terminal and / or a second signal quality condition corresponding to signal quality information between the first terminal and the third terminal.
[0231] In some embodiments, the indication information is used to indicate a set of specific resource pools.
[0232] In some embodiments, the indication information is used to indicate a relay direction of the message.
[0233] In some embodiments, the indication information is also used to indicate a maximum number of relay transmissions.
[0234] Specifically, the network device 500 may correspond to (for example, may be configured in or may itself be) the network device described in the above method 300, and each module or unit in the network device 500 is respectively used to execute each action or processing process performed by the network device in the above method 300. Here, in order to avoid repetition, its detailed description is omitted.
[0235] like Figure 6 As shown, the embodiment of the present application also provides a terminal device 600 for transmitting data, and the device 600 can be Figure 4 The terminal device 400 in Figure 2 The content of the first terminal corresponding to the method 200 in the method 200. The terminal device 600 includes: an input interface 610, an output interface 620, a processor 630 and a memory 640, and the input interface 610, the output interface 620, the processor 630 and the memory 640 can be connected through a bus system. The memory 640 is used to store programs, instructions or codes. The processor 630 is used to execute the programs, instructions or codes in the memory 640 to control the input interface 610 to receive signals, control the output interface 620 to send signals, and complete the operations in the above-mentioned method embodiment.
[0236] It should be understood that in the embodiment of the present application, the processor 630 may be a central processing unit (CPU), and the processor 630 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0237] The memory 640 may include a read-only memory and a random access memory, and provide instructions and data to the processor 630. A portion of the memory 640 may also include a non-volatile random access memory. For example, the memory 640 may also store information on the device type.
[0238] In the implementation process, the contents of the above method can be completed by the hardware integrated logic circuit in the processor 630 or the instruction in the form of software. The contents of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 640, and the processor 630 reads the information in the memory 640 and completes the contents of the above method in combination with its hardware. To avoid repetition, it is not described in detail here.
[0239] In a specific implementation, Figure 4 The determination module 420 included in the terminal device 400 can be used Figure 6 The processor 630 implements, Figure 4 The communication module 410 included in the terminal device 400 can be used Figure 6 The input interface 610 and the output interface 620 are implemented.
[0240] like Figure 7 As shown, the embodiment of the present application further provides a network device 700, which can be Figure 5 The network device 500 in Figure 3 The network device 700 includes: an input interface 710, an output interface 720, a processor 730 and a memory 740, and the input interface 710, the output interface 720, the processor 730 and the memory 740 can be connected through a bus system. The memory 740 is used to store programs, instructions or codes. The processor 730 is used to execute the programs, instructions or codes in the memory 740 to control the input interface 710 to receive signals, control the output interface 720 to send signals, and complete the operations in the above method embodiments.
[0241] It should be understood that in the embodiment of the present application, the processor 730 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0242] The memory 740 may include a read-only memory and a random access memory, and provides instructions and data to the processor 730. A portion of the memory 740 may also include a non-volatile random access memory. For example, the memory 740 may also store information on the device type.
[0243] In the implementation process, the contents of the above method can be completed by the hardware integrated logic circuit in the processor 730 or the instruction in the form of software. The contents of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 740, and the processor 730 reads the information in the memory 740 and completes the contents of the above method in combination with its hardware. To avoid repetition, it is not described in detail here.
[0244] In a specific implementation, Figure 5 The determining module 510 included in the network device 500 can be used Figure 7 The processor 730 implements, Figure 5 The communication module 520 included in the network device 500 can be used Figure 7 The input interface 710 and the output interface 720 are implemented.
[0245] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 2 and Figure 3 The method of the illustrated embodiment.
[0246] The present application also provides a computer program, which includes instructions. When the computer program is executed by a computer, the computer can execute Figure 2 and Figure 3 The corresponding process of the method of the embodiment shown.
[0247] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0248] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0249] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0250] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0251] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0252] If the function 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, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0253] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for transmitting data, characterized in that: include: The first terminal receives a first message sent by the second terminal, where the target terminal of the first message is the third terminal; The first terminal determines whether to relay the first message to the third terminal according to the indication information.
2. The method according to claim 1, characterized in that The indication information is used to indicate signal quality information.
3. The method according to claim 2, characterized in that The signal quality information includes signal quality information between the first terminal and the second terminal and / or signal quality information between the first terminal and the third terminal.
4. The method according to claim 3, characterized in that The first terminal determines, according to the indication information, whether to relay the first message to the third terminal, including: If the signal quality information between the first terminal and the second terminal meets a first signal quality condition, the first terminal determines to relay the first message to the third terminal; or If the signal quality information between the first terminal and the second terminal does not meet the first signal quality condition, the first terminal determines not to relay the first message to the third terminal; Alternatively, the first terminal determines, according to the indication information, whether to relay the first message to the third terminal, including: If the signal quality information between the first terminal and the third terminal meets a second signal quality condition, the first terminal determines to relay the first message to the third terminal; or If the signal quality information between the first terminal and the third terminal does not satisfy the second signal quality condition, the first terminal determines not to relay the first message to the third terminal.
5. The method according to claim 4, characterized in that The first signal quality condition is a first signal quality threshold and / or the second signal quality condition is a second signal quality threshold.
6. According to the method of claim 4 or 5, the first signal quality condition is configured by a network device or preconfigured on the first terminal; and / or the second signal quality condition is configured by a network device or preconfigured on the first terminal.
7. A method for transmitting data, characterized in that: include: The network device determines indication information, where the indication information is used for the first terminal to determine whether to relay the first message to the third terminal when the first terminal receives the first message sent by the second terminal; The network device sends the indication information to the first terminal.
8. The method according to claim 7, characterized in that The indication information is used to indicate a signal quality condition.
9. The method according to claim 8, characterized in that The signal quality condition includes a first signal quality condition corresponding to the signal quality information between the first terminal and the second terminal and / or a second signal quality condition corresponding to the signal quality information between the first terminal and the third terminal; The first signal quality condition is a first signal quality threshold; and / or the second signal quality condition is a second signal quality threshold.
10. A terminal device, characterized in that: include: A communication module, configured to receive a first message sent by a second terminal, wherein a target terminal of the first message is a third terminal; A determination module is used to determine whether to relay the first message to the third terminal according to the indication information.
11. The method according to claim 10, characterized in that The indication information is used to indicate signal quality information.
12. The terminal device according to claim 11, characterized in that: The signal quality information includes signal quality information between the terminal device and the second terminal and / or signal quality information between the terminal device and the third terminal.
13. The terminal device according to claim 12, characterized in that: The determination module is specifically used for: If the signal quality information between the terminal device and the second terminal meets the first signal quality condition, determine to relay the first message to the third terminal; or If the signal quality information between the terminal device and the second terminal does not meet the first signal quality condition, determine not to relay the first message to the third terminal; Alternatively, the determining module is specifically used for: If the signal quality information between the terminal device and the third terminal meets the second signal quality condition, determine to relay the first message to the third terminal; or If the signal quality information between the terminal device and the third terminal does not meet the second signal quality condition, it is determined not to relay the first message to the third terminal.
14. The terminal device according to claim 13, characterized in that: The first signal quality condition is a first signal quality threshold; and / or the second signal quality condition is a second signal quality threshold.
15. According to the terminal device according to claim 13 or 14, the first signal quality condition is configured by a network device, or is preconfigured on the terminal device; and / or the second signal quality condition is configured by a network device, or is preconfigured on the terminal device.
16. A network device, characterized in that: include: a determination module, configured to determine indication information, wherein the indication information is used by the first terminal to determine whether to relay the first message to the third terminal when the first terminal receives the first message sent by the second terminal; A communication module is used to send the indication information to the first terminal.
17. The network device according to claim 16, characterized in that: The indication information is used to indicate a signal quality condition.
18. The network device according to claim 17, characterized in that: The signal quality condition includes a first signal quality condition corresponding to the signal quality information between the first terminal and the second terminal and / or a second signal quality condition corresponding to the signal quality information between the first terminal and the third terminal; The first signal quality condition is a first signal quality threshold; and / or the second signal quality condition is a second signal quality threshold.
19. A computer storage medium, characterized in that: Used to store one or more programs including instructions, which, when executed, are used to execute the method for transmitting data according to any one of claims 1 to 6 or the method for transmitting data according to any one of claims 7 to 9.
20. A computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the method for transmitting data according to any one of claims 1 to 6 or the method for transmitting data according to any one of claims 7 to 9.