Search

CN-121985413-A - Resource allocation method and device and electronic equipment

CN121985413ACN 121985413 ACN121985413 ACN 121985413ACN-121985413-A

Abstract

The application provides a resource allocation method, a resource allocation device and electronic equipment, and relates to the technical field of communication. The method comprises the steps of receiving a resource allocation request, wherein the resource allocation request is used for requesting to allocate antenna resources to Bluetooth service at a first starting time, the first starting time is used for indicating the time when the Bluetooth service is started for the first time, allocating the antenna resources to the Bluetooth service according to the resource allocation request, receiving a termination instruction of the Bluetooth service, the termination instruction is used for indicating that the Bluetooth service is ended, and allocating the antenna resources to wireless service. The scheme of the application provides the method for improving the utilization rate of the wireless resources.

Inventors

  • YIN JIE
  • ZHANG HONGJIANG

Assignees

  • 展讯半导体(成都)有限公司

Dates

Publication Date
20260505
Application Date
20260122

Claims (10)

  1. 1. A method of resource allocation, characterized by a processor applied to a communication device configured with antenna resources common to bluetooth traffic and wireless traffic, the method comprising: receiving a resource allocation request, wherein the resource allocation request is used for requesting to allocate the antenna resource to the Bluetooth service at a first starting time, and the first starting time is used for indicating the time of starting the Bluetooth service for the first time; According to the resource allocation request, allocating the antenna resource to the Bluetooth service; Receiving a termination instruction of the Bluetooth service, wherein the termination instruction is used for indicating that the Bluetooth service is ended; and allocating the antenna resources to the wireless service.
  2. 2. The method of claim 1, wherein in the case where the Bluetooth service is a periodic service, the resource allocation request further includes a period duration indicating a time interval between starting times of the Bluetooth service two times in succession, the method further comprising: Determining an ith second starting time of the Bluetooth service according to the first starting time and the period duration, wherein i is a positive integer greater than or equal to 1, and the ith second starting time is used for indicating the time for starting the Bluetooth service for the ith time; The antenna resource is allocated to the Bluetooth service at the ith second starting moment; receiving an ith termination instruction of the Bluetooth service, wherein the ith termination instruction is used for indicating that an ith period of the Bluetooth service is ended; and allocating the antenna resources to the wireless service.
  3. 3. The method according to claim 2, wherein said determining an ith second start-up time of said bluetooth service according to said first start-up time and said period duration comprises: In the case where i is equal to 1, determining the first start-up time as the i-th second start-up time; And under the condition that i is larger than 1, determining the ith second starting time according to the first starting time, the period duration and the i.
  4. 4. A method according to claim 3, wherein said determining said i-th second start-up instant from said first start-up instant, said period duration and said i comprises: Determining a time interval between the first starting time and the ith second starting time according to the period duration and the i; and determining the ith second starting time according to the time interval between the first starting time and the ith second starting time.
  5. 5. The method according to any of claims 1-4, wherein after allocating the antenna resources to the bluetooth traffic, the method further comprises: determining the time length for distributing the antenna resources to the Bluetooth service; and under the condition that the time length for allocating the antenna resources to the Bluetooth service is greater than or equal to the preset time length, allocating the antenna resources to the wireless service.
  6. 6. A method for allocating resources, characterized by being applied to a bluetooth module of a communication device, the communication device being configured with antenna resources common to bluetooth services and wireless services, the method comprising: the method comprises the steps of sending a resource allocation request, wherein the resource allocation request is used for requesting to allocate the antenna resource to the Bluetooth service at a first starting time, and the first starting time is used for indicating the time for starting the Bluetooth service for the first time; processing the bluetooth service based on the antenna resources; and sending a termination instruction of the Bluetooth service under the condition that the Bluetooth service is terminated, wherein the termination instruction is used for indicating that the Bluetooth service is ended.
  7. 7. The method of claim 6, wherein in the case where the bluetooth service is a periodic service, the method further comprises: And sending an ith termination instruction of the Bluetooth service, wherein the ith termination instruction is used for indicating that the ith period of the Bluetooth service is ended, and i is a positive integer greater than or equal to 1.
  8. 8. A resource allocation apparatus, the apparatus comprising: the system comprises a first receiving module, a first starting module and a second receiving module, wherein the first receiving module is used for receiving a resource allocation request, and the resource allocation request is used for requesting to allocate antenna resources to Bluetooth service at a first starting moment; The first allocation module is used for allocating the antenna resources to the Bluetooth service according to the resource allocation request; the second receiving module is used for receiving a termination instruction of the Bluetooth service, wherein the termination instruction is used for indicating that the Bluetooth service is ended; And the second allocation module is used for allocating the antenna resources to the wireless service.
  9. 9. A resource allocation apparatus, the apparatus comprising: the system comprises a first sending module, a second sending module and a first receiving module, wherein the first sending module is used for sending a resource allocation request, and the resource allocation request is used for requesting to allocate antenna resources to Bluetooth service at a first starting moment; the processing module is used for processing the Bluetooth service based on the antenna resources; and the second sending module is used for sending a termination instruction of the Bluetooth service under the condition that the Bluetooth service is terminated, and the termination instruction is used for indicating that the Bluetooth service is ended.
  10. 10. An electronic device, comprising: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any one of claims 1 to 7.

Description

Resource allocation method and device and electronic equipment Technical Field The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for allocating resources, and an electronic device. Background In the field of wireless communications, a communication device may implement bluetooth services and wireless services using a single antenna. In some scenarios, the communication device may dynamically allocate antenna resources to bluetooth traffic and wireless traffic via time division multiplexing techniques. In the related art, a processor and a bluetooth module are deployed in a communication device, and when a bluetooth service is started, the bluetooth module can estimate the processing time of the bluetooth service and then send the starting time and the processing time of the bluetooth service to the processor. After receiving the starting time and the processing time, the processor allocates antenna resources to the Bluetooth service at the starting time, and determines the ending time of the Bluetooth service according to the starting time and the processing time. The processor then allocates antenna resources to the wireless traffic at the termination time. However, when the antenna resources are allocated in the above manner, the utilization rate of the antenna resources is low. Disclosure of Invention The application provides a resource allocation method, a resource allocation device and electronic equipment, which are used for improving the utilization rate of antenna resources. In a first aspect, the present application provides a resource allocation method applied to a processor of a communication device, where the communication device is configured with antenna resources shared by a bluetooth service and a wireless service, the method comprising: Receiving a resource allocation request, wherein the resource allocation request is used for requesting to allocate antenna resources to Bluetooth service at a first starting time, and the first starting time is used for indicating the time of starting the Bluetooth service for the first time; According to the resource allocation request, allocating antenna resources to Bluetooth service; receiving a termination instruction of the Bluetooth service, wherein the termination instruction is used for indicating that the Bluetooth service is ended; antenna resources are allocated to wireless traffic. In one possible implementation manner, in the case that the bluetooth service is a periodic service, the resource allocation request further includes a period duration, where the period duration is used to indicate a time interval between starting moments of two consecutive bluetooth services, and the resource allocation method further includes: Determining an ith second starting time of the Bluetooth service according to the first starting time and the period duration, wherein i is a positive integer greater than or equal to 1; antenna resources are allocated to Bluetooth service at the ith second starting moment; receiving an ith termination instruction of the Bluetooth service, wherein the ith termination instruction is used for indicating that an ith period of the Bluetooth service is ended; antenna resources are allocated to wireless traffic. In one possible implementation manner, determining the ith second starting time of the bluetooth service according to the first starting time and the period duration includes: in the case where i is equal to 1, determining the first start-up time as an i-th second start-up time; and under the condition that i is greater than 1, determining an ith second starting moment according to the first starting moment, the period duration and i. In one possible implementation manner, determining the ith second starting time according to the first starting time, the period duration and i includes: determining a time interval between a first starting time and an ith second starting time according to the period duration and the i; And determining the ith second starting time according to the time interval between the first starting time and the ith second starting time. In one possible implementation, after allocating the antenna resources to the bluetooth service, the method further includes: Determining the time length for allocating antenna resources to Bluetooth service; and under the condition that the time length of the antenna resource allocated to the Bluetooth service is longer than or equal to the preset time length, the antenna resource is allocated to the wireless service. In a second aspect, the present application provides a resource allocation method applied to a bluetooth module of a communication device, where the communication device is configured with an antenna resource shared by a bluetooth service and a wireless service, the method including: transmitting a resource allocation request, wherein the resource allocation request is used for reque