WO2012126235A1 - Uplink control method and system based on layer architecture - Google Patents

Uplink control method and system based on layer architecture Download PDF

Info

Publication number
WO2012126235A1
WO2012126235A1 PCT/CN2011/079691 CN2011079691W WO2012126235A1 WO 2012126235 A1 WO2012126235 A1 WO 2012126235A1 CN 2011079691 W CN2011079691 W CN 2011079691W WO 2012126235 A1 WO2012126235 A1 WO 2012126235A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
layer
scheduling
uplink
random access
Prior art date
Application number
PCT/CN2011/079691
Other languages
French (fr)
Chinese (zh)
Inventor
王莹
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012126235A1 publication Critical patent/WO2012126235A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0833Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using a random access procedure

Definitions

  • the present invention relates to the field of wireless mobile communications, and in particular, to an uplink control method and system for user equipment (UE) in baseband chip processing applied to time division duplex synchronous code division multiple access (TD-SCDMA).
  • UE user equipment
  • TD-SCDMA time division duplex synchronous code division multiple access
  • the TD-SCDMA mobile communication system is a third-generation mobile communication standard proposed by China and is one of the three major standards in the world. At present, TD-SCDMA has gradually been applied in China.
  • TD-SCDMA is a synchronous system with strict synchronization requirements for uplink and downlink. In idle mode, only downlink synchronization is established between the UE and the base station. At this time, the UE side does not know the distance to the base station, and cannot accurately know the transmission power and timing advance required for transmitting the RRC connection request message. Therefore, the UE completes the uplink synchronization process with the base station through the random access procedure. And transmitting a layer 3 message on a Physical Random Access Channel (PRACH).
  • PRACH Physical Random Access Channel
  • the UE After receiving the RRC connection setup message, the UE sends an RRC connection setup complete message on the dedicated physical channel (DPCH) channel according to the requirements of layer 3 signaling, and then still completes the data with the base station on the DPCH link. Interaction and signaling interaction. When there is no Media Access Control (MAC) layer valid data, the physical layer automatically sends a discontinuous transmission (DTX) burst to maintain uplink synchronization.
  • DPCH dedicated physical channel
  • DTX discontinuous transmission
  • a hierarchical structure-based uplink control method comprising: performing resource scheduling, dual port random access memory (DPRAM) data space of a random access procedure based on a hierarchical structure in uplink control for physical layer baseband processing Operation and uplink channel baseband signal processing;
  • DPRAM dual port random access memory
  • the hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs corresponding tasks according to resources configured by the scheduling layer, and performs baseband signals according to data acquired from the device management layer.
  • the driver layer being processed.
  • the scheduling of the random access procedure resource that is performed according to the hierarchical structure specifically includes: implementing, by using the scheduling layer, resource application and scheduling, and each time a new random access procedure is initiated, calculation includes uplink (UP) transmission.
  • UP uplink
  • FPACH fast access indicator channel
  • PRACH physical random access channel
  • the method further includes: a module for scheduling the UP transmission slot, the FPACH receiving slot, and the PRACH transmission slot to be scheduled by the scheduling layer module and configured to the device management layer.
  • the operation of the DPRAM data space based on the hierarchical structure specifically includes: after acquiring the resources configured by the scheduling layer, the device management layer performs a DPRAM data space operation according to resources configured by the scheduling layer, for only normal service data.
  • the read operation under the control of the module of the scheduling layer, schedules the query of the data in the current DPRAM in each sub-frame. If there is data to be read, the data to be read is selected to be directly copied according to the data of the query. Move to the upstream hardware random access memory, or choose to transfer the read data to the upstream hardware random access memory by starting dynamic memory access (DMA).
  • DMA dynamic memory access
  • the method further includes: when the module of the scheduling layer cooperates with the module of the device management layer, using a global variable flag to notify each subframe whether data is carried to the uplink hardware. Need to be sent in the reservoir;
  • the resource block (SB) data is transmitted using discontinuous transmission (DTX).
  • DTX discontinuous transmission
  • the processing of the uplink channel baseband signal performed based on the hierarchical structure specifically includes: when performing baseband signal processing according to data acquired from a device management layer, the N_data outputted by the input Ni is obtained by the input N_data. Delta_N, performing selected rate matching by the input Delta_N, and finally obtaining an E parameter for baseband signal transmission; wherein, Ni is the number of bits of one radio frame before the transmission channel i rate matching; N_data is a code division combined transmission channel ( CCTrCH ) The number of data bits in the frame; Ddta_N is the number of bits punched or repeated.
  • CCTrCH code division combined transmission channel
  • An uplink control system based on a hierarchical structure, comprising: an uplink control unit, configured to perform resource scheduling and DPRAM of a random access procedure based on a hierarchical structure in uplink control for physical layer baseband processing Data space operation and uplink channel baseband signal processing;
  • the hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs corresponding tasks according to resources configured by the scheduling layer, and a slave device according to the slave device The data acquired by the management performs the driver layer of baseband signal processing.
  • the uplink control unit is further configured to: when performing the random access procedure resource scheduling based on the hierarchical structure, implement resource application and scheduling by using the scheduling layer, and initiate a new each time
  • the random access procedure needs to calculate resources including an UP transmission slot, a FPACH reception slot, and a PRACH transmission slot.
  • the uplink control unit is further configured to: after performing the DPRAM data space operation based on the hierarchical structure, after the device management layer acquires the resource configured by the scheduling layer, configured according to the scheduling layer Resources, perform DPRAM data space operations, for read operations with only normal service data, under the control of the module of the scheduling layer, query the data in the current DPRAM in each sub-frame, if there is data to be read, according to the query Data situation selection, the data read is directly transferred to the uplink hardware random access memory, Or choose to transfer the read data to the upstream hardware random access memory by means of boot DMA.
  • the uplink control unit is further configured to: when performing the uplink channel baseband signal processing based on the hierarchical structure, when performing baseband signal processing according to data acquired from a device management layer, by inputting Ni Obtaining the output N_data, obtaining the output Delta_N from the input N_data, performing the selected rate matching by the input Delta_N, and finally obtaining the E parameter for the baseband signal transmission; wherein, Ni is a radio frame before the transmission channel i rate matching Number of bits; N_data is the number of data bits in a code division combined transport channel (CCTrCH) frame; Delta_N is the number of bits punched or repeated.
  • Ni is a radio frame before the transmission channel i rate matching Number of bits
  • N_data is the number of data bits in a code division combined transport channel (CCTrCH) frame
  • Delta_N is the number of bits punched or repeated.
  • the present invention performs resource scheduling, dual port random access memory (DPRAM) data space operation, and uplink channel baseband signal processing based on a hierarchical structure;
  • the hierarchical structure includes: A scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs a corresponding task according to resources configured by the scheduling layer, and a driving layer that performs baseband signal processing according to data acquired from the device management layer.
  • uplink control of the underlying physical layer can be realized by interaction and cooperation of layers in the hierarchical structure.
  • FIG. 1 is a schematic diagram of an implementation principle of an uplink layered design according to the present invention.
  • FIG. 2 is a schematic diagram of resource application timing of a random access procedure according to the present invention.
  • FIG. 3 is a schematic diagram of timing of resource application for PRACH according to the present invention.
  • FIG. 4 is a schematic diagram of timing of reading DPRAM data according to the present invention.
  • Figure 5 is a schematic view showing the calculation principle of Ni of the present invention.
  • FIG. 6 is a schematic diagram of a calculation principle of N-data according to the present invention.
  • FIG. 7 is a schematic diagram of a calculation principle of Ddta_N according to the present invention.
  • FIG. 8 is a schematic diagram of a selection principle of a rate matching algorithm according to the present invention.
  • FIG. 9 is a schematic diagram of the e-parameter calculation principle in the Turbo punching mode of the present invention.
  • FIG. 10 is a schematic diagram showing the principle of e-parameter calculation in the uncoded, convolutional coded or Turbo repeat mode of the present invention. detailed description
  • the basic idea of the present invention is: in the uplink control for the physical layer baseband processing, performing resource scheduling, DPRAM data space operation, and uplink channel baseband signal processing of the random access procedure based on the hierarchical structure;
  • the hierarchical structure includes: And a scheduling layer that manages all task scheduling and coordination within the physical layer, a device management layer that performs a corresponding task according to resources configured by the scheduling layer, and a driving layer that performs baseband signal processing according to data acquired from the device management layer.
  • the present invention is based on a hierarchical structure uplink control scheme, and for the underlying physical layer uplink control, reveals an uplink working mode of the physical layer, which is based on a hierarchical structure, interaction between layers, and coordinated processing from baseband signals. From the perspective of the uplink control, the processing of the uplink channels and the handling and signal transmission of common service data can be finally completed.
  • An uplink control method based on hierarchical structure mainly includes the following contents: From the perspective of physical layer software of TD-SCDMA system, the entire software architecture introduces a hierarchical structure design, which is divided into three layers: scheduling layer, device Management and driver layers, as shown in Figure 1.
  • the scheduling layer is used to organize and manage the scheduling and coordination of all processes (also called tasks) within the physical layer; the device management layer is used to complete the corresponding tasks under the specified time and resource conditions configured by the scheduling layer, and to carry data to the driver.
  • Layer The driver layer is used to perform a specific independent function implementation, that is, to perform functions such as baseband signal processing based on data carried by the device management layer. All processes (also called tasks) of the physical layer are completed by interaction and cooperation of the three.
  • the scheduling layer for the normal uplink service, the high speed uplink packet access (HSUPA) service is not included, and the process involved in the scheduling layer includes a random access (RACH) process and a dedicated channel (DCH) transmission process, and mainly completes the uplink processes.
  • RACH random access
  • DCH dedicated channel
  • the scheduling layer module such as the master control module of the scheduling layer, a physical layer scheduling master control (LIS) module, and the LIS module scheduling control process, according to the current different physical layer states, for multiple protocols.
  • the task request of the stack considering the hardware design and the limitation of common resources such as radio, is used for unified resource scheduling, and the conflicting processes are allocated to execute on different time units to achieve the purpose of conflict resolution.
  • the process related to the device management layer is completed by the module-receiving (RTX) module of the device management layer.
  • the RTX module is specifically divided into a TX module for controlling transmission and an RX module for controlling reception.
  • the main functions of the RTX module include: response to the scheduling layer commands (channel configuration, channel deletion), scheduling management of uplink physical channel processing (TX) devices, uplink transport channel processing (UTR) devices and other hardware devices, hardware-generated results Post processing.
  • TX physical channel processing
  • UTR uplink transport channel processing
  • the triggering of the control process is mainly caused by the interrupt signal generated by the time management unit (TPU).
  • the TPU advances a time offset (offset) when the timing of the transmitting event arrives, and the TX device is notified by the message, and the related data processing is completed by the TX device.
  • the TX device occupies less CPU resources for channel configuration and deletion.
  • the main CPU usage is the post-processing part.
  • the main algorithms are transport block cascading and segmentation algorithms, channel coding, and radio frame length.
  • the equalization algorithm and the rate matching parameter calculation algorithm can basically meet the physical layer uplink timing and control requirements specified by the 3GPP protocol.
  • the driver layer related modules include a TX driver and a UTR driver, which perform physical channel processing and transport channel processing, respectively.
  • the main processing tasks include: Scheduling internal events and state management by software; TX/UTR hardware register configuration by software; CRC encoding by hardware; channel coding by hardware; TFCI coding by hardware;
  • the first interleaving of hardware implementation also known as 1st interleaving
  • rate matching by hardware
  • second interleaving by hardware also known as 2nd interleaving (frame correlation, Time slot related); Supported by software to implement DTX.
  • the present invention focuses on the physical layer software of the UE in the TD-SCDMA system.
  • the uplink channel processing and link design according to the physical layer behavior specification specified by 3GPP and the operating principle according to the real-time operating system (OSEck), the hierarchical division is adopted, and the hierarchy is divided by different levels, and the timing of different levels and modules is guaranteed.
  • the physical layer behavior specification specified by 3GPP and the operating principle according to the real-time operating system (OSEck) the hierarchical division is adopted, and the hierarchy is divided by different levels, and the timing of different levels and modules is guaranteed.
  • the relationship between logic and hardware and software fully embodies the principle of loosely coupled tight cohesion; introduces resource application to solve the problem of resource conflicts between multiple processes in the physical layer in a certain period of time; uses DPRAM data space to read and use database ping pong Buffer, to ensure the correctness of the timing of data handling and the correctness of the parameters of the switching reconfiguration; baseband signal processing is superior to the algorithm of the prior art.
  • the key technologies adopted based on the hierarchical structure are: public resource scheduling and resource application, reading of DPRAM data space, use of ping-pong BUFFER in the database, and baseband signal processing to finally complete the processing of uplink channels and the handling of common service data. emission.
  • the invention is illustrated by way of example below.
  • Embodiment 1 Taking random access as an example, the resource scheduling of the random access process in the process of uplink channel processing is described.
  • the resources required for the random access process are not fixed and need to be calculated according to the configuration parameters of the protocol stack. Each time a new random access procedure is initiated, these resources need to be calculated. These resources include: 1) UP transmission time slot; FPACH receive time slot; 3) PRACH transmit time slot (or E_RUCCH transmit time slot).
  • the random access procedure is allocated resources by the LIS task, wherein the reception of the UP transmission slot and the FPACH reception slot is scheduled by the LIS module, and the transmission of the PRACH transmission slot is arranged in the RTX module due to its tight timing.
  • the 0th subframe, the protocol stack message (PS message) is delivered, and the LIS module activates the RACH process. Calculate resources and apply for resources.
  • the resources to be applied for the normal random access procedure are the idle (IDLE) resources of the UP, FPACH, and PRACH slots of the 6th to 12th subframes.
  • the enhanced random access also needs to apply for the 6th subframe. TX resources;
  • each sub-frame LIS module applies for resources for the random access procedure. Until the fifth subframe request returns a value of True, the LIS sends a parameter configuration message (including the RSCP value) sent by the UP to the RTX module, and the RTX module configures the parameter, and opens the UP slot of the next subframe to TX;
  • a parameter configuration message including the RSCP value
  • the RTX module sends an UP
  • the LIS module sends a parameter configuration message of the FPACH reception to the RTX module
  • the RTX module sends a message to the RFC module to notify the FPACH time slot of the next subframe to be RX;
  • the RTX module listens to the corresponding FPACH Burst, and each subframe sends a message to the RFC module to notify that the FPACH slot of the next subframe is opened as RX;
  • the RTX module successfully receives the FPACH Burst, calculates the PRACH transmission subframe number, and sets the PRACH transmission time slot to TX;
  • PRACH (or E-RUCCH) is sent
  • RTX HSPA
  • the RACH process sends the response to the random access successfully to the protocol stack.
  • a limit case is considered, that is, when the FPACH receiving time slot is TS6 and the PRACH TTI is 20 ms, the RF resource of 4 subframes needs to be applied for the PRACH transmission, because the FPACH is arbitrary in the WT subframes.
  • Sub-frames are all possible to receive, so they are divided into the following four cases:
  • the FPACH is received in the nth subframe, and the transmission subframe of the PRACH is: n+2, n+3, n+4, n+5;
  • the FPACH is received in the n+1th subframe, and the transmitting subframe of the PRACH is: n+4, n+5, n+6, n+7;
  • FPACH is received in the n+2th subframe, and the transmitting subframe of the PRACH is: n+4, n+5, n+6, n+7;
  • the FPACH is received in the n+3th subframe, and the transmission subframe of the PRACH is: n+6, n+7, n+8, n+9.
  • the possible transmission slots of the PRACH occupy the resources from the n+2 subframe to the n+9th subframe, and the FPACH resources, and the entire random access procedure applies for a total of 11 subframes of radio resources.
  • the receiving time slot of the FPACH is TS6, if the RTX module successfully receives the FPACH in the nth subframe, the time point reported to the LIS module will be delayed to the n+1th subframe, then the LIS cannot reach the n+2.
  • the PRACH slot of the subframe is set to TX and the RTX is scheduled to transmit the PRACH in the n+2th subframe. Considering the existence of such a worst case, the LIS is only likely to be used when applying for the PRACH resource.
  • the radio frequency slot is set to IDLE, and the radio frequency slot to be sent by the RTX device layer itself is set to the TX state.
  • the RTX module will report the result of the failure in the n+4th subframe to the LIS module, and the LIS module will release the subsequent RPACH transmission in the n+5th subframe. Resources, waiting for the next re-initiation of the random access procedure.
  • Embodiment 2 Explain the operation of the DPRAM data space in the process of uplink channel processing.
  • the exchange between the physical layer and the protocol stack is performed by DPRAM.
  • the LIS module starts to query the data in the DPRAM under the scheduling of each sub-frame (ie: querying whether there is data to be read in the DPRAM), if there is data to be read, according to the data of the query,
  • the read data is transferred to the upstream hardware RAM by direct copy or the read data is transferred to the uplink hardware RAM by means of starting DMA.
  • the LIS module and the TX module use the global variable flag FLAG to notify whether each subframe has data to be sent to the uplink hardware and needs to be sent.
  • the SB data is sent in the DTX mode. Move At the same time, the data needs to be stored in the device layer database together with the parameters such as the TB Size in the data header and the data tag, so that the TX module can query and use the parameter.
  • the specific timing relationship is shown in Figure 4.
  • the protocol stack sends data in the first three sub-frames of the ⁇ boundary (arrows point to the upper dotted arrow), LIS module The upper 2 data of the first two sub-frames of the ⁇ boundary (the arrow pointing to the upper solid arrow) identifies that there is uplink data in the DPRAM, and then the LIS module decides to copy the data in the DPRAM to the UTR by DMA or direct copy.
  • the RTX module will judge that there is new data to be sent in the first subframe of the ⁇ boundary, configure the uplink hardware to do coding, etc., the hardware will take effect and transmit at the ⁇ boundary; 2)
  • HSUPA high-speed service
  • the UPA data is sent at the dotted arrow.
  • the LIS module needs to move the normal uplink data to the UTR hardware RAM at the time of TS5, and move the UPA data to the high-speed uplink transmission channel.
  • the EUTR EUTR hardware RAM, and then can update the read data position in the DPRAM, here is a bit bad because the DMA has no priority, so you need to move the normal uplink data and then move the UPA data, but consider the normal uplink data volume in the UPA data. Large, so it should not be affected; 3) From the above 1) and 2) It can be seen from the above two points that the LIS module can read ordinary data from the DPRAM to the UTR hardware in two places: ⁇ the first two sub-frames; TS5 of the first 3 subframes (may be a bit risky, but the old data has already been encoded in TS1 of the subframe, and the hardware will actively dump the old data into the internal RAM, so the new normal service data of TS5 will not be overwritten. Affect the old data, and when the UPA data is considered, the amount of normal uplink data is very small. It should be coded before TS5, and the new data should have no effect on the old data.)
  • the protocol stack Since the physical layer is in the channel receiving and transmitting process, the protocol stack often has parameter changes and needs to be reconfigured and switched by the physical layer.
  • the main channel has DCH.
  • the physical layer needs to be used simultaneously with the old and new configurations. Save two sets of configurations. This involves the number of layers in the physical layer. According to the use of the ping-pong BUFFFER in the library.
  • the LIS module When the LIS module receives the channel new configuration, it writes the channel configuration parameters into the corresponding idle location of the device layer database, and records the current use channel storage location (that is, the A-set configuration or the B-set configuration).
  • the LIS module When receiving the channel reconfiguration and handover, the LIS module writes the channel configuration parameters into the corresponding idle locations of the device layer database, and updates and records the current used channel storage location until the set configuration takes effect.
  • the update of the parameter configuration of the LIS module/device layer database is real-time.
  • the LIS module should save two sets of channel configuration pointers and channels and record the current use channel storage location, and pay attention to the "record the current use channel storage location" update (the updated time point is one subframe before the new parameter configuration is valid) .
  • Embodiment 3 Describe the baseband signal processing of the uplink channel in the uplink channel processing.
  • N_data depends on the number of physical channels P max allocated to the respective code division combined transport channel (CCTrCH), and also depends on their characteristics, such as spreading factor, intermediate pilot and transport format combination indication.
  • the upper layer indicates a single minimum spreading factor for each physical channel, or the upper layer informs the UE to change the uplink spreading factor at its discretion.
  • the parameters E ini , E plus , pressure and Xi are required in this algorithm. Among them, E ini , E plus and E ⁇ us can be collectively referred to as E parameters.
  • E ini is the initial value of the variable E used by the rate matching algorithm; is the increment of the variable E used by the rate matching algorithm; E ⁇ us is the decrement of the variable E used by the rate matching algorithm.
  • Ni represents the bit of a radio frame before the transmission channel i rate matches Number.
  • Figure 5 shows the specific calculation process of Ni, including the following steps:
  • i a loop variable
  • MAXIMUM_UL_TRCH is the maximum number of uplink transport channels.
  • Step 102 Determine whether the Trch[i] state is active. If yes, execute step 103; otherwise, perform step 104.
  • Trch[i] is the i-th transport channel.
  • Step 103 Calculate Trch[i] the number of bits n_bits including the CRC check bit, and then perform step 105, step 111 or step 115 according to the coding type.
  • n_bits Trch[i] .wTb_size+Trch[i] .wCrc_ size;
  • N-bits n_bits* ( Trch[i].wTb_num );
  • wTb_size is the transport block size
  • wCrc_size is the checksum size
  • wTb_num is the number of transport blocks.
  • Step 105 The coding type is convolutional coding.
  • Step 107 Obtain the number of code blocks n_code_block and the number of bits of each code block code_block_size.
  • Step 108 Determine whether it is 1/2 convolutional coding. If yes, go to step 110; otherwise, go to step 109.
  • Step 111 The coding type is Turbo coding.
  • Step 113 Obtain a code block number n_code_block and a bit number code_block_size of each code block.
  • Step 115 no coding.
  • Step 118 Obtain the Ni value of Trch[i], and return to the for loop of step 101 until the end of the loop.
  • (2) Calculation of N_data Calculate the number of data bits N_data in one CCTrCH frame. The calculation principle has the following contents:
  • ⁇ tempi PL * ⁇ (RM X * N X )
  • tempi and temp2 refer to intermediate variables; PL is the puncturing parameter; RM is the semi-static rate matching characteristic of transport channel i.
  • the N_data value is selected from the following ascending order: 1 , U, + fo , U, + fo + ... + f/ p ( cp ) [
  • the N_data value is selected from the following sequence of ascending order: where U is the data bit variable of each physical channel; the first subscript Pmax of U is the physical channel sequence. No., the uplink Pmax is at most 2; the second subscript (SPmax) min of U is the spreading factor number.
  • Selection method Starting from the left side of the sequence, select the first value greater than or equal to temp2 as the value of N_data.
  • Figure 6 shows the specific calculation process of N-data, including the following steps:
  • Step 201 initialization.
  • wUl_ts_num is the number of upstream slots.
  • RU is the code channel
  • RU_Max is the maximum value of the code channel.
  • Step 209 Press Spmin to calculate the effective number of bits RUBitNum of each RU of the radio frame
  • the number of 5ms RACH bits is halved.
  • RUBitNum is the number of code bits.
  • Step 213 Output N_data, and end the current process.
  • sf is a spreading factor.
  • Step 221, N_data + RUBitNum.
  • Step 223 Output N_data.
  • the number of data bits that can be transmitted is proportionally allocated to each TrCH, and the number of bits punched or repeated Ddta_N is obtained.
  • N tJ represents the number of bits of one radio frame before the transmission channel i rate matches
  • AN If positive, represents the number of bits per radio frame repetition in transport channel i; Negative, representing the number of bits perforated in each radio frame in transport channel i;
  • RM represents a semi-static rate matching characteristic of the transmission channel i, which is set by higher layer signaling; represents the total number of bits available for one CCTrCH channel in one radio frame; I represents the number of transmission channels constituting one CCTrCH;
  • FIG. 7 shows the specific calculation process of Ddta_N, including the following steps:
  • Step 303 Determine whether the for loop ends. If yes, execute step 304; otherwise, perform step 301.
  • "! " means not equal.
  • Step 306 Check whether N[i]+Ddta_N[i] on all channels is equal to N_data, and if yes, return a for loop; otherwise, go to step 311.
  • Step 307 Determine whether the N[i] cumulative sum on all transport channels is 0; if yes, go to step 308; otherwise, go to step 310.
  • Step 309 Return UTR_IND_NO_DATA_TO_TRANSMIT, indicating that there is no data to be transmitted, and the current process is ended.
  • Step 310 Return UTR_ERROR_DELTA_N_IMPOSSIBLE, indicating the value of the wrong Delta_N, and ending the current process.
  • Step 311 Return UTR_ERROR_RM_INIT_INCORRECT, indicating a rate matching initialization error.
  • Figure 8 shows the selection of the rate matching algorithm.
  • Step 402 Adopt a rateless matching algorithm to end the current process.
  • Step 403 Determine whether AN w >0; if yes, execute step 407; otherwise, perform step 404.
  • Step 404 Determine whether the coding type is Turbo coding, and if yes, perform step 405; otherwise, perform step 406.
  • Step 405 Select a Turbo puncturing algorithm according to the number of parameter sub-frames (frame_number) in the Fi and the state machine, and end the current process.
  • Fi is a multiple of the transmission time interval.
  • Step 406 Using a convolution reduction punching algorithm to end the current process.
  • Step 407 Adopt a repetition bit algorithm.
  • FIG. 9 and FIG. 10 respectively show the calculation process of the E parameter under different coding types, that is, FIG. 9 is a specific implementation process of the E parameter calculation performed by the selection of the puncturing algorithm shown in step 405; FIG. 10 is a selection step 406.
  • the illustrated puncturing algorithm corresponds to the specific implementation process of the E parameter calculation performed.
  • Step 510 Use the twisted phase division to find the greatest common divisor gcd(q, TTI).
  • Step 514 Obtain an E parameter as:
  • Step 517, qnew q, and then step 512 is performed.
  • Step 526 using the twisting phase division to find the greatest common divisor gcd(q, TTI).
  • Step 530 Obtain an E parameter as:
  • Eini— 2 (S[PlFi]* abs(BitSubNum) +Xi)% Xi.
  • Step 608 Use the ⁇ phase division to find the greatest common divisor gcd(lql, TTI).
  • Step 609, qnew q, and then step 611 is performed.
  • Step 610, qnew q+ gcd/TTI.
  • Step 613 obtaining the E parameter is:
  • An uplink control system based on a hierarchical structure, the system comprising: an uplink control unit, configured to perform resource scheduling of a random access procedure based on a hierarchical structure in uplink control for physical layer baseband processing
  • the hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs corresponding tasks according to resources configured by the scheduling layer, and The data acquired from the device management layer performs the driving layer of the baseband signal processing.
  • the uplink control unit is further configured to: when the random access procedure resource scheduling is performed based on the hierarchical structure, implement resource application and scheduling by using the scheduling layer, and initiate a new random access procedure each time. All resources including the UP transmission slot, the FPACH reception slot, and the PRACH transmission slot are calculated.
  • the uplink control unit is further configured to: after the device management layer acquires the resource of the scheduling layer configuration, perform the DPRAM according to the resource configured by the scheduling layer, where the DPRAM data space operation is performed based on the hierarchical structure.
  • Data space operation for a read operation with only normal service data, under the control of the module of the scheduling layer, the data in the current DPRAM is scheduled and scheduled in each sub-frame. If there is data to be read, the data will be selected according to the queryed data.
  • the read data is directly transferred to the uplink hardware random access memory, or the read data is transferred to the uplink hardware random access memory by using the startup DMA.
  • the uplink control unit is further configured to: when performing the uplink channel baseband signal processing based on the hierarchical structure, obtain N_data outputted from the input Ni when performing baseband signal processing according to data acquired from the device management layer. Delta_N obtained by the input N_data, performing selected rate matching by the input Delta_N, and finally obtaining an E parameter for baseband signal transmission; wherein, Ni is the number of bits of a radio frame before the transmission channel i rate matching; N_data The number of data bits in a code division combined transport channel (CCTrCH) frame; Delta_N is the number of bits that are punctured or repeated.
  • CCTrCH code division combined transport channel

Abstract

Disclosed in present invention is an uplink control method based on layer architecture. The method comprises the following steps: executing resource scheduling in the process of random access, data space operation of dual-ported RAM(DPRAM) and uplink channel baseband signal processing based on layer architecture in uplink control for baseband processing in physical layer. Also disclosed in the present invention is an uplink control system based on layer architecture. The uplink control unit of the system is configured to execute resource scheduling in the process of random access, data space operation of DPRAM and uplink channel baseband signal processing based on layer architecture in uplink control for baseband processing in physical layer. With the method and system in the present invention, uplink control can be realized from the perspective of baseband processing.

Description

一种基于分层结构的上行链路控制方法及系统 技术领域  Uplink control method and system based on hierarchical structure
本发明涉及无线移动通信领域, 尤其涉及一种应用于时分双工同步码 分多址(TD-SCDMA )的基带芯片处理中用户设备 ( UE )的上行链路控制 方法及系统。 背景技术  The present invention relates to the field of wireless mobile communications, and in particular, to an uplink control method and system for user equipment (UE) in baseband chip processing applied to time division duplex synchronous code division multiple access (TD-SCDMA). Background technique
TD-SCDMA移动通信系统是中国提出的一种第三代移动通信标准, 为 世界三大标准之一。 目前, TD-SCDMA 在中国已经逐步走向应用, TD-SCDMA是一个同步系统, 对上行和下行有着比较严格的同步要求, 在 空闲模式下, UE和基站之间仅建立了下行同步, 换句话说, 此时 UE侧并 不知道到基站的距离, 也不能准确的知道发送 RRC连接请求消息所需的发 射功率和定时提前量,因此 UE通过随机接入过程来完成与基站之间的上行 同步过程, 并在物理随机接入信道( PRACH , Physical Random Access Channel )上发送层 3消息。 同样, UE在收到 RRC连接建立消息后, 按层 3信令的要求, 在专用物理信道(DPCH )信道上发送 RRC连接建立完成 消息, 之后也仍然在 DPCH链路上完成与基站之间数据交互和信令交互。 在没有媒体接入控制 (MAC )层有效数据时, 物理层则自动发送不连续发 送(DTX ) 突发来维持住上行同步。  The TD-SCDMA mobile communication system is a third-generation mobile communication standard proposed by China and is one of the three major standards in the world. At present, TD-SCDMA has gradually been applied in China. TD-SCDMA is a synchronous system with strict synchronization requirements for uplink and downlink. In idle mode, only downlink synchronization is established between the UE and the base station. At this time, the UE side does not know the distance to the base station, and cannot accurately know the transmission power and timing advance required for transmitting the RRC connection request message. Therefore, the UE completes the uplink synchronization process with the base station through the random access procedure. And transmitting a layer 3 message on a Physical Random Access Channel (PRACH). Similarly, after receiving the RRC connection setup message, the UE sends an RRC connection setup complete message on the dedicated physical channel (DPCH) channel according to the requirements of layer 3 signaling, and then still completes the data with the base station on the DPCH link. Interaction and signaling interaction. When there is no Media Access Control (MAC) layer valid data, the physical layer automatically sends a discontinuous transmission (DTX) burst to maintain uplink synchronization.
在现有上行链路控制方案中, 多为关注应用层的上行同步及上行功率 控制的问题, 侧重于 UE与基站侧的同步功控方案。 然而, 针对底层的物理 层, 并没有从基带处理的角度解决上行链路控制。 发明内容 In the existing uplink control scheme, the problem of uplink synchronization and uplink power control of the application layer is mostly concerned, and the synchronization power control scheme of the UE and the base station side is focused. However, for the underlying physical layer, uplink control is not addressed from the perspective of baseband processing. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种基于分层结构的上行链路 控制方法及系统, 实现了从基带处理的角度解决上行链路控制。  In view of the above, it is a primary object of the present invention to provide a hierarchical structure-based uplink control method and system that solves uplink control from the perspective of baseband processing.
为解决上述技术问题, 本发明的技术方案是这样实现的:  In order to solve the above technical problem, the technical solution of the present invention is implemented as follows:
一种基于分层结构的上行链路控制方法, 包括: 在针对物理层基带处 理的上行链路控制中, 基于分层结构执行随机接入过程的资源调度、 双端 口随机存储器(DPRAM )数据空间操作和上行信道基带信号处理;  A hierarchical structure-based uplink control method, comprising: performing resource scheduling, dual port random access memory (DPRAM) data space of a random access procedure based on a hierarchical structure in uplink control for physical layer baseband processing Operation and uplink channel baseband signal processing;
其中, 所述分层结构包括: 组织和管理物理层内部所有任务调度和协 调的调度层、 根据调度层配置的资源执行对应任务的设备管理层、 以及根 据从设备管理层获取的数据执行基带信号处理的驱动层。  The hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs corresponding tasks according to resources configured by the scheduling layer, and performs baseband signals according to data acquired from the device management layer. The driver layer being processed.
其中, 基于所述分层结构执行的所述随机接入过程资源调度具体包括: 通过所述调度层实现资源申请和调度, 每次发起新的随机接入过程都需计 算包括上行(UP )发送时隙、 快速接入指示信道(FPACH )接收时隙和物 理随机接入信道(PRACH )发送时隙在内的资源。  The scheduling of the random access procedure resource that is performed according to the hierarchical structure specifically includes: implementing, by using the scheduling layer, resource application and scheduling, and each time a new random access procedure is initiated, calculation includes uplink (UP) transmission. Time slot, fast access indicator channel (FPACH) receive time slot and physical random access channel (PRACH) transmit time slot.
其中, 该方法还包括: UP发送时隙、 FPACH接收时隙和 PRACH发送 时隙由调度层的模块进行调度后配置给设备管理层的模块。  The method further includes: a module for scheduling the UP transmission slot, the FPACH receiving slot, and the PRACH transmission slot to be scheduled by the scheduling layer module and configured to the device management layer.
其中, 基于所述分层结构执行的所述 DPRAM数据空间操作具体包括: 设备管理层获取所述调度层配置的资源后, 根据调度层配置的资源, 执行 DPRAM数据空间操作,对于只有普通业务数据的读操作,在调度层的模块 控制下, 在每个子帧调度查询当前 DPRAM 中的数据情况, 如果有数据要 读取, 则根据查询到的数据情况选择将读取的数据采用直接拷贝的方式搬 运到上行硬件随机存储器中、 或选择将读取的数据采用启动动态内存存取 ( DMA ) 的方式搬运到上行硬件随机存储器中。  The operation of the DPRAM data space based on the hierarchical structure specifically includes: after acquiring the resources configured by the scheduling layer, the device management layer performs a DPRAM data space operation according to resources configured by the scheduling layer, for only normal service data. The read operation, under the control of the module of the scheduling layer, schedules the query of the data in the current DPRAM in each sub-frame. If there is data to be read, the data to be read is selected to be directly copied according to the data of the query. Move to the upstream hardware random access memory, or choose to transfer the read data to the upstream hardware random access memory by starting dynamic memory access (DMA).
其中, 该方法还包括: 调度层的模块与设备管理层的模块协同工作时, 采用全局变量标志的方式通知每个子帧是否有数据搬运到上行硬件随机存 储器中需要发送; The method further includes: when the module of the scheduling layer cooperates with the module of the device management layer, using a global variable flag to notify each subframe whether data is carried to the uplink hardware. Need to be sent in the reservoir;
如果没有数据要发送,则采用不连续发送( DTX )方式发送资源块( SB ) 数据。  If there is no data to send, the resource block (SB) data is transmitted using discontinuous transmission (DTX).
其中, 基于所述分层结构执行的所述上行信道基带信号处理具体包括: 根据从设备管理层获取的数据执行基带信号处理时, 由输入的 Ni得到输出 的 N_data, 由输入的 N_data得到输出的 Delta_N, 由输入的 Delta_N执行 选择的速率匹配, 最终获得用于基带信号发射的 E参数; 其中, Ni为在传 输信道 i速率匹配之前一个无线帧的比特数; N_data为一个码分组合传输 信道(CCTrCH ) 帧中的数据比特数; Ddta_N为打孔或重复的比特数。  The processing of the uplink channel baseband signal performed based on the hierarchical structure specifically includes: when performing baseband signal processing according to data acquired from a device management layer, the N_data outputted by the input Ni is obtained by the input N_data. Delta_N, performing selected rate matching by the input Delta_N, and finally obtaining an E parameter for baseband signal transmission; wherein, Ni is the number of bits of one radio frame before the transmission channel i rate matching; N_data is a code division combined transmission channel ( CCTrCH ) The number of data bits in the frame; Ddta_N is the number of bits punched or repeated.
一种基于分层结构的上行链路控制系统, 包括: 上行链路控制单元, 用于在针对物理层基带处理的上行链路控制中, 基于分层结构执行随机接 入过程的资源调度、 DPRAM数据空间操作和上行信道基带信号处理; 所述 分层结构包括: 组织和管理物理层内部所有任务调度和协调的调度层、 根 据调度层配置的资源执行对应任务的设备管理层、 以及根据从设备管理层 获取的数据执行基带信号处理的驱动层。  An uplink control system based on a hierarchical structure, comprising: an uplink control unit, configured to perform resource scheduling and DPRAM of a random access procedure based on a hierarchical structure in uplink control for physical layer baseband processing Data space operation and uplink channel baseband signal processing; the hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs corresponding tasks according to resources configured by the scheduling layer, and a slave device according to the slave device The data acquired by the management performs the driver layer of baseband signal processing.
其中, 所述上行链路控制单元, 进一步用于: 在基于所述分层结构执 行所述随机接入过程资源调度的情况下, 通过所述调度层实现资源申请和 调度, 每次发起新的随机接入过程都需计算包括 UP发送时隙、 FPACH接 收时隙和 PRACH发送时隙在内的资源。  The uplink control unit is further configured to: when performing the random access procedure resource scheduling based on the hierarchical structure, implement resource application and scheduling by using the scheduling layer, and initiate a new each time The random access procedure needs to calculate resources including an UP transmission slot, a FPACH reception slot, and a PRACH transmission slot.
其中, 所述上行链路控制单元, 进一步用于: 在基于所述分层结构执 行所述 DPRAM数据空间操作的情况下, 设备管理层获取所述调度层配置 的资源后, 根据调度层配置的资源, 执行 DPRAM数据空间操作, 对于只 有普通业务数据的读操作, 在调度层的模块控制下, 在每个子帧调度查询 当前 DPRAM 中的数据情况, 如果有数据要读取, 则根据查询到的数据情 况选择将读取的数据采用直接拷贝的方式搬运到上行硬件随机存储器中、 或选择将读取的数据采用启动 DMA的方式搬运到上行硬件随机存储器中。 其中, 所述上行链路控制单元, 进一步用于: 基于所述分层结构执行 所述上行信道基带信号处理的情况下, 根据从设备管理层获取的数据执行 基带信号处理时, 由输入的 Ni得到输出的 N_data, 由输入的 N_data得到 输出的 Delta_N, 由输入的 Delta_N执行选择的速率匹配, 最终获得用于基 带信号发射的 E参数; 其中, Ni为在传输信道 i速率匹配之前一个无线帧 的比特数; N_data为一个码分组合传输信道( CCTrCH )帧中的数据比特数; Delta_N为打孔或重复的比特数。 The uplink control unit is further configured to: after performing the DPRAM data space operation based on the hierarchical structure, after the device management layer acquires the resource configured by the scheduling layer, configured according to the scheduling layer Resources, perform DPRAM data space operations, for read operations with only normal service data, under the control of the module of the scheduling layer, query the data in the current DPRAM in each sub-frame, if there is data to be read, according to the query Data situation selection, the data read is directly transferred to the uplink hardware random access memory, Or choose to transfer the read data to the upstream hardware random access memory by means of boot DMA. The uplink control unit is further configured to: when performing the uplink channel baseband signal processing based on the hierarchical structure, when performing baseband signal processing according to data acquired from a device management layer, by inputting Ni Obtaining the output N_data, obtaining the output Delta_N from the input N_data, performing the selected rate matching by the input Delta_N, and finally obtaining the E parameter for the baseband signal transmission; wherein, Ni is a radio frame before the transmission channel i rate matching Number of bits; N_data is the number of data bits in a code division combined transport channel (CCTrCH) frame; Delta_N is the number of bits punched or repeated.
本发明在针对物理层基带处理的上行链路控制中, 基于分层结构执行 随机接入过程的资源调度、 双端口随机存储器( DPRAM )数据空间操作和 上行信道基带信号处理; 分层结构包括: 组织和管理物理层内部所有任务 调度和协调的调度层、 根据调度层配置的资源执行对应任务的设备管理层、 以及根据从设备管理层获取的数据执行基带信号处理的驱动层。 采用本发 明, 通过分层结构中各层的交互、 协同工作能实现针对底层的物理层的上 行链路控制。 附图说明  In the uplink control for physical layer baseband processing, the present invention performs resource scheduling, dual port random access memory (DPRAM) data space operation, and uplink channel baseband signal processing based on a hierarchical structure; the hierarchical structure includes: A scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs a corresponding task according to resources configured by the scheduling layer, and a driving layer that performs baseband signal processing according to data acquired from the device management layer. With the present invention, uplink control of the underlying physical layer can be realized by interaction and cooperation of layers in the hierarchical structure. DRAWINGS
图 1为本发明上行链路分层设计的实现原理示意图;  1 is a schematic diagram of an implementation principle of an uplink layered design according to the present invention;
图 2为本发明随机接入过程的资源申请时序示意图;  2 is a schematic diagram of resource application timing of a random access procedure according to the present invention;
图 3为本发明 PRACH的资源申请时序示意图  FIG. 3 is a schematic diagram of timing of resource application for PRACH according to the present invention;
图 4为本发明读 DPRAM数据时序示意图;  4 is a schematic diagram of timing of reading DPRAM data according to the present invention;
图 5为本发明 Ni的计算原理示意图;  Figure 5 is a schematic view showing the calculation principle of Ni of the present invention;
图 6为本发明 N-data的计算原理示意图;  6 is a schematic diagram of a calculation principle of N-data according to the present invention;
图 7为本发明 Ddta_N的计算原理示意图;  7 is a schematic diagram of a calculation principle of Ddta_N according to the present invention;
图 8为本发明速率匹配算法选择原理示意图;  8 is a schematic diagram of a selection principle of a rate matching algorithm according to the present invention;
图 9为本发明 Turbo打孔模式下的 e参数计算原理示意图; 图 10为本发明未编码、 卷积编码或 Turbo重复模式下的 e参数计算原 理示意图。 具体实施方式 9 is a schematic diagram of the e-parameter calculation principle in the Turbo punching mode of the present invention; FIG. 10 is a schematic diagram showing the principle of e-parameter calculation in the uncoded, convolutional coded or Turbo repeat mode of the present invention. detailed description
本发明的基本思想是: 在针对物理层基带处理的上行链路控制中, 基 于分层结构执行随机接入过程的资源调度、 DPRAM数据空间操作和上行信 道基带信号处理; 分层结构包括: 组织和管理物理层内部所有任务调度和 协调的调度层、 根据调度层配置的资源执行对应任务的设备管理层、 以及 根据从设备管理层获取的数据执行基带信号处理的驱动层。  The basic idea of the present invention is: in the uplink control for the physical layer baseband processing, performing resource scheduling, DPRAM data space operation, and uplink channel baseband signal processing of the random access procedure based on the hierarchical structure; the hierarchical structure includes: And a scheduling layer that manages all task scheduling and coordination within the physical layer, a device management layer that performs a corresponding task according to resources configured by the scheduling layer, and a driving layer that performs baseband signal processing according to data acquired from the device management layer.
下面结合附图对技术方案的实施作进一步的详细描述。  The implementation of the technical solution will be further described in detail below with reference to the accompanying drawings.
本发明基于分层结构的上行链路控制方案, 针对底层的物理层上行链 路控制, 揭示了物理层的上行链路工作模式, 是基于分层结构、 各层间交 互、 协同从基带信号处理的角度上解决上行链路控制, 能最终完成上行各 信道的处理和普通业务数据的搬运及信号发射。  The present invention is based on a hierarchical structure uplink control scheme, and for the underlying physical layer uplink control, reveals an uplink working mode of the physical layer, which is based on a hierarchical structure, interaction between layers, and coordinated processing from baseband signals. From the perspective of the uplink control, the processing of the uplink channels and the handling and signal transmission of common service data can be finally completed.
一种基于分层结构的上行链路控制方法, 主要包括以下内容: 从 TD-SCDMA系统的物理层软件角度出发,整个软件架构引入了分层 结构设计, 共分为三层: 调度层、 设备管理层和驱动层, 如图 1 所示。 调 度层用于组织和管理物理层内部所有进程(也称为任务) 的调度和协调; 设备管理层用于在指定的时间和调度层配置的资源条件下完成相对应的任 务, 搬运数据到驱动层; 驱动层用于完成具体独立的功能实现, 即: 根据 设备管理层搬运来的数据执行诸如基带信号处理的功能。 由三者交互、 协 同配合下完成物理层所有的过程(也称为任务)。  An uplink control method based on hierarchical structure mainly includes the following contents: From the perspective of physical layer software of TD-SCDMA system, the entire software architecture introduces a hierarchical structure design, which is divided into three layers: scheduling layer, device Management and driver layers, as shown in Figure 1. The scheduling layer is used to organize and manage the scheduling and coordination of all processes (also called tasks) within the physical layer; the device management layer is used to complete the corresponding tasks under the specified time and resource conditions configured by the scheduling layer, and to carry data to the driver. Layer; The driver layer is used to perform a specific independent function implementation, that is, to perform functions such as baseband signal processing based on data carried by the device management layer. All processes (also called tasks) of the physical layer are completed by interaction and cooperation of the three.
以下对各个层, 及各个层主要涉及的模块进行阐述。  The following is a description of the various layers, and the modules that are primarily involved in each layer.
就调度层而言,对于普通上行业务,不包括高速上行分组接入( HSUPA ) 业务, 调度层涉及的过程包括随机接入(RACH )过程、 专用信道(DCH ) 发送过程, 主要完成上行各过程与协议栈的交互、 激活去激活、 资源计算、 资源申请和向设备管理层传递网侧参数。 这些工作主要由调度层的模块, 如调度层的总控模块一物理层调度总控(LIS )模块来完成, LIS模块调度 控制过程中, 会根据当前不同的物理层状态, 对于多种来自协议栈的任务 请求, 考虑硬件设计以及射频等公共资源的限制, 来进行统一的资源调度, 将可能沖突的过程分配在不同的时间单元上执行, 以实现解决沖突的目的。 As far as the scheduling layer is concerned, for the normal uplink service, the high speed uplink packet access (HSUPA) service is not included, and the process involved in the scheduling layer includes a random access (RACH) process and a dedicated channel (DCH) transmission process, and mainly completes the uplink processes. Interaction with the protocol stack, activation deactivation, resource calculation, Resource application and delivery of network side parameters to device management. These tasks are mainly performed by the scheduling layer module, such as the master control module of the scheduling layer, a physical layer scheduling master control (LIS) module, and the LIS module scheduling control process, according to the current different physical layer states, for multiple protocols. The task request of the stack, considering the hardware design and the limitation of common resources such as radio, is used for unified resource scheduling, and the conflicting processes are allocated to execute on different time units to achieve the purpose of conflict resolution.
就设备管理层而言, 设备管理层相关的进程由设备管理层的模块一接 收发送(RTX )模块完成, 这里, RTX模块具体分为用于控制发送的 TX 模块和用于控制接收的 RX模块。 RTX模块主要完成的功能包括: 响应调 度层的命令(信道配置、 信道删除)、 调度管理上行物理信道处理(TX )设 备、 上行传输信道处理(UTR )设备等硬件设备、 对硬件产生的结果进行 后处理。 控制过程的触发主要源自时间管理单元(TPU )产生的中断信号, TPU在发射事件定时到来时提前一个时间偏移(offset ), 通过消息通知 TX 设备, 由 TX设备完成相关数据处理。在性能方面, TX设备对于信道配置、 删除所占用的 CPU资源比较小,其主要占用 CPU资源的地方在于后处理部 分, 主要的算法有传输块级联与分段算法、 信道编码、 无线帧长度均衡算 法、速率匹配参数计算算法等,基本能够满足 3GPP协议所规定的物理层上 行链路时序及控制要求。  As far as the device management layer is concerned, the process related to the device management layer is completed by the module-receiving (RTX) module of the device management layer. Here, the RTX module is specifically divided into a TX module for controlling transmission and an RX module for controlling reception. . The main functions of the RTX module include: response to the scheduling layer commands (channel configuration, channel deletion), scheduling management of uplink physical channel processing (TX) devices, uplink transport channel processing (UTR) devices and other hardware devices, hardware-generated results Post processing. The triggering of the control process is mainly caused by the interrupt signal generated by the time management unit (TPU). The TPU advances a time offset (offset) when the timing of the transmitting event arrives, and the TX device is notified by the message, and the related data processing is completed by the TX device. In terms of performance, the TX device occupies less CPU resources for channel configuration and deletion. The main CPU usage is the post-processing part. The main algorithms are transport block cascading and segmentation algorithms, channel coding, and radio frame length. The equalization algorithm and the rate matching parameter calculation algorithm can basically meet the physical layer uplink timing and control requirements specified by the 3GPP protocol.
就驱动层而言, 驱动层相关的模块包括 TX驱动和 UTR驱动, 分别完 成物理信道处理和传输信道处理。 主要处理的工作包括: 由软件实现的调 度内部事件及状态管理; 由软件实现的 TX/UTR硬件寄存器配置; 由硬件 实现的 CRC编码; 由硬件实现的信道编码; 由硬件实现的 TFCI编码; 由 硬件实现的第一次交织 (也可称为 1st交织); 由硬件实现的速率匹配; 由 硬件实现的比特加扰; 由硬件实现的第二次交织, 也可称为 2nd交织 (帧 相关、 时隙相关); 由软件实现的支持 DTX。  In terms of the driver layer, the driver layer related modules include a TX driver and a UTR driver, which perform physical channel processing and transport channel processing, respectively. The main processing tasks include: Scheduling internal events and state management by software; TX/UTR hardware register configuration by software; CRC encoding by hardware; channel coding by hardware; TFCI coding by hardware; The first interleaving of hardware implementation (also known as 1st interleaving); rate matching by hardware; bit scrambling by hardware; second interleaving by hardware, also known as 2nd interleaving (frame correlation, Time slot related); Supported by software to implement DTX.
综上所述, 本发明重点关注在 TD-SCDMA系统中, UE的物理层软件 中的上行信道处理与链路设计,根据 3GPP规定的物理层行为规范以及根据 实时操作系统(OSEck )的操作准则, 采用层次划分的方式, 通过不同的层 次划分, 并保证不同层次与模块的时序关系和软硬件的逻辑关系, 充分体 现了松耦合紧内聚的原则; 引入资源申请, 解决某时间段内, 物理层多个 过程间资源沖突的问题; 采用 DPRAM 数据空间读取和使用数据库乒乓 Buffer, 保证数据搬运的时序正确性和切换重配的参数正确性; 基带信号处 理采用有别于现有技术的算法, 更优越。 基于分层结构采用的关键技术有: 公共资源调度和资源申请、 DPRAM 数据空间的读取和数据库中乒乓 BUFFER 的使用、 基带信号处理, 以最终完成上行各信道的处理和普通业 务数据的搬运与发射。 In summary, the present invention focuses on the physical layer software of the UE in the TD-SCDMA system. In the uplink channel processing and link design, according to the physical layer behavior specification specified by 3GPP and the operating principle according to the real-time operating system (OSEck), the hierarchical division is adopted, and the hierarchy is divided by different levels, and the timing of different levels and modules is guaranteed. The relationship between logic and hardware and software fully embodies the principle of loosely coupled tight cohesion; introduces resource application to solve the problem of resource conflicts between multiple processes in the physical layer in a certain period of time; uses DPRAM data space to read and use database ping pong Buffer, to ensure the correctness of the timing of data handling and the correctness of the parameters of the switching reconfiguration; baseband signal processing is superior to the algorithm of the prior art. The key technologies adopted based on the hierarchical structure are: public resource scheduling and resource application, reading of DPRAM data space, use of ping-pong BUFFER in the database, and baseband signal processing to finally complete the processing of uplink channels and the handling of common service data. emission.
以下对本发明进行举例阐述。  The invention is illustrated by way of example below.
实施例一: 以随机接入为例, 阐述上行信道处理过程中随机接入过程 的资源调度。  Embodiment 1: Taking random access as an example, the resource scheduling of the random access process in the process of uplink channel processing is described.
随机接入过程所需的资源不是固定的, 需要根据协议栈的配置参数计 算得出,每次发起新的随机接入过程都需计算这些资源, 这些资源包括: 1 ) UP发送时隙; 2 ) FPACH接收时隙; 3 ) PRACH发送时隙 (或 E_RUCCH 发送时隙)。  The resources required for the random access process are not fixed and need to be calculated according to the configuration parameters of the protocol stack. Each time a new random access procedure is initiated, these resources need to be calculated. These resources include: 1) UP transmission time slot; FPACH receive time slot; 3) PRACH transmit time slot (or E_RUCCH transmit time slot).
对于由协议栈发起的随机接入过程或由 HSUPA发起的增强随机接入 过程需计算上述 3部分资源, 对于硬切换发起的上行同步只需计算前 2部 分资源即可。  The above three parts of resources need to be calculated for the random access procedure initiated by the protocol stack or the enhanced random access procedure initiated by the HSUPA. For the uplink synchronization initiated by the hard handover, only the first two resources need to be calculated.
随机接入过程由 LIS任务为其分配资源, 其中 UP发送时隙和 FPACH 接收时隙的接收由 LIS模块调度, PRACH发送时隙的发送由于其时序较紧 张, 安排在 RTX模块中实现。  The random access procedure is allocated resources by the LIS task, wherein the reception of the UP transmission slot and the FPACH reception slot is scheduled by the LIS module, and the transmission of the PRACH transmission slot is arranged in the RTX module due to its tight timing.
如图 2所示:  as shown in picture 2:
第 0子帧, 协议栈消息 ( PS消息) 下发, LIS模块激活 RACH过程, 计算资源并申请资源, 普通随机接入过程需要申请的资源为第 6~12子帧的 UP、 FPACH、 PRACH时隙的空闲 (IDLE ) 资源, 增强型随机接入还需要 额外申请第 6个子帧的 TX资源; The 0th subframe, the protocol stack message (PS message) is delivered, and the LIS module activates the RACH process. Calculate resources and apply for resources. The resources to be applied for the normal random access procedure are the idle (IDLE) resources of the UP, FPACH, and PRACH slots of the 6th to 12th subframes. The enhanced random access also needs to apply for the 6th subframe. TX resources;
第 1~5子帧, 每个子帧 LIS模块都为随机接入过程申请资源。 直到第 5子帧申请返回值为 True, LIS向 RTX模块下发 UP发送的参数配置消息 (包括 RSCP值), RTX模块配置参数的同时, 将下一子帧的 UP时隙打开 为 TX;  In the 1st to 5th subframes, each sub-frame LIS module applies for resources for the random access procedure. Until the fifth subframe request returns a value of True, the LIS sends a parameter configuration message (including the RSCP value) sent by the UP to the RTX module, and the RTX module configures the parameter, and opens the UP slot of the next subframe to TX;
第 6子帧, RTX模块发送 UP, LIS模块向 RTX模块下发 FPACH接收 的参数配置消息, RTX模块配置参数的同时, 向 RFC模块发消息通知将下 一个子帧的 FPACH时隙打开为 RX;  In the sixth subframe, the RTX module sends an UP, and the LIS module sends a parameter configuration message of the FPACH reception to the RTX module, and the RTX module sends a message to the RFC module to notify the FPACH time slot of the next subframe to be RX;
第 7~10子帧, RTX模块监听相应的 FPACH Burst, 并且每个子帧向 RFC模块发消息通知将下一个子帧的 FPACH时隙打开为 RX;  In the 7th to 10th subframes, the RTX module listens to the corresponding FPACH Burst, and each subframe sends a message to the RFC module to notify that the FPACH slot of the next subframe is opened as RX;
第 10子帧, RTX模块成功收到 FPACH Burst, 计算 PRACH发送子帧 号, 将 PRACH发送时隙置为 TX;  In the 10th subframe, the RTX module successfully receives the FPACH Burst, calculates the PRACH transmission subframe number, and sets the PRACH transmission time slot to TX;
第 12子帧, PRACH (或 E-RUCCH )发送结束之后, RTX ( HSPA )模 块会反馈消息给 RACH过程, RACH过程向协议栈发送本次随机接入成功 的应答。  After the 12th subframe, PRACH (or E-RUCCH) is sent, the RTX (HSPA) module feeds back the message to the RACH process, and the RACH process sends the response to the random access successfully to the protocol stack.
UE成功的收到 FPACH之后, 如果是完整的随机接入过程, 还需要发 送 PRACH物理信道。 如图 3所示, 考虑一种极限情况, 即: 当 FPACH接 收时隙为 TS6, PRACH TTI=20ms时, 需要为 PRACH的发送申请 4个子帧 的 RF资源, 由于 FPACH在 WT个子帧内的任意子帧都有可能收到, 因此 分为以下 4种情况:  After the UE successfully receives the FPACH, if it is a complete random access procedure, it also needs to send a PRACH physical channel. As shown in FIG. 3, a limit case is considered, that is, when the FPACH receiving time slot is TS6 and the PRACH TTI is 20 ms, the RF resource of 4 subframes needs to be applied for the PRACH transmission, because the FPACH is arbitrary in the WT subframes. Sub-frames are all possible to receive, so they are divided into the following four cases:
FPACH在第 n子帧收到, PRACH的发送子帧为: n+2、 n+3、 n+4、 n+5; The FPACH is received in the nth subframe, and the transmission subframe of the PRACH is: n+2, n+3, n+4, n+5;
FPACH在第 n+1子帧收到, PRACH的发送子帧为: n+4、 n+5、 n+6、 n+7; FPACH在第 n+2子帧收到, PRACH的发送子帧为: n+4、 n+5、 n+6、 n+7; The FPACH is received in the n+1th subframe, and the transmitting subframe of the PRACH is: n+4, n+5, n+6, n+7; FPACH is received in the n+2th subframe, and the transmitting subframe of the PRACH is: n+4, n+5, n+6, n+7;
FPACH在第 n+3子帧收到, PRACH的发送子帧为: n+6、 n+7、 n+8、 n+9。  The FPACH is received in the n+3th subframe, and the transmission subframe of the PRACH is: n+6, n+7, n+8, n+9.
所以, PRACH可能的发送时隙占了从第 n+2子帧一直到第 n+9子帧, 和 FPACH的资源, 整个随机接入过程一共申请了 11个子帧的射频资源。  Therefore, the possible transmission slots of the PRACH occupy the resources from the n+2 subframe to the n+9th subframe, and the FPACH resources, and the entire random access procedure applies for a total of 11 subframes of radio resources.
因为 FPACH的接收时隙为 TS6, 如果 RTX模块在第 n子帧成功接收 到 FPACH, 那么上报给 LIS模块的时间点会拖延到第 n+1子帧, 那么这时 LIS来不及将第 n+2子帧的 PRACH时隙置为 TX同时再调度 RTX在第 n+2 子帧的时候发送 PRACH, 考虑到这种最坏情况的存在, 故 LIS 在申请 PRACH资源的时候仅仅是将可能用到的射频时隙置为 IDLE, 由 RTX设备 层自己将要发送 PRACH的射频时隙置为 TX状态。  Because the receiving time slot of the FPACH is TS6, if the RTX module successfully receives the FPACH in the nth subframe, the time point reported to the LIS module will be delayed to the n+1th subframe, then the LIS cannot reach the n+2. The PRACH slot of the subframe is set to TX and the RTX is scheduled to transmit the PRACH in the n+2th subframe. Considering the existence of such a worst case, the LIS is only likely to be used when applying for the PRACH resource. The radio frequency slot is set to IDLE, and the radio frequency slot to be sent by the RTX device layer itself is set to the TX state.
如果 WT子帧内都没有成功监听到 FPACH Burst, 那么 RTX模块会在 第 n+4子帧将失败的结果上报给 LIS模块, LIS模块将会在第 n+5子帧释 放其后的 RPACH发送资源, 等待下一次重新发起随机接入过程。  If the FPACH Burst is not successfully detected in the WT sub-frame, the RTX module will report the result of the failure in the n+4th subframe to the LIS module, and the LIS module will release the subsequent RPACH transmission in the n+5th subframe. Resources, waiting for the next re-initiation of the random access procedure.
实施例二: 阐述上行信道处理过程中 DPRAM数据空间的操作。  Embodiment 2: Explain the operation of the DPRAM data space in the process of uplink channel processing.
物理层与协议栈之间交换是通过 DPRAM来进行的, 对于只有普通业 务数据的读操作, 主要由 LIS模块来完成。 其实现方式为: LIS模块在每 个子帧的调度安排下开始查询 DPRAM 中的数据情况(即: 查询 DPRAM 中有没有数据要读取), 如果有数据要读取, 则根据查询的数据情况, 将读 取的数据采用直接拷贝的方式搬运到上行硬件 RAM中或采用启动 DMA的 方式, 将读取的数据搬运到上行硬件 RAM中。 LIS模块与 TX模块采用全 局变量标志 FLAG的方式来通知每个子帧是否有数据搬运到了上行硬件中 需要发送, 如果没有数据要发送, 则发送按 DTX方式来发送 SB数据。 搬 运数据的同时需要将数据头中的传输块大小 (TB Size )等参数和是否有数 据的标记一起存放在设备层数据库中,便于 TX模块查询使用该参数。具体 时序关系如图 4所示, 可见: 1 )在没有高速业务 HSUPA的情况下, 协议 栈在 ΤΉ边界的前 3个子帧的中断线(箭头指向上方的虚线箭头) 下发数 据, LIS模块会在 ΤΉ边界的前 2个子帧的中断线 (箭头指向上方的实线 箭头 )识别到 DPRAM中有上行数据, 然后由 LIS模块决定采用 DMA或 直接拷贝的方式将 DPRAM中的数据拷贝到 UTR硬件的 RAM中, RTX模 块会在 ΤΉ边界的前 1个子帧判断到有新数据要发送, 配置上行硬件做编 码等工作, 硬件会在 ΤΉ边界生效并发射; 2 )在有高速业务 HSUPA的情 况下,除了出现上述 1 )的情况外,还有可能在 ΤΉ边界的前 3帧中断线(箭 头指向上方的虚线箭头)协议栈下发数据, 同时在该子帧中断线 (箭头指 向下方的虚线箭头)处下发 UPA数据, 那么 LIS模块需要在 TS5的时刻点 将普通上行数据搬到 UTR硬件 RAM中, 同时将 UPA数据搬到高速上行传 输信道处理( EUTR )硬件 RAM中, 然后才能更新 DPRAM中的读数据位 置,这里有点不好的就是由于 DMA没有优先级,导致需要先搬普通上行数 据再搬 UPA数据,但考虑 UPA数据中普通上行数据量不大,故应该影响不 大; 3 )从上面 1 )和 2 ) 两点可以看出, LIS模块从 DPRAM中读普通数 据到 UTR硬件的地方可能有两处: ΤΉ边界前 2个子帧; ΤΉ边界前 3个 子帧的 TS5处(可能会有点风险, 但老数据已经在该子帧的 TS1就开始编 码了, 硬件会主动将老数据倒到内部 RAM中, 故 TS5的新普通业务数据 不会覆盖影响老数据, 并且考虑 UPA数据时普通上行数据量很少, 在 TS5 之前应该编码完成, 新数据对老数据也应该没有影响)。 The exchange between the physical layer and the protocol stack is performed by DPRAM. For read operations with only normal service data, it is mainly done by the LIS module. The implementation manner is as follows: The LIS module starts to query the data in the DPRAM under the scheduling of each sub-frame (ie: querying whether there is data to be read in the DPRAM), if there is data to be read, according to the data of the query, The read data is transferred to the upstream hardware RAM by direct copy or the read data is transferred to the uplink hardware RAM by means of starting DMA. The LIS module and the TX module use the global variable flag FLAG to notify whether each subframe has data to be sent to the uplink hardware and needs to be sent. If there is no data to be transmitted, the SB data is sent in the DTX mode. Move At the same time, the data needs to be stored in the device layer database together with the parameters such as the TB Size in the data header and the data tag, so that the TX module can query and use the parameter. The specific timing relationship is shown in Figure 4. It can be seen that: 1) In the absence of high-speed service HSUPA, the protocol stack sends data in the first three sub-frames of the ΤΉ boundary (arrows point to the upper dotted arrow), LIS module The upper 2 data of the first two sub-frames of the ΤΉ boundary (the arrow pointing to the upper solid arrow) identifies that there is uplink data in the DPRAM, and then the LIS module decides to copy the data in the DPRAM to the UTR by DMA or direct copy. In the hardware RAM, the RTX module will judge that there is new data to be sent in the first subframe of the ΤΉ boundary, configure the uplink hardware to do coding, etc., the hardware will take effect and transmit at the ΤΉ boundary; 2) In the case of high-speed service HSUPA In addition to the above case 1), it is also possible to send data in the first 3 frames of the ΤΉ boundary (the arrow pointing to the arrow above the arrow), and at the same time, the sub-frame breaks the line (the arrow points downwards) The UPA data is sent at the dotted arrow. The LIS module needs to move the normal uplink data to the UTR hardware RAM at the time of TS5, and move the UPA data to the high-speed uplink transmission channel. EUTR) hardware RAM, and then can update the read data position in the DPRAM, here is a bit bad because the DMA has no priority, so you need to move the normal uplink data and then move the UPA data, but consider the normal uplink data volume in the UPA data. Large, so it should not be affected; 3) From the above 1) and 2) It can be seen from the above two points that the LIS module can read ordinary data from the DPRAM to the UTR hardware in two places: 前 the first two sub-frames; TS5 of the first 3 subframes (may be a bit risky, but the old data has already been encoded in TS1 of the subframe, and the hardware will actively dump the old data into the internal RAM, so the new normal service data of TS5 will not be overwritten. Affect the old data, and when the UPA data is considered, the amount of normal uplink data is very small. It should be coded before TS5, and the new data should have no effect on the old data.)
由于物理层在信道接收发送过程中, 协议栈往往会出现参数变化而需 要物理层支持信道的重配、 切换等操作, 主要的信道有 DCH, 此时物理层 需要新老配置同时使用, 即要保存两套配置。 这就涉及到物理层设备层数 据库中乒乓 BUFFFER的使用。 Since the physical layer is in the channel receiving and transmitting process, the protocol stack often has parameter changes and needs to be reconfigured and switched by the physical layer. The main channel has DCH. At this time, the physical layer needs to be used simultaneously with the old and new configurations. Save two sets of configurations. This involves the number of layers in the physical layer. According to the use of the ping-pong BUFFFER in the library.
LIS模块在收到信道新建的情况下, 将信道配置参数写入设备层数据 库相应的空闲位置中, 并记录当前使用信道存放位置(也即是 A套配置还 是 B套配置)。  When the LIS module receives the channel new configuration, it writes the channel configuration parameters into the corresponding idle location of the device layer database, and records the current use channel storage location (that is, the A-set configuration or the B-set configuration).
LIS模块在收到信道重配、 切换的情况下, 将信道配置参数写入设备 层数据库相应的空闲位置中, 直到该套配置生效时更新记录当前使用信道 存放位置。  When receiving the channel reconfiguration and handover, the LIS module writes the channel configuration parameters into the corresponding idle locations of the device layer database, and updates and records the current used channel storage location until the set configuration takes effect.
从以上可以看出, LIS模块 /设备层数据库的参数配置的更新是实时生 效的。 LIS模块要保存两套信道配置指针和信道和记录当前使用信道存放 位置, 并注意 "记录当前使用信道存放位置" 的更新 (更新的时刻点是在 新参数配置生效的 ΤΉ边界前一个子帧)。  As can be seen from the above, the update of the parameter configuration of the LIS module/device layer database is real-time. The LIS module should save two sets of channel configuration pointers and channels and record the current use channel storage location, and pay attention to the "record the current use channel storage location" update (the updated time point is one subframe before the new parameter configuration is valid) .
实施例三: 阐述上行信道处理过程中上行信道的基带信号处理。  Embodiment 3: Describe the baseband signal processing of the uplink channel in the uplink channel processing.
对于上行链路, N_data可能的取值依赖于分配给各自码分组合传输信 道(CCTrCH )的物理信道数 Pmax, 也依赖于它们的特性, 如扩频因子, 中 间导频和传输格式组合指示 (TFCI ) 的长度, 传输功率控制 (TPC )和多 帧结构的使用。 上层会对每一个物理信道指示一个单独的最小扩频因子, 或者, 高层通知 UE可以自行决定改变上行扩频因子。 For the uplink, the possible value of N_data depends on the number of physical channels P max allocated to the respective code division combined transport channel (CCTrCH), and also depends on their characteristics, such as spreading factor, intermediate pilot and transport format combination indication. The length of (TFCI), Transmission Power Control (TPC) and the use of multi-frame structures. The upper layer indicates a single minimum spreading factor for each physical channel, or the upper layer informs the UE to change the uplink spreading factor at its discretion.
对于在一个无线帧或子帧, 当 TTI=5ms时, 无线帧或子帧内的每一个 传输信道(TrCHi ), 被重发或打孔的比特数定义为 ANy。 如果 ANy = 0, 则 速率匹配的输出数据与输入数据相同, 这时不需要执行协议中的速率匹配 算法。 否则, 按算法计算出速率匹配模式, 这一算法中需要参数 Eini、 Eplus、 壓和 Xi。 其中, Eini、 Eplus、 E^us可以统称为 E参数。 Eini为速率匹配算 法所使用变量 E的初始值; 为速率匹配算法所使用变量 E的增量; E^us为 速率匹配算法所使用变量 E的减量。 For a radio frame or subframe, when TTI = 5 ms, the number of bits retransmitted or punctured is defined as ANy for each transport channel (TrCHi) within a radio frame or sub-frame. If ANy = 0, the rate matched output data is the same as the input data, and there is no need to perform the rate matching algorithm in the protocol. Otherwise, the rate matching mode is calculated according to the algorithm. The parameters E ini , E plus , pressure and Xi are required in this algorithm. Among them, E ini , E plus and E^us can be collectively referred to as E parameters. E ini is the initial value of the variable E used by the rate matching algorithm; is the increment of the variable E used by the rate matching algorithm; E^us is the decrement of the variable E used by the rate matching algorithm.
( 1 ) Ni的计算: Ni表示在传输信道 i速率匹配之前一个无线帧的比特 数。 图 5为 Ni的具体计算流程, 包括以下步骤: (1) Calculation of Ni: Ni represents the bit of a radio frame before the transmission channel i rate matches Number. Figure 5 shows the specific calculation process of Ni, including the following steps:
步骤 101、 开始执行 for循环: for ( i = 0; i < MAXIMUM_UL_TRCH; i++ )。 这里, i为循环变量; MAXIMUM_UL_TRCH为最大上行传输信道个 数。  Step 101: Start executing the for loop: for ( i = 0; i < MAXIMUM_UL_TRCH; i++ ). Here, i is a loop variable; MAXIMUM_UL_TRCH is the maximum number of uplink transport channels.
步骤 102、判断 Trch[i]状态是否为激活,如果是, 则执行步驟 103; 否贝 'J, 执行步骤 104。 这里, Trch[i]为第 i个传输信道。  Step 102: Determine whether the Trch[i] state is active. If yes, execute step 103; otherwise, perform step 104. Here, Trch[i] is the i-th transport channel.
步骤 103、计算 Trch[i]包括 CRC校验位在内的比特数 n_bits, 然后按照编 码类型执行步驟 105、 步骤 111或步驟 115。  Step 103: Calculate Trch[i] the number of bits n_bits including the CRC check bit, and then perform step 105, step 111 or step 115 according to the coding type.
这里 , n_bits=Trch[i] .wTb_size+Trch[i] .wCrc— size;  Here, n_bits=Trch[i] .wTb_size+Trch[i] .wCrc_ size;
n— bits=n_bits* ( Trch[i].wTb_num ) ;  N-bits=n_bits* ( Trch[i].wTb_num );
wTb_size为传输块大小; wCrc_size为校验和大小; wTb_num为传输块 个数。  wTb_size is the transport block size; wCrc_size is the checksum size; wTb_num is the number of transport blocks.
步驟 104、 Trch[i]的 Ni=0, 返回步驟 101的 for循环直到循环结束。  Step 104: Ni=0 of Trch[i] returns to the for loop of step 101 until the end of the loop.
步驟 105、 编码类型为卷积编码。  Step 105: The coding type is convolutional coding.
步骤 106、 传输块级联与分段最大码块长度 Z=504。  Step 106: The transport block cascading and the segment maximum code block length Z=504.
步骤 107、 得到码块数 n_code_block和每个码块的 比特数 code— block—size。  Step 107: Obtain the number of code blocks n_code_block and the number of bits of each code block code_block_size.
步驟 108、 判断是否为 1/2卷积编码, 如果是, 则执行步驟 110; 否则, 执行步驟 109。  Step 108: Determine whether it is 1/2 convolutional coding. If yes, go to step 110; otherwise, go to step 109.
步骤 109、 信道编码 n— bits = (code—block— size * 3 + 24) * n_code— block, 然后执行步骤 117。  Step 109: Channel coding n-bits = (code_block_size * 3 + 24) * n_code_block, and then step 117 is performed.
步骤 110、 信道编码 n— bits = (code—block—size * 2 + 16) * n_code_block, 然后执行步驟 117。  Step 110: Channel coding n-bits = (code_block_size * 2 + 16) * n_code_block, and then step 117 is performed.
步驟 111、 编码类型为 Turbo编码。  Step 111: The coding type is Turbo coding.
步骤 112、 传输块级联与分段最大码块长度 Z=5 U4。 步驟 113、 得到码块数 n_code_block和每个码块的 比特数 code—block—size。 Step 112: The transport block cascading and the segment maximum code block length Z=5 U4. Step 113: Obtain a code block number n_code_block and a bit number code_block_size of each code block.
步驟 114、 信道编码 n_bits = (code—block—size * 3 + 12) * n_code_block, 然后执行步驟 117。  Step 114: Channel coding n_bits = (code_block_size * 3 + 12) * n_code_block, and then step 117 is performed.
步驟 115、 不编码。  Step 115, no coding.
步骤 116、 n_code_block= 1 code_block_size=n_bits。  Step 116, n_code_block= 1 code_block_size=n_bits.
步驟 117、 无线帧长度均衡 Ni=n_bits/TTI。  Step 117: Radio frame length equalization Ni=n_bits/TTI.
步驟 118、 得到 Trch[i]的 Ni值, 返回步驟 101的 for循环直到循环结束。 ( 2 ) N_data的计算: 计算一个 CCTrCH帧中的数据比特数 N_data。 计算原理有如下内容:  Step 118: Obtain the Ni value of Trch[i], and return to the for loop of step 101 until the end of the loop. (2) Calculation of N_data: Calculate the number of data bits N_data in one CCTrCH frame. The calculation principle has the following contents:
、 ^ tempi = PL * ^ (RMX * NX) , ^ tempi = PL * ^ (RM X * N X )
一、 计真 *=! .  First, the calculation is true *=!
tempi、 temp2都指代中间变量; PL为打孔参数; RM为传输信道 i的半 静态速率匹配特性。  Both tempi and temp2 refer to intermediate variables; PL is the puncturing parameter; RM is the semi-static rate matching characteristic of transport channel i.
二、 计算 mp^ ^mpl / miniR , 如果高层对每一个物理信道指定一 个单独的最小扩频因子 Spmin, N_data值从以下升序排列的序列中选取: 1 ,U、 + f o ,U、 + f o + ... + f/ p ( cp ) [  Second, calculate mp^^mpl / miniR. If the upper layer assigns a separate minimum spreading factor Spmin to each physical channel, the N_data value is selected from the following ascending order: 1 , U, + fo , U, + fo + ... + f/ p ( cp ) [
如果高层通知 UE可以自行决定改变上行扩频因子, 则 N_data值从以 下升序排列的序列中选取: 这里, U为每个物理信道的数据比特变量; U的第一个下标 Pmax为物 理信道序列号, 上行 Pmax 至多是 2; U的第二个下标 (SPmax)min为扩频因 子号。  If the upper layer informs the UE that the uplink spreading factor can be changed at its own discretion, the N_data value is selected from the following sequence of ascending order: where U is the data bit variable of each physical channel; the first subscript Pmax of U is the physical channel sequence. No., the uplink Pmax is at most 2; the second subscript (SPmax) min of U is the spreading factor number.
选择方法: 从序列的左边开始, 选取第一个大于或等于 temp2的值做 为 N_data的取值。  Selection method: Starting from the left side of the sequence, select the first value greater than or equal to temp2 as the value of N_data.
三、 根据上述第二步的内容, 修改物理信道的个数以及每个物理信道 的数据长度, 计算 3. Modify the number of physical channels and each physical channel according to the content of the second step above. Data length, calculation
图 6为 N一 data的具体计算流程, 包括以下步驟:  Figure 6 shows the specific calculation process of N-data, including the following steps:
步骤 201、 初始化。  Step 201, initialization.
步驟 202、 计算 total_RMN=∑RM[i]*N[i]以及 RMN[i]=RM[i]*N[i]。 步驟 203、 RMmin = min(RM[i])。  Step 202: Calculate total_RMN=∑RM[i]*N[i] and RMN[i]=RM[i]*N[i]. Step 203, RMmin = min(RM[i]).
步驟 204、计算初始的 N_data;先计算 temp2 = [PL*total_RMN/RMmin]„ 步驟 205、判断 UE是否自行改变射频( SF ),如果是,则执行步驟 214; 否则, 执行步骤 206。  Step 204: Calculate the initial N_data; first calculate temp2 = [PL*total_RMN/RMmin] Step 205, determine whether the UE changes the radio frequency (SF) by itself, and if yes, execute step 214; otherwise, execute step 206.
步驟 206、 for (t=0; t< wUl_ts_num;t++)。 这里, wUl_ts_num为上行时 隙个数。  Step 206, for (t=0; t< wUl_ts_num; t++). Here, wUl_ts_num is the number of upstream slots.
步驟 207、 for (i=0; i< RU_Max;i++)。 这里, RU 为码道; RU_Max为 码道的最大值。  Step 207, for (i=0; i< RU_Max; i++). Here, RU is the code channel; RU_Max is the maximum value of the code channel.
步骤 208、 计算每个 RU的非 DATA比特 ControlBitNum[i]=(TFCI编码 字 + TPC—SS比特)。  Step 208: Calculate a non-DATA bit of each RU ControlBitNum[i]=(TFCI codeword + TPC_SS bit).
步驟 209、 按 Spmin计算无线帧的每个 RU的有效比特数 RUBitNum, Step 209: Press Spmin to calculate the effective number of bits RUBitNum of each RU of the radio frame,
5msRACH比特数减半。 The number of 5ms RACH bits is halved.
步骤 210、 计算每个 RU 数据比特 RUBitNum=RUBitNum - ControlBitNum[i]。  Step 210: Calculate each RU data bit RUBitNum=RUBitNum - ControlBitNum[i].
步驟 211、 累加 N_data= N_data+ RUBitNum。 这里, RUBitNum为码 道比特个数。  Step 211: Accumulate N_data= N_data+ RUBitNum. Here, RUBitNum is the number of code bits.
步驟 212、 判断是否N_data〉=temp2, 如果是, 则执行步骤 213; 否贝l , 执行步驟 206。  Step 212: Determine whether N_data>=temp2, if yes, execute step 213; otherwise, execute step 206.
步骤 213、 输出 N— data, 结束当前流程。  Step 213: Output N_data, and end the current process.
步驟 214、 for (t=0; t< wUl_ts_num;t++)。  Step 214, for (t=0; t< wUl_ts_num; t++).
步驟 215、 for (i=0; i< RU— Max;i++)。 步驟 216、 for(sf=16;sf〉=l;sf=sf/2)。 这里, sf为扩频因子。 Step 215, for (i=0; i<RU-Max; i++). Step 216, for(sf=16; sf>=l; sf=sf/2). Here, sf is a spreading factor.
步驟 217、 计算每个 RU的非 DATA比特 ControlBitNum[i]=(TFCI编码 字 + TPC—SS比特)。  Step 217: Calculate a non-DATA bit of each RU ControlBitNum[i]=(TFCI code word + TPC_SS bit).
步驟 218、 每个 RU都从 SF=16开始, 计算有效比特数 RUBitNum, 5msRACH比特数减半。  Step 218: Each RU starts from SF=16, and calculates the effective number of bits RUBitNum, and the number of 5ms RACH bits is halved.
步驟 219、 SF_Select [i] »=1; RUBitNum «=1。  Step 219, SF_Select [i] »=1; RUBitNum «=1.
步驟 220、 计算每个 RU 数据比特 RUBitNum=RUBitNum - ControlBitNum[i]。  Step 220: Calculate each RU data bit RUBitNum=RUBitNum - ControlBitNum[i].
步驟 221、 N_data += RUBitNum。  Step 221, N_data += RUBitNum.
步驟 222、 判断是否 N_data〉=temp2或者到高层配置的 sf, 如果是, 则执行步驟 223; 否则, 执行步驟 214。  Step 222: Determine whether N_data>=temp2 or sf to the upper layer configuration. If yes, go to step 223; otherwise, go to step 214.
步驟 223、 输出 N_data。  Step 223: Output N_data.
( 3 ) Delta_N的计算原理包括有以下内容:  (3) The calculation principle of Delta_N includes the following contents:
根据实际能发送的数据 bit数目 N_data, 和每个 TrCH的 RM参数, 给 每个 TrCH按比例的分配能发送的 data bit数目, 并且得到打孔或重复的比 特数目 Ddta_N。  According to the actual number of data bits N_data that can be transmitted, and the RM parameter of each TrCH, the number of data bits that can be transmitted is proportionally allocated to each TrCH, and the number of bits punched or repeated Ddta_N is obtained.
具体比例分配的计算公式如下:  The formula for calculating the specific proportion is as follows:
Zn ,. = 0. Z n ,. = 0.
Figure imgf000017_0001
Figure imgf000017_0001
^ =^-Z^-N for alH = i ... I; 这里, 上述公式中, NtJ表示在传输信道 i速率匹配之前一个无线帧的 比特数; ^ =^-Z^-N for alH = i ... I; Here, in the above formula, N tJ represents the number of bits of one radio frame before the transmission channel i rate matches;
AN .如果为正, 则代表传输信道 i中每一个无线帧重复的比特数; 如果 为负, 则代表传输信道 i中每一个无线帧打孔的比特数; AN. If positive, represents the number of bits per radio frame repetition in transport channel i; Negative, representing the number of bits perforated in each radio frame in transport channel i;
RM;表示传输信道 i的半静态速率匹配特性, 该值由高层信令设定; 表示一个无线帧中一条 CCTrCH信道可用的比特总数; I表示组成一条 CCTrCH中的传输信道数; RM ; represents a semi-static rate matching characteristic of the transmission channel i, which is set by higher layer signaling; represents the total number of bits available for one CCTrCH channel in one radio frame; I represents the number of transmission channels constituting one CCTrCH;
为用于计算的中间变量;  Is an intermediate variable used for calculations;
图 7为 Ddta_N的具体计算流程, 包括以下步驟:  Figure 7 shows the specific calculation process of Ddta_N, including the following steps:
步驟 301、 for (i=l ;i< TransNum-1 ;i++)。  Step 301, for (i=l; i< TransNum-1; i++).
步驟 302、 Z[i] = (RMN[i]*N_data) I Total_RMN; Z[0] = Z[l]。  Step 302, Z[i] = (RMN[i]*N_data) I Total_RMN; Z[0] = Z[l].
步驟 303、 判断 for循环是否结束, 如果是, 则执行步驟 304; 否则, 执行步驟 301。  Step 303: Determine whether the for loop ends. If yes, execute step 304; otherwise, perform step 301.
步驟 304、 判断是否 Total_RMN!=0, 如果是, 则执行步驟 305; 否贝' J , 执行步驟 307。 这里, "! =" 表示不等于。  Step 304: Determine whether Total_RMN! = 0. If yes, execute step 305; otherwise, go to step J, and go to step 307. Here, "! =" means not equal.
步驟 305、 计算 Ddta_N[i] = Z[i]-Z[i-l]-N[i] ; Ddta_N[0] = Z[0]-N[0]。 步驟 306、检查所有信道上的 N[i]+Ddta_N[i]是否等于 N_data,如果是, 则返回 for循环; 否则, 执行步驟 311。  Step 305: Calculate Ddta_N[i] = Z[i]-Z[i-l]-N[i]; Ddta_N[0] = Z[0]-N[0]. Step 306: Check whether N[i]+Ddta_N[i] on all channels is equal to N_data, and if yes, return a for loop; otherwise, go to step 311.
步驟 307、 判断是否所有传输信道上的 N[i]累加和为 0; 如果是, 则执 行步驟 308; 否则, 执行步驟 310。  Step 307: Determine whether the N[i] cumulative sum on all transport channels is 0; if yes, go to step 308; otherwise, go to step 310.
步驟 308、 Ddta_N[i] = 0。  Step 308, Ddta_N[i] = 0.
步驟 309、返回 UTR_IND_NO_DATA_TO_TRANSMIT,表示没有数据 需要传输, 结束当前流程。  Step 309: Return UTR_IND_NO_DATA_TO_TRANSMIT, indicating that there is no data to be transmitted, and the current process is ended.
步驟 310、 返回 UTR_ERROR_DELTA_N_IMPOSSIBLE, 表示错误的 Delta_N的值, 结束当前流程。  Step 310: Return UTR_ERROR_DELTA_N_IMPOSSIBLE, indicating the value of the wrong Delta_N, and ending the current process.
步驟 311、 返回 UTR_ERROR_RM_INIT_INCORRECT, 表示速率匹配 初始化错误。  Step 311: Return UTR_ERROR_RM_INIT_INCORRECT, indicating a rate matching initialization error.
( 4 ) 图 8为速率匹配算法的选择, 具体选择过程包括以下步驟: 步骤 401、 判断是否 ΔΛ^.=0; 如果是, 则执行步骤 402; 否则, 执行步 骤 403。 (4) Figure 8 shows the selection of the rate matching algorithm. The specific selection process includes the following steps: Step 401: Determine whether ΔΛ^.=0; if yes, execute step 402; otherwise, perform step 403.
步驟 402、 采用无速率匹配算法, 结束当前流程。  Step 402: Adopt a rateless matching algorithm to end the current process.
步驟 403、 判断是否 ANw > 0; 如果是, 则执行步骤 407; 否则, 执行 步骤 404。 Step 403: Determine whether AN w >0; if yes, execute step 407; otherwise, perform step 404.
步驟 404、判断是否编码类型为 Turbo编码, 如果是, 则执行步驟 405; 否则, 执行步驟 406。  Step 404: Determine whether the coding type is Turbo coding, and if yes, perform step 405; otherwise, perform step 406.
步驟 405、 根据 Fi和状态机中参数子帧个数( frame— number )来选择 Turbo打孔算法, 结束当前流程。 这里, Fi为传输时间间隔的倍数。  Step 405: Select a Turbo puncturing algorithm according to the number of parameter sub-frames (frame_number) in the Fi and the state machine, and end the current process. Here, Fi is a multiple of the transmission time interval.
步驟 406、 采用卷积删减打孔算法, 结束当前流程。  Step 406: Using a convolution reduction punching algorithm to end the current process.
步驟 407、 采用重复比特算法。  Step 407: Adopt a repetition bit algorithm.
以下图 9和图 10分别为不同编码类型下 E参数的计算流程, 即: 图 9 为选择步骤 405所示的打孔算法对应执行的 E参数计算的具体实现过程; 图 10为选择步骤 406所示的打孔算法对应执行的 E参数计算的具体实现过 程。  FIG. 9 and FIG. 10 respectively show the calculation process of the E parameter under different coding types, that is, FIG. 9 is a specific implementation process of the E parameter calculation performed by the selection of the puncturing algorithm shown in step 405; FIG. 10 is a selection step 406. The illustrated puncturing algorithm corresponds to the specific implementation process of the E parameter calculation performed.
5 )如图 9所示, 采用 Turbo打孔算法计算 E参数的过程包括以下步骤: 步骤 501、 判断是否 Ddta_N=0, 如果是, 则返回; 否则,执行步骤 502。 步驟 502、 Xi=Ni/3。  5) As shown in FIG. 9, the process of calculating the E parameter by using the Turbo puncturing algorithm includes the following steps: Step 501: Determine whether Ddta_N=0, and if yes, return; otherwise, execute step 502. Step 502, Xi=Ni/3.
步驟 503、 第 1校验比特, b=2,a=2。  Step 503, the first parity bit, b=2, a=2.
步驟 504、 BitSubNum = Ddta_N〉〉l。 "BitSubNum=Ddta_N〉〉l,, 表示 Delta— N右移一位。  Step 504, BitSubNum = Ddta_N>>l. "BitSubNum=Ddta_N>>l,, means that Delta-N is shifted to the right by one.
步驟 505、 计算 q = Xi/ ( -BitSubNum )。  Step 505, calculate q = Xi / (-BitSubNum).
步驟 506、 判断是否 <=2, 如果是, 则执行步驟 507; 否则, 执行步骤 509。  Step 506: Determine whether <=2, if yes, execute step 507; otherwise, execute step 509.
步驟 507、 for (i=0;i<TTI;i++)。 步驟 508、 S[(3*i+1)%TTI] = i%2, 然后执行步骤 507及步驟 514Step 507, for (i=0; i<TTI; i++). Step 508, S[(3*i+1)%TTI] = i%2, and then perform step 50 7 and step 51 4 .
步骤 509、 判断是否 (q&l)=0, 如果是, 则执行步骤 510; 否则, 执行步 驟 517。  Step 509: Determine whether (q&l) = 0. If yes, execute step 510; otherwise, execute step 517.
步骤 510、 使用辗转相除求最大公约数 gcd(q,TTI)。  Step 510: Use the twisted phase division to find the greatest common divisor gcd(q, TTI).
步骤 511、 qnew = q- gcd/TTI。  Step 511, qnew = q-gcd/TTI.
步骤 512、 for (i=0;i<TTI;i++)。  Step 512, for (i=0; i<TTI; i++).
步驟 513、 S[((i*qnew)%TTI+l)%TTI] = (i*qnew)/TTI, 然后执行步驟 512 及步骤 514。  Step 513, S[((**qnew)%TTI+l)%TTI] = (i*qnew)/TTI, and then step 512 and step 514 are performed.
步骤 514、 得到 E参数为:  Step 514: Obtain an E parameter as:
Eplus_l = 2*Xi;  Eplus_l = 2*Xi;
Eminus— 1 = 2*abs(BitSubNum);  Eminus— 1 = 2*abs(BitSubNum);
Eini— 1 = (2*S[PlFi]* abs(BitSubNum) +Xi)% (2*Xi)。  Eini— 1 = (2*S[PlFi]* abs(BitSubNum) +Xi)% (2*Xi).
步骤 515、 判断是否 Eini_l =0, 如果是, 执行步骤 516; 否则, 返回。 步骤 516、 Eini_l = 2*Xi, 然后返回。  Step 515: Determine whether Eini_l =0, if yes, go to step 516; otherwise, return. Step 516, Eini_l = 2*Xi, and then return.
步骤 517、 qnew = q, 然后执行步骤 512。  Step 517, qnew = q, and then step 512 is performed.
步骤 518、 第 2校验比特, b=3,a=l。  Step 518, the second parity bit, b=3, a=l.
步骤 519、 BitSubNum = (Delta_N+l)»l。  Step 519, BitSubNum = (Delta_N+l)»l.
步骤 520、 判断是否 BitSubNum =0, 如果是, 则返回; 否则, 执行步骤 521。  Step 520: Determine whether BitSubNum =0, and if yes, return; otherwise, go to step 521.
步驟 521、 计算 q = Xi/ ( -BitSubNum )。  Step 521, calculate q = Xi / (-BitSubNum).
步骤 522、 判断是否9<=2, 如果是, 则执行步骤 523; 否则, 执行步骤 525。  Step 522: Determine whether 9<=2, if yes, execute step 523; otherwise, go to step 525.
步骤 523、 for (i=0;i<TTI;i++)。  Step 523, for (i=0; i<TTI; i++).
步骤 524、 S[(3*i+2)%TTI] = i%2, 然后执行步骤 及步骤 530。  Step 524, S[(3*i+2)%TTI] = i%2, and then step and step 530 are performed.
步骤 525、 判断是否 (q&l)=0, 如果是, 则执行步骤 526; 否则, 执行步 驟 533。 Step 525, determining whether (q&l)=0, if yes, executing step 526; otherwise, performing step Step 533.
步骤 526、 使用辗转相除求最大公约数 gcd(q,TTI)。  Step 526, using the twisting phase division to find the greatest common divisor gcd(q, TTI).
步骤 527、 qnew = q- gcd/TTI。  Step 527, qnew = q-gcd/TTI.
步骤 528、 for (i=0;i<TTI;i++)。  Step 528, for (i=0; i<TTI; i++).
步骤 529、 S[((i*qnew)%TTI+2)%TTI] = (i*qnew)/TTI, 然后执行步驟 528 及步骤 530。  Step 529, S[((**qnew)%TTI+2)%TTI] = (i*qnew)/TTI, and then step 528 and step 530 are performed.
步骤 530、 得到 E参数为:  Step 530: Obtain an E parameter as:
Eplus_2 = Xi;  Eplus_2 = Xi;
Eminus_2 = abs(BitSubNum);  Eminus_2 = abs(BitSubNum);
Eini— 2 = (S[PlFi]* abs(BitSubNum) +Xi)% Xi。  Eini— 2 = (S[PlFi]* abs(BitSubNum) +Xi)% Xi.
步骤 531、 判断是否 Eini_2 =0, 如果是, 则执行步骤 532; 否则, 返回。 步驟 532、 Eini_2 = Xi。  Step 531: Determine whether Eini_2 =0. If yes, go to step 532; otherwise, return. Step 532, Eini_2 = Xi.
步骤 533、 qnew = q, 然后执行步骤 528。  Step 533, qnew = q, and then go to step 528.
如图 10所示,采用卷积删减打孔算法计算 E参数的过程包括以下步驟: 步骤 601、 判断是否 Ddta_N=0, 如果是, 则返回, 否则,执行步骤 60 步骤 602、 Xi=Ni,a=2, BitSubNum=Ddta_N。  As shown in FIG. 10, the process of calculating the E parameter by using the convolution reduction puncturing algorithm includes the following steps: Step 601: Determine whether Ddta_N=0, if yes, return, otherwise, perform step 60, step 602, Xi=Ni, a=2, BitSubNum=Ddta_N.
步骤 603、 计算 R = Delta_N mod Ni。  Step 603: Calculate R = Delta_N mod Ni.
步骤 604、 判断是否 R≠0 and R<=Ni/2, 如果是, 则执行步驟 605; 否 则, 执行步驟 606。  Step 604: Determine whether R≠0 and R<=Ni/2, if yes, execute step 605; otherwise, execute step 606.
步骤 605、 计算 q = Ni/R, 然后执行步骤 607。  Step 605: Calculate q = Ni/R, and then perform step 607.
步骤 606、 计算 q = Ni/(R-Ni)。  Step 606, calculating q = Ni / (R - Ni).
步骤 607、 判断是否 (q&l)=0, 如果是, 则执行步骤 608; 否则, 执行步 驟 609。  Step 607: Determine whether (q&l) = 0. If yes, execute step 608; otherwise, execute step 609.
步骤 608、 使用辗转相除求最大公约数 gcd(lql,TTI)。  Step 608: Use the 辗 phase division to find the greatest common divisor gcd(lql, TTI).
步骤 609、 qnew = q, 然后执行步驟 611。 步驟 610、 qnew = q+ gcd/TTI。 Step 609, qnew = q, and then step 611 is performed. Step 610, qnew = q+ gcd/TTI.
步驟 611、 for (i=0;i<TTI;i++)。  Step 611, for (i=0; i<TTI; i++).
步驟 612、 S[(li*qnewl%TTI)%TTI] = li*qnewl/TTI, 然后执行步驟 611及 步驟 613。  Step 612, S[(li*qnewl%TTI)%TTI] = li*qnewl/TTI, and then step 611 and step 613 are performed.
步驟 613、 得到 E参数为:  Step 613, obtaining the E parameter is:
Eplus= 2*Xi;  Eplus= 2*Xi;
Eminus= 2*abs(BitSubNum);  Eminus= 2*abs(BitSubNum);
Eini = (2*S[PlFi]* abs(BitSubNum) +1)% (2*Xi)。  Eini = (2*S[PlFi]* abs(BitSubNum) +1)% (2*Xi).
一种基于分层结构的上行链路控制系统, 该系统包括: 上行链路控制 单元, 用于在针对物理层基带处理的上行链路控制中, 基于分层结构执行 随机接入过程的资源调度、 DPRAM 数据空间操作和上行信道基带信号处 理; 所述分层结构包括: 组织和管理物理层内部所有任务调度和协调的调 度层、 根据调度层配置的资源执行对应任务的设备管理层、 以及根据从设 备管理层获取的数据执行基带信号处理的驱动层。  An uplink control system based on a hierarchical structure, the system comprising: an uplink control unit, configured to perform resource scheduling of a random access procedure based on a hierarchical structure in uplink control for physical layer baseband processing The DPRAM data space operation and the uplink channel baseband signal processing; the hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs corresponding tasks according to resources configured by the scheduling layer, and The data acquired from the device management layer performs the driving layer of the baseband signal processing.
这里, 上行链路控制单元进一步用于在基于所述分层结构执行所述随 机接入过程资源调度的情况下, 通过所述调度层实现资源申请和调度, 每 次发起新的随机接入过程都需计算包括 UP发送时隙、 FPACH接收时隙和 PRACH发送时隙在内的资源。  Here, the uplink control unit is further configured to: when the random access procedure resource scheduling is performed based on the hierarchical structure, implement resource application and scheduling by using the scheduling layer, and initiate a new random access procedure each time. All resources including the UP transmission slot, the FPACH reception slot, and the PRACH transmission slot are calculated.
这里, 上行链路控制单元进一步用于在基于所述分层结构执行所述 DPRAM 数据空间操作的情况下, 设备管理层获取所述调度层配置的资源 后, 根据调度层配置的资源, 执行 DPRAM数据空间操作, 对于只有普通 业务数据的读操作, 在调度层的模块控制下, 在每个子帧调度查询当前 DPRAM中的数据情况,如果有数据要读取, 则根据查询到的数据情况选择 将读取的数据采用直接拷贝的方式搬运到上行硬件随机存储器中、 或选择 将读取的数据采用启动 DMA的方式搬运到上行硬件随机存储器中。 这里, 上行链路控制单元进一步用于基于所述分层结构执行所述上行 信道基带信号处理的情况下, 根据从设备管理层获取的数据执行基带信号 处理时, 由输入的 Ni得到输出的 N_data, 由输入的 N_data得到输出的 Delta_N, 由输入的 Delta_N执行选择的速率匹配, 最终获得用于基带信号 发射的 E参数; 其中, Ni为在传输信道 i速率匹配之前一个无线帧的比特 数; N_data为一个码分组合传输信道( CCTrCH )帧中的数据比特数; Delta_N 为打孔或重复的比特数。 Here, the uplink control unit is further configured to: after the device management layer acquires the resource of the scheduling layer configuration, perform the DPRAM according to the resource configured by the scheduling layer, where the DPRAM data space operation is performed based on the hierarchical structure. Data space operation, for a read operation with only normal service data, under the control of the module of the scheduling layer, the data in the current DPRAM is scheduled and scheduled in each sub-frame. If there is data to be read, the data will be selected according to the queryed data. The read data is directly transferred to the uplink hardware random access memory, or the read data is transferred to the uplink hardware random access memory by using the startup DMA. Here, the uplink control unit is further configured to: when performing the uplink channel baseband signal processing based on the hierarchical structure, obtain N_data outputted from the input Ni when performing baseband signal processing according to data acquired from the device management layer. Delta_N obtained by the input N_data, performing selected rate matching by the input Delta_N, and finally obtaining an E parameter for baseband signal transmission; wherein, Ni is the number of bits of a radio frame before the transmission channel i rate matching; N_data The number of data bits in a code division combined transport channel (CCTrCH) frame; Delta_N is the number of bits that are punctured or repeated.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种基于分层结构的上行链路控制方法, 其特征在于, 包括: 在针对物理层基带处理的上行链路控制中, 基于分层结构执行随机接 入过程的资源调度、 双端口随机存储器(DPRAM )数据空间操作和上行信 道基带信号处理;  A hierarchical structure-based uplink control method, comprising: performing resource scheduling and two-port randomization of a random access procedure based on a hierarchical structure in uplink control for physical layer baseband processing; Memory (DPRAM) data space operation and uplink channel baseband signal processing;
其中, 所述分层结构包括: 组织和管理物理层内部所有任务调度和协 调的调度层、 根据调度层配置的资源执行对应任务的设备管理层、 以及根 据从设备管理层获取的数据执行基带信号处理的驱动层。  The hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, a device management layer that performs corresponding tasks according to resources configured by the scheduling layer, and performs baseband signals according to data acquired from the device management layer. The driver layer being processed.
2、 根据权利要求 1所述的方法, 其特征在于, 基于所述分层结构执行 的所述随机接入过程资源调度具体包括: 通过所述调度层实现资源申请和 调度, 每次发起新的随机接入过程都需计算包括上行(UP )发送时隙、 快 速接入指示信道(FPACH )接收时隙和物理随机接入信道(PRACH )发送 时隙在内的资源。  The method according to claim 1, wherein the scheduling of the random access procedure resource based on the hierarchical structure specifically includes: implementing resource application and scheduling by using the scheduling layer, each time starting a new The random access procedure needs to calculate resources including an uplink (UP) transmission slot, a fast access indication channel (FPACH) reception slot, and a physical random access channel (PRACH) transmission slot.
3、 根据权利要求 2所述的方法, 其特征在于, 该方法还包括: UP发 送时隙、 FPACH接收时隙和 PRACH发送时隙由调度层的模块进行调度后 配置给设备管理层的模块。  The method according to claim 2, further comprising: a module that allocates a UP transmission time slot, a FPACH reception time slot, and a PRACH transmission time slot to the device management layer after being scheduled by a module of the scheduling layer.
4、 根据权利要求 1所述的方法, 其特征在于, 基于所述分层结构执行 的所述 DPRAM数据空间操作具体包括: 设备管理层获取所述调度层配置 的资源后, 根据调度层配置的资源, 执行 DPRAM数据空间操作, 对于只 有普通业务数据的读操作, 在调度层的模块控制下, 在每个子帧调度查询 当前 DPRAM 中的数据情况, 如果有数据要读取, 则根据查询到的数据情 况选择将读取的数据采用直接拷贝的方式搬运到上行硬件随机存储器中、 或选择将读取的数据采用启动动态内存存取 ( DMA ) 的方式搬运到上行硬 件随机存储器中。  The method according to claim 1, wherein the operation of the DPRAM data space based on the hierarchical structure specifically includes: after the device management layer acquires the resource configured by the scheduling layer, configured according to the scheduling layer Resources, perform DPRAM data space operations, for read operations with only normal service data, under the control of the module of the scheduling layer, query the data in the current DPRAM in each sub-frame, if there is data to be read, according to the query The data case is selected to be directly copied to the upstream hardware random access memory, or the read data is transferred to the uplink hardware random access memory by using a dynamic memory access (DMA).
5、 根据权利要求 4所述的方法, 其特征在于, 该方法还包括: 调度层 的模块与设备管理层的模块协同工作时, 采用全局变量标志的方式通知每 个子帧是否有数据搬运到上行硬件随机存储器中需要发送; 5. The method according to claim 4, wherein the method further comprises: a scheduling layer When the module cooperates with the module of the device management layer, the global variable flag is used to notify each subframe whether data is transferred to the uplink hardware random access memory and needs to be sent;
如果没有数据要发送,则采用不连续发送( DTX )方式发送资源块( SB ) 数据。  If there is no data to send, the resource block (SB) data is transmitted using discontinuous transmission (DTX).
6、 根据权利要求 1所述的方法, 其特征在于, 基于所述分层结构执行 的所述上行信道基带信号处理具体包括: 根据从设备管理层获取的数据执 行基带信号处理时, 由输入的 Ni得到输出的 N_data, 由输入的 N_data得 到输出的 Ddta_N, 由输入的 Ddta_N执行选择的速率匹配, 最终获得用于 基带信号发射的 E参数; 其中, Ni为在传输信道 i速率匹配之前一个无线 帧的比特数; N_data为一个码分组合传输信道(CCTrCH )帧中的数据比特 数; Ddta_N为打孔或重复的比特数。  The method according to claim 1, wherein the processing of the uplink channel baseband signal performed based on the hierarchical structure specifically comprises: when performing baseband signal processing according to data acquired from a device management layer, Ni obtains the output N_data, the Ddta_N obtained by the input N_data, performs the selected rate matching by the input Ddta_N, and finally obtains the E parameter for the baseband signal transmission; wherein, Ni is a radio frame before the transmission channel i rate matching The number of bits; N_data is the number of data bits in a code division combined transport channel (CCTrCH) frame; Ddta_N is the number of bits punched or repeated.
7、 一种基于分层结构的上行链路控制系统, 其特征在于, 包括: 上行 链路控制单元, 用于在针对物理层基带处理的上行链路控制中, 基于分层 结构执行随机接入过程的资源调度、 DPRAM数据空间操作和上行信道基带 信号处理; 所述分层结构包括: 组织和管理物理层内部所有任务调度和协 调的调度层、 根据调度层配置的资源执行对应任务的设备管理层、 以及根 据从设备管理层获取的数据执行基带信号处理的驱动层。  A hierarchical structure-based uplink control system, comprising: an uplink control unit, configured to perform random access based on a hierarchical structure in uplink control for physical layer baseband processing Process resource scheduling, DPRAM data space operation, and uplink channel baseband signal processing; the hierarchical structure includes: a scheduling layer that organizes and manages all task scheduling and coordination within the physical layer, and performs device management of corresponding tasks according to resources configured by the scheduling layer A layer, and a driver layer that performs baseband signal processing based on data acquired from the device management layer.
8、根据权利要求 7所述的系统,其特征在于, 所述上行链路控制单元, 进一步用于: 在基于所述分层结构执行所述随机接入过程资源调度的情况 下, 通过所述调度层实现资源申请和调度, 每次发起新的随机接入过程都 需计算包括 UP发送时隙、 FPACH接收时隙和 PRACH发送时隙在内的资 源。  The system according to claim 7, wherein the uplink control unit is further configured to: when performing the random access procedure resource scheduling based on the hierarchical structure, by using the The scheduling layer implements resource application and scheduling, and each time a new random access procedure is initiated, resources including an UP transmission slot, a FPACH reception slot, and a PRACH transmission slot are calculated.
9、根据权利要求 7所述的系统, 其特征在于, 所述上行链路控制单元, 进一步用于: 在基于所述分层结构执行所述 DPRAM数据空间操作的情况 下, 设备管理层获取所述调度层配置的资源后, 根据调度层配置的资源, 执行 DPRAM数据空间操作, 对于只有普通业务数据的读操作, 在调度层 的模块控制下, 在每个子帧调度查询当前 DPRAM 中的数据情况, 如果有 数据要读取, 则根据查询到的数据情况选择将读取的数据采用直接拷贝的 方式搬运到上行硬件随机存储器中、或选择将读取的数据采用启动 DMA的 方式搬运到上行硬件随机存储器中。 The system according to claim 7, wherein the uplink control unit is further configured to: in a case where the DPRAM data space operation is performed based on the hierarchical structure, the device management layer acquires After the resources configured by the scheduling layer are described, according to the resources configured by the scheduling layer, Perform DPRAM data space operation. For read operations with only normal service data, under the control of the module of the scheduling layer, query the data in the current DPRAM in each sub-frame. If there is data to be read, according to the data of the query. The data to be read is directly transferred to the uplink hardware random access memory, or the read data is transferred to the uplink hardware random access memory by using the startup DMA.
10、 根据权利要求 7所述的系统, 其特征在于, 所述上行链路控制单 元, 进一步用于: 基于所述分层结构执行所述上行信道基带信号处理的情 况下, 根据从设备管理层获取的数据执行基带信号处理时, 由输入的 Ni得 到输出的N_data, 由输入的 N_data得到输出的 Delta_N, 由输入的 Delta_N 执行选择的速率匹配, 最终获得用于基带信号发射的 E参数; 其中, Ni为 在传输信道 i速率匹配之前一个无线帧的比特数; N_data为一个码分组合 传输信道( CCTrCH )帧中的数据比特数; Delta_N为打孔或重复的比特数。  The system according to claim 7, wherein the uplink control unit is further configured to: when performing the uplink channel baseband signal processing based on the hierarchical structure, according to a slave device management layer When the acquired data performs baseband signal processing, the output N_data is obtained from the input Ni, the Delta_N outputted from the input N_data, and the selected rate matching is performed by the input Delta_N, and finally the E parameter for the baseband signal transmission is obtained; Ni is the number of bits of a radio frame before the transmission channel i rate matching; N_data is the number of data bits in a code division combined transmission channel (CCTrCH) frame; Delta_N is the number of bits punched or repeated.
PCT/CN2011/079691 2011-03-24 2011-09-15 Uplink control method and system based on layer architecture WO2012126235A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110072115.8A CN102137503B (en) 2011-03-24 2011-03-24 Up-link control method and system based on layered structure
CN201110072115.8 2011-03-24

Publications (1)

Publication Number Publication Date
WO2012126235A1 true WO2012126235A1 (en) 2012-09-27

Family

ID=44297135

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079691 WO2012126235A1 (en) 2011-03-24 2011-09-15 Uplink control method and system based on layer architecture

Country Status (2)

Country Link
CN (1) CN102137503B (en)
WO (1) WO2012126235A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137503B (en) * 2011-03-24 2014-08-13 中兴通讯股份有限公司 Up-link control method and system based on layered structure
CN102333380B (en) * 2011-10-08 2014-10-22 北京北方烽火科技有限公司 Medium access control (MAC) layer resource scheduling method and device for long term evolution (LTE) system
CN104184542B (en) * 2013-05-23 2019-02-12 锐迪科(重庆)微电子科技有限公司 Up-link control method, system and terminal
US9759808B2 (en) * 2015-11-12 2017-09-12 Texas Instruments Incorporated Buffer sample size control for variable chirp radar
US11076388B2 (en) 2017-01-13 2021-07-27 Qualcomm Incorporated Configurable common uplink burst length

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007082407A1 (en) * 2006-01-18 2007-07-26 Zte Corporation A random access method for user equipment in time division synchronization code division multiple access communication system
CN101262279A (en) * 2007-03-07 2008-09-10 中兴通讯股份有限公司 An uplink dispatching access control method for time division synchronization code division multi-address access system
CN101803234A (en) * 2007-09-18 2010-08-11 Lg电子株式会社 Method for performinig random access process in wireless communication system
CN101940053A (en) * 2009-04-03 2011-01-05 华为技术有限公司 Method and apparatus of transmitting preamble signal for random access
CN102137503A (en) * 2011-03-24 2011-07-27 中兴通讯股份有限公司 Up-link control method and system based on layered structure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007082407A1 (en) * 2006-01-18 2007-07-26 Zte Corporation A random access method for user equipment in time division synchronization code division multiple access communication system
CN101262279A (en) * 2007-03-07 2008-09-10 中兴通讯股份有限公司 An uplink dispatching access control method for time division synchronization code division multi-address access system
CN101803234A (en) * 2007-09-18 2010-08-11 Lg电子株式会社 Method for performinig random access process in wireless communication system
CN101940053A (en) * 2009-04-03 2011-01-05 华为技术有限公司 Method and apparatus of transmitting preamble signal for random access
CN102137503A (en) * 2011-03-24 2011-07-27 中兴通讯股份有限公司 Up-link control method and system based on layered structure

Also Published As

Publication number Publication date
CN102137503B (en) 2014-08-13
CN102137503A (en) 2011-07-27

Similar Documents

Publication Publication Date Title
US20210266954A1 (en) Data sending method, data sending apparatus, and terminal device
CN102264098B (en) A kind of method and apparatus of Buffer Status Report process
CN109743788B (en) Radio access technology with discontinuous periodic PUSCH transmission
JP5795780B2 (en) Operation method of hybrid automatic repeat request entity
WO2017166213A1 (en) Data transmission method and device
TWI399116B (en) Method of managing discontinuous reception offset and related communication device
JP7143447B2 (en) Information transmission method and communication device
US10869328B2 (en) Data transmission method, terminal device, and network device
CN110621075B (en) Method and device for transmitting data
CN110035502A (en) Communication means, communication equipment and the network equipment
CN110011765B (en) Data transmission method, terminal, device and computer readable storage medium
TWI408987B (en) Methods of packet element transmission in wireless communications system and related communication device
WO2012097690A1 (en) Group-based scheduling method, ue, and network device
KR20080086384A (en) Mbms data transmission and receiving in packet based on mobile communication system
WO2021170136A1 (en) Communication method and apparatus
WO2012126235A1 (en) Uplink control method and system based on layer architecture
US11224037B2 (en) Data transmission method, terminal device, and network device
CN104247547A (en) Data streaming configuration method, base station system, and user terminal
US20090190572A1 (en) Downlink data control system for radio access networks
US20220224454A1 (en) Harq process control method and apparatus
WO2018081999A1 (en) Information transmission method, network device, and terminal device
US20230224091A1 (en) Wireless communication method and device
JP4896073B2 (en) Method and apparatus for polling data transmission status in a wireless communication system
JP5001590B2 (en) Transmission parameter change control method and radio base station
WO2022032681A1 (en) Data transmission method and communication apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11861424

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11861424

Country of ref document: EP

Kind code of ref document: A1