CN-122028204-A - Resource allocation method, electronic equipment and system
Abstract
A method for resource allocation, electronic equipment and a system are provided, wherein the method is applied to the electronic equipment, the electronic equipment comprises a modem, the method comprises the steps that when a first application runs a first service, the modem receives information of the first service, the modem determines a first quantity according to the information of the first service, the first quantity is the quantity of resource blocks required by data of the first service to be transmitted to a base station, the modem sends a first request message for requesting to allocate the resource blocks to the base station, the first request message carries the first quantity, and the modem receives a second quantity of resource blocks allocated by the base station according to the first quantity. Therefore, the modem can sense the information of the service, and the number of the resource blocks which need to be applied to the base station is determined according to the information of the service, so that the number of the resource blocks allocated to the modem is matched with the number of the resource blocks actually needed by the modem, and the power consumption of the electronic equipment in the data transmission process can be reduced.
Inventors
- WANG SHAOYANG
- LI TAO
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241112
Claims (16)
- 1. A method of resource allocation, the method being applied to an electronic device, the electronic device comprising a modem, the method comprising: when a first application runs a first service, the modem receives information of the first service; the modem determines a first quantity according to the information of the first service, wherein the first quantity is the quantity of resource blocks required for transmitting the data of the first service to a base station; the modem sends a first request message to the base station, wherein the first request message is used for requesting the base station to allocate resource blocks, and the first request message carries the first quantity; The modem receives a second number of resource blocks allocated by the base station according to the first number.
- 2. The method according to claim 1, wherein the method further comprises: When the first application runs the first service, the modem receives data of the first service; and after receiving the second number of resource blocks, the modem uses the second number of resource blocks to send the data of the first service to the base station.
- 3. The method according to claim 1 or 2, wherein the information of the first service includes scene information of the first service and/or feature information of the first service, wherein the scene information of the first service is used for determining a size of a data traffic corresponding to the first service, and the feature information of the first service is used for determining a change feature of the data traffic corresponding to the first service.
- 4. A method according to any one of claims 1 to 3, wherein the modem determining a first number from the information of the first service comprises: the modem determines the first quantity according to a first filling duty ratio and information of the first service, wherein the first filling duty ratio refers to a duty ratio of a resource block which is not used for filling effective data in one or more resource allocations before the resource allocation for the electronic equipment in the resource blocks allocated for the electronic equipment by the base station.
- 5. The method according to any one of claims 1 to 4, wherein the modem determining a first number from the information of the first service comprises: the modem determines the first quantity according to information of an air interface and information of the first service, wherein the air interface is a communication interface between the modem and a base station.
- 6. The method according to any one of claims 1 to 5, wherein the second number is equal to the first number.
- 7. A method of resource allocation, the method being applied to a base station, the method comprising: receiving a first request message sent by a first device, where the first request message is used to request to allocate resource blocks for the first device, where the first request message carries a first number, and the first number is the number of resource blocks required by the first device to transmit data of a first service, where the number is determined by the first device according to information of the first service; and allocating a second number of resource blocks for the first device according to the first number.
- 8. The method of claim 7, wherein the method further comprises: And receiving the data of the first service sent by the first device by using the second number of resource blocks.
- 9. The method according to claim 7 or 8, wherein said allocating a second number of resource blocks for said first device according to said first number comprises: And distributing the second number of resource blocks to the first device according to the distribution capability of the base station, the resource distribution requests of other devices received by the base station and the first number.
- 10. The method according to any one of claims 7 to 9, wherein the second number is equal to the first number.
- 11. An electronic device, comprising: one or more processors; One or more memories; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-6.
- 12. A base station, comprising: one or more processors; One or more memories; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the base station to perform the method of any of claims 7-10.
- 13. A system, the system comprising: the electronic device of claim 11; The base station of claim 12.
- 14. A computer readable storage medium, characterized in that the storage medium has stored therein a program or instructions which, when executed, implement the method of any one of claims 1 to 6 or the method of any one of claims 7 to 10.
- 15. A chip having instructions stored therein which, when executed, implement the method of any one of claims 1 to 6 or the method of any one of claims 7 to 10.
- 16. A computer program product having a program or instructions stored therein, which when executed, implements the method of any one of claims 1 to 6 or implements the method of any one of claims 7 to 10.
Description
Resource allocation method, electronic equipment and system Technical Field The embodiment of the application relates to the field of resource allocation, and more particularly relates to a method, electronic equipment and a system for resource allocation. Background Along with the improvement of living standard and the popularization of intelligent equipment, the intelligent equipment is used for data transmission more and more, for example, the intelligent equipment uses flow to carry out video telephone or game and other scenes, and at present, the data transmission process can generate higher power consumption, so that the service performance of the intelligent equipment is influenced. Therefore, how to reduce the power consumption of the smart device generated in the data transmission process is a urgent problem to be solved. Disclosure of Invention The application provides a resource allocation method and electronic equipment, through which a modem can sense service information, and the number of resource blocks required to be applied to a base station is determined according to the service information, so that the number of the resource blocks allocated to the modem is matched with the number of the resource blocks actually required by the modem, and the power consumption of the electronic equipment in the data transmission process can be reduced. In a first aspect, a method for resource allocation is provided, where the method is applied to an electronic device, and the electronic device includes a modem, where the modem receives information of a first service when the first application runs the first service, the modem determines a first number according to the information of the first service, the first number is a number of resource blocks required for transmitting data of the first service to a base station, the modem sends a first request message to the base station, the first request message is used for requesting the base station to allocate resource blocks, the first request message carries the first number, and the modem receives a second number of resource blocks allocated by the base station according to the first number. In the embodiment of the application, the modem can sense the information of the service, and the number of the resource blocks which need to be applied to the base station is determined according to the information of the service, so that the number of the resource blocks allocated to the modem is matched with the number of the resource blocks actually needed by the modem, and the power consumption of the electronic equipment in the data transmission process can be reduced. With reference to the first aspect, in a possible implementation manner, the method further includes receiving, by the modem, data of the first service when the first application runs the first service, and after receiving the second number of resource blocks, sending, by the modem, the data of the first service to the base station using the second number of resource blocks. In the embodiment of the application, the modem uses the resource blocks distributed by the base station to send data to the base station, and the power consumption of the electronic equipment in the data transmission process can be reduced because the quantity of the resource blocks distributed by the base station to the modem is matched with the quantity of the resource blocks actually required by the modem. With reference to the first aspect, in one possible implementation manner, the information of the first service includes scene information of the first service and/or feature information of the first service, where the scene information of the first service is used to determine a size of a data traffic corresponding to the first service, and the feature information of the first service is used to determine a change feature of the data traffic corresponding to the first service. In the embodiment of the application, the modem can sense the size and/or change characteristics of the data flow corresponding to the service, and determine the number of the resource blocks required to be applied to the base station according to the size and/or change characteristics of the data flow corresponding to the service, so that the number of the resource blocks allocated to the modem is matched with the number of the resource blocks actually required by the modem, and the power consumption of the electronic equipment in the data transmission process can be reduced. With reference to the first aspect, in a possible implementation manner, the determining, by the modem, the first number according to the information of the first service includes determining, by the modem, the first number according to a first filling duty ratio and the information of the first service, where the first filling duty ratio refers to a duty ratio of a resource block, which is not used for filling with valid data, in one or more resource allocations of the base st