CN105979501B - Resource allocation methods and device - Google Patents
Resource allocation methods and device Download PDFInfo
- Publication number
- CN105979501B CN105979501B CN201610499372.2A CN201610499372A CN105979501B CN 105979501 B CN105979501 B CN 105979501B CN 201610499372 A CN201610499372 A CN 201610499372A CN 105979501 B CN105979501 B CN 105979501B
- Authority
- CN
- China
- Prior art keywords
- sim
- priority
- application
- trm
- data service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Telephonic Communication Services (AREA)
- Telephone Function (AREA)
Abstract
The disclosure belongs to field of communication technology about a kind of resource allocation methods and device.This method comprises: currently generating priority request when the application of front stage operation is white list application, priority request is sent to TRM;The first priority is set for the priority that the data service of the first SIM occupies antenna resources according to priority request by TRM;Antenna resources are distributed to by TRM according to the first priority the data service of the first SIM request;Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources and the data service of the 2nd SIM occupies the third priority of antenna resources, TRM is solved when receiving the data service of the first SIM and receiving the voice service of the 2nd SIM simultaneously, the problem of voice service that antenna resources distribute to the 2nd SIM is led to the data traffic interruptions of the first SIM, has achieved the effect that guarantee that user needs the data service of priority processing not interrupt.
Description
Technical field
This disclosure relates to field of communication technology, in particular to a kind of resource allocation methods and device.
Background technique
Currently, more and more users use dual-card dual-standby terminal, wherein dual-card dual-standby terminal refers to support installation two
SIM (Subscriber Identification Module, client identification module) card or USIM (Universal
Subscriber Identity Module, global customers identification module) card terminal.When dual-card dual-standby terminal only includes one
When antenna, if first card of two Zhang Kazhong of dual-card dual-standby terminal installation requests voice service, second card request data industry
Business, then the dual-card dual-standby terminal can be preferably the voice service distribution antenna resources of first card according to type of service, that is, language
The priority that sound business occupies antenna resources is higher than the priority that data service occupies antenna resources.Voice service refers to telephone industry
Business or short message service;Data service refers to the business realized using data network, such as: visual telephone business, web page browsing industry
Business etc..
Summary of the invention
To solve the problems in the relevant technologies, present disclose provides a kind of resource allocation methods and devices.
According to the first aspect of the embodiments of the present disclosure, a kind of resource allocation methods are provided, this method comprises:
Whether detection is currently white list application in the application of front stage operation, and white list is applied for handling data service;
Priority request is generated when application is white list application, priority request is sent to TRM (Transceiver
Resource Manager, the resource manager of transceiver), which is used to distribute antenna resources for different SIM;
The is set by the priority that the data service of the first SIM occupies antenna resources according to priority request by TRM
One priority, the first SIM are the SIM of current connection data network;
Antenna resources are distributed to by TRM according to the first priority the data service of the first SIM request;
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
Optionally, antenna resources are distributed to by TRM according to the first priority the data service of SIM request, comprising:
When TRM receives the data service request of the first SIM, and receive simultaneously the 2nd SIM voice service request or
When person's data service request, antenna resources are distributed to the data service of the first SIM by TRM according to the first priority.
Optionally, this method further include:
When application is switched to running background by front stage operation, cancel priority alternatively, generating when terminal is closed and applied
Request, and sent to TRM and cancel priority request;
By TRM according to the data service for cancelling priority request and cancelling the first SIM occupy antenna resources it is first preferential
Grade.
Optionally, this method further include:
The first addition instruction is received, at least one application of display is instructed according to the first addition;
Selection instruction is received, application indicated by selection instruction is determined as white list application and is added in white list library.
Optionally, this method further include:
The second addition instruction is received, the mark for the application that the second addition instruction carries is obtained;
Mark application identical with the mark of application is determined as white list application to be added in white list library.
Optionally, whether detection is currently white list application in the application of front stage operation, comprising:
It obtains currently in the mark of the application of front stage operation;
With the presence or absence of the mark to match with application in the mark at least one white list application that detection white list library includes
Know;
When there is the mark to match with application in the mark at least one white list application that white list library includes, really
Fixed application is white list application.
According to the second aspect of an embodiment of the present disclosure, a kind of resource allocation device is provided, which includes:
Detection module is configured as whether detection is currently white list application, white list application in the application of front stage operation
For handling data service;
First generation module is configured as detecting to ask using generation priority when being white list application in detection module
It asks, priority request is sent to TRM, TRM is used to distribute antenna resources for different SIM;
Setup module is configured as the priority request generated by TRM according to the first generation module for the number of the first SIM
It is set as the first priority according to the priority that business occupies antenna resources, the first SIM is the SIM of current connection data network;
Distribution module is configured as being distributed to antenna resources according to the first priority that setup module is arranged by TRM
The data service of first SIM request;
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
Optionally, distribution module is also configured to
When TRM receives the data service request of the first SIM, and receive simultaneously the 2nd SIM voice service request or
When person's data service request, antenna resources are distributed to the data service of the first SIM by TRM according to the first priority.
Optionally, the device further include:
Second generation module is configured as when application is switched to running background by front stage operation, alternatively, when terminal is closed
Using when generate cancel priority request, and to TRM send cancel priority request;
Priority cancels module, and the cancellation priority request for being configured as being generated by TRM according to the second generation module takes
Disappear the first SIM data service occupy antenna resources the first priority.
Optionally, the device further include:
First receiving module is configured as receiving the first addition instruction;
Display module is configured as according to received at least one application of first addition instruction display of the first receiving module;
Second receiving module is configured as receiving selection instruction;
First adding module is configured as application indicated by the received selection instruction of the second receiving module being determined as white
List application is added in white list library.
Optionally, the device further include:
Third receiving module is configured as receiving the second addition instruction;
Module is obtained, is configured as obtaining the mark for the application that the received second addition instruction of third receiving module carries;
Second adding module, the mark application identical with the mark of application for being configured as will acquire module acquisition are determined as
White list application is added in white list library.
Optionally, detection module, comprising:
Acquisition submodule is configured as obtaining currently in the mark of the application of front stage operation;
Whether detection sub-module is configured as depositing in the mark at least one white list application that detection white list library includes
In the mark that the mark with application matches;
It determines submodule, is configured as detecting at least one white list application that white list library includes when detection sub-module
Mark in when there is the mark to match with the mark of application, determine that applying is white list application.
According to the third aspect of an embodiment of the present disclosure, a kind of resource allocation device is provided, which includes:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Whether detection is currently white list application in the application of front stage operation, and white list is applied for handling data service;
Priority request is generated when application is white list application, priority request is sent to TRM, TRM is used for as not
Same SIM distributes antenna resources;
The is set by the priority that the data service of the first SIM occupies antenna resources according to priority request by TRM
One priority, the first SIM are the SIM of current connection data network;
Antenna resources are distributed to by TRM according to the first priority the data service of the first SIM request;
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By in the application of front stage operation being currently white list in application, priority request is generated, by priority request
It is sent to TRM;The priority that the data service of the first SIM occupies antenna resources is set to according to priority request by TRM
First priority;The data service that antenna resources are distributed to by TRM according to the first priority the first SIM request, so that TRM
It, can be by day in the data service for receiving the first SIM, and when receiving the data service or voice service of the 2nd SIM simultaneously
Line resource allocation needs the data service of the first SIM of priority processing to user, and the priority for solving voice service is higher than number
According to the priority of business, caused TRM connects simultaneously in the data service for receiving user and needing the first SIM of priority processing
When receiving the voice service of the 2nd SIM, antenna resources can be distributed to the voice service of the 2nd SIM, the data industry of the first SIM
The problem of business is interrupted, the data service for having reached the first SIM for guaranteeing that user needs priority processing will not be due to the language of the 2nd SIM
The interference of sound business or data service and the effect interrupted.
In addition, being taken by when application is switched to running background by front stage operation alternatively, being generated when terminal is closed and applied
Disappear priority request, and sends to TRM and cancel priority request;TRM cancels the data of the first SIM according to priority request is cancelled
Business occupies the first priority of antenna resources, so that TRM is not when user needs the data service of the first SIM of priority processing,
The data service for restoring the first SIM occupies the priority of antenna resources, in this way, TRM does not need user and preferentially locates receiving
Antenna resources can be distributed to the by the data service of the first SIM of reason, and when receiving the voice service of the 2nd SIM simultaneously
The voice service of two SIM ensure that the voice service of the 2nd SIM will not sustained interruption.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and constitutes a part of present disclosure specification, shows and meets the disclosure
Embodiment, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of resource allocation methods shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the resource allocation methods shown according to another exemplary embodiment.
Fig. 3 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of device for resource allocation shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
All embodiments in the disclosure are used in multi-card multi-standby single-pass terminal, and terminal mentioned below is more
Card is mostly to single-pass terminal.Multi-card multi-standby single-pass terminal refers to the Multi-card multi-standby terminal for being only equipped with an antenna, and more cards are more
It include TRM to single-pass terminal, which is used to distribute antenna resources for different SIM.It only will have is hereinafter different
The combination of the hardware of function of SIM distribution antenna resources, software or software and hardware is defined as TRM and comes for example, in practical reality
Now, the combination of the hardware with the function, software or software and hardware can also be defined as other titles, and the disclosure does not limit
It is fixed.
In addition, the first SIM and the 2nd SIM hereinafter is only used for the different SIM that distinguishing terminal includes, not to two
The title of SIM, which is constituted, to be limited, and is not also constituted and is limited to the timing of every SIM request data business or request voice service,
In, data service refers to the business realized by data network, such as: the business such as web page browsing, video calling, instant messaging.
Voice service refers to telephone service or short message service.
Fig. 1 is a kind of flow chart of resource allocation methods shown according to an exemplary embodiment, the resource allocation methods
Applied in multi-card multi-standby single-pass terminal, as shown in Figure 1, the resource allocation methods include the following steps.
In a step 101, whether detection is currently white list application in the application of front stage operation.
Wherein, white list is applied for handling data service.
In a step 102, priority request is generated when application is white list application, priority request is sent to TRM.
In step 103, the data service of the first SIM is occupied according to priority request by the excellent of antenna resources by TRM
First grade is set as the first priority, and the first SIM is the SIM of current connection data network.
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
At step 104, antenna resources are distributed to by TRM according to the first priority the data industry of the first SIM request
Business.
In conclusion the resource allocation methods that the disclosure provides, by being white list in the application currently in front stage operation
In application, generating priority request, priority request is sent to TRM;By TRM according to priority request by the first SIM's
The priority that data service occupies antenna resources is set as the first priority;By TRM according to the first priority by antenna resources
The data service for distributing to the first SIM request, so that TRM is receiving the data service of the first SIM, and receives second simultaneously
When the data service or voice service of SIM, antenna resources can be distributed to the data that user needs the first SIM of priority processing
Business, the priority for solving voice service are higher than the priority of data service, and caused TRM is receiving user's needs preferentially
Antenna resources can be distributed to the by the data service of the first SIM of processing, and when receiving the voice service of the 2nd SIM simultaneously
The problem of voice service of two SIM, the data traffic interruptions of the first SIM, has reached and has guaranteed user needs priority processing
The data service of one SIM will not due to voice service or the data service of the 2nd SIM interference and the effect interrupted.
Fig. 2 is a kind of flow chart of the resource allocation methods shown according to another exemplary embodiment, the resource allocation side
Method is applied in multi-card multi-standby single-pass terminal, as shown in Fig. 2, the resource allocation methods include the following steps.
In step 201, it obtains currently in the mark of the application of front stage operation.
It to apply when there are one in front stage operation, an activity (activity) of the application is in running (fortune
Row) state, operating system in terminal is currently at the activity of running state and obtains currently transporting on foreground by obtaining
Capable application.
Wherein, each application includes at least one activity, and each activity of each application includes four kinds of shapes
State, four kinds of states are respectively that running state, paused (pause) state, stopped (stopping) state and killed (are killed
Extremely) state.
The running state of activity refers to the activity in the front end of terminal screen, and the activity can
The state of activation seen and can interacted with user, such as: the session interface of the application program A for the front stage operation that terminal is shown.
The paused state of activity refers to the activity by another transparent or dialog (label) pattern
Activity cover when state, at this point, the activity still as it can be seen that but can not be interacted with user, such as: terminal is on foreground
A prompt information is shown on the session interface of the application program A of operation, the session interface of application program A is in paused
State.
The stopped state of activity refers to that the activity is invisible, but when being stored in running state
Data and UI (User Interface, user interface) state when being in running state, such as: in running background
Application program A;
The killed state of activity refers to that the activity is invisible, and when without saving in running state
Data and be in running state when UI (User Interface, user interface) state, such as: inactive answers
With program A.
Operating system in terminal obtains obtaining the mark of the application currently in front stage operation after.Wherein, this is answered
Mark can be title, the packet name of the application or the ID of the application (identity, identity number) of the application, this
Embodiment is not construed as limiting.
In step 202, it whether there is and answer in the mark at least one white list application that detection white list library includes
Identify the mark to match.
Terminal is got currently after the mark of the application of front stage operation, include by the mark and white list library at least one
The mark of a white list application is matched, and is existed and is answered in the mark at least one white list application that white list library includes
When identifying the mark to match, step 203 is executed;In the mark at least one white list application that white list library includes
When the mark to match there is no the mark with application, it is not white list application in the application of front stage operation that terminal, which determines currently,
Terminate process.
Wherein, white list library is used to store the mark of white list application, the white list application stored in the white list library
Mark is that the mark for the application that terminal is selected according to user is added.Wherein, each white list application is used to request data industry
Business.
In one implementation, terminal adds white list application in white list library, comprising: receives the first addition and refers to
It enables, according to the first addition instruction display, at least one is applied;Selection instruction is received, application indicated by selection instruction is determined as
White list application is added in white list library.
Wherein, the first addition instruction can be raw when the option of the addition white list application of user's triggering setting in the terminal
At, it is also possible to generate when the phonetic order of user speech input addition white list application, this embodiment is not limited.Choosing
It selects instruction and can be one at least one application that user's triggering terminal show and generate when applying, it is defeated to be also possible to voice
It is generated when entering the mark of an application at least one application that terminal is shown, this embodiment is not limited.
In another implementation, terminal adds white list application in white list library, comprising: receives the second addition and refers to
It enables, obtains the mark for the application that the second addition instruction carries;Mark application identical with the mark of application is determined as white list
Using being added in white list library.
Wherein, the second addition instruction can be user after the mark of input application, the addition of triggering setting in the terminal
It is generated when option, is also possible to generate after the mark that user speech inputs application, this embodiment is not limited.
In step 203, exist in the mark at least one white list application for including when white list library and apply phase
When the mark matched, determine that application is white list application.
Identical mark is applied with white list since the application of front stage operation has, the application of the front stage operation is
White list application.Such as: the application of front stage operation is identified as " A ", and white list library includes mark " A ", it is determined that the application
For white list application.
In step 204, priority request is generated when application is white list application, priority request is sent to TRM.
The operating system of terminal is determining to be currently white list in application, illustrating user at this time in the application of front stage operation
It needs currently to connect at this point, the operating system of terminal generates priority request to be promoted using this using priority processing data service
The data service for meeting the first SIM of data network occupies the priority of antenna resources.
Wherein, TRM is used to distribute antenna resources for different SIM, and the TRM is when distributing resource for different SIM
According to allocation strategy distribution, which is usually that the priority of voice service occupancy antenna resources is accounted for higher than data service
With the priority of antenna resources.
In step 205, the data service of the first SIM is occupied according to priority request by the excellent of antenna resources by TRM
First grade is set as the first priority, and the first SIM is the SIM of current connection data network.
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
In step 206, antenna resources are distributed to by TRM according to the first priority the data industry of the first SIM request
Business.
When TRM only receives the data service request of the first SIM, there is no the voice services or data of the 2nd SIM
Antenna resources are seized in the data service of business and the first SIM, at this point, antenna resources are distributed to the data industry of the first SIM by TRM
Business.
When TRM receives the data service request of the first SIM, and receive simultaneously the 2nd SIM voice service request or
When person's data service request, since the priority of the data service of the first SIM is the first priority, and first priority is higher than
The data service of 2nd SIM occupies the third priority of antenna resources, and therefore, TRM divides antenna resources according to the first priority
The data service of the first SIM of dispensing.
In step 207, when application is switched to running background by front stage operation, alternatively, raw when terminal is closed and applied
At cancellation priority request, and is sent to TRM and cancel priority request.
When an activity of the application of front stage operation is switched to stopped state, and the application by running state
There is no when the activity of running state, determine that the application is switched to running background by front stage operation;When front stage operation
When all activity of application are killed state, determine that terminal closes the application.
When application is switched to running background by front stage operation, alternatively, when terminal is closed in application, illustrating that user does not need
Priority processing data service is applied using this, at this point, the operating system of terminal, which generates, cancels priority request, the cancellation priority
The data service of the SIM for restoring currently to connect data network is requested to occupy the priority of antenna resources.
In a step 208, antenna money is occupied according to the data service for cancelling the first SIM of priority request cancellation by TRM
First priority in source.
Wherein, the first priority for cancelling the data service occupancy antenna resources of the first SIM according to priority request is cancelled
Refer to: the first priority that the data service of the first SIM occupies antenna resources being reverted into third priority, in this way, if TRM connects
The data service request of the first SIM is received, and receives the voice service request of the 2nd SIM simultaneously, then TRM can be by antenna resources
Distribute to the voice service of the 2nd SIM.
In conclusion the resource allocation methods that the disclosure provides, by being white list in the application currently in front stage operation
In application, generating priority request, priority request is sent to TRM;By TRM according to priority request by the first SIM's
The priority that data service occupies antenna resources is set as the first priority;By TRM according to the first priority by antenna resources
The data service for distributing to the first SIM request, so that TRM is receiving the data service of the first SIM, and receives second simultaneously
When the data service or voice service of SIM, antenna resources can be distributed to the data that user needs the first SIM of priority processing
Business, the priority for solving voice service are higher than the priority of data service, and caused TRM is receiving user's needs preferentially
Antenna resources can be distributed to the by the data service of the first SIM of processing, and when receiving the voice service of the 2nd SIM simultaneously
The problem of voice service of two SIM, the data traffic interruptions of the first SIM, has reached and has guaranteed user needs priority processing
The data service of one SIM will not due to voice service or the data service of the 2nd SIM interference and the effect interrupted.
In addition, being taken by when application is switched to running background by front stage operation alternatively, being generated when terminal is closed and applied
Disappear priority request, and sends to TRM and cancel priority request, so that TRM does not need the number of the first SIM of priority processing in user
When according to business, the data service for restoring the first SIM occupies the priority of antenna resources, in this way, TRM does not need to use receiving
The data service of first SIM of family priority processing, and when receiving the voice service of the 2nd SIM simultaneously, it can be by antenna resources
The voice service for distributing to the 2nd SIM ensure that the voice service of the 2nd SIM will not sustained interruption.
Fig. 3 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment, which answers
For in multi-card multi-standby single-pass terminal, as shown in figure 3, the resource allocation device includes: detection module 310, the first generation module
320, setup module 330, distribution module 340.
The detection module 310 is configured as whether detection is currently white list application in the application of front stage operation, the white name
Single application is for handling data service;
First generation module 320 is configured as detecting in detection module 310 excellent using generating when being white list application
Priority request is sent to TRM by first grade request, and TRM is used to distribute antenna resources for different SIM;
The setup module 330 is configured as the priority request generated by TRM according to the first generation module 320 for
The priority that the data service of one SIM occupies antenna resources is set as the first priority, and the first SIM is current connection data network
SIM;
The distribution module 340 is configured as being provided antenna according to the first priority that setup module 330 is arranged by TRM
Distribute to the data service of the first SIM request in source.
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
In conclusion the resource allocation device that the disclosure provides, by being white list in the application currently in front stage operation
In application, generating priority request, priority request is sent to TRM;By TRM according to priority request by the first SIM's
The priority that data service occupies antenna resources is set as the first priority;By TRM according to the first priority by antenna resources
The data service for distributing to the first SIM request, so that TRM is receiving the data service of the first SIM, and receives second simultaneously
When the data service or voice service of SIM, antenna resources can be distributed to the data that user needs the first SIM of priority processing
Business, the priority for solving voice service are higher than the priority of data service, and caused TRM is receiving user's needs preferentially
Antenna resources can be distributed to the by the data service of the first SIM of processing, and when receiving the voice service of the 2nd SIM simultaneously
The problem of voice service of two SIM, the data traffic interruptions of the first SIM, has reached and has guaranteed user needs priority processing
The data service of one SIM will not due to voice service or the data service of the 2nd SIM interference and the effect interrupted.
Fig. 4 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment, which answers
For in multi-card multi-standby single-pass terminal, as shown in figure 4, detection module 410, the first generation module 420, setup module 430, distribution
Module 440.
The detection module 410 is configured as whether detection is currently white list application in the application of front stage operation, the white name
Single application is for handling data service;
First generation module 420 is configured as detecting in detection module 410 excellent using generating when being white list application
Priority request is sent to TRM by first grade request, and TRM is used to distribute antenna resources for different SIM;
The setup module 430 is configured as the priority request generated by TRM according to the first generation module 420 for
The priority that the data service of one SIM occupies antenna resources is set as the first priority, and the first SIM is current connection data network
SIM;
The distribution module 440 is configured as being provided antenna according to the first priority that setup module 430 is arranged by TRM
Distribute to the data service of the first SIM request in source.
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
Optionally, distribution module 440 are also configured to
When TRM receives the data service request of the first SIM, and receive simultaneously the 2nd SIM voice service request or
When person's data service request, antenna resources are distributed to the data service of the first SIM by TRM according to the first priority.
Optionally, device further include: the second generation module 450, priority cancel module 460.
Second generation module 450 is configured as when application is switched to running background by front stage operation, alternatively, when eventually
End generates when closing application cancels priority request, and sends to TRM and cancel priority request;
The priority cancels module 460, and it is preferential to be configured as the cancellation generated by TRM according to the second generation module 450
The data service that the first SIM is cancelled in grade request occupies the first priority of antenna resources.
Optionally, device further include: the first receiving module 470, display module 480, the second receiving module 490, first
Adding module 491.
First receiving module 470 is configured as receiving the first addition instruction;
The display module 480 is configured as according to the received first addition instruction display at least one of the first receiving module 470
A application;
Second receiving module 490 is configured as receiving selection instruction;
First adding module 491 is configured as application indicated by the received selection instruction of the second receiving module 490
It is determined as white list application to be added in white list library.
Optionally, device further include: third receiving module 492 obtains module 493, the second adding module 494.
The third receiving module 492 is configured as receiving the second addition instruction;
The acquisition module 493 is configured as obtaining the application that the addition instruction of third receiving module 492 received second carries
Mark;
Second adding module 494, the mark for being configured as will acquire the acquisition of module 493 identical with the mark applied are answered
It is added in white list library with white list application is determined as.
Optionally, detection module 410, comprising: acquisition submodule 411, determines submodule 413 at detection sub-module 412.
The acquisition submodule 411 is configured as obtaining currently in the mark of the application of front stage operation;
The detection sub-module 412 is configured as in the mark at least one white list application that detection white list library includes
The mark to match with the presence or absence of the mark of the application obtained with acquisition submodule 411;
The determination submodule 413, at least one for being configured as detecting that white list library includes when detection sub-module 412 are white
When there is the mark to match with the mark of application in the mark of list application, determine that application is white list application.
In conclusion the resource allocation device that the disclosure provides, by being white list in the application currently in front stage operation
In application, generating priority request, priority request is sent to TRM;By TRM according to priority request by the first SIM's
The priority that data service occupies antenna resources is set as the first priority;By TRM according to the first priority by antenna resources
The data service for distributing to the first SIM request, so that TRM is receiving the data service of the first SIM, and receives second simultaneously
When the data service or voice service of SIM, antenna resources can be distributed to the data that user needs the first SIM of priority processing
Business, the priority for solving voice service are higher than the priority of data service, and caused TRM is receiving user's needs preferentially
Antenna resources can be distributed to the by the data service of the first SIM of processing, and when receiving the voice service of the 2nd SIM simultaneously
The problem of voice service of two SIM, the data traffic interruptions of the first SIM, has reached and has guaranteed user needs priority processing
The data service of one SIM will not due to voice service or the data service of the 2nd SIM interference and the effect interrupted.
In addition, being taken by when application is switched to running background by front stage operation alternatively, being generated when terminal is closed and applied
Disappear priority request, and sends to TRM and cancel priority request;TRM cancels the data of the first SIM according to priority request is cancelled
Business occupies the first priority of antenna resources, so that TRM is not when user needs the data service of the first SIM of priority processing,
The data service for restoring the first SIM occupies the priority of antenna resources, in this way, TRM does not need user and preferentially locates receiving
Antenna resources can be distributed to the by the data service of the first SIM of reason, and when receiving the voice service of the 2nd SIM simultaneously
The voice service of two SIM ensure that the voice service of the 2nd SIM will not sustained interruption.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
An exemplary embodiment of the present disclosure provides a kind of resource allocation devices, can be realized the resource point of disclosure offer
Method of completing the square, the resource allocation device include: processor, for the memory of storage processor executable instruction;
Wherein, processor is configured as:
Whether detection is currently white list application in the application of front stage operation, and white list is applied for handling data service;
Priority request is generated when application is white list application, priority request is sent to TRM, TRM is used for as not
Same SIM distributes antenna resources;
The is set by the priority that the data service of the first SIM occupies antenna resources according to priority request by TRM
One priority, the first SIM are the SIM of current connection data network;
Antenna resources are distributed to by TRM according to the first priority the data service of the first SIM request;
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, and first is preferential
Data service of the grade higher than the 2nd SIM occupies the third priority of antenna resources.
Fig. 5 is a kind of block diagram of device 500 for resource allocation shown according to an exemplary embodiment.For example, dress
Setting 500 can be mobile phone, messaging devices, the equipment that tablet device etc. can install SIM.
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, power supply
Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and
516, antennas 518 of communication component.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 502 may include that one or more processors 520 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just
Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate
Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown
Example includes the instruction of any application or method for operating on device 500, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system
System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between device 500 and user.In some realities
It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can
To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with
Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and
And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 508 includes
One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 500 is in operation mode
It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can
Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike
Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set
Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented
Estimate.For example, sensor module 514 can detecte the state that opens/closes of device 500, the relative positioning of component, such as component
For the display and keypad of device 500, sensor module 514 can be with the position of 500 1 components of detection device 500 or device
Set change, the existence or non-existence that user contacts with device 500, the temperature in 500 orientation of device or acceleration/deceleration and device 500
Variation.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact near
The presence of object.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging
With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic
Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device
500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, communication component 516 further includes near-field communication (NFC) module, to promote short range communication.For example,
Radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth can be based in NFC module
(BT) technology and other technologies are realized.Optionally, which includes for distributing antenna 518 for different SIM
The TRM of antenna resources.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example,
Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light
Data storage device etc..
Those skilled in the art will readily occur to other realities of the disclosure after considering specification and practicing disclosure herein
Apply scheme.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or suitable
The variation of answering property follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or used
Use technological means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following right
It is required that pointing out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (12)
1. a kind of resource allocation methods, which is characterized in that the described method includes:
Whether detection is currently white list application in the application of front stage operation, and the white list is applied for handling data service;
Priority request is generated when the application is white list application, the priority request is sent to resource allocation
Module TRM, the TRM are for distributing antenna resources for different client identification module SIM;
The priority that the data service of the first SIM occupies antenna resources is arranged according to the priority request by the TRM
For the first priority, the first SIM is the SIM of current connection data network;
The antenna resources are distributed to by the TRM according to first priority data industry of the first SIM request
Business, first priority is used to indicate when the TRM is receiving the data service of the first SIM, and is received simultaneously
When the data service or voice service of the 2nd SIM, the antenna resources are distributed to the data service of the first SIM;
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, described
Data service of first priority higher than the 2nd SIM occupies the third priority of the antenna resources;
When the application is switched to running background by front stage operation, alternatively, it is excellent to generate cancellation when terminal closes the application
First grade request, and the cancellation priority request is sent to the TRM;
The antenna is occupied according to the data service that the cancellation priority request cancels the first SIM by the TRM to provide
First priority in source, the cancellation priority request are used to indicate when the TRM is in the number for receiving the first SIM
According to business, and when receiving the voice service of the 2nd SIM simultaneously, the antenna resources are distributed to the 2nd SIM's
Voice service.
2. the method according to claim 1, wherein described will according to first priority by the TRM
The antenna resources distribute to the data service of the SIM request, comprising:
When the TRM receives the data service request of the first SIM, and the voice industry of the 2nd SIM is received simultaneously
When business request or data service request, the antenna resources are distributed to according to first priority by institute by the TRM
State the data service of the first SIM.
3. the method according to claim 1, wherein the method also includes:
The first addition instruction is received, according at least one application of the first addition instruction display;
Selection instruction is received, application indicated by the selection instruction is determined as white list application and is added in white list library.
4. the method according to claim 1, wherein the method also includes:
The second addition instruction is received, the mark for the application that the second addition instruction carries is obtained;
Mark application identical with the mark of the application is determined as white list application to be added in white list library.
5. the method according to claim 3 or 4, which is characterized in that it is described detection currently front stage operation application whether
For white list application, comprising:
It obtains described currently in the mark of the application of front stage operation;
It detects in the mark at least one white list application that the white list library includes with the presence or absence of the mark with the application
The mark to match;
Match when existing in the mark at least one white list application that the white list library includes with the mark of the application
Mark when, determine that the application is white list application.
6. a kind of resource allocation device, which is characterized in that described device includes:
Detection module is configured as whether detection is currently white list application in the application of front stage operation, the white list application
For handling data service;
First generation module is configured as generating when the detection module detects that the application is white list application excellent
The priority request is sent to resource distribution module TRM by first grade request, and the TRM is used to identify mould for different clients
Block SIM distributes antenna resources;
Setup module is configured as the priority request generated by the TRM according to first generation module for the first SIM
Data service occupy the priority of antenna resources and be set as the first priority, the first SIM is current connection data network
SIM;
Distribution module is configured as first priority being arranged by the TRM according to the setup module for the day
The data service that line resource allocation gives the first SIM to request, first priority are used to indicate when the TRM is being received
The data service of first SIM, and when receiving the data service or voice service of the 2nd SIM simultaneously, the antenna is provided
Distribute to the data service of the first SIM in source;
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, described
Data service of first priority higher than the 2nd SIM occupies the third priority of the antenna resources;
Second generation module is configured as when the application is switched to running background by front stage operation, alternatively, when terminal is closed
It is generated when the application and cancels priority request, and send the cancellation priority request to the TRM;
Priority cancels module, and it is preferential to be configured as the cancellation generated by the TRM according to second generation module
The data service that the first SIM is cancelled in grade request occupies first priority of the antenna resources, described to cancel preferentially
Grade request is used to indicate when the TRM is receiving the data service of the first SIM, and receives the 2nd SIM simultaneously
Voice service when, the antenna resources are distributed to the voice service of the 2nd SIM.
7. device according to claim 6, which is characterized in that the distribution module is also configured to
When the TRM receives the data service request of the first SIM, and the voice industry of the 2nd SIM is received simultaneously
When business request or data service request, the antenna resources are distributed to according to first priority by institute by the TRM
State the data service of the first SIM.
8. device according to claim 6, which is characterized in that described device further include:
First receiving module is configured as receiving the first addition instruction;
Display module is configured as showing that at least one is answered according to the received first addition instruction of first receiving module
With;
Second receiving module is configured as receiving selection instruction;
First adding module is configured as determining application indicated by the received selection instruction of second receiving module
It is added in white list library for white list application.
9. device according to claim 6, which is characterized in that described device further include:
Third receiving module is configured as receiving the second addition instruction;
Module is obtained, is configured as obtaining the mark for the application that the received second addition instruction of the third receiving module carries
Know;
It is true to be configured as the mark application identical with the mark of the application for obtaining the acquisition module for second adding module
It is set to white list application to be added in white list library.
10. device according to claim 8 or claim 9, which is characterized in that the detection module, comprising:
Acquisition submodule is configured as obtaining described currently in the mark of the application of front stage operation;
Whether detection sub-module is configured as depositing in the mark for detecting at least one white list application that the white list library includes
In the mark that the mark with the application matches;
It determines submodule, is configured as detecting at least one white list that the white list library includes when the detection sub-module
When there is the mark to match with the mark of the application in the mark of application, determine that the application is white list application.
11. a kind of resource allocation device, which is characterized in that described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Whether detection is currently white list application in the application of front stage operation, and the white list is applied for handling data service;
Priority request is generated when the application is white list application, the priority request is sent to resource allocation
Module TRM, the TRM are for distributing antenna resources for different client identification module SIM;
The priority that the data service of the first SIM occupies antenna resources is arranged according to the priority request by the TRM
For the first priority, the first SIM is the SIM of current connection data network;
The antenna resources are distributed to by the TRM according to first priority data industry of the first SIM request
Business, first priority is used to indicate when the TRM is receiving the data service of the first SIM, and is received simultaneously
When the data service or voice service of the 2nd SIM, the antenna resources are distributed to the data service of the first SIM;
Wherein, voice service of first priority higher than the 2nd SIM occupies the second priority of antenna resources, described
Data service of first priority higher than the 2nd SIM occupies the third priority of the antenna resources;
The processor is also configured to
When the application is switched to running background by front stage operation, alternatively, it is excellent to generate cancellation when terminal closes the application
First grade request, and the cancellation priority request is sent to the TRM;
The antenna is occupied according to the data service that the cancellation priority request cancels the first SIM by the TRM to provide
First priority in source, the cancellation priority request are used to indicate when the TRM is in the number for receiving the first SIM
According to business, and when receiving the voice service of the 2nd SIM simultaneously, the antenna resources are distributed to the 2nd SIM's
Voice service.
12. a kind of computer readable storage medium, instruction is stored on the computer readable storage medium, which is characterized in that
The step of claim 1-5 described in any item methods are realized when described instruction is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610499372.2A CN105979501B (en) | 2016-06-29 | 2016-06-29 | Resource allocation methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610499372.2A CN105979501B (en) | 2016-06-29 | 2016-06-29 | Resource allocation methods and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105979501A CN105979501A (en) | 2016-09-28 |
CN105979501B true CN105979501B (en) | 2019-08-16 |
Family
ID=56953579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610499372.2A Active CN105979501B (en) | 2016-06-29 | 2016-06-29 | Resource allocation methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105979501B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108040330B (en) * | 2017-11-30 | 2021-04-27 | 努比亚技术有限公司 | WiFi directional transmission method, mobile terminal and readable storage medium |
CN112020152B (en) * | 2018-03-27 | 2021-08-03 | 华为技术有限公司 | Data processing method and terminal equipment |
WO2019222954A1 (en) * | 2018-05-24 | 2019-11-28 | 华为技术有限公司 | Method for receiving signal and terminal device |
CN109379783B (en) * | 2018-11-28 | 2023-06-06 | 北京小米移动软件有限公司 | Radio frequency resource allocation method and device |
CN110176942B (en) * | 2019-07-08 | 2021-07-16 | Oppo广东移动通信有限公司 | Radio frequency circuit and electronic equipment |
CN110336578B (en) * | 2019-07-08 | 2021-06-29 | Oppo广东移动通信有限公司 | Radio frequency circuit and electronic equipment |
CN114586410A (en) * | 2020-01-08 | 2022-06-03 | Oppo广东移动通信有限公司 | Resource allocation method and device, terminal and network equipment |
CN111601298B (en) * | 2020-04-16 | 2023-05-26 | 维沃移动通信有限公司 | SIM card control method and electronic equipment |
CN115606271A (en) * | 2020-11-30 | 2023-01-13 | 北京小米移动软件有限公司(Cn) | Paging response and paging method and device, and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110217969A1 (en) * | 2010-03-05 | 2011-09-08 | Qualcomm, Incorporated | Devices with multiple subscriptions that utilize a single baseband-radio frequency resource chain |
US9838287B2 (en) * | 2012-01-27 | 2017-12-05 | Microsoft Technology Licensing, Llc | Predicting network data consumption relative to data usage patterns |
CN104144406A (en) * | 2013-05-07 | 2014-11-12 | 马维尔国际有限公司 | Multi-mode multi-card mobile terminal and business conflict solution method and apparatus thereof |
CN105611631B (en) * | 2015-12-24 | 2019-02-22 | 努比亚技术有限公司 | Mobile phone radio frequency resource allocation methods and device |
-
2016
- 2016-06-29 CN CN201610499372.2A patent/CN105979501B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105979501A (en) | 2016-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105979501B (en) | Resource allocation methods and device | |
CN105677460B (en) | Applied program processing method and device | |
CN106020943B (en) | Application program double-opening method and device | |
CN105516508A (en) | Method and device for activating virtual SIM card | |
US20160269522A1 (en) | Method and device for incoming call notification | |
CN105554884A (en) | Method and device for paging response | |
CN106376043A (en) | Automatic switching method and device for SIM (Subscriber Identification Module) card | |
CN105391621B (en) | Information communicating method and device | |
CN106535291A (en) | SIM card selection method and device | |
CN105933465B (en) | Access the method and device of wireless network | |
CN107820300A (en) | Network search method and device | |
CN104581667A (en) | Call forwarding method and device | |
CN108924820B (en) | Method, device, equipment and storage medium for realizing sharing of SIM card | |
CN106657645A (en) | Call request processing method and device, calling method and device, and related terminal | |
CN109379783A (en) | Radio frequency resource distribution method and device | |
CN105163391B (en) | Data transmission method, terminal and wireless access points | |
CN105204713B (en) | Incoming call response method and device | |
CN106027361B (en) | Information display method and device | |
CN108476520A (en) | Data transmission method, device and computer readable storage medium | |
CN110166564A (en) | Information communicating method, terminal and storage medium | |
CN107846646B (en) | Control method and device of intelligent sound box and readable storage medium | |
CN104902106B (en) | Clawback incoming call method of accessing and device | |
CN107423125A (en) | A kind of camera shooting control method and shooting control system for intelligent terminal | |
CN108377302A (en) | Shield the method and device of harassing call | |
CN106412855A (en) | Information prompting and transmitting methods and devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |