Resource allocation method and device, and storage medium

By uniformly allocating the time-frequency resources of dual-SIM mobile phones, the problem of dual-SIM mobile phone time-frequency resources being canceled after authorization is solved, simplifying the resource scheduling process, improving efficiency and reducing system latency.

CN118870528APending Publication Date: 2024-10-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310476759.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

With the development of 5G and eSIM technologies, dual-SIM mobile phones can easily cancel time-frequency resources after authorization, resulting in complex resource scheduling and increased system latency, affecting efficiency.

Method used

By determining the periodic task configuration information of the first and second communication cards, time-frequency resources are uniformly allocated to avoid resource conflicts, simplify the physical layer scheduling process, and reduce system delay.

Benefits of technology

It achieves simplification and efficiency improvement of resource scheduling, avoids cancellation of time-frequency resources after authorization to the greatest extent, and reduces system delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870528A_ABST
    Figure CN118870528A_ABST
Patent Text Reader

Abstract

The invention discloses a resource allocation method and device, and a storage medium, first configuration information and second configuration information are determined, the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card; the first task and the second task belong to periodic tasks; based on the first configuration information and the second configuration information, a first resource and a second resource are allocated to the first task and the second task respectively, the first resource is used for the first task, and the second resource is used for the second task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to wireless communication technology, and in particular to a resource allocation method and device, and a storage medium. Background Art

[0002] To meet the needs of users to have two mobile phone numbers at the same time, mobile terminal manufacturers have launched dual-SIM phones. With the development of 5G and eSIM technology, the technology and functions of dual-SIM phones are also evolving. Dual SIM cards cannot access radio frequency resources at the same time, and need to access radio frequency resources through competition and preemption. In the related art, the dynamic application + decision allocation method is used to determine the use of time and frequency resources by dual SIM cards. In the physical layer task scheduling in the idle state, measurement and paging reception are tasks throughout the entire idle state. In the related art, the measurement and paging task scheduling of each card must independently apply for time and frequency resources to the time and frequency resource decision allocation module, and wait for its authorization before scheduling. Since the resources of the two cards are independently applied for resources, this will lead to resource conflicts and collisions, and there is a scenario where the time and frequency resources are cancelled after authorization. Since the scheduling of measurement and paging tasks in the idle state is very frequent, there are many such "application->authorization" and "cancellation->aftermath", which makes the physical layer scheduling process complicated and the system latency increased. Summary of the invention

[0003] The embodiments of the present application provide a resource allocation method and device, and a storage medium, which can simplify the resource scheduling process and reduce system latency, thereby improving resource scheduling efficiency.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present invention provides a resource allocation method, which includes:

[0006] Determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks;

[0007] Based on the first configuration information and the second configuration information, a first resource and a second resource are allocated to the first task and the second task respectively, the first resource is used for the first task, and the second resource is used for the second task.

[0008] The present application provides a terminal device, including:

[0009] a determination module configured to determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks;

[0010] The allocation module is configured to allocate a first resource and a second resource to the first task and the second task respectively based on the first configuration information and the second configuration information, wherein the first resource is used for the first task and the second resource is used for the second task.

[0011] An embodiment of the present application provides a terminal device, including a processor, wherein the processor is configured to:

[0012] Determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks;

[0013] Based on the first configuration information and the second configuration information, a first resource and a second resource are allocated to the first task and the second task respectively, the first resource is used for the first task, and the second resource is used for the second task.

[0014] An embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the above-mentioned resource allocation method are implemented.

[0015] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned resource allocation method is implemented.

[0016] The chip provided in the embodiment of the present application is used to implement the above-mentioned resource allocation method. The chip includes: a processor, which is used to call and run a computer program from a memory so that a device equipped with the chip executes the above-mentioned resource allocation method.

[0017] The resource allocation method, device, and storage medium provided in the embodiments of the present application determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks; based on the first configuration information and the second configuration information, first resources and second resources are allocated to the first task and the second task respectively, the first resources are used for the first task, and the second resources are used for the second task, so that for periodic tasks with relatively fixed time positions, the resources of the first task and the resources of the second task are uniformly arranged in advance through the first configuration information and the second configuration information, so as to avoid the scenario where the time-frequency resources are cancelled after authorization to the greatest extent, simplify the scheduling process of the physical layer, reduce system latency, and improve resource scheduling efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is an optional flowchart of the resource allocation method provided in the embodiment of the present application;

[0019] Figure 2 is an optional structural diagram of an electronic device provided in an embodiment of the present application;

[0020] FIG. 3A to FIG. 3B is a schematic diagram of the time relationship between the first paging position and the first measurement time period provided in an embodiment of the present application;

[0021] Figure 4 is an optional structural diagram of an electronic device provided in an embodiment of the present application;

[0022] Figure 5 is an optional structural diagram of an electronic device provided in an embodiment of the present application;

[0023] Figure 6 is an optional structural diagram of an electronic device provided in an embodiment of the present application;

[0024] Figure 7 is an optional structural diagram of an electronic device provided in an embodiment of the present application;

[0025] Figure 8 This is an optional flowchart of the resource allocation method provided in the embodiment of the present application;

[0026] Fig. 9 This is an optional flowchart of the resource allocation method provided in the embodiment of the present application;

[0027] Fig.10 This is an optional effect diagram of time domain resource scheduling provided by an embodiment of the present application;

[0028] Fig.11 is an optional structural diagram of a terminal device provided in an embodiment of the present application;

[0029] Fig.12 is an optional schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0030] Fig.13 is an optional schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0031] Fig.14 It is an optional schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0033] The embodiments of the present application can provide a resource allocation method, device and storage medium. In practical applications, the resource allocation method can be implemented by a wireless communication device, and each functional entity in the wireless communication device can be collaboratively implemented by hardware resources of a computer device (such as a terminal device, a network device and other terminal devices), such as computing resources such as a processor, and communication resources (such as for supporting various communication methods such as optical cables and cellular).

[0034] Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and there may be multiple implementation methods, such as being provided as a storage medium (storing instructions for executing the resource allocation method provided by the embodiments of the present application).

[0035] The following describes various embodiments of the resource allocation method, device, and storage medium provided in the embodiments of the present application.

[0036] The present application embodiment provides a resource allocation method, which is applied to a terminal device, such as Figure 1 As shown, the method may include:

[0037] S101. The terminal device determines first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks.

[0038] In the embodiment of the present application, at least two communication cards are running in the terminal device, and the at least two communication cards running include: a first communication card and a second communication card, wherein the first communication card and the second communication card are any two communication cards of the at least two communication cards running. The types of communication cards running in the terminal device may include: a subscriber identity module (SIM) card, a universal subscriber identity module (USIM) card, an embedded SIM (Embedded-SIM) card, etc. In the embodiment of the present application, there is no limitation on the types of communication cards running in the terminal device.

[0039] The high layer of the terminal device determines the first configuration information for the first task and the second configuration information for the second task, wherein the first task and the second task are periodic tasks, and the periodic tasks may include: fixed tasks such as measurement and paging that are performed periodically. The first task is a periodic task corresponding to the first communication card, and the second task is a periodic task corresponding to the second communication card.

[0040] In the embodiment of the present application, the first configuration information and the second configuration information are configuration information for the first communication card and the second communication card respectively, and the configuration information may include at least one of the following information: measurement configuration information for configuring measurement, and paging configuration information for configuring paging. The measurement configuration information may include: a measurement frequency point list. The paging configuration information may include: a paging cycle and a paging position, wherein the paging position indicates the paging time in the time domain.

[0041] It is understandable that if the first configuration information includes measurement configuration information, the first task includes measurement; if the first configuration information includes paging configuration information, the first task includes paging. Similarly, if the second configuration information includes measurement configuration information, the second task includes measurement; if the second configuration information includes paging configuration information, the second task includes paging.

[0042] In the embodiment of the present application, the first configuration information and the second configuration information can be configured by the terminal device itself or by the network device.

[0043] In practical applications, the resource allocation method provided in the embodiment of the present application is implemented in the physical layer of the terminal device, and the physical layer can receive the first configuration information and the second configuration information from the higher layer, namely the protocol layer.

[0044] S102. The terminal device allocates a first resource and a second resource to the first task and the second task respectively based on the first configuration information and the second configuration information, wherein the first resource is used for the first task and the second resource is used for the second task.

[0045] After the terminal device determines the first configuration information and the second configuration information, it uniformly configures the first resource and the second resource based on the first configuration information and the second configuration information, wherein the first resource is a time-frequency resource used to schedule the first task, and the second resource is a time-frequency resource used to schedule the second task.

[0046] Here, the first resource includes a periodic first time in the time domain, and the second resource includes a periodic second time in the time domain.

[0047] In an embodiment of the present application, the terminal device can allocate the first resource and the second resource to the first task and the second task respectively at the scheduling time of the periodic task, wherein the terminal device can set a trigger time point and use the trigger time point as the scheduling time of the periodic task to arrange and allocate the first resource and the second resource.

[0048] The resource allocation method provided in the embodiment of the present application determines first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks; based on the first configuration information and the second configuration information, first resources and second resources are allocated to the first task and the second task respectively, the first resources are used for the first task, and the second resources are used for the second task, so that for periodic tasks with relatively fixed time positions, the resources of the first task and the resources of the second task are uniformly arranged in advance through the first configuration information and the second configuration information. Compared with the scheme of independently applying for the first resource and the second resource in the related art, the scenario of the cancellation of time-frequency resources after authorization is avoided to the greatest extent, the scheduling process of the physical layer is simplified, the system delay is reduced, and the resource scheduling efficiency is improved.

[0049] In some embodiments, Figure 2 As shown, the terminal device 200 includes: a scheduling module 201, a first control module 202 corresponding to the first communication card, and a second control module 203 corresponding to the second communication card; wherein, the first configuration information and the second configuration information sent by the high layer are received by the scheduling module; the first resource and the second resource are respectively allocated to the first task and the second task based on the first configuration information and the second configuration information by the scheduling module; the first resource is notified to the first control module by the scheduling module; and the second resource is notified to the second control module by the scheduling module.

[0050] The scheduling module is configured to schedule and allocate resources, the first control module is used for scheduling tasks of the first communication card, and the second control module is used for scheduling tasks of the second communication card.

[0051] Understandable, such as Figure 2 As shown, the scheduling module directly receives the first configuration information and the second configuration information from the high level, and uniformly allocates resources for the first task and the second task based on the first configuration information and the second configuration information, and sends the first resource information representing the first task allocation to the first control module, and sends the second resource information representing the second resource allocated to the second task to the second control module. The first control module schedules the first task based on the first resource represented by the first resource information received from the scheduling module, and the second control module schedules the second task based on the second resource representing the second resource information received from the scheduling module.

[0052] Optionally, the scheduling module 201, the first control module 202 and the second control module 203 are located in the physical layer of the terminal device.

[0053] In an embodiment of the present application, the scheduling module uniformly allocates resources for the first task and the second task based on the first configuration information and the second configuration information. Compared with the scheme in the related art, in which the first control module and / or the second control module independently applies for resources from the scheduling module when the first task and / or the second task needs to be scheduled, so that the scheduling module independently allocates resources for the first task or the second task based on the received information, resources can be allocated in advance, and the occurrence of resource conflicts between the first resource scheduled for the first task and the second resource scheduled for the second task can be avoided to the greatest extent, and the interaction between the first control module, the second control module and the scheduling module is reduced, thereby simplifying the resource scheduling process and reducing system latency.

[0054] In some embodiments, S102 allocates first resources and second resources to the first task and the second task respectively based on the first configuration information and the second configuration information, including: if the first configuration information and the second configuration information have the same measurement configuration information, deleting the same measurement information in the first configuration information and the second configuration information from the first configuration information to obtain third configuration information; and allocating the first resources and the second resources to the first task and the second task respectively based on the third configuration information and the second configuration information.

[0055] In the case where the first configuration information and the second measurement configuration information respectively include measurement configuration information and the first configuration information and the second configuration information have the same measurement configuration information, the first task includes a measurement task, the second task includes a measurement task, and the measurement task in the first task and the measurement task in the second task have the same measurement frequency. At this time, the terminal device deletes the same configuration information from the first configuration information, obtains the third measurement configuration information, and uniformly allocates the first resource and the second resource to the first task and the second task based on the third configuration information and the second configuration information. At this time, the first resource allocated to the first task and the second resource allocated to the second task do not include resources for the same measurement frequency, and the first task and the second task do not include measurements of the same measurement frequency.

[0056] In one example, the measurement frequencies in the first configuration information include frequency 1, frequency 2, and frequency 3, and the measurement frequencies in the second configuration information include frequency 2 and frequency 4. Frequency 2 is deleted from the first configuration information, and the obtained third configuration information includes the following measurement frequencies: frequency 1 and frequency 3. The first resource corresponding to the first task does not include resources for frequency 2, and the frequencies measured by the first task include frequency 1 and frequency 3, that is, the first task does not perform measurement of frequency 2, and the frequencies measured by the second task include frequency 2 and frequency 4.

[0057] In one example, the measurement frequencies in the second configuration information include frequency 1, frequency 2, and frequency 3, and the measurement frequencies in the first configuration information include frequency 2 and frequency 4. Frequency 2 is deleted from the first configuration information, and the obtained third configuration information includes the following measurement frequencies: frequency 4. The first resource corresponding to the first task does not include the resource of frequency 2, and the frequency points measured by the first task include frequency 4, that is, the first task does not perform the measurement of frequency 2, and the frequency points measured by the second task include frequency 1, frequency 2, and frequency 3.

[0058] It can be understood that the same measurement frequency point is measured in the second task, and the measurement result of the second task can be shared with the first communication card.

[0059] The resource allocation method provided in the embodiment of the present application merges the measurement configuration information of the two cards and deletes repeated measurement frequency points, thereby avoiding the execution of repeated measurements and reducing the measurement time.

[0060] It is understandable that if the measurement tasks of at least two communication cards in the terminal device include the same measurement frequency, when resources are allocated based on the configuration information corresponding to multiple communication cards, the same measurement frequency is retained only in the configuration information of one communication card, and the same or repeated measurement frequency is deleted in the configuration information of other communication cards, so that only one communication card among the multiple communication cards is needed to perform the measurement of the repeated measurement frequency, and the multiple communication cards share the measurement results of the same measurement frequency of this communication card, thereby reducing repeated measurements while ensuring the integrity of the measurement results.

[0061] In some embodiments, S102 allocates first resources and second resources to the first task and the second task respectively based on the first configuration information and the second configuration information, including: if the first target configuration information includes first measurement configuration information and first paging configuration information, determine at least one first paging time according to the first paging configuration information, and the first target configuration information is the first configuration information or the second configuration information; determine at least one first measurement time period according to the at least one first paging time; for a paging time in the at least one first paging time, if the second paging time is included within the first time length from the first paging time, determine the second measurement time period corresponding to the second paging time according to the first paging time, the first measurement time period is used for scheduling the measurement corresponding to the first measurement configuration information, the second measurement time period is used for scheduling the measurement corresponding to the second measurement configuration information in the second target configuration information, and the second paging time is determined based on the second paging configuration information in the second target configuration information, and the second target configuration information is another configuration information in the first configuration information and the second configuration information except the first target configuration information.

[0062] In the embodiment of the present application, the time interval between different paging times is a corresponding paging cycle, ie, a discontinuous reception (DRX) cycle.

[0063] When the configuration information of any one of the first task and the second task includes paging configuration information, the corresponding paging time is determined based on the paging configuration information. Here, if the configuration information corresponding to the first task and the second task both include paging configuration information, the paging time corresponding to each task is determined based on the paging configuration information corresponding to the two tasks, and paging is performed at the corresponding paging time.

[0064] The terminal device determines the first target configuration information and the second target configuration information from the first configuration information and the second configuration information, and determines the paging time corresponding to the paging configuration information included in the first target configuration information in the first configuration information and the second configuration information as the first paging time. If the first target configuration information is the first configuration information, the first paging time is the paging time corresponding to the first task, and if the first target configuration information is the second configuration information, the first paging time is the paging time corresponding to the second task. The first paging configuration information in the first target configuration information is used to determine multiple periodic first paging times.

[0065] In one example, the configuration information corresponding to communication card 1 includes measurement configuration information and paging configuration information, and the configuration information corresponding to communication card 2 includes measurement information. Based on the paging configuration information corresponding to communication card 1, the reference paging time, i.e., the paging time corresponding to communication card 1, is determined, and the measurement time periods are allocated to communication card 1 and communication card 2 based on the reference paging time.

[0066] It should be noted that, when the second target configuration information includes paging configuration information, the paging time of the communication card corresponding to the second target configuration information is not affected by the first target configuration information.

[0067] In an embodiment of the present application, the terminal device may determine the first target configuration information from the first configuration information and the second configuration information based on the DRX cycle corresponding to the first task and the DRX cycle corresponding to the second task. In one example, the terminal device uses the configuration information with a smaller DRX cycle in the first configuration information and the second configuration information as the first target configuration information. At this time, the configuration information with a larger DRX cycle in the first configuration information and the second configuration information is the second target configuration information. In one example, the terminal device uses the configuration information with a larger DRX cycle in the first configuration information and the second configuration information as the first target configuration information. At this time, the configuration information with a smaller DRX cycle in the first configuration information and the second configuration information is the second target configuration information.

[0068] For multiple periodic first paging times, the terminal device determines the first measurement time period corresponding to each first paging time in the first number of first paging cycles based on the first number of first paging times, wherein the start time or end time of the first measurement time period corresponding to a first paging time is less than the first time threshold in time with the first paging time. It is understandable that the first time threshold here is a set duration. Among them, the first number is greater than 1. The first number may be less than the number of first paging times included in the first task. The first paging time is the time for paging corresponding to the first paging configuration information in the first target configuration information for scheduling, and the first measurement time period is the time for measurement corresponding to the first measurement configuration information in the first target configuration information for scheduling.

[0069] In the embodiment of the present application, the terminal device can determine the first number of first paging times and the corresponding first measurement time period at a trigger time point, thereby arranging paging and measurement within a period of time. In the case where the first number of first paging times is a part of the first paging time, the terminal device does not arrange all the paging and measurement of the first paging time, thereby avoiding the time occupied by the paging or measurement arranged too early from conflicting with the time of other services.

[0070] In the embodiment of the present application, a first paging time corresponds to a first measurement time period, where the duration of the first measurement time period may be configured by the network device or may be specified by a protocol.

[0071] After the electronic device completes the allocation of the first measurement time period, the second measurement time period is allocated based on the positional relationship between the first paging time and the second paging time. Here, the second paging time is the time for scheduling the paging corresponding to the first paging configuration information in the second target configuration information, and the second measurement time period is the time for scheduling the measurement corresponding to the second measurement configuration information in the second target configuration information.

[0072] The terminal device determines whether there is a second paging time close to a first paging time based on the first duration. If the duration of the second paging time closest to the first paging time from the first paging time is less than the first duration, it is determined that the second paging time is close to the current first paging time. If the duration of the second paging time closest to the first paging time from the first paging time is greater than or equal to the first duration, it is determined that there is no second paging time close to the first paging time. In one example, the first duration may be half of the DRX cycle corresponding to the first paging time or another set duration.

[0073] For a first paging time, if there is no second paging time close to the first paging time, the terminal device only schedules the corresponding first measurement time period based on the first paging time, and does not schedule the second measurement time period.

[0074] For a first paging time, if there is a second paging time close to the first paging time, the terminal device arranges, i.e. allocates, a second measurement time period corresponding to the second paging time based on the position of the first paging time. The terminal device may arrange the position of the second measurement time period based on the position of the first measurement time period, so that the interval between the first measurement time period and the second measurement time period is less than the second time threshold.

[0075] In the embodiment of the present application, the first measurement time period may be located before or after the corresponding first paging time. If the first measurement time period is located before the corresponding first paging time.

[0076] In one example, if Figures 3A to 3BAs shown, the wake-up time is time period 301, paging is performed at time 302, and measurement is performed at time period 303. Figure 3A In the example, time period 303 is before paging time 302; Figure 3B In the example, time period 303 is located after paging time 302.

[0077] In the embodiment of the present application, if the first measurement time period is before the corresponding first paging time, the second measurement time period is before the first measurement time period; if the first measurement time period is after the corresponding first paging time, the second measurement time period is after the first measurement time period.

[0078] In an embodiment of the present application, the paging time and measurement time period of the communication card corresponding to the first target configuration information are concentrated together as much as possible, and the first measurement time period and the second measurement time period are arranged based on the first paging time corresponding to the first target configuration information, so that the resources of different communication cards can be concentrated together as much as possible. Here, the measurement time periods of multiple communication cards are concentrated near the paging time of one communication card, so as to concentrate the working time of the terminal equipment as much as possible, thereby uniformly allocating the measurements of different communication cards and avoiding multiple sleep and wake-up of the terminal equipment as much as possible.

[0079] In some embodiments, determining at least one first measurement time period based on the at least one first paging time includes: for a first paging time among the at least one first paging time, if a second paging time is included within a first time length from the first paging time, allocating a first measurement time period corresponding to the first paging time on a side of the first paging time close to the second paging time.

[0080] For a first paging time, if there is a second paging time close to the first paging time, the first measurement time is allocated based on the positional relationship of the second paging time close to the first paging time. If the second paging time close to the first paging time is located before the first paging time, the first measurement time corresponding to the first paging time is located before the first paging time; if the second paging time close to the first paging time is located after the first paging time, the first measurement time corresponding to the first paging time is located after the first paging time, that is, if there is a second paging time close to the first paging time period, the first measurement time period corresponding to the first paging time and the second measurement time period corresponding to the second paging time are located on the side of the first paging time period where the second paging time close to the first paging time exists.

[0081] For a first paging time, if there is no second paging time close to the first paging time, the first measurement time period corresponding to the first paging time is located after the first paging time.

[0082] In some embodiments, the terminal device also performs the following processing: for a first paging time among at least one first paging time, determine the start time and end time of the target time period in which the first paging time is located, the target time period includes the first measurement time period corresponding to the first paging time, and the target time period does not include idle time with a duration greater than the second duration; determine the start time as the wake-up time, and determine the end time as the sleep time.

[0083] For a paging time, the target time period where the first paging time is located is a time period in which a basic time where the first paging time is located is occupied. Within the target time period, the duration of the idle time is less than the second duration. Therefore, it can be considered that the terminal device is busy within the target time period. At this time, the terminal device can be controlled to wake up at the start time of the target time period, and the terminal device can be controlled to sleep at the end time of the target time period.

[0084] Here, the target time period may include only the first paging time and the first measurement time period corresponding to the first paging time, and may also include the second time period corresponding to the second paging time close to it. When the time interval between the second measurement time and the corresponding second paging time is less than the second duration, the target time period may also include the second paging time.

[0085] In an embodiment of the present application, the wake-up time and wake-up duration of the terminal device are determined according to the target time period of the allocated first paging time, so that measurement and paging are scheduled within the wake-up time, and paging reception and measurement are completed within the wake-up time, avoiding repeated wake-up and sleep.

[0086] In the resource allocation method provided in the embodiment of the present application, the terminal device first determines the location of paging and measurement and then determines the wake-up location, and determines the wake-up time period based on the execution time length of paging and measurement, so that the wake-up location and wake-up duration are determined by the paging and measurement location and duration. Compared with the scheme in the related art that determines the wake-up time based on the paging time for each communication card, schedules the measurement time after wake-up, schedules the next paging time before entering sleep, and determines the wake-up time based on the paging time, the paging and measurement times of different cards are pre-scheduled together, and the wake-up time and sleep time are determined based on the scheduling results, which can reduce the wake-up and sleep times of the terminal device and avoid repeated wake-up and sleep.

[0087] In some embodiments, the terminal device also performs the following processing: receiving a first message, the first message is used to trigger a third task, the third task corresponds to the first communication card or the second communication card; determining a third resource required to schedule the third task; and allocating a fourth resource to the third task based on the third resource.

[0088] The third task can be understood as a burst task triggered by the first message, such as system message reception and random access.

[0089] In the embodiment of the present application, the first message may be a system broadcast message.

[0090] When the terminal device receives the first message, it receives the third task and determines the time-frequency resources required for scheduling the third task, i.e., the third resource, wherein the terminal device determines the third resource according to the time-frequency information configured by the network device. The reception and random access of the system message configured by the network device will be accompanied by the time position length and frequency position information of the third task.

[0091] After the terminal device determines the third resource, it applies for the third resource. It is understandable that the terminal device applies for the third resource based on the third resource information representing the third resource, and the third resource information may include: frequency, start time point, time length and other information.

[0092] When the terminal device applies for the third resource based on the third resource information, the application result is the fourth resource, wherein the fourth resource may be the same as or different from the third resource. The terminal device may allocate the fourth resource to the third task based on the occupation of the third resource, the priority of the business occupying the third resource when the third resource is occupied, and the priority of the third task.

[0093] It can be understood that if the third resource is not occupied, the fourth resource is the third resource; if the third resource is occupied and the priority of the business occupying the third resource is lower than the priority of the third task, the fourth resource is the third resource; if the third resource is occupied and the priority of the business occupying the third resource is higher than or equal to the priority of the third task, the fourth resource is different from the third resource.

[0094] In the embodiment of the present application, the terminal device allocates resources for periodic services and burst services through different resource allocation methods. For periodic tasks, since the time position of their occurrence is relatively fixed and can be predicted in advance, a direct allocation method can be used. For burst tasks, since the time position of their occurrence cannot be predicted in advance, a dynamic application method can be used to flexibly allocate resources according to the task type.

[0095] In some embodiments, Figure 2As shown, the terminal device 200 includes: a scheduling module 201, a first control module 202 and a second control module 203; wherein the first message is received by a target control module, and the target control module is the first control module for the first communication card or the second control module for the second communication card; the third resource required to execute the third task is determined by the target control module, and the third resource is applied to the scheduling module; the fourth resource is allocated to the third task by the scheduling module, and the fourth resource is sent to the target control module.

[0096] Understandable, such as Figure 5 As shown, when the first control module or the second control module receives the first message, it sends the third resource information to the scheduling module to apply for the third resource. The scheduling module allocates the fourth resource based on the third resource, and notifies the first control module or the second control module that sent the third resource information of the allocated fourth resource.

[0097] The following is a further description of the resource allocation method provided in the embodiment of the present application.

[0098] To meet users' needs of having two mobile phone numbers at the same time, mobile terminal manufacturers have launched dual-SIM phones. With the development of 5G and eSIM technology, the technology and functions of dual-SIM phones are also evolving.

[0099] The working modes of the dual SIM cards in a dual SIM card mobile phone include: Dual SIM Dual Standby (DSDS) mode and Dual SIM Dual Active (DSDA) mode.

[0100] Dual SIM Dual Standby: Two SIM cards can reside on the network at the same time, and both can receive network paging, but cannot transmit uplink data at the same time. Dual SIM Dual Standby is divided into Dual SIM Dual Standby Single Receive and Dual SIM Dual Standby Dual Receive. Dual SIM Dual Standby Single Receive: Dual SIM cards share a receiving channel, and the two cards maintain the resident state by occupying each other's resources (including receiving paging, measurement, reselection, etc.). Dual SIM Dual Standby Dual Receive: The two cards each have an independent receiving channel, and can receive at the same time without occupying each other. However, there are usually restrictions on access technology (RAT) and frequency band combination (Band Combo), and there will be no unlimited dual reception.

[0101] Dual SIM dual access: Two SIM cards can not only receive downlink data at the same time, but also send uplink data at the same time. Existing dual access products also have RAT and Band Combo restrictions. Dual SIM dual access is usually achieved by using ENDC's receiving and transmitting capabilities or RF switching, and is not unlimited dual access.

[0102] Dual SIM cards cannot access radio frequency resources at the same time, and need to compete and preempt to access radio frequency resources. In related technologies, a dynamic application + decision allocation method is used to determine the use of time and frequency resources by dual SIM cards, as follows Figure 5 As shown, the physical layer 51 includes physical layer task control modules 501 and 502 of two SIM cards, namely the first control module and the second control module, and a time-frequency resource decision allocation module 503, namely the scheduling module. When the physical layer task control module 501 or 502 of a card needs to schedule a task, it first needs to apply for the corresponding time-frequency resources from the time-frequency resource decision allocation module 503. After receiving the application, the time-frequency resource decision allocation module 503 will check whether there is radio frequency occupation in the applied time period. If it is occupied, it will determine the task occupying the resource according to the priority, allocate the resource to the high-priority task and notify the high-priority task of the resource, namely, the decision allocation, and at the same time notify the low-priority task that the resource is preempted, namely, the allocation is rejected and the available time-frequency resources in other time periods are given. Among them, the physical layer task control module can send the resources allocated by the time-frequency resource decision allocation module 503 to the protocol layer 52 to schedule the task.

[0103] In the physical layer task scheduling in the idle state, measurement and paging reception are tasks throughout the entire idle state. In the related art, the measurement and paging task scheduling of each card must independently apply for time-frequency resources to the time-frequency resource decision allocation module, and wait for its authorization before scheduling. Since the physical layer task control modules of the two cards independently apply for resources, this will cause resource conflicts in which priority tasks preempt low-priority resources: the low-priority task gets resource authorization first, but suddenly initiates a high-priority task, which requires canceling the previous low-priority task authorization, thereby stopping the low-priority task and planning the next time to schedule the low-priority task. Therefore, there is a scenario where the time-frequency resource authorization is canceled, and the physical layer task control module must also handle this situation. Since the measurement and paging task scheduling in the idle state is very frequent, there are many such "application->authorization" and "cancellation->aftermath", which makes the interaction process between modules more cumbersome, the design of the physical layer task control module more complicated, and also increases the system delay.

[0104] The resource allocation method provided in the embodiment of the present application proposes a method for allocating physical layer time-frequency resources by combining direct allocation / dynamic application.

[0105] In the idle state, the physical layer tasks generally include two types of tasks: one is the periodic scheduling tasks, such as measurement and paging reception; the other is the burst tasks, such as system message reception and random access. For periodic tasks, since their time positions are relatively fixed and can be predicted in advance, direct allocation can be used. For burst tasks, since their time positions cannot be predicted in advance, dynamic application by the physical layer task control module can be used.

[0106] For periodic scheduling tasks such as measurement and paging reception, the time-frequency resource decision allocation module across SIM cards can uniformly arrange the measurement and paging positions of the two cards, and then directly assign them to the physical layer task control modules of the two cards to complete the corresponding measurement and paging reception actions. When the time-frequency resource decision allocation module arranges, the measurement positions of the two cards can be as close as possible to reduce the power consumption loss caused by frequent wake-up / sleep. At the same time, the same neighboring cells of the two cards can be easily merged to reduce the measurement time and further reduce power consumption.

[0107] For other burst tasks (such as system message reception and random access), the physical layer task control modules of the two cards apply for time-frequency resources from the time-frequency resource decision allocation module, and then perform task scheduling after obtaining authorization.

[0108] For scheduling periodicity / tasks, the module structure and inter-module interaction of the embodiment of the present application Figure 6 As shown, the time-frequency resource decision allocation module 503 obtains the measurement and paging configuration information of the two cards from the protocol layer 52, and allocates time domain resource 1 and time domain resource 2 to card 1 and card 2 respectively based on the measurement and paging configuration information of the two cards, that is, determines the measurement / paging position sorting, sends the time domain resource 1 to the physical layer task control module 501 of card 1, and sends the time domain resource 2 to the physical layer task control module 502 of card 2.

[0109] For scheduling periodicity / tasks, the module structure and inter-module interaction of the embodiment of the present application Figure 7 As shown, the time-frequency resource decision allocation module receives the resource application sent by the physical layer task control module 501, and allocates time-frequency resources to card 1 according to the received resource application, and sends the allocated time-frequency resources, i.e., the judgment allocation, to the physical layer task control module 501; the time-frequency resource decision allocation module receives the resource application sent by the physical layer task control module 502 respectively, and allocates time-frequency resources to card 2 according to the received resource application, and sends the allocated time-frequency resources, i.e., the judgment allocation, to the physical layer task control module 502.

[0110] The resource allocation method provided in the embodiment of the present application can be as follows: Figure 8 As shown, including:

[0111] S801. A time domain resource scheduling and allocation module obtains measurement / paging configuration information of two cards.

[0112] The time-frequency resource decision allocation module obtains measurement and paging configuration information from the upper layer, merges the measurement configuration information of the two cards, and deletes duplicate frequency points.

[0113] S802. The time domain resource scheduling and allocation module uniformly arranges the measurement / paging positions of the two cards.

[0114] Arrange the measurement or paging positions of the two cards uniformly according to the measurement or paging configuration. When configuring the measurement position and paging position, make the measurement as close to the paging as possible, concentrate on completing the paging reception and measurement within the wake-up time, and avoid repeated wake-up / sleep.

[0115] S803 . The time domain resource scheduling and allocation module sends a measurement or paging location to the physical layer task control module of card 1 .

[0116] S804 . The time domain resource scheduling and allocation module sends a measurement or paging location to the physical layer task control module of card 2 .

[0117] The physical layer task control modules of card 1 and card 2 receive the paging or measurement task allocation from the time-frequency resource decision allocation module respectively, and perform task scheduling within the designated resources.

[0118] S805. The physical layer task control module of card 1 receives the system broadcast request.

[0119] S806. The physical layer task control module of card 1 sends a time-frequency resource application to the time-frequency resource decision allocation module.

[0120] The physical layer task control module of card 1 receives the broadcast request from the protocol layer receiving system, calculates the required time-frequency resources, and sends a time-frequency resource application to the time-frequency resource decision allocation module.

[0121] The time-frequency resource decision allocation module checks the resources authorized to be allocated to card 1 according to the current resource occupancy and the applied resources.

[0122] S807. The time-frequency resource determination and allocation module checks the current time-frequency resource occupancy, adjusts the time-frequency conflict according to the priority, and authorizes the available time-frequency resources to the applying module.

[0123] S808. The physical layer task control module of card 1 receives the time-frequency resource authorization.

[0124] The physical layer task control module of card 1 uses authorized resources to schedule tasks.

[0125] according to Figure 8The resource allocation method shown can determine that for periodic scheduling tasks, it can reduce information interaction and waiting delay between modules and improve scheduling efficiency.

[0126] The flow chart of the time-frequency resource decision allocation module of this scheme is as follows: Fig. 9 As shown, including:

[0127] S901: Whether the paging / measurement configuration of the dual SIM cards is received.

[0128] If received, execute S902; if not received, execute S903.

[0129] S902: Merge the measurement configurations of the two cards.

[0130] S903: Whether a time-frequency resource application for a burst task is received.

[0131] If received, execute S904; if not received, execute S905.

[0132] S904: Resolve time-frequency resource conflicts and authorize time-frequency resources.

[0133] S905: Is it time to schedule a periodic task?

[0134] If it arrives, execute S906; if it does not arrive, execute S901.

[0135] S906. Arrange paging / measurement positions and allocate time-frequency resources.

[0136] The resource allocation method provided in the embodiment of the present application proposes a method for allocating physical layer time and frequency resources that combines direct allocation / dynamic application according to the characteristics of different physical layer tasks, and proposes a method for uniformly scheduling dual-card measurement / paging reception tasks when directly allocating physical layer time and frequency resources.

[0137] The resource allocation method provided in the embodiment of the present application provides a method for uniformly allocating time-frequency resources for dual-card paging / measurement tasks, which can simplify the interaction and coordination process between dual cards, reduce the waiting delay between modules, and reduce the complexity of physical layer control software design and maintenance. In addition, in the embodiment of the present application, the scheduling scheme for periodic and burst tasks can meet the scheduling requirements of various physical layer tasks while simplifying the dual-card interaction process. In addition, the resource allocation method provided in the embodiment of the present application can reduce the standby power consumption of the terminal and improve the standby experience of the terminal user.

[0138] In one example, the UE has two SIM cards, and different SIM cards reside in different cells, and the UE can perform co-frequency / inter-frequency measurements. When the UE is in idle mode, the power consumption waveform of the UE can be as follows: Fig.10As shown, the shaded part represents the measurement time, 1001 is the paging position of card 1, and 1002 is the paging position of card 2. Fig.10 It can be determined that the measured power consumption waveforms are all concentrated near the paging position of card 1, thereby reducing the standby power consumption of the terminal.

[0139] It should be noted that the method provided in the embodiment of the present application can be applied not only to time-frequency resource allocation in an idle state, but also to time-frequency resource allocation in a terminal connected state.

[0140] A terminal device according to an embodiment of the present application, such as Fig.11 As shown, the terminal device 1100 includes:

[0141] The determination module 1101 is configured to determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks;

[0142] The allocation module 1102 is configured to allocate a first resource and a second resource to the first task and the second task respectively based on the first configuration information and the second configuration information, wherein the first resource is used for the first task and the second resource is used for the second task.

[0143] Here, the determination module 1101 and the allocation module 1102 may be located at Figure 2 In the scheduling module 201 of the terminal device.

[0144] In some embodiments, the allocation module 1102 is further configured to:

[0145] If the first configuration information and the second configuration information have the same measurement configuration information, delete the same measurement configuration information in the first configuration information and the second configuration information from the first configuration information to obtain third configuration information;

[0146] and the second configuration information allocates the first resource and the second resource to the first task and the second task respectively.

[0147] In some embodiments, the allocation module 1102 is further configured to:

[0148] If the first target configuration information includes first measurement configuration information and first paging configuration information, at least one first paging time is determined according to the first paging configuration information, and the first target configuration information is the first configuration information or the second configuration information;

[0149] Determining at least one first measurement time period according to the at least one first paging time;

[0150] For a paging time among the at least one first paging time, if a second paging time is included in the first time length from the first paging time, a second measurement time period corresponding to the second paging time is determined according to the first paging time, the first measurement time period is used for scheduling the measurement corresponding to the first measurement configuration information, the second measurement time period is used for scheduling the measurement corresponding to the second measurement configuration information in the second target configuration information, the second paging time is determined based on the second paging configuration information in the second target configuration information, and the second target configuration information is another configuration information other than the first target configuration information in the first configuration information and the second configuration information.

[0151] In some embodiments, the allocation module 1102 is further configured to:

[0152] For a first paging time among the at least two first paging times, if a second paging time is included within a first time length from the first paging time, a first measurement time period corresponding to the first paging time is allocated on a side of the first paging time close to the second paging time.

[0153] In some embodiments, the terminal device 800 further includes: a scheduling module configured to:

[0154] For a first paging time among the at least one first paging time, determine a start time and an end time of a target time period in which the first paging time is located, wherein the target time period includes a first measurement time period corresponding to the first paging time, and the target time period does not include an idle time having a duration greater than a second duration;

[0155] The start time is determined as the wake-up time, and the end time is determined as the sleep time.

[0156] In some embodiments, the terminal device 800 further includes:

[0157] a receiving module, configured to receive a first message, where the first message is used to trigger a third task, where the third task corresponds to the first communication card or the second communication card;

[0158] an application module, configured to determine a third resource required for scheduling the third task;

[0159] The allocation module 1102 is further configured to allocate a fourth resource to the third task according to the third resource.

[0160] In practical applications, the above-mentioned determination module, allocation module, scheduling module, receiving module, application module and other modules can be implemented by a processor located on the terminal device, specifically a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA).

[0161] Those skilled in the art should understand that the relevant description of the above-mentioned terminal device in the embodiment of the present application can be understood by referring to the relevant description of the resource allocation method in the embodiment of the present application.

[0162] Fig.12 A schematic diagram of the structure of an electronic device optionally implemented as a terminal device is provided in an embodiment of the present application, such as Fig.12 As shown, an embodiment of the present application provides an electronic device 1200, including an electronic chip 1201, which can be implemented as an image processing algorithm as described in one or more of the above embodiments.

[0163] An embodiment of the present application provides an electronic device, Fig.13 A schematic diagram of the structure of another optional electronic device implemented as a terminal device provided in an embodiment of the present application, such as Fig.13 As shown, an embodiment of the present application provides an electronic device 1300, including:

[0164] A processor 1301 and a storage medium 1302 storing executable instructions of the processor 1301, wherein the storage medium 1302 relies on the processor 1301 to perform operations through a communication bus 1303, and when the instructions are executed by the processor 1301, the resource allocation method performed in one or more of the above embodiments is executed.

[0165] It should be noted that, in actual application, the various components in the terminal are coupled together via the communication bus 1303. It is understandable that the communication bus 1303 is used to realize the connection and communication between these components. In addition to the data bus, the communication bus 1303 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.13 Various buses are labeled as communication buses 1303.

[0166] An embodiment of the present application provides a computer storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to execute the steps of the resource allocation method described in one or more of the above embodiments.

[0167] An embodiment of the present application provides a schematic structural diagram of an electronic device 1400. Fig.14 The electronic device 1400 shown includes a processor 1410 .

[0168] When the terminal device is a receiving device, the processor 1410 is configured to:

[0169] Determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks;

[0170] Based on the first configuration information and the second configuration information, a first resource and a second resource are allocated to the first task and the second task respectively, the first resource is used for the first task, and the second resource is used for the second task.

[0171] In the embodiment of the present application, the processor 1410 can call and run a computer program from the memory to implement the resource allocation method in the embodiment of the present application.

[0172] Alternatively, if Fig.14 As shown, the electronic device 1400 may further include a memory 1420. The processor 1410 may call and run a computer program from the memory 1420 to implement the resource allocation method in the embodiment of the present application.

[0173] The memory 1420 may be a separate device independent of the processor 1410 , or may be integrated into the processor 1410 .

[0174] Alternatively, if Fig.14 As shown, the electronic device 1400 may further include a transceiver 1430, and the processor 1410 may control the transceiver 1430 to communicate with other devices, specifically, to receive signals sent by other devices.

[0175] Optionally, the electronic device 1400 can implement the corresponding processes implemented by the electronic device in each method of the embodiment of the present application, and for the sake of brevity, it will not be repeated here. It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Arra y, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined to execute. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0176] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0177] It should be understood that the above-mentioned memory is exemplary but not restrictive. For example, the memory in the embodiments of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct RAM bus random access memory (Direct RAM, DR RAM), etc. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.

[0178] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.

[0179] Optionally, the computer-readable storage medium can be applied to the terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0180] An embodiment of the present application also provides a computer program product, including computer program instructions.

[0181] Optionally, the computer program product can be applied to the terminal device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0182] The embodiment of the present application also provides a computer program.

[0183] Optionally, the computer program can be applied to the terminal device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0184] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0185] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0186] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0187] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0188] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0189] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0190] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A resource allocation method, characterized in that: Applied to a terminal device, the method comprises: Determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks; Based on the first configuration information and the second configuration information, a first resource and a second resource are allocated to the first task and the second task respectively, the first resource is used for the first task, and the second resource is used for the second task.

2. The method according to claim 1, characterized in that The allocating a first resource and a second resource to the first task and the second task respectively based on the first configuration information and the second configuration information includes: If the first configuration information and the second configuration information have the same measurement configuration information, delete the same measurement configuration information in the first configuration information and the second configuration information from the first configuration information to obtain third configuration information; The first resource and the second resource are respectively allocated to the first task and the second task based on the third configuration information and the second configuration information.

3. The method according to claim 1 or 2, characterized in that: The allocating a first resource and a second resource to the first task and the second task respectively based on the first configuration information and the second configuration information includes: If the first target configuration information includes first measurement configuration information and first paging configuration information, at least one first paging time is determined according to the first paging configuration information, and the first target configuration information is the first configuration information or the second configuration information; Determining at least one first measurement time period according to the at least one first paging time; For a paging time among the at least one first paging time, if a second paging time is included in the first time length from the first paging time, a second measurement time period corresponding to the second paging time is determined according to the first paging time, the first measurement time period is used for scheduling the measurement corresponding to the first measurement configuration information, the second measurement time period is used for scheduling the measurement corresponding to the second measurement configuration information in the second target configuration information, the second paging time is determined based on the second paging configuration information in the second target configuration information, and the second target configuration information is another configuration information other than the first target configuration information in the first configuration information and the second configuration information.

4. The method according to claim 3, characterized in that The determining, according to the at least one first paging time, at least one first measurement time period includes: For a first paging time among the at least one first paging time, if a second paging time is included within a first time length from the first paging time, a first measurement time period corresponding to the first paging time is allocated on a side of the first paging time close to the second paging time.

5. The method according to claim 3, characterized in that: The method further comprises: For a first paging time among the at least two first paging times, determining a start time and an end time of a target time period in which the first paging time is located, wherein the target time period includes a first measurement time period corresponding to the first paging time, and the target time period does not include an idle time having a duration greater than a second duration; The start time is determined as the wake-up time, and the end time is determined as the sleep time.

6. The method according to claim 1, characterized in that The terminal device comprises: a scheduling module, a first control module corresponding to the first communication card, and a second control module corresponding to the second communication card, and the method further comprises: Receiving the first configuration information and the second configuration information sent by the high layer through the scheduling module; The scheduling module allocates the first resource and the second resource to the first task and the second task respectively based on the first configuration information and the second configuration information; The scheduling module notifies the first control module of the first resource; The scheduling module notifies the second control module of the second resource.

7. The method according to claim 1, characterized in that The method further comprises: receiving a first message, where the first message is used to trigger a third task, where the third task corresponds to the first communication card or the second communication card; Determining a third resource required for scheduling the third task; A fourth resource is allocated to the third task according to the third resource.

8. The method according to claim 7, characterized in that The method further comprises: The first message is received by a target control module, where the target control module is a first control module for the first communication card or a second control module for the second communication card; Determine the third resource required to execute the third task through the target control module, and apply for the third resource from the scheduling module; The fourth resource is allocated to the third task through the scheduling module, and the fourth resource is sent to the target control module.

9. A terminal device, characterized in that: include: A determination module, configured to determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks; The allocation module is configured to allocate a first resource and a second resource to the first task and the second task respectively based on the first configuration information and the second configuration information, wherein the first resource is used for the first task and the second resource is used for the second task.

10. A terminal device, comprising a processor, characterized in that: The processor is configured to: Determine first configuration information and second configuration information, wherein the first configuration information is configuration information of a first task corresponding to a first communication card, and the second configuration information is configuration information of a second task corresponding to a second communication card, and the first task and the second task are periodic tasks; Based on the first configuration information and the second configuration information, a first resource and a second resource are allocated to the first task and the second task respectively, the first resource is used for the first task, and the second resource is used for the second task.

11. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps in the resource allocation method according to any one of claims 1 to 8 are implemented.

12. A storage medium storing an executable program, characterized in that: When the executable program is executed by a processor, the resource allocation method described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Resource allocation method and device, communication equipment, chip and storage medium

    CN119767437A

  • A resource allocation method and device, communication equipment, chip and storage medium

    CN119767437B