Patent Description:
An internet of vehicles system is designed to improve road safety, improve traffic efficiency, and provide a rich streaming service for users through communication between a vehicle and another device (V2X). The another device includes a vehicle, a handheld terminal, a roadside unit (RSU), a network, and the like. The communication between a vehicle and another device includes vehicle to vehicle (V2V) communication, vehicle-to-pedestrian (V2P) communication, vehicle-to-network (V2N) communication, and the like, and the V2V communication, the V2P communication, and the V2I communication are collectively referred to as the V2X.

Currently, technologies such as <NUM>/<NUM>/<NUM> are used for cellular communication. A long term evolution (LTE) technology used in a <NUM> system has advantages of a high rate, a low latency, large coverage, support for a high-speed moving terminal, and the like. Therefore, during information communication between a vehicle and the outside in a cellular network, a central scheduler such as a base station (eNB) may be fully used to dynamically schedule a transmission resource, to reduce a probability of a communication conflict, and resolve an uncontrollable delay problem. An LTE-V2X technology is a technology of information exchange between a vehicle and another device based on an LTE cellular network, and is an extension to an existing cellular network technology.

In an LTE-V2X system, there are usually two manners of communication between a vehicle and another device. In a first manner, as shown in <FIG>, a vehicle sends state information of the vehicle to another nearby vehicle or node in a broadcast manner, and a base station does not need to forward data. In a second manner, as shown in <FIG>, a vehicle first sends state information of the vehicle to a base station, and then the base station sends the received data to another vehicle or node in a unicast or broadcast manner. However, in field of existing internet of vehicles technologies, a vehicle serving as a transmit end can only determine whether sending of data that needs to be sent is completed. Because a data feedback resource is not defined, the vehicle serving as the transmit end cannot determine whether the sent data is successfully received, and consequently data transmission reliability is low.

The document <CIT> shows a user equipment, a feedback control method, and a retransmission control method. All of these focus on device to device communication.

The document <CIT> shows a resource pool configuration method and device, and an according computer storage medium. Also, all of these deal with device to device communication.

This application provides a method and an apparatus for determining a data feedback resource, to resolve a problem of relatively poor data transmission reliability in an existing internet of vehicles technology.

According to a first aspect, a method for determining a data feedback resource is provided, including:.

A beneficial effect is as follows: After receiving the first data sent by the second terminal, the first terminal can send the feedback information of the first data to the second terminal on the feedback resource of the first data that is determined in the feedback resource pool. Therefore, the second terminal serving as a transmit end can determine, by detecting the feedback information, whether the sent first data is successfully received, thereby improving data transmission reliability.

With reference to the first aspect, in a possible design, the determining, by the first terminal, a feedback resource of the first data includes: determining, by the first terminal, time-frequency information and/or code domain information of the feedback resource of the first data, where the time-frequency information includes start location information of a frequency domain resource, a length of the frequency domain resource, and indication information of a time domain resource, and the code domain information includes a codeword used to send the feedback information.

With reference to the first aspect, in a possible design, the determining, by the first terminal, a feedback resource of the first data includes:.

In this design, it is simple for the first terminal to determine the feedback resource of the first data based on the configuration information of the feedback resource pool. The feedback resource of the first data is determined in advance, so that a feedback resource conflict can be prevented.

With reference to the first aspect, in a possible design, the obtaining, by the first terminal, configuration information of the feedback resource pool includes:.

In this design, the configuration information of the feedback resource pool may be obtained from the network side, or may be locally configured on the first terminal in advance, so that implementations are flexible and diverse.

With reference to the first aspect, in a possible design, the obtaining, by the first terminal, configuration information of the feedback resource pool includes:
obtaining, by the first terminal, at least one of start location information of a frequency domain resource, length information of the frequency domain resource, time-domain subframe offset information, and subframe bitmap information of the feedback resource pool.

With reference to the first aspect, in a possible design, including:
a quantity of frequency domain resources in the feedback resource pool is determined based on a quantity of sub-channels in a data resource pool in which the first data is located.

In this design, the time-frequency information of the feedback resource of the first data is associated with time-frequency information of the first data, so that the first terminal can rapidly determine the time-frequency information of the feedback resource of the first data based on the time-frequency information of the first data, thereby improving data transmission reliability.

With reference to the first aspect, in a possible design, the time-frequency resource information of the first data that is obtained by the first terminal includes:
information about a time-frequency resource carrying SCI of the first data and/or information about a time-frequency resource carrying service data of the first data.

With reference to the first aspect, in a possible design, the determining, by the first terminal, a feedback resource of the first data includes: determining, by the first terminal, the code domain information of the feedback resource of the first data, including:
obtaining, by the first terminal, at least one of time-frequency resource information of the first data, ID information of the first terminal, and ID information of the second terminal; and determining, by the first terminal, the code domain information of the feedback resource of the first data based on the at least one obtained information.

In this design, when the feedback resource determined by the first terminal conflicts with a feedback resource of another terminal, a same feedback channel may be multiplexed in a code division manner, to resolve the resource conflict.

With reference to the first aspect, in a possible design, the sending, by the first terminal, feedback information of the first data to the second terminal on the feedback resource includes:.

In this design, when the time domain information of the feedback resource used by the first terminal to send the feedback information of the first data is the same as the time domain information used by the third terminal to send the second data, a feedback resource conflict can be prevented in the foregoing manner, thereby improving data feedback efficiency and improving data transmission reliability.

According to a second aspect, a method for determining a data feedback resource is provided, including:.

A beneficial effect is as follows: After sending the first data to the first terminal, the second terminal can receive, on the feedback resource of the first data that is determined in the feedback resource pool, the feedback information that is of the first data and that is sent by the first terminal. Therefore, the second terminal serving as a transmit end can determine, by detecting the feedback information, whether the sent first data is successfully received, thereby improving data transmission reliability.

With reference to the second aspect, in a possible design, the determining, by the first terminal, a feedback resource of the first data includes: determining, by the first terminal, time-frequency information and/or code domain information of the feedback resource of the first data, where the time-frequency information includes start location information of a frequency domain resource, a length of the frequency domain resource, and indication information of a time domain resource, and the code domain information includes a codeword used to send the feedback information.

With reference to the second aspect, in a possible design, the determining, by the second terminal, a feedback resource of the first data includes:.

With reference to the second aspect, in a possible design, the obtaining, by the second terminal, configuration information of the feedback resource pool includes:.

In this design, the configuration information of the feedback resource pool may be obtained from the network side, or may be locally configured on the second terminal in advance, so that implementations are flexible and diverse.

With reference to the second aspect, in a possible design, the obtaining, by the second terminal, configuration information of the feedback resource pool includes:
obtaining, by the second terminal, at least one of start location information of a frequency domain resource, length information of the frequency domain resource, time-domain subframe offset information, and subframe bitmap information of the feedback resource pool.

With reference to the second aspect, in a possible design, including:
a quantity of frequency domain resources in the feedback resource pool is determined based on a quantity of sub-channels in a data resource pool in which the first data is located.

In this design, the time-frequency information of the feedback resource of the first data is associated with time-frequency information of the first data, so that the second terminal can rapidly determine the time-frequency information of the feedback resource of the first data based on the time-frequency information of the first data, thereby improving data transmission reliability.

With reference to the second aspect, in a possible design, the time-frequency resource information that is of the first data and that is obtained by the second terminal includes:
information about a time-frequency resource carrying SCI of the first data and/or information about a time-frequency resource carrying service data of the first data.

With reference to the second aspect, in a possible design, the determining, by the second terminal, a feedback resource of the first data includes: determining, by the second terminal, the code domain information of the feedback resource of the first data, including:
obtaining, by the second terminal, at least one of time-frequency resource information of the first data, ID information of the first terminal, and ID information of the second terminal; and determining, by the second terminal, the code domain information of the feedback resource of the first data based on the at least one obtained information.

In this design, when the feedback resource determined by the second terminal conflicts with a feedback resource of another terminal, a same feedback channel may be multiplexed in a code division manner, to resolve the resource conflict.

With reference to the second aspect, in a possible design, the receiving, by the second terminal on the feedback resource, feedback information that is of the first data and that is sent by the first terminal includes:.

In this design, when the time domain information of the feedback resource used by the second terminal to receive the first data is the same as the time domain information used by the third terminal to send the second data, a feedback resource conflict can be prevented in the foregoing manner, thereby improving data feedback efficiency and improving data transmission reliability.

According to a third aspect, a device for determining a data feedback resource is provided, including:.

With reference to the third aspect, in a possible design, the processing unit is specifically configured to:
determine, by the first terminal, time-frequency information and/or code domain information of the feedback resource of the first data, where the time-frequency information includes start location information of a frequency domain resource, a length of the frequency domain resource, and indication information of a time domain resource, and the code domain information includes a codeword used to send the feedback information.

With reference to the third aspect, in a possible design, when determining the feedback resource of the first data, the processing unit is specifically configured to:.

With reference to the third aspect, in a possible design, when obtaining the configuration information of the feedback resource pool, the processing unit is specifically configured to:.

With reference to the third aspect, in a possible design, when obtaining the configuration information of the feedback resource pool, the processing unit is specifically configured to:
obtain at least one of start location information of a frequency domain resource, length information of the frequency domain resource, time-domain subframe offset information, and subframe bitmap information of the feedback resource pool.

With reference to the third aspect, in a possible design, a quantity of frequency domain resources in the feedback resource pool is determined based on a quantity of sub-channels in a data resource pool in which the first data is located.

With reference to the third aspect, in a possible design, the time-frequency resource information that is of the first data and that is obtained by the processing unit includes:
information about a time-frequency resource carrying SCI of the first data and/or information about a time-frequency resource carrying service data of the first data.

With reference to the third aspect, in a possible design, when determining the feedback resource of the first data, the processing unit is specifically configured to determine the code domain information of the feedback resource of the first data, including:
obtaining at least one of time-frequency resource information of the first data, ID information of the device, and ID information of the peer device; and determining the code domain information of the feedback resource of the first data based on the at least one obtained information.

With reference to the third aspect, in a possible design, when sending the feedback information of the first data to the peer device on the feedback resource, the sending unit is specifically configured to:.

According to a fourth aspect, a device for determining a data feedback resource is provided, including:.

With reference to the fourth aspect, in a possible design, the processing unit is specifically configured to:
determine time-frequency information and/or code domain information of the feedback resource of the first data, where the time-frequency information includes start location information of a frequency domain resource, a length of the frequency domain resource, and indication information of a time domain resource, and the code domain information includes a codeword used to send the feedback information.

With reference to the fourth aspect, in a possible design, when determining the feedback resource of the first data, the processing unit is specifically configured to:.

With reference to the fourth aspect, in a possible design, when obtaining the configuration information of the feedback resource pool, the processing unit is specifically configured to:.

With reference to the fourth aspect, in a possible design, when obtaining the configuration information of the feedback resource pool, the processing unit is specifically configured to:
obtain at least one of start location information of a frequency domain resource, length information of the frequency domain resource, time-domain subframe offset information, and subframe bitmap information of the feedback resource pool.

With reference to the fourth aspect, in a possible design, a quantity of frequency domain resources in the feedback resource pool is determined based on a quantity of sub-channels in a data resource pool in which the first data is located.

With reference to the fourth aspect, in a possible design, the time-frequency resource information that is of the first data and that is obtained by the processing unit includes:
information about a time-frequency resource carrying SCI of the first data and/or information about a time-frequency resource carrying service data of the first data.

With reference to the fourth aspect, in a possible design, when determining the feedback resource of the first data, the processing unit is specifically configured to determine the code domain information of the feedback resource of the first data, including:
obtaining at least one of time-frequency resource information of the first data, ID information of the peer device, and ID information of the device; and determining the code domain information of the feedback resource of the first data based on the at least one obtained information.

With reference to the fourth aspect, in a possible design, when receiving, on the feedback resource, the feedback information that is of the first data and that is sent by the peer device, the receiving unit is specifically configured to:.

According to a fifth aspect, a terminal device is provided. A structure of the terminal device includes a transceiver, a memory, and a processor. The memory is configured to store a group of programs, and the processor is configured to invoke the programs stored in the memory, to perform the method performed by the first terminal in any one of the foregoing aspects.

According to a sixth aspect, a terminal device is provided. A structure of the terminal device includes a transceiver, a memory, and a processor. The memory is configured to store a group of programs, and the processor is configured to invoke the programs stored in the memory, to perform the method performed by the second terminal in any one of the foregoing aspects.

According to a seventh aspect, this application further provides a computer readable storage medium, configured to store a computer software instruction used for performing functions of the first aspect or any design of the first aspect, where the computer software instruction includes a program designed for performing the method in the first aspect or any design of the first aspect.

According to an eighth aspect, this application further provides a computer readable storage medium, configured to store a computer software instruction used for performing functions of the second aspect or any design of the second aspect, where the computer software instruction includes a program designed for performing the method in the second aspect or any design of the second aspect.

The embodiments of this application may be applied to device to device (D2D) communication and V2X communication, which does not constitute a limitation. A terminal in the embodiments of this application may also be referred to as user equipment (UE), a mobile station (MS), a mobile terminal , or the like. Optionally, the terminal may be a vehicle, a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sale (POS), an in-vehicle computer, a set top box, or the like.

In the embodiments of this application, the V2X communication may include but is not limited to vehicle to vehicle (V2V) communication, vehicle to infrastructure (V2I) communication, vehicle-to-pedestrian (V2P) communication, and vehicle-to-network (V2N) communication. The V2I communication may include but is not limited to communication between a vehicle and a base station, communication between a vehicle and a roadside unit, and communication between a vehicle and a communications module on a traffic light.

In a V2X system, a vehicle usually communicates with another node in two manners. In a first manner, as shown in <FIG>, a vehicle sends state information of the vehicle to another nearby vehicle in a broadcast manner, and in this case, a base station does not need to forward data. This communication manner is similar to that in a D2D system. In a second manner, as shown in <FIG>, data of a vehicle is forwarded by using a base station, and in this case, the vehicle first sends the data to the base station, and then the base station sends the received data to another vehicle or node in a unicast or broadcast manner.

In <FIG>, a terminal sends data in a D2D broadcast manner, and may specifically send data in a mode <NUM> or a mode <NUM>. In the mode <NUM>, a base station allocates a determined transmission resource to the terminal. In the mode <NUM>, the terminal voluntarily selects a resource from a resource pool configured by the base station or a preconfigured resource pool, to perform data transmission.

The D2D communication is direct data communication between two terminals and is implemented by using a mechanism of a scheduling assignment (SA) part plus a data (Data) part. The SA is usually referred to as sidelink control information (SCI), and is used to indicate control information of data sent from a transmit end, for example, time-frequency resource information of the data, modulation and coding scheme (MCS) information, a frequency hopping indication, timing advance information, receiving group ID information, data priority information, resource reservation information, and retransmission indication information. The data is service data that is sent by the transmit end at a time-frequency resource location indicated by the SA and in a format indicated by the SA, so that a receive end can receive the data according to the indication of the SA.

In the embodiments of this application, after receiving first data sent by a second terminal, a first terminal can send feedback information of the first data to the second terminal on a determined feedback resource of the first data. Therefore, the second terminal serving as a transmit end can determine, by detecting the feedback information, whether the sent first data is successfully received, thereby improving data transmission reliability.

With reference to the accompanying drawings, the following describes in detail a solution for determining a data feedback resource provided in this application.

As shown in <FIG>, a method for determining a data feedback resource according to an embodiment of this application includes the following specific procedure.

Step <NUM>: A first terminal receives first data sent by a second terminal.

Step <NUM>: The first terminal determines a feedback resource of the first data.

The feedback resource of the first data is a feedback resource in a feedback resource pool. The feedback resource pool is a set of time-frequency resources, the feedback resource pool includes at least one resource used to transmit feedback information, and a quantity of frequency domain resources in the feedback resource pool is determined based on a quantity of sub-channels in a data resource pool in which the first data is located.

That the first terminal determines a feedback resource of the first data includes: determining, by the first terminal, time-frequency information and/or code domain information of the feedback resource of the first data, where the time-frequency information includes start location information of a frequency domain resource, a length of the frequency domain resource, and indication information of a time domain resource, and the code domain information includes a codeword used to send the feedback information.

Specifically, the first terminal may determine the feedback resource of the first data in a manner that is not limited to the following two implementations. Further, the first terminal may determine the feedback resource of the first data by combining the following two implementations.

In a first implementation, the first terminal obtains configuration information of the feedback resource pool; and determines the feedback resource of the first data based on the configuration information of the feedback resource pool.

It should be noted that the first terminal may obtain the configuration information of the feedback resource pool in the following two cases.

In a first case, the first terminal obtains the configuration information of the feedback resource pool from a network side. For example, the first terminal may obtain the configuration information of the feedback resource pool from a network side device such as a base station or a central controller on the network side.

In a second case, the first terminal obtains the configuration information of the feedback resource pool by using preconfigured information. In this case, the terminal obtains the configuration information of the feedback resource pool from preconfigured information of the terminal.

That the first terminal obtains configuration information of the feedback resource pool specifically includes: obtaining, by the first terminal, at least one of start location information of a frequency domain resource, length information of the frequency domain resource, time-domain subframe offset information, and subframe bitmap information of the feedback resource pool.

In a second implementation, the first terminal obtains time-frequency resource information of the first data; and determines the time-frequency information of the feedback resource of the first data based on the time-frequency resource information of the first data.

In the second implementation, a time-frequency location of the feedback resource is determined based on a corresponding time-frequency location of the received first data. Specifically, the received first data includes two parts: SA and service data. The time-frequency location of the feedback resource is determined based on a corresponding time-frequency resource carrying SCI of the first data, or based on a corresponding time-frequency resource carrying the service data of the received first data. Specifically, <FIG> and <FIG> are schematic diagrams of a correspondence between a feedback resource and a time-frequency resource of first data.

It should be noted that the time-frequency resource information of the first data that is obtained by the first terminal includes information about the time-frequency resource carrying the SCI of the first data and/or information about the time-frequency resource carrying the service data of the first data.

In this implementation, there is a correspondence between a feedback resource and a time-frequency resource of first data corresponding to the feedback resource. In other words, the time-frequency location of the feedback resource may be determined based on the time-frequency location of the first data. An example of a possible implementation is as follows:.

It is assumed that an index of a sub-channel in one subframe is m (m = <NUM>, <NUM>, <NUM>,. , or M-<NUM>), M is a total quantity of sub-channels in the subframe, an index of a feedback resource is n (n = <NUM>, <NUM>, <NUM>,. , or N-<NUM>), and N is a total quantity of feedback resources in the subframe.

Specifically, in a process of determining a frequency domain resource,.

By analogy, if M = k × N, where k indicates an integer greater than or equal to <NUM>, every k sub-channels correspond to one feedback resource, that is, n = [m/k].

Specifically, in a process of determining a time domain resource,
if a user receives the first data in a subframe t, the user sends the feedback information in a subframe (t+a), where a is a preset integer greater than <NUM>, and optionally, a ≥ <NUM>.

It is worthwhile to note that, in this application, a plurality of feedback channels may be multiplexed on one feedback resource in a code division manner. Therefore, when determining the feedback resource of the first data, the first terminal further needs to determine the code domain information of the feedback resource of the first data, and a specific process is as follows:.

The first terminal obtains at least one of time-frequency resource information of the first data, ID information of the first terminal, and ID information of the second terminal; and determines the code domain information of the feedback resource of the first data based on the at least one obtained information.

When a plurality of feedback channels may be multiplexed on one feedback resource in a code division manner, an example of a possible implementation is as follows:.

Assuming that a total quantity of code division resources on one feedback resource is P, and P is a positive integer greater than <NUM>, a feedback resource p (p = <NUM>, <NUM>,. , or P-<NUM>) of a specific user may be determined by using the following expression: <MAT> where p = f(x, y, z) indicates that p is a function of input variables x, y, and z, Resdata indicates a time-frequency location of a data resource, UE IDtx indicates an ID of a data transmit end, and UE IDrx indicates an ID of a data receive end.

Further, the feedback resource p may be alternatively determined by using the following expression: <MAT> where mod() indicates a modulo operation.

Alternatively, the feedback resource p may be determined by using the following expression: <MAT>.

Alternatively, the feedback resource p may be determined by using the following expression: <MAT> where m (m = <NUM>, <NUM>, <NUM>,. , or M-<NUM>) indicates an index of a lowest frequency-domain sub-channel occupied by the received first data.

Step <NUM>: The first terminal sends feedback information of the first data to the second terminal on the feedback resource, where the feedback information is used to indicate a receiving status of the first data.

Specifically, if the first terminal successfully receives the first data, the first terminal sends an acknowledgement (ACK) message to the second terminal, or if the first terminal receives no data, the first terminal does not send the feedback information to the second terminal.

Alternatively, the first terminal sends the feedback information of the first data to the second terminal on the feedback resource, where the feedback information is used to describe channel quality of a transmission channel of the first data.

Further, when sending the feedback information of the first data to the second terminal on the feedback resource, the first terminal obtains time domain information used by a third terminal to send second data; and if the first terminal determines that time domain information of the feedback resource of the first data is the same as the time domain information used by the third terminal to send the second data, the first terminal sends the feedback information of the first data after a delay of k subframes, where k is an integer greater than <NUM>.

Specifically, the second data sent by the third terminal may be service data or may be feedback information.

For example, when a terminal A sends feedback information to a terminal B, the terminal A obtains time domain information used by a terminal C to send data, where the terminal C is, for example, a first vehicle in a vehicle queue. If a subframe in which the terminal A sends a feedback resource is the same as a subframe in which the terminal C sends the data, the terminal A sends the feedback information after a delay of k subframes (k is an integer greater than <NUM>).

According to the method for determining a data feedback resource in an internet of vehicles, after receiving the first data, the first terminal serving as a receive end determines the feedback resource of the first data, and sends, on the determined feedback resource, the feedback information of the first data to the second terminal serving as a transmit end. Therefore, the second terminal serving as the transmit end can determine whether the sent first data is successfully received, thereby improving data transmission reliability.

The method for determining a data feedback resource in an internet of vehicles may be applied to a process of selecting a resource for the first vehicle in a vehicle queue driving scenario in <FIG>.

In the vehicle queue driving scenario, the first vehicle periodically broadcasts information about the first vehicle, such as a location, a direction, and a speed, and a receive end does not need to send a feedback for the information. In addition, the first vehicle is responsible for managing an entire vehicle queue, for example, controlling a speed of a vehicle queue, a vehicle distance, joining of another vehicle in the vehicle queue, and leaving of a vehicle from the vehicle queue. Therefore, the first vehicle needs to communicate with other members in the vehicle queue in a unicast or broadcast manner, and requires feedbacks of the members in the vehicle queue.

The first vehicle sends, in two manners, information that needs to be fed back.

A first manner is periodic sending. For example, the first vehicle periodically sends vehicle distance information, vehicle speed information, and acceleration and deceleration information. For the periodically sent information, a monitoring process, a selection process, and the like in the existing V2X may be used, and details are not described herein.

A second manner is event-triggered sending. For example, when the first vehicle receives a joining request of another vehicle that is not in the vehicle queue, the first vehicle needs to respond to the request. Alternatively, when the first vehicle receives a leaving request of a vehicle in the vehicle queue, the first vehicle needs to respond to the request.

There may be the following manners for an event-triggered sent message:.

In a possible implementation, when a terminal sends data information that needs to be fed back, resource reselection is triggered, and the terminal selects an available resource for data sending.

In another possible implementation, a resource is reserved for transmitting data information that needs to be fed back. Specifically, the network side preconfigures resources for transmitting data information that needs to be fed back, and sends configuration information of the preconfigured resources to the terminal. The terminal receives the configuration information, obtains the preconfigured resources based on the configuration information, and selects a resource from the preconfigured resources to transmit the data information.

The method for determining a data feedback resource in an internet of vehicles may be further applied to a process of selecting a resource for another vehicle other than the first vehicle in a vehicle queue driving scenario.

In the vehicle queue driving scenario, when another vehicle other than the first vehicle in a vehicle queue reselects a resource, a resource used by the first vehicle needs to be considered, and a subframe used by the first vehicle needs to be avoided for selection of a resource by the another vehicle, thereby avoiding a problem that information about the first vehicle cannot be received due to a half-duplex problem.

When the terminal selects a resource, resources that need to be excluded in a resource selection window include:.

In a process in which the terminal selects a resource, a subframe that may be used by the first vehicle is excluded, thereby avoiding a case in which the terminal cannot receive data of the first vehicle because the terminal and the first vehicle transmit data in a same subframe.

In the embodiments of this application, functional units of the terminal may be divided based on the foregoing method example. For example, the terminal may be divided into functional units based on corresponding functions, or two or more functions may be integrated into one processing unit. It should be noted that, in the embodiments of this application, the unit division is an example, and is merely logical function division. During actual implementation, there may be another division manner.

When an integrated unit is used, <FIG> is a schematic structural diagram of an apparatus for determining a data feedback resource according to an embodiment of this application. Referring to <FIG>, the apparatus <NUM> includes a receiving unit <NUM>, a processing unit <NUM>, and a sending unit <NUM>.

The receiving unit <NUM> is configured to receive first data sent by a peer device.

The processing unit <NUM> is configured to determine a feedback resource of the first data, where the feedback resource of the first data is a feedback resource in a feedback resource pool.

The sending unit <NUM> is configured to send feedback information of the first data to the peer device on the feedback resource, where the feedback information is used to indicate a receiving status of the first data.

Optionally, the processing unit <NUM> is specifically configured to:
determine, by the first terminal, time-frequency information and/or code domain information of the feedback resource of the first data, where the time-frequency information includes start location information of a frequency domain resource, a length of the frequency domain resource, and indication information of a time domain resource, and the code domain information includes a codeword used to send the feedback information.

Optionally, when determining the feedback resource of the first data, the processing unit <NUM> is specifically configured to:.

Optionally, when obtaining the configuration information of the feedback resource pool, the processing unit <NUM> is specifically configured to:.

Optionally, when obtaining the configuration information of the feedback resource pool, the processing unit <NUM> is specifically configured to:
obtain at least one of start location information of a frequency domain resource, length information of the frequency domain resource, time-domain subframe offset information, and subframe bitmap information of the feedback resource pool.

Optionally, a quantity of frequency domain resources in the feedback resource pool is determined based on a quantity of sub-channels in a data resource pool in which the first data is located.

Optionally, the time-frequency resource information that is of the first data and that is obtained by the processing unit <NUM> includes:
information about a time-frequency resource carrying SCI of the first data and/or information about a time-frequency resource carrying service data of the first data.

Optionally, when determining the feedback resource of the first data, the processing unit <NUM> is specifically configured to determine the code domain information of the feedback resource of the first data, including:
obtaining at least one of time-frequency resource information of the first data, ID information of the apparatus <NUM>, and ID information of the peer device; and determining the code domain information of the feedback resource of the first data based on the at least one obtained information.

Optionally, when sending the feedback information of the first data to the peer device on the feedback resource, the sending unit <NUM> is specifically configured to:.

It should be noted that, in this embodiment of this application, the processing unit <NUM> may be implemented as a processor, the receiving unit <NUM> may be implemented as a receiver, the sending unit <NUM> may be implemented as a transmitter, and the receiver and the transmitter may be combined into a transceiver for implementation. As shown in <FIG>, a device <NUM> for determining a data feedback resource may include a processor <NUM>, a transceiver <NUM>, and a memory <NUM>. The memory <NUM> may be configured to store a program/code preinstalled when the device <NUM> is delivered from a factory, and may further store code and the like used for execution of the processor <NUM>.

The processor <NUM> may be configured to perform a related operation by using a general-purpose CPU, a microprocessor, an ASIC, or one or more integrated circuits, to implement the technical solutions provided in the embodiments of the present invention.

It should be noted that, although the device <NUM> shown in <FIG> merely shows the processor <NUM>, the transceiver <NUM>, and the memory <NUM>, in a specific implementation process, a person skilled in the art should understand that the device <NUM> further includes another component needed for implementing normal running. In addition, a person skilled in the art should understand that, according to specific requirements, the device <NUM> may further include a hardware component for implementing another additional function. In addition, a person skilled in the art should understand that the device may include only components or modules that are necessary for implementing the embodiments of the present invention, and does not need to include all components shown in <FIG>.

<FIG> is a schematic structural diagram of an apparatus for determining a data feedback resource according to an embodiment of this application. Referring to <FIG>, the apparatus <NUM> includes a sending unit <NUM>, a processing unit <NUM>, and a receiving unit <NUM>.

The sending unit <NUM> is configured to send first data to a peer device.

The receiving unit <NUM> is configured to receive, on the feedback resource, feedback information that is of the first data and that is sent by the peer device, where the feedback information is used to indicate a receiving status of the first data.

Optionally, the processing unit <NUM> is specifically configured to:
determine time-frequency information and/or code domain information of the feedback resource of the first data, where the time-frequency information includes start location information of a frequency domain resource, a length of the frequency domain resource, and indication information of a time domain resource, and the code domain information includes a codeword used to send the feedback information.

Optionally, when determining the feedback resource of the first data, the processing unit <NUM> is specifically configured to determine the code domain information of the feedback resource of the first data, including:
obtaining at least one of time-frequency resource information of the first data, ID information of the peer device, and ID information of the device; and determining the code domain information of the feedback resource of the first data based on the at least one obtained information.

Optionally, when receiving, on the feedback resource, the feedback information that is of the first data and that is sent by the peer device, the receiving unit <NUM> is specifically configured to:.

An embodiment of this application further provides a computer readable storage medium, configured to store a computer software instruction used to perform operations that need to be performed by the processor. The computer software instruction includes a program used to perform the operations that need to be performed by the processor.

In addition, this application may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a magnetic disk storage, a CD-ROM, and an optical memory) that include computer-usable program code.

This application is described with reference to the flowcharts and/or block diagrams of the method, the device (system), and the computer program product according to this application. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. These computer program instructions may be provided for a general-purpose computer, a special-purpose computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

The instruction apparatus implements a specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

Claim 1:
A method for determining a data feedback resource in device-to-device, D2D, or vehicle-to-another-device, V2X, communication, comprising:
receiving (<NUM>), by a first communication apparatus, first data from a second communication apparatus;
determining (<NUM>), by the first communication apparatus, based on a time-frequency location of the received first data, start location information of a frequency domain resource of a feedback resource of the first data, a length of the frequency domain resource, indication information of a time domain resource of the feedback resource of the first data, and code domain information of the feedback resource of the first data, the code domain information comprises a codeword for sending feedback information of the first data;
and
sending (<NUM>), by the first communication apparatus, the feedback information of the first data to the second communication apparatus on the feedback resource, wherein the feedback information is used to indicate a receiving status of the first data.