Frequency domain resource allocation method, device and electronic equipment

By detecting the length of the service data unit at the terminal and allocating frequency domain resources with RB as the granularity, the problem of high resource waste in the prior art is solved, and efficient transmission of small data lengths is achieved.

CN115066028BActive Publication Date: 2024-11-19CHINA TOWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210833449.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-14
Publication Date
2024-11-19
Estimated Expiration
2042-07-14

AI Technical Summary

Technical Problem

In the prior art, the base station uses a fixed Resource Block Group (RBG) granularity when allocating frequency domain resources, resulting in data information with short data lengths being unable to be effectively allocated, resulting in high resource waste during data transmission.

Method used

When the scheduled terminal supports dynamic indication, the length of the service data unit (SDU) is detected. If it is less than the set value, it confirms that the resource with the largest number of idle continuous resource blocks (RBs) is the granularity of RBs. Frequency domain resource allocation reduces resource usage and waste.

Benefits of technology

By allocating frequency domain resources with RB as the granularity, efficient transmission of SDUs with smaller data lengths is achieved, and the occupation of RBG is reduced, thereby reducing resource waste during data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115066028B_ABST
    Figure CN115066028B_ABST
Patent Text Reader

Abstract

The present invention provides a frequency domain resource allocation method, device and electronic device, which relates to the field of communication technology. The method comprises: when the scheduled terminal supports dynamic indication, detecting the length of the service data unit SDU cached by the packet data convergence protocol PDCP corresponding to the scheduled terminal; when the length of the SDU is less than the set value, confirming the scheduling data speed of the idle target resource, the target resource is a resource with the largest number of RBs in the idle continuous resource blocks RB; when the scheduling data speed satisfies the scheduling of the SDU at one time, using the allocation method with RB as the granularity to perform frequency domain resource allocation. The present invention reduces the waste of resources in the data transmission process by using the allocation method with RB as the granularity to perform frequency domain resource allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a frequency domain resource allocation method, device, electronic device and readable storage medium. Background Art

[0002] When a user terminal accesses the network, data transmission interaction is required. During the transmission process from the network to the user terminal, the base station needs to allocate the Physical Downlink Shared Channel (PDSCH) frequency domain resources to schedule data. In the related art, in the process of allocating frequency domain resources by the base station, the allocation method of the Resource Block Group (RBG) granularity is usually defined for resource allocation. However, for data information with a shorter data length, the RBG part cannot be allocated to other data information by using the allocation method of fixed RBG granularity, resulting in a high waste of resources during data transmission.

[0003] It can be seen that the related technology has the problem of high resource waste during data transmission. Summary of the invention

[0004] The embodiments of the present invention provide a frequency domain resource allocation method, device, electronic device and readable storage medium to solve the problem of high resource waste in the data transmission process in the prior art.

[0005] To solve the above problems, the present invention is achieved as follows:

[0006] In a first aspect, an embodiment of the present invention provides a frequency domain resource allocation method, including:

[0007] In the case where the scheduled terminal supports dynamic indication, detecting the length of a service data unit (SDU) cached by a packet data convergence protocol (PDCP) corresponding to the scheduled terminal;

[0008] When the length of the SDU is less than the set value, confirming the scheduling data rate of the idle target resource, the target resource being a resource with the largest number of RBs among the idle continuous resource blocks (RBs);

[0009] When the scheduling data speed satisfies the scheduling of the SDU at one time, the frequency domain resource allocation is performed using an allocation method with RB as the granularity.

[0010] In a second aspect, an embodiment of the present invention further provides a frequency domain resource allocation device, including:

[0011] A first detection module is used to detect the length of the service data unit SDU cached by the packet data convergence protocol PDCP corresponding to the scheduled terminal when the scheduled terminal supports dynamic indication;

[0012] A confirmation module, configured to confirm the scheduling data rate of an idle target resource when the length of the SDU is less than a set value, wherein the target resource is a resource with the largest number of RBs among the idle continuous resource blocks RB;

[0013] The first processing module is used to allocate frequency domain resources in an allocation manner with RB as the granularity when the scheduling data speed meets the requirement of scheduling the SDU in one time.

[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps in the frequency domain resource allocation method as described in the first aspect above.

[0015] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein when the program is executed by a processor, the steps in the frequency domain resource allocation method as described in the first aspect are implemented.

[0016] In the embodiment of the present invention, frequency domain resource allocation is performed for SDUs with smaller data lengths in an allocation manner with RB as the granularity, thereby realizing data transmission of RBs to SDUs, reducing the occupation of RBGs, and thus reducing resource waste during data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0018] Figure 1 is a flow chart of a frequency domain resource allocation method provided by an embodiment of the present invention;

[0019] Figure 2 is a schematic diagram of frequency domain resource allocation provided by an embodiment of the present invention;

[0020] Figure 3 is a structural diagram of a frequency domain resource allocation device provided by an embodiment of the present invention;

[0021] Figure 4 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] See also Figure 1 , Figure 1 is a flow chart of a frequency domain resource allocation method provided by an embodiment of the present invention, such as Figure 1 As shown, the following steps are included:

[0024] Step S101: When the scheduled terminal supports dynamic indication, the length of the service data unit SDU buffered by the Packet Data Convergence Protocol PDCP corresponding to the scheduled terminal is detected.

[0025] Among them, the base station or server can define the frequency domain resource allocation method by sending radio resource control (RRC) related signaling or downlink control information (DCI). The frequency domain resource allocation method defined by RCC is used for data transmission, and this allocation method is used throughout the data transmission process. The frequency domain resource allocation method is defined by DCI to implement different resource allocation methods for different resources to be sent.

[0026] It is understandable that there are differences in the length of the SDU to be sent to the terminal. When detecting the length of the SDU to be sent, the average value of the SDU length is detected, or the median value of the SDU length is detected to obtain the data length that can reflect the SDU to be sent.

[0027] Step S102: when the length of the SDU is less than a set value, confirm the scheduling data rate of the idle target resource, where the target resource is a resource with the largest number of RBs among the idle continuous resource blocks RB.

[0028] The set value is a preset value and can be adjusted accordingly according to business needs. Confirm the scheduling data speed of the idle target resource, that is, confirm whether the idle continuous RBs can meet the requirements of scheduling SDU. It can be understood that if the scheduling data speed of the target resource does not meet the scheduling, other idle RBs cannot meet the scheduling data speed either.

[0029] It should be understood that, unlike the allocation method with RBG as the granularity which can support both discontinuous allocation and continuous allocation, the allocation method with RB as the granularity can only support continuous allocation, so the detected target resource needs to be an idle continuous RB resource.

[0030] Among them, the allocation method with RBG as the granularity is type0, and the allocation method with RB as the granularity is type1.

[0031] Step S103: When the scheduling data speed satisfies the scheduling of the SDU at one time, frequency domain resource allocation is performed using an allocation method with RB as the granularity.

[0032] It should be understood that the allocation method with RB as the granularity for frequency domain resource allocation can only transmit data for SDUs with shorter length fields. However, the allocation method with RBG as the granularity for frequency domain resource allocation includes multiple RBs, which can be used to transmit longer SDUs. However, when transmitting shorter SDUs, some unused RBs will be idle, resulting in waste of resources. Therefore, in this embodiment, the frequency domain resource allocation method with RB as the granularity for SDUs with shorter data length is used to implement data transmission of RB to SDU, which reduces the occupation of RBG, thereby reducing the waste of resources during data transmission.

[0033] In one embodiment, the method further comprises at least one of the following:

[0034] When the scheduling data speed does not satisfy the requirement of scheduling the SDU in one time and there is at least one idle resource block group RBG, frequency domain resource allocation is performed using a first allocation method with RBG as the granularity;

[0035] When the scheduling data speed is not sufficient to schedule the SDU in one time and there is no idle RBG, frequency domain resource allocation is performed using an allocation method with RB as the granularity.

[0036] In this embodiment, the first allocation method with RBG as the granularity is adopted to allocate frequency domain resources or the allocation method with RB as the granularity is adopted to allocate frequency domain resources, both of which can reduce the occupation of RBG resources.

[0037] It should be understood that when the requirement of scheduling the SDU in one go is not met, the first allocation method with RBG as the granularity is used to allocate frequency domain resources, which can achieve the requirement of scheduling the SDU in one go at a faster speed than the allocation method with RB as the granularity. Therefore, when there is at least one idle RBG, the first allocation method with RBG as the granularity is used to allocate frequency domain resources to achieve the best transmission effect.

[0038] In addition, when there are no idle RBGs, it is still necessary to use the allocation method with RB as the granularity for frequency domain resource allocation. Compared with the waiting time for RBG to be idle or other RBs to be idle, the transmission speed of multiple scheduling using RBs is faster; while the waiting time for RBG to be idle or other RBs to be idle is longer, making the data transmission speed significantly slower than the transmission speed of multiple scheduling using RBs.

[0039] Among them, since the field length of SDU is short, the transmission using RB for multiple scheduling has little impact on the speed and does not affect the user experience.

[0040] In one embodiment, the method further comprises at least one of the following:

[0041] When the length of the SDU is greater than or equal to the set value and the number of RBs of the target resource required to be idle is less than the number of RBs in one RBG, frequency domain resource allocation is performed using an allocation method with RB as the granularity;

[0042] When the length of the SDU is greater than or equal to the set value, and the required number of idle RBs of the target resource is greater than or equal to the number of RBs in one RBG, a second allocation method with RBG as the granularity is used to allocate frequency domain resources.

[0043] It should be understood that the length of the SDU is greater than or equal to the set value, indicating that the data to be transmitted to the scheduled terminal is data with a longer field. For this type of data, the principle of one-time scheduling of the SDU is ensured. If it is difficult to schedule the SDU in one go, and some of them need to be scheduled twice, the transmission speed will be significantly reduced, affecting the user's operating experience. In this embodiment, the frequency domain resource allocation method with RB as the granularity and the second allocation method with RBG as the granularity are used for frequency domain resource allocation, both of which can achieve one-time scheduling of the SDU and maintain a higher transmission rate.

[0044] Specifically, when the number of idle RBs of the required target resource is less than the number of RBs in one RBG, it is confirmed that the size of the data to be transmitted is moderate. If one RBG is used to transmit the data, some RBs in one RBG will still be idle, resulting in resource waste. At this time, the allocation method with RB as the granularity is used to allocate frequency domain resources, so that the data can be scheduled at one time while reducing the occupation of RBG, thereby reducing resource waste.

[0045] In addition, when the number of RBs of the required idle target resources is greater than or equal to the number of RBs in an RBG, the data to be transmitted is confirmed to be large, and the second allocation method with RBG as the granularity must be used to allocate frequency domain resources in order to schedule the data in one go and maintain a higher transmission rate.

[0046] The second allocation method using RBG as the granularity for frequency domain resources is different from the first allocation method using RBG as the granularity for frequency domain resources, as detailed in the subsequent embodiments.

[0047] In one embodiment, the method further comprises:

[0048] In the case that the scheduled terminal does not support dynamic indication, the second allocation method with RBG as the granularity is adopted to allocate frequency domain resources.

[0049] In this embodiment, the scheduled terminal does not support dynamic indication, that is, the base station or server cannot allocate frequency domain resources through DCI, and can only be set through RRC signaling. Considering the possibility that the SDU to be transmitted has a long field, in order to ensure the transmission rate, the second allocation method with RBG as the granularity is used to allocate frequency domain resources during the entire transmission process through RRC signaling.

[0050] The capability field of the scheduled terminal includes a target field indicating whether dynamic indication is supported, and whether the scheduled terminal supports dynamic indication is confirmed through the target field.

[0051] In one embodiment, in the case where the scheduled terminal supports dynamic indication, before detecting the length of the service data unit SDU buffered by the packet data convergence protocol PDCP corresponding to the scheduled terminal, the method further includes:

[0052] Detecting a type of data information to be sent to the terminal, the type of data information including control information and service data information;

[0053] In the case where the data information type is the control information, frequency domain resource allocation is performed using an allocation method with RB as the granularity;

[0054] In a case where the data information type is the service data information, it is detected whether the scheduled terminal supports dynamic indication.

[0055] Among them, the control information includes public control information and user-level control information. The public control information includes broadcast messages, paging messages and random access response messages, while the user-level control message is the signaling bearer (SRB) defined by RRC, including SRB0, SRB1, SRB2 and SRB3, etc., which is used to configure the communication relationship between the server and the terminal.

[0056] In this embodiment, before the server or base station sends the SDU to the scheduled terminal, it is necessary to send control information to the terminal to establish a communication relationship. It can be understood that compared with the service data information, the transmission phase of the control information is before the transmission phase of the service data information, and the control information is data with a shorter field, while the service data information also has data with a longer or shorter field, and data of different lengths need to be processed differently. In this embodiment, the frequency domain resource allocation method with RB as the granularity is adopted for the control information to reduce the occupation of RBG resources, thereby reducing the waste of resources.

[0057] In one embodiment, the step of confirming the scheduling data speed of the idle target resource includes:

[0058] According to the number of spatial division multiplexing streams RANK and a modulation and coding scheme (MCS), the scheduling data speed of the idle target resource is confirmed.

[0059] It should be understood that RANK represents the situation where the same frequency band is reused in different spaces, and MCS defines the number of effective bits that a resource unit can carry. That is, the larger the RANK value, the larger the MCS value, and the more data that can be transmitted in one scheduling of the same resource. In this embodiment, the scheduling speed of the target resource is confirmed based on RANK and MCS, and the scheduling speed of the idle RB is accurately evaluated.

[0060] In one embodiment, the adopting the first allocation mode with RBG as the granularity to perform frequency domain resource allocation includes:

[0061] Determining the number of RBGs required by the SDU;

[0062] When the number of RBGs is between N and N+1, N RBGs are used for frequency domain resource allocation, and the N RBGs are used for transmission of the SDU, where N is a constant greater than 1.

[0063] In this embodiment, since the field of the transmitted SDU is very short, multiple scheduling has little impact on the overall transmission speed, so N RBGs are used for frequency domain resource allocation instead of N+1 RBGs.

[0064] In one embodiment, the adopting the second allocation method with RBG as the granularity to perform frequency domain resource allocation includes:

[0065] Determining the number of RBGs required by the SDU;

[0066] When the number of RBGs is between N and N+1, N+1 RBGs are used for frequency domain resource allocation, and the N+1 RBGs are used for transmission of the SDU, where N is a constant greater than 0.

[0067] It should be understood that when the field of the SDU being transmitted is long, multiple scheduling will have a significant impact on the transmission speed and will significantly reduce the transmission speed. The SDU should be scheduled once, that is, N+1 RBGs are used for frequency domain resource allocation instead of N RBGs.

[0068] See Figure 2 This embodiment also provides a schematic diagram of frequency domain resource allocation, such as Figure 2 As shown, there are three frequency domain resource allocation methods, including an allocation method with RB as the granularity, a first allocation method with RBG as the granularity, and a second allocation method with RBG as the granularity.

[0069] Among them, for data with smaller fields, such as control information, data smaller than a set value in business data information, and data for which the RBs required for transmission are smaller than the number of RBs in an RBG.

[0070] In addition, for data with a smaller field, when the idle target resources cannot be scheduled all at once, the first allocation method with RBG as the granularity is used to allocate frequency domain resources, which can also reduce the waste of resources.

[0071] In addition, for data with a larger field, or when the terminal does not support dynamic indication, the second allocation method with RBG as the granularity is used to allocate frequency domain resources to maintain a higher transmission speed.

[0072] The above steps can be dynamically adjusted according to the data type and the type of scheduled terminal from the allocation method with RB and RBG as the granularity, reducing resource waste in the traditional data process and improving user and cell rates.

[0073] See also Figure 3 , Figure 3 is a structural diagram of a frequency domain resource allocation device provided by an embodiment of the present invention, such as Figure 3 As shown, the frequency domain resource allocation device 300 includes:

[0074] The first detection module 301 is used to detect the length of the service data unit SDU cached by the packet data convergence protocol PDCP corresponding to the scheduled terminal when the scheduled terminal supports dynamic indication;

[0075] A confirmation module 302 is used to confirm the scheduling data rate of the idle target resource when the length of the SDU is less than the set value, and the target resource is a resource with the largest number of RBs in the idle continuous resource blocks RB;

[0076] The first processing module 303 is configured to allocate frequency domain resources in an allocation manner with RB as the granularity when the scheduling data speed satisfies the scheduling of the SDU at one time.

[0077] Optionally, the device further comprises at least one of the following:

[0078] A second processing module is configured to allocate frequency domain resources using a first allocation method with RBG as the granularity when the scheduling data speed does not meet the requirement of scheduling the SDU all at once and there is at least one idle resource block group RBG;

[0079] The third processing module is used to allocate frequency domain resources in an allocation manner with RB as the granularity when the scheduling data speed does not meet the requirement of scheduling the SDU all at once and there is no idle RBG.

[0080] Optionally, the device further comprises:

[0081] The fourth processing module is used to allocate frequency domain resources by adopting the first allocation method with RBG as the granularity when the average length of the SDU is greater than or equal to the set value.

[0082] Optionally, the device further comprises:

[0083] The fifth processing module is used to allocate frequency domain resources by adopting a second allocation method with RBG as the granularity when the scheduled terminal does not support dynamic indication.

[0084] Optionally, before the first detection module 301, the device further includes:

[0085] A second detection module, used to detect the type of data information to be sent to the terminal, the data information type including control information and service data information;

[0086] A sixth processing module, configured to, when the data information type is the control information, perform frequency domain resource allocation in an allocation manner with RB as the granularity;

[0087] The third detection module is used to detect whether the scheduled terminal supports dynamic indication when the data information type is the service data information.

[0088] Optionally, the confirmation module 302 includes:

[0089] The confirmation unit is used to confirm the scheduling data speed of the idle target resource according to the number of spatial division multiplexing streams RANK and the modulation coding scheme MCS.

[0090] Optionally, the adopting a first allocation mode with RBG as the granularity to perform frequency domain resource allocation includes:

[0091] Determining the number of RBGs required by the SDU;

[0092] When the number of RBGs is between N and N+1, N RBGs are used for frequency domain resource allocation, and the N RBGs are used for transmission of the SDU, where N is a constant greater than 1.

[0093] Optionally, the adopting a second allocation mode with RBG as the granularity to perform frequency domain resource allocation includes:

[0094] Determining the number of RBGs required by the SDU;

[0095] When the number of RBGs is between N and N+1, N+1 RBGs are used for frequency domain resource allocation, and the N+1 RBGs are used for transmission of the SDU, where N is a constant greater than 0.

[0096] The frequency domain resource allocation device provided in the embodiment of the present invention is capable of implementing each process of each embodiment of the above-mentioned frequency domain resource allocation method. The technical features correspond one to one and can achieve the same technical effect. To avoid repetition, they will not be described here.

[0097] It should be noted that the frequency domain resource allocation device in the embodiment of the present invention may be a device, or a component, an integrated circuit, or a chip in an electronic device.

[0098] The embodiment of the present invention further provides an electronic device, see Figure 4 , Figure 4 4 is a schematic diagram of a structure of an electronic device provided by the present invention, the electronic device includes a memory 401, a processor 402 and a program or instruction stored in the memory 401 and running thereon, and when the program or instruction is executed by the processor 402, it can be realized Figure 1 Any steps in the corresponding method embodiments and achieving the same beneficial effects will not be repeated here.

[0099] The processor 402 may be a CPU, an ASIC, an FPGA or a GPU.

[0100] Those skilled in the art will appreciate that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware associated with program instructions, and the program can be stored in a readable medium.

[0101] The embodiment of the present invention further provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above Figure 1 Any steps in the corresponding method embodiments can achieve the same technical effect, and will not be repeated here to avoid repetition. The storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0102] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, indicating that A alone, B alone, C alone, and A and B all exist, B and C all exist, A and C all exist, and 7 situations in which A, B and C all exist.

[0103] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a second terminal device, etc.) to execute the methods of each embodiment of the present application.

[0105] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A frequency domain resource allocation method, characterized in that: include: In the case where the scheduled terminal supports dynamic indication, detecting the length of the service data unit SDU buffered by the packet data convergence protocol PDCP corresponding to the scheduled terminal; In the case where the length of the SDU is less than the set value, confirming the scheduling data rate of the idle target resource, the target resource being a resource with the largest number of RBs among the idle continuous resource blocks RB; When the scheduling data speed satisfies the scheduling of the SDU at one time, frequency domain resource allocation is performed using an allocation method with RB as the granularity; When the scheduling data speed does not meet the requirement of scheduling the SDU in one time and there is at least one idle resource block group RBG, frequency domain resource allocation is performed using a first allocation method with RBG as the granularity; The adopting the first allocation mode with RBG as the granularity to perform frequency domain resource allocation includes: Determining the number of RBGs required by the SDU; When the number of RBGs is between N and N+1, N RBGs are used for frequency domain resource allocation, and the N RBGs are used for transmission of the SDU, where N is a constant greater than 1; When the length of the SDU is greater than or equal to a set value and the number of idle RBs of the target resource required is less than the number of RBs in one RBG, frequency domain resource allocation is performed using an allocation method with RB as the granularity; When the length of the SDU is greater than or equal to a set value, and the number of idle RBs of the target resource required is greater than or equal to the number of RBs in one RBG, frequency domain resource allocation is performed using a second allocation method with RBG as the granularity; The frequency domain resource allocation using the second allocation method with RBG as the granularity includes: Determining the number of RBGs required by the SDU; When the number of RBGs is between N and N+1, N+1 RBGs are used for frequency domain resource allocation, and the N+1 RBGs are used for transmission of the SDU, where N is a constant greater than 0.

2. The method according to claim 1, characterized in that The method further comprises: When the scheduling data speed is not sufficient to schedule the SDU in one time and there is no idle RBG, frequency domain resource allocation is performed using an allocation method with RB as the granularity.

3. The method according to claim 1, characterized in that The method further comprises: In the case that the scheduled terminal does not support dynamic indication, the second allocation method with RBG as the granularity is adopted to allocate frequency domain resources.

4. The method according to claim 1, characterized in that: In the case where the scheduled terminal supports dynamic indication, before detecting the length of the service data unit SDU buffered by the packet data convergence protocol PDCP corresponding to the scheduled terminal, the method further includes: Detecting a type of data information to be sent to the terminal, the type of data information including control information and service data information; In the case where the data information type is the control information, frequency domain resource allocation is performed using an allocation method with RB as the granularity; In a case where the data information type is the service data information, it is detected whether the scheduled terminal supports dynamic indication.

5. The method according to claim 1, characterized in that The confirming the scheduling data speed of the idle target resource includes: According to the number of spatial division multiplexing streams RANK and the modulation and coding scheme MCS, the scheduling data speed of the idle target resources is confirmed.

6. A frequency domain resource allocation device, characterized in that: include: A first detection module is used to detect the length of the service data unit SDU cached by the packet data convergence protocol PDCP corresponding to the scheduled terminal when the scheduled terminal supports dynamic indication; A confirmation module, configured to confirm the scheduling data rate of an idle target resource when the length of the SDU is less than a set value, wherein the target resource is a resource with the largest number of RBs among the idle continuous resource blocks RB; A first processing module is used to allocate frequency domain resources using an allocation method with RB as the granularity when the scheduling data speed satisfies the scheduling of the SDU at one time; The frequency domain resource allocation device is also used for: When the scheduling data speed does not meet the requirement of scheduling the SDU in one time and there is at least one idle resource block group RBG, frequency domain resource allocation is performed using a first allocation method with RBG as the granularity; The adopting the first allocation mode with RBG as the granularity to perform frequency domain resource allocation includes: Determining the number of RBGs required by the SDU; When the number of RBGs is between N and N+1, N RBGs are used for frequency domain resource allocation, and the N RBGs are used for transmission of the SDU, where N is a constant greater than 1; When the length of the SDU is greater than or equal to a set value and the number of idle RBs of the target resource required is less than the number of RBs in one RBG, frequency domain resource allocation is performed using an allocation method with RB as the granularity; When the length of the SDU is greater than or equal to a set value, and the number of idle RBs of the target resource required is greater than or equal to the number of RBs in one RBG, frequency domain resource allocation is performed using a second allocation method with RBG as the granularity; The frequency domain resource allocation using the second allocation method with RBG as the granularity includes: Determining the number of RBGs required by the SDU; When the number of RBGs is between N and N+1, N+1 RBGs are used for frequency domain resource allocation, and the N+1 RBGs are used for transmission of the SDU, where N is a constant greater than 0.

7. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the frequency domain resource allocation method according to any one of claims 1 to 5 when executed by the processor.