CN106851592B - Method, device and terminal for adjusting broadcast receiver - Google Patents

Method, device and terminal for adjusting broadcast receiver Download PDF

Info

Publication number
CN106851592B
CN106851592B CN201710140530.XA CN201710140530A CN106851592B CN 106851592 B CN106851592 B CN 106851592B CN 201710140530 A CN201710140530 A CN 201710140530A CN 106851592 B CN106851592 B CN 106851592B
Authority
CN
China
Prior art keywords
broadcast
broadcast receiver
historical
receivers
receiver
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
Application number
CN201710140530.XA
Other languages
Chinese (zh)
Other versions
CN106851592A (en
Inventor
付亮晶
裴润升
林志泳
吴汝煜
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710140530.XA priority Critical patent/CN106851592B/en
Publication of CN106851592A publication Critical patent/CN106851592A/en
Priority to PCT/CN2018/078563 priority patent/WO2018161956A1/en
Application granted granted Critical
Publication of CN106851592B publication Critical patent/CN106851592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

the embodiment of the invention discloses a method, a device and a terminal for adjusting a broadcast receiver, wherein the method comprises the following steps: acquiring historical parameters of a broadcast receiver for processing broadcast messages or the type of the broadcast receiver; ranking the broadcast receivers based on the obtained historical parameters or the types; the broadcast receiver is adjusted based on the classified grade. The embodiment of the invention can improve the processing efficiency of the broadcast message and ensure the stability of the system.

Description

Method, device and terminal for adjusting broadcast receiver
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for adjusting a broadcast receiver, and a terminal.
Background
Broadcasting in the Android system is a mechanism widely used for transmitting information between applications, and broadcasting in the Android system is used for monitoring system events or application events.
In the Android system, some applications self-start or perform other operations in the background by receiving various broadcast messages. When some applications receive broadcast messages, the received broadcast messages cannot be processed in time due to the fact that the applications may execute some time-consuming operations or the applications are stuck, even some applications can process the broadcast messages overtime, subsequent distribution of the broadcast messages is affected, and system stability is poor.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a terminal for adjusting a broadcast receiver, which can improve the processing efficiency of broadcast messages and ensure the stability of a system.
In a first aspect, an embodiment of the present invention provides a method for adjusting a broadcast receiver, including:
Acquiring historical parameters of a broadcast receiver for processing broadcast messages or the type of the broadcast receiver;
Ranking the broadcast receivers based on the obtained historical parameters or the types;
The broadcast receiver is adjusted based on the classified grade.
in a second aspect, an embodiment of the present invention further provides an apparatus for adjusting a broadcast receiver, including:
the acquisition module is used for acquiring the historical parameters of the broadcast message processing of the broadcast receiver or the type of the broadcast receiver;
A classification module for classifying the broadcast receivers based on the acquired history parameters or the types;
An adjustment module to adjust the broadcast receiver based on the classified grades.
In a third aspect, an embodiment of the present invention further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
Acquiring historical parameters of a broadcast receiver for processing broadcast messages or the type of the broadcast receiver;
ranking the broadcast receivers based on the obtained historical parameters or the types;
The broadcast receiver is adjusted based on the classified grade.
According to the technical scheme provided by the embodiment of the invention, the broadcast receivers are graded according to the historical parameters of the broadcast messages processed by the broadcast receivers or the types of the broadcast receivers, and the broadcast receivers are adjusted according to the grades, so that the processing efficiency of the broadcast messages can be improved, and the stability of the system can be guaranteed.
Drawings
other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
Fig. 1 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention;
Fig. 2 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention;
Fig. 3 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention;
fig. 4 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention;
Fig. 5 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention;
Fig. 6 is a block diagram of an adjusting apparatus of a broadcast receiver according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Fig. 1 is a flowchart of a method for tuning a broadcast receiver according to an embodiment of the present invention, where the method is performed by a tuning apparatus of the broadcast receiver, the apparatus is performed by software and/or hardware, and the apparatus is configured in a terminal such as a mobile phone.
As shown in fig. 1, the technical solution provided by this embodiment includes:
S110: the history parameter of the broadcast receiver processing the broadcast message or the type of the broadcast receiver is acquired.
In the broadcast process, a service process of a broadcast sender sends a broadcast message to a broadcast management module (e.g., an activity management service) by calling a broadcast sending function (e.g., sendBroadcast function), the broadcast management module receives the broadcast message and then places the broadcast message in a broadcast sending queue, and the broadcast management module sends the broadcast message in the broadcast sending queue to a broadcast receiver meeting a receiving condition through a process communication mechanism (e.g., Binder process communication mechanism).
in the broadcast mechanism, a broadcast message refers to information transmitted by a system or an application program during operation and used for transmission between the system and/or the application program, and the broadcast message may be, for example, a system start broadcast message, a short message type broadcast message, a telephone type broadcast message, a three-party application type broadcast message, or the like.
The historical parameters of the broadcast receiver for processing the broadcast message comprise historical overtime times for processing the broadcast message, historical time for processing the broadcast message, historical overtime time accumulated for processing the broadcast message or a dynamic time threshold corresponding to processing the broadcast message, wherein the dynamic time threshold is used for judging whether the processing of the broadcast message is overtime or not. And the history parameters of the broadcast reception processing broadcast message are not limited to the above-described parameter forms.
the historical average time of the broadcast receiver processing the broadcast message may be the historical average time of the broadcast receiver processing the broadcast message within a preset time period, or may also be the historical average time of the broadcast receiver processing the broadcast message within a preset number of times.
In order to determine how fast each broadcast receiver processes the broadcast message, the preset time period is set so that the broadcast receiver processes a plurality of broadcast messages. And acquiring the time for the broadcast receiver to process each broadcast message within a preset time period.
the historical timeout number of the broadcast receiver processing the broadcast message may be the historical timeout number of the broadcast receiver processing the broadcast message within a preset time period or within a preset number.
The historical timeout time is the time when the time for the broadcast receiver to process the broadcast message within the preset time period or within the preset number of times exceeds a set time threshold, and the set time threshold may be fixed or may change with the change of the number of times. The accumulated historical timeout time is obtained by adding the time exceeding a set time threshold value each time and summing the time.
the dynamic time threshold is used for judging that the broadcast receiver is overtime when the time for processing the broadcast message by the broadcast receiver is greater than the dynamic time threshold. The dynamic time threshold is determined based on an initial set value, historical timeout times and a time increment value, wherein the time increment value is the increment of the dynamic time threshold when the timeout times of the set number are increased.
The types of broadcast receivers include, among others, systems, system applications, and three-party applications. The type of the broadcast receiver may be other type division forms.
S120: ranking the broadcast receivers based on the obtained historical parameters or the type.
wherein ranking the broadcast receivers based on the obtained historical parameters may include: the broadcast receivers are ranked based on an obtained historical average time, a historical timeout number, a dynamic time threshold, or an accumulated historical timeout time.
before the broadcast receivers are classified, it is necessary to set the classes of the broadcast receivers and configure corresponding parameter ranges for the classes. The broadcast receiver may be one-level, two-level and three-level, or may be a fast level, a medium level and a slow level. The description will be given taking the example of ranking broadcast receivers according to the accumulated historical timeout time, and configuring the range of the corresponding timeout time accumulated for processing the broadcast message for the rank of the broadcast receiver. For example, the maximum value in the accumulated timeout time range of the processed broadcast messages corresponding to the third level is smaller than the minimum value in the accumulated timeout time range of the processed broadcast messages corresponding to the second level. The maximum value in the timeout time range of the broadcast message processing corresponding to the second level is smaller than the minimum value in the timeout time range of the broadcast message processing corresponding to the first level. That is, the higher the ranking, the shorter the accumulated historical timeout.
The manner in which broadcast receivers are ranked according to other history parameters and the type of broadcast receiver is described in detail in the embodiments described below.
The broadcast receiver rank may be in other forms, and the broadcast receiver rank is not limited to the three ranks described above, and may be four or another number of ranks, and may be set as necessary.
S130: the broadcast receiver is adjusted based on the classified grade.
adjusting the broadcast receiver based on the classified rank may include: adjusting an order of the broadcast receivers in the broadcast receiver queue based on the divided levels; or may also include creating a broadcast receiver queue corresponding to the rank based on the divided ranks and moving the broadcast receiver to the corresponding broadcast receiver queue.
In the present embodiment, for broadcast receivers registered with the same broadcast message, the broadcast receivers process the broadcast messages in the order of the broadcast receiver queue. For example, for the off-screen broadcast message, in the terminal, broadcast receivers registered for the off-screen broadcast message are a video application and a music application, and the order of processing the off-screen broadcast message is the video application and the music application in turn. The video application and the music application process the off-screen broadcast messages in the order of the queue.
Wherein adjusting the order of the broadcast receivers in the broadcast receiver queue based on the divided levels may include: the broadcast receivers are sequentially sorted in the broadcast receiver queue in the order of the divided levels from high to low to adjust the order in which the broadcast receivers process the broadcast messages. Wherein, the high-to-low order of the classification level is a fast level, a medium-speed level and a slow-speed level; or may be primary, secondary, and tertiary.
For example, broadcast receivers registered with the broadcast message have a, B, and C, respectively, where a is classified as a slow rate, B is classified as a fast rate, and C is classified as a medium rate. And (3) sequencing the three broadcast receivers A, B and C in sequence from high to low according to the levels, wherein the sequence is B, C and A, so that B with higher processing speed processes the broadcast message first, and C and A respectively process the broadcast message in sequence. Therefore, the influence of the broadcast receiver with low processing speed on the broadcast receiver with high processing speed can be avoided, and the processing efficiency of the broadcast message is improved.
on the basis of the above embodiment, the method for adjusting the broadcast receiver further includes: and when the number of the broadcast receivers in the same level is more than 1, sequencing the broadcast receivers in the same level according to the sequence of the broadcast receivers in the broadcast receiver queue before adjustment. Therefore, the original sequence is kept when the broadcast receivers with the same grade process the broadcast messages, and the broadcast messages are processed according to the original sequence.
for example, broadcast receivers registered with the same broadcast message have a, b, c, and d, respectively, where the level of b and d is a fast level, the level of a is a slow level, and the level of c is a medium level. The order of the broadcast receiver in the broadcast receiver queue is adjusted from high to low in rank, with the order after adjustment being b, d before c, a, c before a. And b and d are in the same level, and when b and d are sorted, b and d are sorted according to the sequence of b and d in the broadcast receiver queue before adjustment. In the broadcast receiver queue before the adjustment, b precedes d, and thus, the broadcast receivers processing the broadcast message are ordered b, d, c, a.
it should be noted that, for the number of broadcast receivers in the same level greater than 1, other sorting methods may be used for sorting broadcast receivers in the same level, and the method is not limited to the above-described method.
in which a broadcast receiver queue corresponding to a rank is created based on the divided ranks and a broadcast receiver is moved to the corresponding broadcast receiver queue, it can be understood that the rank of the broadcast receiver in each broadcast receiver queue is the same, and the number of the broadcast receiver queues is determined by the divided ranks. For example, the divided levels are a fast level, a medium level, and a slow level, three broadcast receiver queues corresponding to the fast level, the medium level, and the slow level, respectively, are created, and the broadcast receivers are moved into the corresponding broadcast receiver queues. By the method, the processing speed and efficiency of the broadcast message can be improved, and the stability of the system can be maintained.
In this embodiment, the broadcast receivers are ranked according to their historical parameters or types of the broadcast receivers, and are adjusted according to the ranks, so that efficiency of processing broadcast messages is improved, and system stability is guaranteed.
Fig. 2 is a flowchart of an adjusting method for a broadcast receiver according to an embodiment of the present invention, where in this embodiment, a history parameter includes a history average time, and the ranking the broadcast receiver based on the acquired history parameter includes: ranking the broadcast receivers based on the obtained historical average time; the adjusting the broadcast receiver based on the ranked level comprises: the order of the broadcast receivers in the broadcast receiver queue is adjusted based on the divided levels.
As shown in fig. 2, the technical solution provided by this embodiment is as follows:
s210: a historical average time for the broadcast receiver to process the broadcast message is obtained.
specifically, the number of broadcast messages processed by each broadcast receiver may or may not be the same. The broadcast receivers may or may not process the broadcast message in the same type. In calculating the historical average time at which the broadcast receiver processes the broadcast message, the historical average time may be calculated based on all of the times at which the broadcast receiver processes each broadcast message, without considering the type of broadcast message processed.
In this embodiment, the historical average time in the preset time period is calculated as an example, for example, three broadcast receivers in the terminal are a, B, and C, respectively. If 5 broadcast messages are processed in the preset time period a, the 5 broadcast messages are a1, a2, a3, a4 and a5 respectively, and the time for processing each broadcast message is 8s, 7s, 9s, 8s and 10s respectively. If 3 broadcast messages are processed in the time period B, the time for processing each broadcast message is 5s, 6s and 8s, wherein the 3 broadcast messages are a1, a2 and B1 respectively. If C processes 3 broadcast messages within a preset time period, the 3 broadcast messages are a1, a2 and C1, respectively, and the time for C to process each broadcast message is 7s, 6s and 8s, respectively.
thus, it can be seen that the types of the three broadcast receivers a, B, and C processing the broadcast message are not all the same, and in calculating the historical average time of the three broadcast receivers a, B, and C processing the broadcast message within the preset time period, the historical average time of the processing of the broadcast message may be calculated based on all of the times of the three broadcast receivers a, B, and C processing the broadcast message, regardless of the types of the broadcast message. By the method, the historical average time of the broadcast receiver A to process the broadcast message in the preset time period is as follows: (8+7+9+8+10)/5 ═ 8.4 s; the historical average time of the broadcast receiver B processing the broadcast message within the preset time period is (5+6+8)/3 ═ 6.3 s; the average time of the history of the broadcast receiver C processing the broadcast message within the preset time period is (7+6+8)/3 ═ 7 s.
The type of broadcast message may also be considered when calculating the historical average time that the broadcast receiver has processed the broadcast message. Thus, optionally, when the broadcast messages being processed by the broadcast receivers are of the same type, the calculation of the historical average time may also be: and calculating the historical average time of the broadcast receivers processing the broadcast messages of the same type in the preset time period based on the time of each broadcast receiver processing the broadcast messages.
For example, in the present embodiment, the broadcast messages of the same type processed by three broadcast receivers a, B, and C within a preset time period are a1 and a2, respectively, and the historical average time is calculated based on the times at which a1 and a2 are processed. By the method, the historical average time of the broadcast receiver A to process the broadcast message in the preset time period is as follows: (8+7)/2 ═ 7.5 s; the historical average time of broadcast receiver B processing the broadcast message within the preset time period is: (5+6)/2 ═ 5.5 s; the average time of the history of the broadcast receiver C processing the broadcast message within the preset time period is (7+6)/2 ═ 6.5 s.
Therefore, through the historical average time, the speed of the broadcast receiving and processing the broadcast messages can be accurately acquired so as to control the sequence of the broadcast receiving and processing the broadcast messages.
S220: ranking the broadcast receivers based on the obtained historical average time.
in the present embodiment, if the historical average time of a broadcast receiver processing a broadcast message is within a time range of a certain level, the broadcast receiver is classified into a corresponding level. Therefore, the broadcast receivers are classified according to the historical average time, so that the classification of the broadcast receivers can be accurately classified, and the sequence of the broadcast receivers in the broadcast receiver queue can be reasonably adjusted.
S230: adjusting an order of the broadcast receiver in a broadcast receiver queue based on the divided levels.
On the basis of the foregoing embodiment, ranking broadcast receivers based on the obtained historical average time may further include: selecting time larger than a set threshold value from the acquired time for processing the broadcast message by the broadcast receiver; calculating the average overtime time of the broadcast receiver for processing the broadcast message based on the selected time greater than the set threshold; ranking the broadcast receivers based on the average timeout time. Wherein, the set threshold is the set standard time for processing the broadcast message. And when calculating the average timeout time, the type of the broadcast may also be considered, that is, the average timeout time for the broadcast receiver to process the broadcast message of the same type is calculated based on the selected time greater than the set threshold.
it should be noted that, the specific manner of classifying the broadcast receiver into response levels based on the acquired historical average time of the broadcast receiver processing the broadcast message is not limited to the above manner, and may be other manners.
Therefore, the sequence of the broadcast receiver in the broadcast receiver queue is adjusted through the divided levels, the influence of the broadcast receiver with low processing speed on the broadcast receiver with high processing speed can be avoided, the sequence of the broadcast receiver for processing the broadcast messages is optimized, the message of the broadcast receiver for processing the broadcast messages is improved, and the stability of the system is ensured.
fig. 3 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention, where the history parameter includes a history timeout number, and the ranking the broadcast receiver based on the acquired history parameter includes: ranking the broadcast receivers based on the obtained historical timeout times; the adjusting the broadcast receiver based on the ranked level comprises: the order of the broadcast receivers in the broadcast receiver queue is adjusted based on the divided levels.
as shown in fig. 3, the technical solution provided by this embodiment includes:
S310: the historical timeout times for the broadcast receiver to process the broadcast message are obtained.
In this embodiment, the number of times of timeout for the broadcast receiver to process the broadcast message is obtained by the identified number of times of timeout. The broadcast management module is a functional module in the terminal system, a variable is created in the broadcast management module, the overtime times are identified by adopting the variable, and the overtime times are obtained according to the identified overtime times.
Judging whether the broadcast receiver processes the broadcast message overtime or not by judging whether the time for processing the broadcast message by the broadcast receiver is greater than a set time threshold or not; if so, it is determined that the broadcast receiver has timed out processing the broadcast message. When a broadcast receiver processes a broadcast message timeout, identifying a number of times the broadcast receiver processes the broadcast message timeout.
In this embodiment, the historical timeout number is increased once when the broadcast receiver processes the broadcast message for a time greater than a set fixed time threshold. For example, the fixed time threshold is set to 10s, and when the time for the broadcast receiver to process the broadcast message is greater than 10s, the number of times out of the broadcast receiver to process the broadcast message is increased once.
or when the time for processing the broadcast message by the broadcast receiver is greater than a dynamic time threshold, the historical timeout times are increased once, wherein the dynamic time threshold is determined based on an initial set value, the historical timeout times and a time amplitude value, and the time amplitude value is an increment of the dynamic time threshold for each increment of the set number of the timeout times.
For example, each time the historical timeout times are increased, the dynamic time threshold is increased by 1s on the basis of the dynamic time threshold corresponding to the previous broadcast message processing, and the dynamic time threshold is expressed by a formula: t ═ cxt 0+ T1. Wherein, T1 is the initial setting value of the dynamic time threshold, C is the historical timeout number, and T0 is the time increment value, i.e. 1. If the initial setting value of the dynamic time threshold is 10s, and if the historical overtime frequency is 1 time, the dynamic time threshold is as follows: 1 × 1+10 is 11s, i.e., 11s by 1s on the basis of the initial setting value. If the time for processing the broadcast message again is less than 11s, the time is not overtime, and if the time for processing the broadcast message is more than 11s, the time is overtime, and the historical overtime frequency is increased by 1 time. The time increment value may be increased by 1s based on the dynamic time threshold value corresponding to the previous broadcast message processing every time the timeout times are increased, or may be in other forms.
And the dynamic time threshold value is determined through the historical overtime times and the time amplitude value, so that the overtime times of the broadcast receiver for processing the broadcast message can be reasonably controlled.
S320: ranking the broadcast receivers based on the obtained historical timeout times.
In this embodiment, if the number of times of the historical timeout for the broadcast receiver to process the broadcast message is within the range of a certain level of times, the broadcast receiver is classified into a corresponding level. For example, the timeout times of the fast level range from 0 to 3, the timeout times of the medium level range from 4 to 6, and the timeout times of the slow level range from more than 6. And if the historical overtime times of the target broadcast receivers are 5 times, the historical overtime times of the target broadcast receivers are within the overtime time range of the medium-speed grade, and the target broadcast receivers are divided into the medium-speed grade.
thus, the broadcast receivers are classified through the historical timeout times, and the classification of the broadcast receivers can be accurately classified to optimize the sequence of the broadcast receivers in the broadcast receiver queue.
S330: the order of the broadcast receivers in the broadcast receiver queue is adjusted based on the divided levels.
In this embodiment, the broadcast receivers are classified according to the historical timeout times, and the sequence of the broadcast receivers is adjusted in the same broadcast receiver queue, so that the broadcast receivers with less historical timeout times process the broadcast messages first, the processing efficiency of the broadcast messages is improved, the influence of the broadcast receivers with slower processing speed on the broadcast receivers with faster processing speed is avoided, and the system stability is ensured.
fig. 4 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention, wherein the historical parameter includes a dynamic time threshold; the ranking the broadcast receivers based on the obtained historical parameters includes: ranking the broadcast receivers based on the obtained dynamic time threshold corresponding to the broadcast receivers; the adjusting the broadcast receiver based on the ranked level comprises: adjusting an order of the broadcast receiver in a broadcast receiver queue based on the divided levels.
As shown in fig. 4, the technical solution provided by this embodiment includes:
S410: and acquiring a dynamic time threshold corresponding to the broadcast receiver processing the broadcast message.
In this embodiment, the dynamic time threshold is used to determine whether the broadcast receiver has timed out processing the broadcast message. And when the time for processing the broadcast message by the broadcast receiver is greater than the dynamic time threshold, judging that the broadcast receiver is overtime in processing the broadcast message. The dynamic time threshold is determined based on the obtained historical timeout number, the time increment value and the initial set value. Wherein, the time increment value is the increment of the dynamic time threshold value every time the historical overtime times with set number are increased.
Wherein the historical number of times out of time for the broadcast receiver to process the broadcast message corresponds to a dynamic time threshold. Thus, the broadcast receiver processes the broadcast message based on the historical timeout times corresponding to the dynamic time threshold. For example, the broadcast receiver may process the broadcast message with a timeout of 0, which corresponds to the initial setting of the dynamic time threshold. That is, if the timeout times of the broadcast receiver for processing the broadcast message is 0, it is determined whether the broadcast message is processed overtime based on the time for processing the broadcast message and the initial setting value of the dynamic time threshold.
s420: ranking the broadcast receivers based on the obtained dynamic time threshold corresponding to the broadcast receivers.
in this embodiment, the broadcast receiver has different historical timeout times and different corresponding dynamic time thresholds. And if the dynamic time threshold corresponding to the broadcast receiver processing the broadcast message is within the time range of a certain grade, dividing the broadcast receiver into corresponding grades.
Thus, the broadcast receivers are classified by the dynamic time threshold, and the classification of the broadcast receivers can be accurately classified to optimize the order of the broadcast receivers in the broadcast receiver queue.
S430: adjusting an order of the broadcast receiver in a broadcast receiver queue based on the divided levels.
in this embodiment, the broadcast receivers are classified according to the dynamic time thresholds corresponding to the broadcast receivers, and the order of the broadcast receivers is adjusted in the same broadcast receiver queue, so that the broadcast receivers with less dynamic time thresholds process the broadcast messages first, thereby improving the processing efficiency of the broadcast messages, avoiding the influence of the broadcast receivers with slower processing speed on the broadcast receivers with faster processing speed, and ensuring the stability of the system.
Fig. 5 is a flowchart of an adjusting method of a broadcast receiver according to an embodiment of the present invention, where the types of the broadcast receivers include: systems, system applications, and three-party applications; the ranking the broadcast receivers based on the obtained type includes: dividing the broadcast receiver into classes corresponding to the system, the system application and the three-party application respectively according to the type of the broadcast receiver; the adjusting the broadcast receiver based on the ranked level comprises: a broadcast receiver queue corresponding to the divided levels is created and the broadcast receivers are moved into the corresponding broadcast receiver queue.
as shown in fig. 5, the technical solution provided by this embodiment includes:
S510: the type of the broadcast receiver is acquired.
Wherein the types of broadcast receivers include: systems, system applications, and three-party applications.
S520: the broadcast receiver is divided into classes corresponding to a system, a system application, and a three-party application, respectively, according to the type of the broadcast receiver.
In the present embodiment, the grades of the system, the system application, and the three-party application are set, and the broadcast receivers are classified into grades corresponding to the system, the system application, and the three-party application, respectively, according to the types of the broadcast receivers. For example, the system application, and the three-party application are set to primary, secondary, and tertiary, respectively. If the type of a target broadcast receiver is a system, the target broadcast reception is classified into a level corresponding to the system, i.e., a first level.
s530: a broadcast receiver queue corresponding to the divided levels is created and the broadcast receivers are moved into the corresponding broadcast receiver queue.
In the present embodiment, the divided classes correspond to a broadcast receiver queue, and the broadcast receiver is moved to the broadcast receiver queue corresponding to the class of the broadcast receiver. For example, if the broadcast receiver type is system, the broadcast receiver is moved to a broadcast receiver queue corresponding to the system level.
Accordingly, the broadcast receiver is classified according to the type of the broadcast receiver, and the broadcast receiver is adjusted according to the classified class, thereby improving the processing speed and efficiency of the broadcast message.
Fig. 6 is a block diagram illustrating an adjusting apparatus of a broadcast receiver according to an embodiment of the present invention, the apparatus being configured to perform an adjusting method of the broadcast receiver, and as shown in fig. 6, the apparatus includes an obtaining module 610, a dividing module 620, and an adjusting module 630.
The acquiring module 610 is configured to acquire a history parameter of the broadcast receiver processing the broadcast message or a type of the broadcast receiver;
A classification module 620 for classifying the broadcast receivers based on the acquired history parameters or the types;
An adjusting module 630 for adjusting the broadcast receiver based on the classified grade.
Further, the historical parameter includes a historical average time,
the classifying module 620 is configured to classify the broadcast receiver based on the obtained historical average time;
The adjusting module 630 is configured to adjust an order of the broadcast receivers in the broadcast receiver queue based on the divided levels.
Further, the historical parameters include historical timeout times,
The dividing module 620 is configured to grade the broadcast receivers based on the obtained historical timeout times;
the adjusting module 630 is configured to adjust an order of the broadcast receivers in the broadcast receiver queue based on the divided levels.
further, when the time for processing the broadcast message by the broadcast receiver is greater than a set fixed time threshold, the historical timeout times are increased once; or
And when the time for processing the broadcast message by the broadcast receiver is greater than a dynamic time threshold, the historical timeout times are increased once, wherein the dynamic time threshold is determined based on an initial set value, the historical timeout times and a time amplitude value, and the time amplitude value is an increment of the dynamic time threshold every time the set number of timeout times is increased.
Further, the historical parameters include a dynamic time threshold;
The dividing module 620 is configured to grade the broadcast receivers based on the obtained dynamic time threshold corresponding to the broadcast receivers;
The adjusting module 630, configured to adjust an order of the broadcast receiver in a broadcast receiver queue based on the divided levels;
Wherein, the dynamic time threshold is used for judging whether the broadcast receiver processes the broadcast message overtime; the dynamic time threshold is determined based on the obtained historical timeout times, the time increment value and the initial set value.
Further, the types of broadcast receivers include: systems, system applications, and three-party applications;
The dividing module 620 is configured to divide the broadcast receiver into classes corresponding to the system, the system application, and the third-party application according to the type of the broadcast receiver;
The adjusting module 630 is configured to create a broadcast receiver queue corresponding to the divided level and move the broadcast receiver to the corresponding broadcast receiver queue.
According to the broadcast receiver adjusting device provided by the embodiment, the broadcast receivers are classified into the grades according to the history parameters of the broadcast receiver processing the broadcast messages or the types of the broadcast receivers, and the broadcast receivers are adjusted according to the grades, so that the efficiency of processing the broadcast messages can be improved, and the system stability can be guaranteed.
The embodiment of the invention provides a terminal, and the terminal can be integrated with the adjusting device of the broadcast receiver provided by the embodiment of the invention. Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 7, the terminal 700 may include: a memory 701, a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a touch screen 712, and a computer program stored in the memory and capable of running on the CPU. The touch screen 712 is used for converting user operation into an electric signal, inputting the electric signal to the CPU, and displaying a visual output signal; the following steps are implemented when the CPU702 executes the computer program: acquiring historical parameters of a broadcast receiver for processing broadcast messages or the type of the broadcast receiver; ranking the broadcast receivers based on the obtained historical parameters or the types; the broadcast receiver is adjusted based on the classified grade.
the terminal 700 further includes: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, and external ports 704, which communicate via one or more communication buses or signal lines 707.
it should be understood that the illustrated terminal 700 is merely one example of a terminal and that the terminal 700 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal integrated with the tuning apparatus of the broadcast receiver provided in this embodiment, and the terminal is exemplified by a mobile phone.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
a peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
an I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
a touch screen 712, the touch screen 712 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The terminal provided in this embodiment is used for executing the adjustment device for the broadcast receiver described in the above embodiments, and the technical principle and the generated technical effect are similar, and are not described herein again.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. a method for tuning a broadcast receiver, comprising:
Acquiring historical parameters of a broadcast receiver for processing broadcast messages or the type of the broadcast receiver, wherein the historical parameters comprise a dynamic time threshold, the dynamic time threshold is used for judging whether the broadcast receiver processes the broadcast messages overtime, and the dynamic time threshold is determined based on the acquired historical overtime times, time amplitude values and an initial set value, and the time amplitude values are the overtime times of each set number and the increment of the dynamic time threshold; the types of broadcast receivers include systems, system applications, and three-party applications;
Dividing the broadcast receiver into classes corresponding to the system, the system application and the three-party application respectively according to the type of the broadcast receiver;
Creating a broadcast receiver queue corresponding to the divided levels and moving the broadcast receiver to the corresponding broadcast receiver queue; alternatively, the first and second electrodes may be,
ranking the broadcast receivers based on the acquired historical parameters, and adjusting the sequence of the broadcast receivers in a broadcast receiver queue based on the ranked levels;
and if the number of the broadcast receivers in the same level is more than 1, sequencing the broadcast receivers in the same level according to the sequence of the broadcast receivers in the broadcast receiver queue when the broadcast receivers are not adjusted.
2. The method of claim 1, wherein the historical parameters comprise a historical average time,
The ranking the broadcast receivers based on the obtained historical parameters includes:
Ranking the broadcast receivers based on the obtained historical average time.
3. The method of claim 1, wherein the historical parameters include historical timeout times,
The ranking the broadcast receivers based on the obtained historical parameters includes:
Ranking the broadcast receivers based on the obtained historical timeout times.
4. The method of claim 3,
When the time for processing the broadcast message by the broadcast receiver is greater than a set fixed time threshold, the historical overtime times are increased once; or
The historical timeout times are increased once when the broadcast receiver has processed a broadcast message for a time greater than a dynamic time threshold.
5. An apparatus for adjusting a broadcast receiver, comprising:
An obtaining module, configured to obtain a historical parameter of a broadcast receiver for processing a broadcast message or a type of the broadcast receiver, where the historical parameter includes a dynamic time threshold, the dynamic time threshold is used to determine whether the broadcast receiver processes the broadcast message overtime, and the determination is performed based on an obtained historical overtime number, a time increment value, and an initial setting value, where the time increment value is an increment of the dynamic time threshold for each increment of the set number of overtime numbers; the types of broadcast receivers include systems, system applications, and three-party applications;
a dividing module for dividing the broadcast receiver into grades corresponding to the system, the system application and the three-party application respectively according to the type of the broadcast receiver;
An adjustment module for creating a broadcast receiver queue corresponding to the divided levels and moving the broadcast receiver to the corresponding broadcast receiver queue; alternatively, the first and second electrodes may be,
A classification module for classifying the broadcast receivers based on the acquired history parameters;
an adjusting module for adjusting an order of the broadcast receivers in a broadcast receiver queue based on the divided levels; and if the number of the broadcast receivers in the same level is more than 1, sequencing the broadcast receivers in the same level according to the sequence of the unadjusted broadcast receivers in the broadcast receiver queue.
6. The apparatus of claim 5, wherein the historical parameter comprises a historical average time,
the dividing module is used for dividing the broadcast receivers into grades based on the obtained historical average time.
7. The apparatus of claim 5, wherein the historical parameters comprise historical timeout times,
the dividing module is used for dividing the broadcast receivers into grades based on the acquired historical timeout times.
8. The apparatus of claim 7,
When the time for processing the broadcast message by the broadcast receiver is greater than a set fixed time threshold, the historical overtime times are increased once; or
The historical timeout times are increased once when the broadcast receiver has processed a broadcast message for a time greater than a dynamic time threshold.
9. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of:
Acquiring historical parameters of a broadcast receiver for processing broadcast messages or the type of the broadcast receiver, wherein the historical parameters comprise a dynamic time threshold, the dynamic time threshold is used for judging whether the broadcast receiver processes the broadcast messages overtime, and the dynamic time threshold is determined based on the acquired historical overtime times, time amplitude values and an initial set value, and the time amplitude values are the overtime times of each set number and the increment of the dynamic time threshold; the types of broadcast receivers include systems, system applications, and three-party applications;
Dividing the broadcast receiver into classes corresponding to the system, the system application and the three-party application respectively according to the type of the broadcast receiver;
Creating a broadcast receiver queue corresponding to the divided levels and moving the broadcast receiver to the corresponding broadcast receiver queue; alternatively, the first and second electrodes may be,
ranking the broadcast receivers based on the acquired historical parameters, and adjusting the sequence of the broadcast receivers in a broadcast receiver queue based on the ranked levels;
And if the number of the broadcast receivers in the same level is more than 1, sequencing the broadcast receivers in the same level according to the sequence of the broadcast receivers in the broadcast receiver queue when the broadcast receivers are not adjusted.
CN201710140530.XA 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver Active CN106851592B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710140530.XA CN106851592B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver
PCT/CN2018/078563 WO2018161956A1 (en) 2017-03-10 2018-03-09 Broadcast recipient adjustment method, device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710140530.XA CN106851592B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver

Publications (2)

Publication Number Publication Date
CN106851592A CN106851592A (en) 2017-06-13
CN106851592B true CN106851592B (en) 2019-12-10

Family

ID=59144119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710140530.XA Active CN106851592B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast receiver

Country Status (2)

Country Link
CN (1) CN106851592B (en)
WO (1) WO2018161956A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851592B (en) * 2017-03-10 2019-12-10 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast receiver
CN106919459B (en) * 2017-03-10 2020-12-04 Oppo广东移动通信有限公司 Management method, device and terminal for broadcast receiver
CN115277557B (en) * 2022-07-25 2024-01-05 Oppo广东移动通信有限公司 Broadcast processing method, device, electronic equipment and storage medium
CN115988437B (en) * 2022-12-27 2023-12-15 中为聚旦数字科技(苏州)有限公司 Service short message monitoring system and method based on big data

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090028564A1 (en) * 2007-07-27 2009-01-29 Villarruel Fernando X Dual Broadcast and Narrowcast Systems and Methods
CN102783244B (en) * 2011-05-24 2015-01-21 展讯通信(上海)有限公司 Multi-mode multi-card multi-standby communication terminal and method and device for arbitrating reception collision in multi-mode multi-card multi-standby communication terminal
WO2014145933A2 (en) * 2013-03-15 2014-09-18 Blinkx, Inc. Systems and methods of processing data involving presentation of information on android devices
CN103491507B (en) * 2013-09-05 2017-08-01 广东欧珀移动通信有限公司 A kind of method and device of ordered broadcast priority reorientation
CN105988868B (en) * 2015-02-12 2019-04-16 Oppo广东移动通信有限公司 A kind of method and terminal shifting application program
CN105208590B (en) * 2015-08-17 2018-07-06 广东欧珀移动通信有限公司 The detection restoration methods and mobile terminal of mobile terminal operating system interim card exception
CN105550104B (en) * 2015-12-08 2018-04-20 北京奇虎科技有限公司 Application program capacity test method and device
CN106406821A (en) * 2016-08-15 2017-02-15 平安科技(深圳)有限公司 Data processing request sorting method and device
CN106851592B (en) * 2017-03-10 2019-12-10 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast receiver

Also Published As

Publication number Publication date
WO2018161956A1 (en) 2018-09-13
CN106851592A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106919459B (en) Management method, device and terminal for broadcast receiver
CN106851592B (en) Method, device and terminal for adjusting broadcast receiver
US10819455B2 (en) Broadcast processing method, non-transitory storage medium, and electronic device
US11157334B2 (en) Control method and apparatus for broadcast sending, storage medium, and electronic device
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US11160052B2 (en) Method for adjusting broadcast receiver queue, storage medium and electronic device
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
US20200004614A1 (en) Broadcast Transmission Method, Terminal, and Storage Medium
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
US10785741B2 (en) Registration method for broadcast receiver, terminal and storage medium
CN106851015A (en) Adjust method, device and the terminal of broadcast message queue
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue
CN106844070B (en) Broadcast control method and device and mobile terminal
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN107402816B (en) Method, device, terminal and storage medium for adjusting work queue of touch screen
US20180262358A1 (en) Method for monitoring broadcast message and terminal
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant