Patent Description:
In a communication system, data is organized as transport blocks (transport blocks, TBs) for transmission. Before the TB is transmitted, a transport block size (transport block size, TBS) needs to be first determined based on a quantity of resource elements (resource elements, REs) used to transmit data.

A current standard defines how to determine the quantity of REs used to transmit data over an air interface. However, in a vehicle to everything (vehicle to everything, V2X) scenario, because a frame structure is different from an air interface frame structure, methods defined in the standard is no longer applicable. Therefore, for the V2X scenario, a method for determining a quantity of REs used to transmit data needs to be provided.

This application provides a communication method and a communication apparatus, to determine a quantity of REs used to transmit data in a V2X scenario. The invention is defined in the attached set of claims. Further aspects and embodiment of the disclosure, which are helpful for understanding the invention, are presented below.

The following describes technical solutions in this application with reference to accompanying drawings.

The technical solutions provided in this application may be applied to a device to device (device to device, D2D) scenario, and optionally, may be applied to a vehicle to everything (vehicle to everything, V2X) scenario. For example, the V2X scenario may be specifically any one of the following systems: vehicle to vehicle (vehicle to vehicle, V2V) communication, vehicle to pedestrian (vehicle to pedestrian, V2P) communication, a vehicle to network (vehicle to network, V2N) service, and vehicle to infrastructure (vehicle to infrastructure, V2I) communication.

For example, D2D may be long term evolution (long term evolution, LTE) D2D or new radio (new radio, NR) D2D, or may be D2D in another communication system that may appear as technologies develop. Similarly, V2X may be LTE V2X or NR V2X, or may be V2X in another communication system that may appear as technologies develop.

A terminal device in embodiments of this application may be user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user apparatus. The terminal device may alternatively be a cellular phone, a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device having a wireless communication function, a computing device, another processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future <NUM> network, a terminal device in a future evolved public land mobile network (public land mobile network, PLMN), or the like. This is not limited in embodiments of this application.

The network device in embodiments of this application may be a base station (base station), an evolved NodeB (evolved NodeB, eNodeB), a transmission reception point (transmission reception point, TRP), a next generation NodeB (next generation NodeB, gNB) in a <NUM> mobile communication system, a base station in a future mobile communication system, an access node in a Wi-Fi system, or the like; or the network device may be a module or a unit that implements a part of functions of a base station, for example, may be a central unit (central unit, CU), or a distributed unit (distributed unit, DU). A specific technology and a specific device form that are used by the network device are not limited in embodiments of this application.

In embodiments of this application, the terminal device or the network device includes a hardware layer, an operating system layer running above the hardware layer, and an application layer running above the operating system layer. The hardware layer includes hardware such as a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and a memory (also referred to as a main memory). The operating system may be any one or more computer operating systems that implement service processing through a process (process), for example, a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as a browser, a contact list, word processing software, and instant messaging software. In addition, a specific structure of an execution body of a method provided in embodiments of this application is not specifically limited in embodiments of this application provided that a program that records code for the method provided in embodiments of this application can be run to perform communication according to the method provided in embodiments of this application. For example, the method provided in embodiments of this application may be performed by the terminal device or the network device, or may be performed by a functional module that is in the terminal device or the network device and that can invoke and execute a program.

In addition, aspects or features of this application may be implemented as a method, an apparatus, or a product that uses standard programming and/or engineering technologies. The term "product" used in this application covers a computer program that can be accessed from any computer-readable component, carrier, or medium. For example, a computer-readable medium may include but is not limited to: a magnetic storage component (for example, a hard disk, a floppy disk, or a magnetic tape), an optical disc (for example, a compact disc (compact disc, CD) or a digital versatile disc (digital versatile disc, DVD)), a smart card and a flash memory component (for example, an erasable programmable read-only memory (erasable programmable read-only memory, EPROM), a card, a stick, or a key drive). In addition, various storage media described in this specification may indicate one or more devices and/or other machine-readable media that are configured to store information. The term "machine-readable media" may include but is not limited to a wireless channel, and various other media that can store, include, and/or carry instructions and/or data.

<FIG> is a schematic diagram of a V2X communication architecture. As shown in <FIG>, the architecture includes two types of communication interfaces: a PC5 interface and a Uu interface. The PC5 interface is a direct communication interface between V2X UEs (for example, V2X UE <NUM> and V2X UE <NUM> shown in the figure). A direct communication link between V2X UEs is also defined as a sidelink or a sidelink (sidelink, SL). Uu interface communication is a communication mode in which a transmitter V2X UE (for example, V2X UE <NUM>) sends V2X data to a base station through the Uu interface, the base station sends the data to a V2X application server for processing, the V2X application server delivers processed data to a base station, and then the base station sends the data to a receiver V2X UE (for example, V2X UE <NUM>). In the Uu interface communication mode, a base station that forwards uplink data of the transmitter V2X UE to the application server and a base station that forwards downlink data delivered by the application server to the receiver V2X UE may be a same base station, or may be different base stations. This may be specifically determined by the application server. It should be understood that sending performed by the transmitter V2X UE to the base station is referred to as uplink (uplink, UL) transmission, and sending performed by the base station to the receiver V2X UE is referred to as downlink (downlink, DL) transmission.

The following describes a communication method provided in this application with reference to <FIG>. The following describes steps in the method <NUM>.

Determine, based on a quantity of REs that are in a first time-frequency resource and that are used to transmit first information, a quantity of REs that are in the first time-frequency resource and that are used to transmit data.

The first time-frequency resource includes a first time unit in time domain and includes a data channel resource in frequency domain. Alternatively, the first time-frequency resource is formed by a first time unit and a data channel resource. It should be understood that the first time unit is a time domain resource, and the data channel resource is a frequency domain resource.

In a possible example, the data channel resource is a bandwidth occupied by a data channel, and the bandwidth may be indicated on a control channel.

The first time unit may include symbols other than the first symbol and the last symbol in a sidelink communication slot (for example, the sidelink communication slot may be referred to as a sidelink communication slot, or a sidelink slot). For example, if one sidelink communication slot includes <NUM> orthogonal frequency division multiplexing (orthogonal frequency division multiplexing) symbols, the first time unit includes <NUM> OFDM symbols. It should be understood that the first time unit is used for sidelink communication.

For example, the first symbol in the sidelink communication slot may be used for automatic gain control (automatic gain control, AGC), and the last symbol is a gap (GAP) symbol.

In V2X, to avoid impact on a decoding effect of the control channel, the first symbol needs to be set as an AGC symbol, and data mapped to the first symbol is copied from a symbol immediately adjacent to the AGC symbol, namely, the second valid symbol.

The data channel resource is used for sidelink communication. The data channel resource may include several sub-channels (sub-channels).

The data channel resource is a resource in a resource set. The resource set may also be referred to as a resource pool. The resource pool may be configured by a network device, or the resource pool may be preconfigured (that is, specified in a protocol). The resource pool may include a plurality of sub-channels, each sub-channel includes a plurality of consecutive PRBs, and the data channel resource may include one or more consecutive sub-channels.

It should be noted that a resource pool in the following is a resource pool corresponding to the data channel resource. However, this application is not limited thereto.

The first information includes one or more of the following: the control channel, a control channel demodulation pilot, a data channel demodulation pilot, second-stage control information, a phase tracking reference signal PTRS, and a channel state information reference signal CSI-RS.

For example, if the PTRS needs to be transmitted on the first time-frequency resource, the first information includes the PTRS; or if the PTRS does not need to be transmitted on the first time-frequency resource, the first information does not include the PTRS. Alternatively, if it is configured that the PTRS can be sent in a resource pool of a sidelink, the first information includes the PTRS. If no PTRS is configured in a resource pool of a sidelink, the first information does not include the PTRS. Similarly, if the CSI-RS needs to be transmitted on the first time-frequency resource, the first information includes the CSI-RS; or if the CSI-RS does not need to be transmitted on the first time-frequency resource, the first information does not include the CSI-RS. Alternatively, if it is configured that the CSI-RS can be sent in a resource pool of a sidelink, the first information includes the CSI-RS. If no CSI-RS is configured in a resource pool of a sidelink, the first information does not include the CSI-RS.

The control channel is a control channel used for sidelink communication. For example, the control channel may be a physical sidelink control channel (physical sidelink control channel, PSCCH).

The control channel demodulation pilot is a pilot used to demodulate the control channel, and may be, for example, a control channel demodulation reference signal (demodulation reference signal, DMRS).

The data channel demodulation pilot is a pilot used to demodulate the control channel, and may be, for example, a data channel DMRS. The data channel in this application is a data channel for sidelink communication, and may be, for example, a physical sidelink shared channel (physical sidelink shared channel, PSSCH).

The second-stage control information is control information transmitted through the data channel, and may be, for example, sidelink control information (sidelink control information) SCI2, or SCI0 to SCI2 in an NR-V2X system.

In this application, the data is data transmitted on the sidelink.

For example, <FIG> is a schematic diagram of relative positions of the first time-frequency resource, a time-frequency resource used to transmit the first information, and a time-frequency resource used to transmit the data.

As shown in <FIG>, the first time-frequency resource is formed by <NUM> symbols and <NUM> PRBs. In other words, the first time-frequency resource is formed by <NUM> symbols and two sub-channels (sub-channels <NUM> and <NUM>), and one sub-channel includes <NUM> PRBs. One sidelink communication slot includes <NUM> symbols, namely, symbol <NUM> to symbol <NUM>. The first time unit includes symbol <NUM> to symbol <NUM>. Symbol <NUM> is used for AGC, and symbol <NUM> is used as a GAP. The data channel resource includes <NUM> PRBs, namely, PRB <NUM> to PRB <NUM>. A time-frequency resource formed by symbols <NUM> and <NUM> and PRBs <NUM> to <NUM> is used to transmit the control channel and the control channel demodulation pilot in the first information. A time-frequency resource formed by symbols <NUM> and <NUM> and PRBs <NUM> to <NUM> is used to transmit the second-stage control information. A time-frequency resource formed by symbol <NUM> and PRBs <NUM> to <NUM> is used to transmit the data channel demodulation pilot. If the resource shown in <FIG> is not used to transmit the PTRS and the CSI-RS, a resource that is not padded with a pattern in the figure may be used to transmit the data. It should be understood that the resource shown in <FIG> may also be used to transmit the PTRS and/or the CSI-RS.

It should be understood that <FIG> is merely an example, and a position of each piece of information shown in the figure and a size of an occupied resource should not constitute any limitation on this application.

It should be noted that step S210 is applicable to both a transmit-side terminal device and a receive-side terminal device. The transmit-side terminal device and the receive-side terminal device are two ends that communicate with each other through a sidelink. For example, when the method <NUM> is applied to the system shown in <FIG>, the transmit-side terminal device may be V2X UE <NUM>, and the receive-side terminal device may be V2X UE <NUM>.

Optionally, the method may further include the following step.

Determine a transport block size based on the determined quantity of REs used to transmit the data.

Step S220 is applicable to both the transmit-side terminal device and the receive-side terminal device.

It should be understood that, in this application, whether the receive-side terminal device first performs S210 and S220 or the transmit-side terminal device first performs S210 and S220 is not limited, provided that the transmit-side terminal device can determine the transport block size before sending a transport block, and the receive-side terminal device can determine the transport block size before performing channel decoding on the transport block.

The transmit-side sends the transport block based on the transport block size. Correspondingly, the receive-side receives the transport block based on the transport block size. That is, the receive-side terminal device performs channel decoding on the transport block.

According to the method provided in this application, a quantity of REs used to transmit sidelink data may be determined based on quantities of REs used to transmit the control channel, the control channel demodulation pilot, the data channel demodulation pilot, the second-stage control information, the CSI-RS, and/or the PTRS. Further, a TBS of the sidelink may be determined based on the quantity of REs used to transmit the sidelink data.

The following describes a specific implementation of S210.

First, for ease of understanding and brief description, the following definitions are provided in this application:.

For example, in <FIG>, <MAT>. <MAT> may be configured by the network device or determined by the transmit-side terminal device.

In this application, <MAT> is configured by the network device (for example, the base station shown in <FIG>), and may be delivered by the network device to the transmit-side terminal device through a downlink control channel; or may be configured by the network device and delivered to the transmit-side terminal device by using higher layer signaling. The higher layer signaling may be RRC signaling. This is not limited in this application. For example, the higher layer signaling may alternatively be a MAC CE. <MAT> is configured by the transmit-side terminal device, or may be configured by the transmit-side terminal device based on a resource selection result and sent to a physical layer by using an inter-layer primitive, to perform a corresponding encoding operation.

(<NUM>) A quantity of PRBs included in the data channel resource is <MAT>.

(<NUM>) A quantity of symbols in the first time unit that are available for encoding is <MAT>. <MAT><MAT> represents the quantity of symbols in the first time unit. For example, in <FIG>, <MAT>.

lα represents a transport block adjustment factor. For example, lα specifically represents a quantity of symbols in the first time unit that are adjusted for calculating a transport block size of the data channel.

For example, if no PSFCH transmission resource is configured in the resource pool, in other words, if no sidelink transmission slot has a symbol used to transmit a PSFCH, lα = <NUM>. Therefore, <MAT>.

For example, if a PSFCH transmission resource is configured in the resource pool, to be specific, some sidelink transmission slots have symbols used to transmit the PSFCH, some sidelink transmission slots do not have a symbol used to transmit the PSFCH, and for example, a sidelink transmission slot is that shown in <FIG>, lα may not be <NUM>. A specific value of lα may be configured by a system, or may be indicated by the transmit-side terminal device to the receive-side terminal device.

For example, if lα = <NUM>, <MAT>. For example, in <FIG>, the symbols in the first time unit that are available for encoding are symbols <NUM> to <NUM>.

(<NUM>) A first sub-resource includes the first time unit in time domain and includes one sub-channel in the data channel resource in frequency domain.

In other words, one sub-resource is formed by the first time unit and one sub-channel in the data channel resource.

It may be understood that a quantity of first sub-resources included in the first time-frequency resource is <MAT>.

(<NUM>) A second sub-resource includes the first time unit in time domain and includes one PRB in the data channel resource in frequency domain.

It may be understood that a quantity of second sub-resources included in the first time-frequency resource is <MAT>.

(<NUM>) First sub-information includes the control channel, the control channel demodulation pilot, and the second-stage control information in the first information.

(<NUM>) Second sub-information includes at least one of the following: the data channel demodulation pilot, the PTRS, or the CSI-RS.

The first information includes the first sub-information and the second sub-information, and the second sub-information includes information other than the first sub-information in the first information.

The following specifically describes various manners of S210.

The manner includes: determining, based on a quantity of REs that are in each first sub-resource and that are used to transmit the second sub-information, a sum of quantities of REs that are in each first sub-resource and that are used to transmit the data and the first sub-information; and determining, based on the sum of the quantities of REs that are in each first sub-resource and that are used to transmit the data and the first sub-information, and a quantity of REs that are in the first time-frequency resource and that are used to transmit the first sub-information, the quantity of REs that are in the first time-frequency resource and that are used to transmit the data.

For example, a sum of quantities of REs that are in an ith first sub-resource and that are used to transmit the data and the first sub-information satisfies Formula (<NUM>): <MAT><MAT> represents the sum of the quantities of REs that are in the ith first sub-resource and that are used to transmit the data and the first sub-information, and <MAT>. <MAT> represents a quantity of subcarriers in a physical resource block PRB.

In this application, <MAT>. However, this is not limited in this application. <MAT> represents a quantity of PRBs in a sub-channel. For example, in <FIG>, <MAT>. <MAT> represents a quantity of REs that are in the ith first sub-resource and that are used to transmit the data channel demodulation pilot.

Noh includes a sum of quantities of REs that are in the ith first sub-resource and that are used to transmit the PTRS and/or the CSI-RS. In other words, Noh is a quantity of REs that are configured for each first sub-resource and that are used to transmit the PTRS and/or the CSI-RS.

It should be understood that, if the PTRS needs to be transmitted, Noh includes the quantity of REs used to transmit the PTRS; or if the PTRS does not need to be transmitted, Noh includes a quantity of REs not used to transmit the PTRS, or in other words, the quantity of REs used to transmit the PTRS is <NUM>. If the CSI-RS needs to be transmitted, Noh includes the quantity of REs used to transmit the CSI-RS; or if the CSI-RS does not need to be transmitted, Noh includes a quantity of REs not used to transmit the CSI-RS, or in other words, the quantity of REs used to transmit the CSI-RS is <NUM>.

In this application, Noh may be preconfigured in the resource pool, or may be configured by the network device in the resource pool. Noh in the following may also be configured in the two manners. Details are not described below.

For example, the quantity of REs that are in the first time-frequency resource and that are used to transmit the data satisfies Formula (<NUM>): <MAT>.

NRE represents the quantity of REs that are in the first time-frequency resource and that are used to transmit the data. <MAT> represents a sum of quantities of REs that are in the first time-frequency resource and that are used to transmit the control channel and the control channel demodulation pilot in the first sub-information. <MAT> represents a quantity of REs that are in the first time-frequency resource and that are used to transmit the second-stage control information in the first sub-information.

It should be understood that, if Formula (<NUM>) is substituted into Formula (<NUM>), Formula (<NUM>) is changed into Formula (2a) below: <MAT>.

Optionally, <MAT> satisfies Formula (<NUM>): <MAT><MAT> represents a quantity of symbols that are in the first time unit and that are used to transmit the control channel. <MAT> represents a quantity of PRBs that are in the data channel resource and that are used to transmit the control channel. <FIG> is used as an example. Assuming that the control channel demodulation pilot occupies only some REs in a time-frequency resource formed by symbol <NUM> and PRB <NUM>, <MAT> and <MAT> <NUM>.

The following describes possible calculation methods of <MAT>.

OSCI2 represents a valid payload size of the second-stage control information, LSCI2 represents a cyclic redundancy check CRC bit length of the second-stage control information, R represents a bit rate of a data channel, Qm represents a modulation order of the data channel, β represents an equivalent scale factor of a bit rate of the second-stage control information, <MAT> represents a quantity of REs that are in a time-frequency resource formed by symbol l in the first time unit and the data channel resource and that are used to transmit the second-stage control information, α represents a scale factor of a resource used to transmit the second-stage control information, and γ represents a quantity of REs that is defined to satisfy that the second-stage control information occupies an integer quantity of PRBs.

It should be understood that symbol l herein may be understood as an lth symbol in the first time unit. For example, when l=<NUM>, symbol l corresponds to symbol <NUM> in <FIG>, when l=<NUM>, symbol l corresponds to symbol <NUM> in <FIG>, and so on.

For example, α may be preconfigured in the resource pool, or may be configured by the network device in the resource pool.

In a possible example, β satisfies Formula (4a) or (4b): <MAT> <MAT><MAT> represents a scale factor of a bit rate of the second-stage control information, <MAT> represents a qth scale factor in M scale factors configured in a resource pool to which the data channel resource belongs, and the scale factor is the scale factor of the bit rate of the second-stage control information. <MAT> may be preconfigured in the resource pool, or may be configured by the network device in the resource pool.

In a possible example, <MAT> is determined based on at least one of the following:.

For example, when <MAT> is determined based on the quantities of subcarriers occupied by the data channel pilot, the PTRS, the CSI-RS, and the control channel on symbol l in the first time unit, <MAT> satisfies Formula (4c): <MAT><MAT> is a quantity of subcarriers in a data channel scheduling bandwidth, <MAT> is the quantity of subcarriers occupied by the data channel pilot on symbol l, <MAT> is the quantity of subcarriers occupied by the PTRS on symbol l, <MAT> is the quantity of subcarriers occupied by the CSI-RS on symbol l, and <MAT> is the quantity of subcarriers occupied by the control channel on the symbol.

It should be understood that, when <MAT> is not related to one or more of the quantities of subcarriers occupied by the data channel pilot, the PTRS, the CSI-RS, or the control channel on symbol l, <MAT> may be obtained by removing a corresponding parameter from Formula (4c).

For example, when <MAT> is determined based on the quantities of subcarriers occupied by the data channel pilot, the PTRS, and the control channel on symbol l, <MAT> satisfies Formula (4d): <MAT>.

When <MAT> is determined based on the quantity of subcarriers occupied by the control channel on symbol l, <MAT> satisfies Formula (4e): <MAT>.

It should be understood that any one of Formulas (4a) to (4e) may be substituted into Formula (<NUM>) to obtain equivalent variations of Formula (<NUM>), and these equivalent variations shall fall within the protection scope of this application.

Optionally, considering that quantities of subcarriers in the data channel scheduling bandwidth on all symbols are the same, <MAT> may be represented as <MAT>. In addition, on symbol l to which the control channel is not mapped, <MAT>. On symbol l to which the control channel is mapped, a quantity of included subcarriers of the control channel is the same. To be specific, on symbol l to which the control channel is mapped, <MAT>. <MAT> is a quantity that is of subcarriers available for the data channel in frequency domain and that is configured by higher layer RRC. In this case, Formula (<NUM>) is transformed into Formula (<NUM>). <MAT><MAT> is a quantity that is of symbols available for the control channel in time domain and that is configured by a higher layer. For meanings of other parameters, refer to the foregoing descriptions of the corresponding parameters.

Optionally, <MAT> satisfies Formula (<NUM>): <MAT> <MAT>.

OSCI2 represents a valid payload size of the second-stage control information, LSCI2 represents a CRC bit length of the second-stage control information, R represents a bit rate of a data channel, Qm represents a modulation order of the data channel, <MAT> represents a quantity of symbols in the first time unit, <MAT> represents a quantity of REs that are in a time-frequency resource formed by symbol l in the first time unit and the data channel resource and that are used to transmit the second-stage control information, α represents a scale factor of a resource used to transmit the second-stage control information, γ represents a quantity of REs that is defined to satisfy that the second-stage control information occupies an integer quantity of PRBs, <MAT> represents a qth scale factor in M scale factors configured in a resource pool to which the data channel resource belongs, and the scale factor is a scale factor of a bit rate of the second-stage control information.

It should be further understood that α, γ, and <MAT> described herein and below may be preconfigured in the resource pool, or may be configured by the network device in the resource pool. α may also be understood as a factor of a ratio of a maximum quantity of resources that are allowed to be used by the second-stage control information to a quantity of data channel resources.

It should be further understood that the calculation formula of <MAT> listed in Calculation method <NUM> is also applicable to Formula (<NUM>). The calculation formulas of <MAT> listed in Calculation method <NUM> may be substituted into Formula (6a) to obtain equivalent variations of Formula (6a), and these equivalent variations shall fall within the protection scope of this application. Similarly, Formula (6a) and an equivalent variation of Formula (6a) are substituted into Formula (<NUM>) to obtain equivalent variations of Formula (<NUM>), and these equivalent variations shall also fall within the protection scope of this application.

Considering that the second-stage control information avoids a reference signal such as a DMRS/PRRS/CSI-RS during mapping, and γ ensures that no other information other than the second-stage control information and the reference signal is mapped to an RB to which the second-stage control information is mapped, mapping of the reference signal such as the DMRS/PRRS/CSI-RS actually affects a quantity of REs actually occupied by the second-stage control information. Therefore, when a mapping position of the reference signal such as the DMRS/PRRS/CSI-RS changes in an initial transmission process and a retransmission process of a data packet, to avoid impact on a calculation result of the second-stage control information, an upper limit of the quantity of REs and expressions of γ in the formulas may be modified.

Optionally, <MAT> satisfies Formula (<NUM>): <MAT>.

OSCI2 represents a valid payload size of the second-stage control information, LSCI2 represents a cyclic redundancy check CRC bit length of the second-stage control information, R represents a bit rate of a data channel, Q may represent a modulation order of the data channel or the control channel, β represents an equivalent scale factor of a bit rate of the second-stage control information, and has a specific meaning the same as that described above, or represents a scale factor that is of a resource for the second-stage control information and that is indicated by the first control information, <MAT> represents an upper limit of a quantity of REs occupied by the second-stage control information, and γ represents a quantity of REs that is defined to satisfy that the second-stage control information occupies an integer quantity of PRBs.

Based on Formula (<NUM>), a limitation of γ can be excluded, that is, <MAT> satisfies Formula (<NUM>): <MAT>.

Further, considering that the data channel may be mapped to two spatial layers, and the scale factor β of the bit rate of the second-stage control information is defined as scale ratios of the control channel and the data channel on each layer, a quantity of spatial layers to which the data channel is mapped needs to be considered when the REs occupied by the second-stage control channel are calculated. <MAT> satisfies Formula (<NUM>) or Formula (<NUM>): <MAT> <MAT>.

v represents the quantity of spatial layers of the data channel.

The foregoing calculation formula of <MAT> may also be applied to determining a quantity of modulation symbols correspondingly output based on an encoding rate of the second-stage control information.

In a possible example, to avoid impact of a reference signal in a TBS determining process, a value of γ may be defined as <NUM>, <NUM>, <NUM>, or <NUM>; or γ is a preconfigured integer from <NUM> to <NUM>, that is, γ may be any value in a set {<NUM>,<NUM>,<NUM>,<NUM>,<NUM>,<NUM>,<NUM>,<NUM>,<NUM>,<NUM>,<NUM>,<NUM>}.

In a possible example, considering a receiving capability of a terminal device, <MAT> is a preconfigured fixed value P. P is a positive integer, where for example, P is <NUM>, <NUM>, or <NUM>; or P is a preconfigured maximum encoding or decoding capability of control information of the terminal device. In a possible example, without considering resources occupied by the control channel, <MAT> may be defined as a part of a sum of quantities of REs in the data channel scheduling bandwidth, that is, <MAT> satisfies Formula (<NUM>): <MAT><MAT> represents a quantity of symbols in the first time unit excluding a PSFCH, <MAT> represents a quantity of subcarriers in the data channel scheduling bandwidth, and <MAT> is a quantity that is of subcarriers in a control channel bandwidth on symbol l and that is configured by higher layer RRC. α represents a scale factor of a resource used to transmit the second-stage control information, where <NUM><α≤<NUM>.

For example, <MAT> satisfies Formula (11a) or (11b): <MAT> <MAT>.

lengthSLsymbols represents a quantity that is of symbols included in a sidelink communication slot and that is configured by higher layer RRC. <MAT> represents a quantity of symbols occupied by the PSFCH, and is related to a configuration period of the PSFCH. For example, when the configuration period of the PSFCH is <NUM>, <MAT>; or when the configuration period of the PSFCH is <NUM>, <NUM>, or <NUM>, <MAT>. Alternatively, based on a specific value of the configuration period of the PSFCH, <MAT>, that is, <MAT> is any value in a set {<NUM>,<NUM>,<NUM>,<NUM>}.

It should be understood that Formula (11a) or Formula (11b) may be substituted into Formula (<NUM>) to obtain an equivalent variation of Formula (<NUM>), and the equivalent variation shall also fall within the protection scope of this application.

Further, <MAT> is the same on all symbols, that is, <MAT>, i = <MAT>, and i is not equal to j. In this case, <MAT> may be represented as <MAT>. Correspondingly, Formula (<NUM>) is transformed into: <MAT>.

In a possible example, considering resources occupied by the control channel, <MAT> is defined as a part of a sum of quantities of REs of the data channel in the data channel scheduling bandwidth, that is, <MAT> satisfies Formula (<NUM>): <MAT>.

For a meaning of <MAT>, refer to the description of Formula (<NUM>). For a possible value of <MAT>, refer to Formulas (11a) and (11b). <MAT> represents a quantity of subcarriers in the data channel scheduling bandwidth. <MAT> is a quantity that is of subcarriers in a control channel bandwidth on symbol l and that is configured by higher layer RRC. α represents a scale factor of a resource used to transmit the second-stage control information, where <NUM><α≤<NUM>.

In a possible example, considering that quantities of subcarriers included in the data channel bandwidth on all symbols l are the same, <MAT> may be represented as <MAT>. <MAT> is a quantity of subcarriers in the data channel scheduling bandwidth. In addition, on symbol l to which the control channel is not mapped, <MAT>= <NUM>. On symbol l to which the control channel is mapped, a quantity of included subcarriers of the control channel is the same. To be specific, <MAT>. <MAT> is a quantity that is of subcarriers available for the data channel in frequency domain and that is configured by higher layer RRC. That is, Formula (<NUM>) is transformed into Formula (<NUM>): <MAT>.

In the foregoing example, the data channel scheduling bandwidth is indicated on the control channel.

It should be understood that any one of Formulas (<NUM>), (<NUM>), and (<NUM>) or corresponding variations thereof may be substituted into Formulas (<NUM>) to (<NUM>) to obtain corresponding equivalent variations, and these equivalent variations shall fall within the protection scope of this application.

It should be further understood that, based on the calculation manners of the parameters listed in Formulas (<NUM>) to (<NUM>) or corresponding variations thereof, further variations or equivalent replacements may be made to Formula (<NUM>) or Formula (2a). For brevity, examples are not listed one by one herein. However, it may be understood that, in some cases, NRE may be calculated based on a transformed formula or an equivalent formula obtained through replacement, and all these variations shall fall within the protection scope of this application.

The manner includes: determining, based on a quantity of REs that are in each second sub-resource and that are used to transmit the second sub-information, a sum of quantities of REs that are in each second sub-resource and that are used to transmit the data and the first sub-information; and determining, based on the sum of the quantities of REs that are in each second sub-resource and that are used to transmit the data and the first sub-information, and a quantity of REs that are in the first time-frequency resource and that are used to transmit the first sub-information, the quantity of REs that are in the first time-frequency resource and that are used to transmit the data.

A difference from Manner <NUM> lies in that in Manner <NUM>, the sum of the quantities of REs that are in each first sub-resource and that are used to transmit the data and the first sub-information is first determined, but in Manner <NUM>, the sum of the quantities of REs that are in each second sub-resource and that are used to transmit the data and the first sub-information is first determined.

For example, a sum of quantities of REs that are in an ith second sub-resource in the first time-frequency resource and that are used to transmit the data and the first sub-information satisfies Formula (<NUM>): <MAT><MAT> represents the sum of the quantities of REs that are in the ith second sub-resource and that are used to transmit the data and the first sub-information, and <MAT>. <MAT> represents a quantity of subcarriers in a PRB, and <MAT> represents a quantity of REs that are in the ith second sub-resource and that are used to transmit the data channel demodulation pilot.

Noh includes a sum of quantities of REs that are in the ith second sub-resource and that are used to transmit the PTRS and/or the CSI-RS. In other words, Noh is a quantity of REs that are configured for each second sub-resource and that are used to transmit the PTRS and/or the CSI-RS.

It should be understood that, if the PTRS needs to be transmitted, Noh includes the quantity of REs used to transmit the PTRS; or if the PTRS does not need to be transmitted, Noh includes a quantity of REs not used to transmit the PTRS, in other words, the quantity of REs used to transmit the PTRS is <NUM>. If the CSI-RS needs to be transmitted, Noh includes the quantity of REs used to transmit the CSI-RS; or if the CSI-RS does not need to be transmitted, Noh includes a quantity of REs not used to transmit the CSI-RS, or in other words, the quantity of REs used to transmit the CSI-RS is <NUM>.

Optionally, the quantity of REs that are in the first time-frequency resource and that are used to transmit the data satisfies Formula (<NUM>): <MAT>.

NRE represents the quantity of REs that are in the first time-frequency resource and that are used to transmit the data, <MAT> represents a sum of quantities of REs that are in the first time-frequency resource and that are used to transmit the control channel and the control channel demodulation pilot in the first sub-information, and <MAT> represents a quantity of REs that are in the first time-frequency resource and that are used to transmit the second-stage control information in the first sub-information.

For possible calculation manners of <MAT> and <MAT>, refer to related content in Manner <NUM>.

It should be understood that Formula (<NUM>) may be substituted into Formula (<NUM>) to obtain an equivalent variation of Formula (<NUM>), and the equivalent variation shall also fall within the protection scope of this application. It should be further understood that, based on the calculation manners of the parameters listed in Formulas (<NUM>) to (<NUM>) or corresponding variations thereof, further variations or equivalent replacements may be made to Formula (<NUM>) or a variation thereof. For brevity, examples are not listed one by one herein. However, it may be understood that, in some cases, NRE may be calculated based on a transformed formula or an equivalent formula obtained through replacement, and all these variations shall fall within the protection scope of this application.

The manner includes: determining, based on a quantity of REs that are in each first sub-resource and that are used to transmit third sub-information, a sum of quantities of REs that are in each first sub-resource and that are used to transmit the data and the second-stage control information; and determining, based on the sum of the quantities of REs that are in each first sub-resource and that are used to transmit the data and the second-stage control information, and a quantity of REs that are in the first time-frequency resource and that are used to transmit the second-stage control information, the quantity of REs that are in the first time-frequency resource and that are used to transmit the data. The third sub-information includes at least one of the following: the data channel demodulation pilot, the control channel, the control channel demodulation pilot, the PTRS, or the CSI-RS.

For example, the third sub-information is information other than the second-stage control information in the first information.

A difference from Manner <NUM> lies in that in Manner <NUM>, the sum of the quantities of REs that are in each first sub-resource and that are used to transmit the data and the first sub-information is first determined, but in Manner <NUM>, the sum of the quantities of REs that are in each first sub-resource and that are used to transmit the data and the second-stage control information is first determined.

Optionally, a sum of quantities of REs that are in an ith first sub-resource in the first time-frequency resource and that are used to transmit the data and the second-stage control information satisfies Formula (<NUM>): <MAT><MAT> represents the sum of the quantities of REs that are in the ith first sub-resource and that are used to transmit the data and the second-stage control information, and <MAT>. <MAT> represents a quantity of subcarriers in a PRB, <MAT> represents a quantity of PRBs in a sub-channel, and <MAT> represents a quantity of REs that are in the ith first sub-resource and that are used to transmit the data channel demodulation pilot.

Noh includes a sum of quantities of REs that are in the ith first sub-resource and that are used to transmit at least one of the following: the control channel, the control channel demodulation pilot, the PTRS, or the CSI-RS. It should be understood that Noh includes a quantity of REs for any one of the foregoing items that needs to be transmitted. If the CSI-RS needs to be transmitted, Noh includes a quantity of REs used to transmit the CSI-RS.

Alternatively, Noh is a quantity of REs that are used to transmit information other than the data channel demodulation pilot in the third sub-information.

NRE represents the quantity of REs that are in the first time-frequency resource and that are used to transmit the data, and <MAT> represents a quantity of REs that are in the first time-frequency resource and that are used to transmit the second-stage control information.

For possible calculation manners of <MAT>, refer to related content in Manner <NUM>.

The manner includes: determining, based on a quantity of REs that are in each second sub-resource and that are used to transmit third sub-information, a sum of quantities of REs that are in each second sub-resource and that are used to transmit the data and the second-stage control information; and determining, based on the sum of the quantities of REs that are in each second sub-resource and that are used to transmit the data and the second-stage control information, and a quantity of REs that are in the first time-frequency resource and that are used to transmit the second-stage control information, the quantity of REs that are in the first time-frequency resource and that are used to transmit the data. The third sub-information includes at least one of the following: the data channel demodulation pilot, the control channel, the control channel demodulation pilot, the PTRS, or the CSI-RS.

A difference from Manner <NUM> lies in that in Manner <NUM>, the sum of the quantities of REs that are in each first sub-resource and that are used to transmit the data and the second-stage control information is first determined, but in Manner <NUM>, the sum of the quantities of REs that are in each second sub-resource and that are used to transmit the data and the second-stage control information is first determined.

Optionally, a sum of quantities of REs that are in an ith second sub-resource in the first time-frequency resource and that are used to transmit the data and the second-stage control information satisfies Formula (<NUM>): <MAT><MAT> represents the sum of the quantities of REs that are in the ith second sub-resource and that are used to transmit the data and the second-stage control information, and <MAT>. <MAT> represents a quantity of subcarriers in a PRB, and <MAT> represents a quantity of REs that are in the ith second sub-resource and that are used to transmit the data channel demodulation pilot.

Noh includes a sum of quantities of REs that are in the ith second sub-resource and that are used to transmit at least one of the following: the control channel, the control channel demodulation pilot, the PTRS, or the CSI-RS. It should be understood that Noh includes a quantity of REs for any one of the foregoing items that need to be transmitted. If the CSI-RS needs to be transmitted, Noh includes a quantity of REs used to transmit the CSI-RS.

The manner includes: determining, based on a quantity of REs that are in each first sub-resource and that are used to transmit the first information, a quantity of REs that are in each first sub-resource and that are used to transmit the data.

It may be understood that a sum of quantities of REs that are in the <MAT> first sub-resources and that are used to transmit the data is equal to the quantity of REs that are in the first time-frequency resource and that are used to transmit the data.

A quantity of REs that are in an ith first sub-resource in the first time-frequency resource and that are used to transmit the data satisfies Formula (<NUM>): <MAT><MAT> represents the quantity of REs that are in the ith first sub-resource and that are used to transmit the data, and <MAT>. <MAT> represents a quantity of subcarriers in a PRB, <MAT> represents a quantity of PRBs in a sub-channel, <MAT> represents a quantity of REs that are in the ith first sub-resource and that are used to transmit the data channel demodulation pilot, and <MAT> represents a sum of quantities of REs that are in the ith first sub-resource and that are used to transmit the control channel and the control channel demodulation pilot.

Noh represents a quantity of REs that are in the ith first sub-resource and that are used to transmit fourth sub-information, and the fourth sub-information includes the second-stage control information, the PTRS, and/or the CSI-RS in the first information.

It should be understood that, if the PTRS does not need to be transmitted, Noh represents a quantity of REs that are in the ith first sub-resource and that are used to transmit the CSI-RS. For example, Noh = {<NUM>,<NUM>}. If the CSI-RS does not need to be transmitted, Noh represents a quantity of REs that are in the ith first sub-resource and that are used to transmit the PTRS. For example, Noh = {<NUM>,<NUM>}.

Optionally, when i = <NUM>, <MAT>; or <MAT><MAT> represents a quantity of symbols that are in the first time unit and that are used to transmit the control channel, and <MAT> represents a quantity of PRBs that are in the data channel resource and that are used to transmit the control channel.

With reference to <FIG>, a sum of quantities of REs that are in sub-channel <NUM> and that are used to transmit the control channel and the control channel demodulation pilot is <MAT>, and a sum of quantities of REs that are in sub-channel <NUM> and that are used to transmit the control channel and the control channel demodulation pilot is <MAT>.

Noh represents a quantity of REs that are in the ith first sub-resource and that are used to transmit fifth sub-information, and the fifth sub-information includes the second-stage control information, the control channel, the control channel demodulation pilot, the PTRS, and the CSI-RS in the first information.

Optionally, quantities of REs that are used to transmit the fifth sub-information and that are in all first sub-resources are the same.

The manner includes: determining, based on a quantity of REs that are in each second sub-resource and that are used to transmit the first information, a quantity of REs that are in each second sub-resource and that are used to transmit the data.

It may be understood that a sum of quantities of REs that are in the <MAT> second sub-resources and that are used to transmit the data is equal to the quantity of REs that are in the first time-frequency resource and that are used to transmit the data. <MAT> is a quantity of second sub-resources included in the first time-frequency resource.

A quantity of REs that are in an ith second sub-resource in the first time-frequency resource and that are used to transmit the data satisfies Formula (<NUM>): <MAT><MAT> represents the quantity of REs that are in the ith second sub-resource and that are used to transmit the data, and <MAT>. <MAT> represents a quantity of subcarriers in a PRB, <MAT> represents a quantity of REs that are in the ith second sub-resource and that are used to transmit the data channel demodulation pilot, and <MAT> represents a sum of quantities of REs that are in the ith second sub-resource and that are used to transmit the control channel and the control channel demodulation pilot. Noh represents a quantity of REs that are in the ith second sub-resource and that are used to transmit fourth sub-information, and the fourth sub-information includes the second-stage control information, and the PTRS and the CSI-RS in the first information.

Optionally, when <MAT>; or
when <MAT><MAT> represents a quantity of PRBs that are in the data channel resource and that are used to transmit the control channel, and <MAT> represents a quantity of symbols that are in the first time unit and that are used to transmit the control channel.

A quantity of REs that are in an ith second sub-resource in the first time-frequency resource and that are used to transmit the data satisfies Formula (<NUM>): <MAT><MAT> represents the quantity of REs that are in the ith second sub-resource and that are used to transmit the data, and <MAT>. <MAT> represents a quantity of subcarriers in a PRB, <MAT> represents a quantity of REs that are in the ith second sub-resource and that are used to transmit the data channel demodulation pilot, and <MAT> represents a sum of quantities of REs that are in the ith second sub-resource and that are used to transmit the control channel and the control channel demodulation pilot.

It may be understood that, for Manner <NUM> and Manner <NUM>, <MAT>.

After the quantity of REs that are in the first time-frequency resource and that are used to transmit the data, namely, NRE is determined in step S210, Nínfo = NRE * R * Qm * v may be first determined in step S220, where R represents the bit rate of the data channel, Qm represents the modulation order of the data channel, v represents a quantity of transport layers of the TB, and then the TBS may be determined based on a current technology. For details, refer to the current technology.

The method provided in embodiments of this application is described in detail above with reference to <FIG>. Apparatuses provided in embodiments of this application are described below in detail with reference to <FIG> and <FIG>.

<FIG> is a schematic block diagram of a communication apparatus according to an embodiment of this application. As shown in <FIG>, the communication apparatus <NUM> may include a processing unit <NUM>. Optionally, the communication apparatus may further include a transceiver unit <NUM>.

The transceiver unit <NUM> may be configured to send information to another apparatus or receive information from the another apparatus, for example, send or receive a transport block. The processing unit <NUM> may be configured to perform internal processing of the apparatus, to determine a quantity of REs that are in a first time-frequency resource and that are used to transmit data.

In an implementation, the communication apparatus <NUM> may correspond to an execution body of the foregoing method, for example, may be the transmit-side terminal device, or may be the receive-side terminal device. The communication apparatus <NUM> may be a terminal device or a chip configured in the terminal device, and may include units configured to perform operations performed by the terminal device. In addition, the units in the communication apparatus <NUM> are separately configured to implement operations performed by the terminal device in a corresponding method.

In an embodiment, the processing unit <NUM> is configured to determine, based on a quantity of REs that are in a first time-frequency resource and that are used to transmit first information, a quantity of REs that are in the first time-frequency resource and that are used to transmit data. The first time-frequency resource includes a first time unit in time domain and includes a data channel resource in frequency domain. The first information includes at least one of the following: a control channel, a control channel demodulation pilot, a data channel demodulation pilot, second-stage control information, a phase tracking reference signal PTRS, and a channel state information reference signal CSI-RS.

Optionally, the processing unit may be further configured to determine a transport block size based on the quantity of REs used to transmit the data.

Optionally, the transceiver unit <NUM> may be configured to receive or send a transport block.

For how the processing unit <NUM> specifically determines, based on the quantity of resource elements REs that are in the first time-frequency resource and that are used to transmit the first information, the quantity of REs that are in the first time-frequency resource and that are used to transmit the data, refer to the descriptions in the foregoing method embodiment.

In another implementation, the communication apparatus <NUM> may correspond to the network device in the foregoing method embodiment. The communication apparatus <NUM> may be a network device or a chip configured in the network device, and may include units configured to perform operations performed by the network device. In addition, the units in the communication apparatus <NUM> are separately configured to implement operations performed by the network device in a corresponding method.

In an embodiment, the transceiver unit <NUM> is configured to send indication information, where the indication information is used to indicate a value of one or more of the following parameters: Noh, <MAT>, and lα.

Noh represents one of the following items in each first sub-resource or each second sub-resource:
a quantity of REs used to transmit a PTRS and/or a CSI-RS; a sum of quantities of REs used to transmit at least one of the following: a control channel, a control channel demodulation pilot, the PTRS, or the CSI-RS; a sum of quantities of REs used to transmit at least one of the following: second-stage control information, the PTRS, and the CSI-RS; or a sum of quantities of REs used to transmit at least one of the following: the second-stage control information, the control channel, the control channel demodulation pilot, the PTRS, and the CSI-RS. <MAT> represents a quantity of REs that are in a first time-frequency resource and that are used to transmit the second-stage control information.

lα represents a transport block adjustment factor. For example, lα specifically represents a quantity of symbols in a first time unit that are adjusted for calculating a transport block size of a data channel.

The first time-frequency resource includes the first time unit in time domain and includes a data channel resource in frequency domain. The first sub-resource includes the first time unit in time domain and includes one sub-channel in the data channel resource in frequency domain. The second sub-resource includes the first time unit in time domain and includes one PRB in the data channel resource in frequency domain.

Optionally, the processing unit <NUM> may first determine the indication information.

It should be understood that a specific process in which each unit performs the foregoing corresponding steps of the corresponding network element is described in detail in the foregoing method embodiment. For brevity, details are not described herein again.

It should be further understood that when the communication apparatus <NUM> is a network device, the transceiver unit <NUM> in the communication apparatus <NUM> may correspond to an RRU <NUM> in a network device <NUM> shown in <FIG>, and the processing unit <NUM> in the communication apparatus <NUM> may correspond to a BBU <NUM> in the network device <NUM> shown in <FIG>. When the communication apparatus <NUM> is a chip configured in the network device, the transceiver unit <NUM> in the communication apparatus <NUM> may be an input/output interface.

It should be further understood that, when the communication apparatus <NUM> is a terminal device, the transceiver unit <NUM> in the communication apparatus <NUM> may correspond to a transceiver <NUM> in a terminal device <NUM> shown in <FIG>, and the processing unit <NUM> in the communication apparatus <NUM> may correspond to a processor <NUM> in the terminal device <NUM> shown in <FIG>.

<FIG> is a schematic structural diagram of a network device according to an embodiment of this application, for example, may be a schematic structural diagram of a base station. The base station <NUM> may be used in the system shown in <FIG>, to perform functions of the network device in the foregoing method embodiment. As shown in the figure, the base station <NUM> may include one or more radio frequency units, for example, one or more remote radio units (remote radio units, RRUs) <NUM>, and one or more baseband units (BBUs) (which may also be referred to as distributed units (DUs)) <NUM>. The RRU <NUM> may be referred to as a transceiver unit or a communication unit, and corresponds to the transceiver unit <NUM> in <FIG>. Optionally, the transceiver unit <NUM> may also be referred to as a transceiver machine, a transceiver circuit, a transceiver, or the like, and may include at least one antenna <NUM> and a radio frequency unit <NUM>. Optionally, the transceiver unit <NUM> may include a receiving unit and a sending unit. The receiving unit may correspond to a receiver (or referred to as a receiver machine or a receiver circuit), and the sending unit may correspond to a transmitter (or referred to as a transmitter machine or a transmitter circuit). The RRU <NUM> is mainly configured to send and receive a radio frequency signal and perform conversion between the radio frequency signal and a baseband signal. The BBU <NUM> is mainly configured to: perform baseband processing, control the base station, and so on. The RRU <NUM> and the BBU <NUM> may be physically disposed together; or may be physically separately disposed, that is, in a distributed base station.

The BBU <NUM> is a control center of the base station, or may be referred to as a processing unit. The BBU <NUM> may correspond to the processing unit <NUM> in <FIG>, and is mainly configured to implement a baseband processing function, for example, channel coding, multiplexing, modulation, or spreading. For example, the BBU (processing unit) may be configured to control the base station to perform an operation procedure of the network device in the foregoing method embodiment.

In an example, the BBU <NUM> may include one or more boards. A plurality of boards may jointly support a radio access network (for example, an LTE network) having a single access standard, or may separately support radio access networks (for example, the LTE network, a <NUM> network, or another network) having different access standards. The BBU <NUM> further includes a memory <NUM> and a processor <NUM>. The memory <NUM> is configured to store necessary instructions and data. The processor <NUM> is configured to control the base station to perform a necessary action, for example, configured to control the base station to perform the operation procedure related to the network device in the foregoing method embodiment. The memory <NUM> and the processor <NUM> may serve the one or more boards. In other words, a memory and a processor may be deployed on each board. Alternatively, a plurality of boards may share a same memory and a same processor. In addition, a necessary circuit may be further disposed on each board.

It should be understood that the base station <NUM> shown in <FIG> can implement processes related to the network device in the foregoing method embodiment. Operations or functions of modules in the base station <NUM> are respectively intended to implement corresponding procedures in the foregoing method embodiment. For details, refer to the descriptions in the foregoing method embodiment. To avoid repetition, detailed descriptions are appropriately omitted herein.

The BBU <NUM> may be configured to perform an action implemented inside the network device in the foregoing method embodiment, and the RRU <NUM> may be configured to perform an action of sending from the network device to the terminal device and an action of receiving from the terminal device in the foregoing method embodiment. For details, refer to the descriptions in the foregoing method embodiment.

<FIG> is a schematic structural diagram of a terminal device <NUM> according to an embodiment of this application. As shown in the figure, the terminal device <NUM> includes a processor <NUM> and a transceiver <NUM>. Optionally, the terminal device <NUM> may further include a memory <NUM>. The processor <NUM>, the transceiver <NUM>, and the memory <NUM> communicate with each other through an internal connection path, to transfer a control signal and/or a data signal. The memory <NUM> is configured to store a computer program. The processor <NUM> is configured to invoke the computer program from the memory <NUM> and run the computer program, to control the transceiver <NUM> to receive or send a signal.

The processor <NUM> and the memory <NUM> may be combined into a processing apparatus <NUM>, and the processor <NUM> is configured to execute program code stored in the memory <NUM> to implement the foregoing functions. It should be understood that the processing apparatus <NUM> shown in the figure is merely an example. During specific implementation, the memory <NUM> may be integrated into the processor <NUM>, or may be independent of the processor <NUM>. This is not limited in this application.

The terminal device <NUM> may further include an antenna <NUM>, configured to send, by using a radio signal, uplink data or uplink control signaling output by the transceiver <NUM>.

It should be understood that, the terminal device <NUM> shown in <FIG> can implement the processes of the terminal device in the method embodiment. Operations or functions of modules in the terminal device <NUM> are respectively intended to implement corresponding procedures in the foregoing method embodiment. For details, refer to the descriptions in the foregoing method embodiment. To avoid repetition, detailed descriptions are appropriately omitted herein.

Optionally, the terminal device <NUM> may further include a power supply <NUM>, configured to supply power to various components or circuits in the terminal device.

In addition, to improve the functions of the terminal device, the terminal device <NUM> may further include one or more of an input unit <NUM>, a display unit <NUM>, an audio circuit <NUM>, a camera <NUM>, a sensor <NUM>, and the like, and the audio circuit may further include a speaker <NUM>, a microphone <NUM>, and the like.

It should be understood that the processing apparatus may be a chip. For example, the processing apparatus may be a field programmable gate array (field programmable gate array, FPGA), may be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), the field programmable gate array (field programmable gate array, FPGA), another programmable logic device, a discrete gate, a transistor logic device, or a discrete hardware component, may be a system on chip (system on chip, SoC), may be a central processing unit (central processing unit, CPU), may be a network processor (network processor, NP), may be a digital signal processing circuit (digital signal processor, DSP), may be a micro controller unit (micro controller unit, MCU), or may be a programmable controller (programmable logic device, PLD) or another integrated chip. The processor may implement or perform the methods, the steps, and logical block diagrams that are disclosed in embodiments of this application. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor or the like. The steps in the methods disclosed with reference to embodiments of this application may be directly performed and completed by a hardware decoding processor, or may be performed and completed by using a combination of hardware in a decoding processor and a software module. A software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processor reads information in the memory and completes the steps of the foregoing method in combination with hardware of the processor.

The memory <NUM> may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. The nonvolatile memory may be a read-only memory (read-only memory, ROM), a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasable PROM, EPROM), an electrically erasable programmable read-only memory (electrically EPROM, EEPROM), or a flash memory. The volatile memory may be a random access memory (random access memory, RAM) that is used as an external buffer. By way of example but not limitation, many forms of RAMs may be used, for example, a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), a synchronous dynamic random access memory (synchronous DRAM, SDRAM), a double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), an enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), a synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and a direct rambus random access memory (direct rambus RAM, DR RAM).

It should be noted that the memory in the system and method described in this specification includes but is not limited to these memories and any memory of another appropriate type.

This application further provides a computer program product. The computer program product includes computer program code. When the computer program code runs on a computer, the computer is enabled to perform the method performed by the terminal device or the network device in any one of the foregoing method embodiments.

This application further provides a computer-readable medium. The computer-readable medium stores program code. When the program code is run on a computer, the computer is enabled to perform the method performed by the network device or the terminal device in the foregoing method embodiment.

This application further provides a system, including a terminal device and a network device.

An embodiment of this application further provides a processing apparatus, including a processor and an interface. The processor is configured to perform the method performed by the terminal device or the network device in any one of the foregoing method embodiments.

All or a part of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement embodiments, all or some of embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the procedures or functions according to embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), a semiconductor medium (for example, a solid-state drive (solid-state drive, SSD)), or the like.

Terms such as "component", "module", and "system" used in this specification are used to indicate a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software being executed. For example, a component may be but is not limited to a process that runs on a processor, a processor, an object, an executable file, a thread of execution, a program, or a computer. As illustrated by using figures, both a computing device and an application that is run on the computing device may be components. One or more components may reside within a process or a thread of execution, and a component may be located on one computer or distributed between two or more computers. In addition, these components may be executed by various computer-readable media that store various data structures. For example, the components may communicate by using a local or remote process based on a signal having one or more data packets (for example, data from two components interacting with another component in a local system, a distributed system, or across a network such as the internet interacting with another system by using the signal).

It should be understood that, an "embodiment" mentioned throughout this specification means that particular features, structures, or characteristics related to this embodiment are included in at least one embodiment of this application. Therefore, embodiments in the entire specification do not necessarily refer to a same embodiment. In addition, these particular features, structures, or characteristics may be combined in one or more embodiments in any proper manner.

It should be understood that, in embodiments of this application, numbers "first", "second", and the like are merely used to distinguish between different objects, for example, to distinguish between different network devices, and do not constitute a limitation on the scope of embodiments of this application. Embodiments of this application are not limited thereto.

It should be further understood that, in this application, "when" and "if" mean that a network element performs corresponding processing in an objective situation, and are not intended to limit time, and the network element is not necessarily required to have a determining action during implementation, and do not mean any other limitation.

It should be further understood that, in this application, "at least one" means one or more, and "a plurality of" means two or more.

It should be further understood that in embodiments of this application, "B corresponding to A" indicates that B is associated with A, and B may be determined based on A. However, it should be further understood that determining B based on A does not mean that B is determined based on only A. B may alternatively be determined based on A and/or other information.

It should be further understood that the term "and/or" in this specification describes only an association relationship between associated objects and represents that three relationships may exist. In addition, the character "/" in this specification usually indicates an "or" relationship between the associated objects.

Unless otherwise specified, an expression used in this application similar to an expression that "an item includes one or more of the following: A, B, and C" usually means that the item may be any one of the following cases: A; B; C; A and B; A and C; B and C; A, B, and C; A and A; A, A, and A; A, A, and B; A, A, and C; A, B, and B; A, C, and C; B and B; B, B and B; B, B and C; C and C; C, C, and C; and another combination of A, B and C. In the foregoing descriptions, three elements A, B, and C are used as an example to describe an optional case of the item. When an expression is "the item includes at least one of the following: A, B,. , and X", in other words, more elements are included in the expression, a case to which the item is applicable may also be obtained according to the foregoing rule.

It may be understood that in embodiments of this application, the terminal device and/or the network device may perform some or all of the steps in embodiments of this application. These steps or operations are merely examples. In embodiments of this application, other operations or variations of various operations may be further performed. In addition, the steps may be performed in a sequence different from a sequence presented in embodiments of this application, and not all the operations in embodiments of this application are necessarily to be performed.

Persona of ordinary skill in the art may be aware that, in combination with the examples described in embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware.

It may be clearly understood by persons skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing systems, apparatuses, and units, refer to a corresponding process in the foregoing method embodiment.

For example, the described apparatus embodiments are merely examples. For example, division into the units is merely logical function division. During actual implementation, another division manner may be used. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or the units may be implemented in electronic, mechanical, or other forms.

The units described as separate components may or may not be physically separate, and components displayed as units may or may not be physical units. To be specific, the components may be located at one position, or may be distributed on a plurality of network units. Some or all of the units may be selected depending on actual requirements to achieve the objectives of the solutions in embodiments.

When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of this application essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be, for example, a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory ROM, a random access memory RAM, a magnetic disk, or an optical disc.

Claim 1:
A communication method performed by an apparatus, comprising:
determining (S210), based on a quantity of resource elements, REs, that are in a first time-frequency resource and that are used to transmit first information, a quantity of REs that are in the first time-frequency resource and that are used to transmit data, wherein the first time-frequency resource comprises a first time unit in time domain and comprises a data channel resource in frequency domain, and the first information comprises second-stage control information;
wherein a quantity <MAT> of REs that are in the first time-frequency resource and that are used to transmit the second-stage control information satisfies: <MAT>
wherein OSCI2 represents a valid payload size of the second-stage control information, LSCI2 represents a cyclic redundancy check, CRC, bit length of the second-stage control information, R represents a bit rate of a data channel, Q represents a modulation order of a control channel, β represents a scale factor that is of a resource for the second-stage control information and that is indicated by the first control information, α represents the scale factor of the resource used to transmit the second-stage control information, wherein <NUM><α≤<NUM>,
γ represents a quantity of REs that is defined to satisfy that the second-stage control information occupies an integer quantity of physical resource block, PRBs, <MAT>, lengthSLsymbols is a quantity of symbols comprised in a sidelink communication slot and that is configured by higher layer RRC, <MAT> is a quantity of symbols occupied by a PSFCH, <MAT> or <MAT>, <MAT> is a quantity of subcarriers in a data channel scheduling bandwidth, and <MAT> is a quantity that is of subcarriers in a control channel bandwidth on symbol l and that is configured by higher layer RRC;
the method further comprises:
determining (S220), based on the quantity of REs that are in the first time-frequency resource and that are used to transmit the data, a transport block size, TBS for transmitting the data, wherein in a process of determining the TBS, the value of γ is <NUM>;
transmitting the data with the determined TBS on the determined quantity of REs that are in the first time-frequency resource.