CN106899943B - Method, device and terminal equipment for controlling broadcast sender to send broadcast message - Google Patents

Method, device and terminal equipment for controlling broadcast sender to send broadcast message Download PDF

Info

Publication number
CN106899943B
CN106899943B CN201710141274.6A CN201710141274A CN106899943B CN 106899943 B CN106899943 B CN 106899943B CN 201710141274 A CN201710141274 A CN 201710141274A CN 106899943 B CN106899943 B CN 106899943B
Authority
CN
China
Prior art keywords
broadcast
broadcast message
sending
sender
frequency
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.)
Expired - Fee Related
Application number
CN201710141274.6A
Other languages
Chinese (zh)
Other versions
CN106899943A (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 CN201710141274.6A priority Critical patent/CN106899943B/en
Publication of CN106899943A publication Critical patent/CN106899943A/en
Priority to PCT/CN2017/107189 priority patent/WO2018161596A1/en
Application granted granted Critical
Publication of CN106899943B publication Critical patent/CN106899943B/en
Expired - Fee Related 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a method, a device and terminal equipment for controlling a broadcast sender to send broadcast messages, wherein the method comprises the following steps: recording the times of sending broadcast messages by a broadcast sender in the system; after a broadcast message sending instruction is monitored, determining the frequency of a broadcast sender sending the broadcast message corresponding to the broadcast message sending instruction, wherein the frequency of sending the broadcast message is determined by the frequency of sending the broadcast message in preset time; and controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender. The scheme solves the defects existing in the prior broadcast sender when sending the broadcast message, improves the broadcast processing efficiency, reduces the system resource consumption and increases the system stability.

Description

method, device and terminal equipment for controlling broadcast sender to send broadcast message
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device and terminal equipment for controlling a broadcast sender to send a broadcast message.
Background
Broadcast is a widely used mechanism for information transmission between applications, and takes android operating system as an example, which implements transmission and sharing of data between applications through Broadcast (Broadcast). Typically, the broadcast is a short message, a telephone, etc. carried by android.
In the android system, a broadcast sender transmits a broadcast message by calling a sendBroadcast function, and a broadcast receiver registers a broadcast receiver (BroadcastReceiver) in a management module by calling a register receiver function and defines a broadcast message which is interested by the broadcast receiver, so that the corresponding broadcast message is received.
In the prior art, the broadcast processing efficiency is low, the system resource consumption is excessive and the stability is poor due to the defects of the broadcast sender in the process of sending the broadcast message.
Disclosure of Invention
The invention provides a method, a device and terminal equipment for controlling a broadcast sender to send a broadcast message, which improve the broadcast processing efficiency, reduce the resource consumption of a system and increase the stability of the system.
in a first aspect, an embodiment of the present invention provides a method for controlling a broadcast sender to send a broadcast message, including:
Recording the times of sending broadcast messages by a broadcast sender in the system;
After a broadcast message sending instruction is monitored, determining the frequency of a broadcast sender sending the broadcast message corresponding to the broadcast message sending instruction, wherein the frequency of sending the broadcast message is determined by the frequency of sending the broadcast message in preset time;
And controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender.
In a second aspect, an embodiment of the present invention further provides an apparatus for controlling a broadcast sender to send a broadcast message, where the apparatus includes:
the recording module is used for recording the times of sending the broadcast message by a broadcast sender in the system;
the system comprises a frequency determining module, a frequency judging module and a frequency judging module, wherein the frequency determining module is used for determining the frequency of a broadcast sender sending the broadcast message corresponding to a broadcast message sending instruction after monitoring the broadcast message sending instruction, and the frequency of the broadcast sender sending the broadcast message is determined by the frequency of sending the broadcast message in preset time;
And the control module is used for controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
Recording the times of sending broadcast messages by a broadcast sender in the system;
After a broadcast message sending instruction is monitored, determining the frequency of a broadcast sender sending the broadcast message corresponding to the broadcast message sending instruction, wherein the frequency of sending the broadcast message is determined by the frequency of sending the broadcast message in preset time;
and controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender.
the technical scheme provided by the embodiment of the invention overcomes the defects of the prior broadcast sender in the process of sending the broadcast message, improves the broadcast processing efficiency, reduces the consumption of system resources and increases the system stability.
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 a method for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention;
Fig. 2 is a flowchart of another method for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating an apparatus for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a terminal device 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 for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a method for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention, where this embodiment is applicable to a case where a control process is performed on a broadcast sender to send a broadcast message, and this method may be executed by a terminal device according to an embodiment of the present invention, and an apparatus of the terminal device for controlling a broadcast sender to send a broadcast message may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific solution provided in this embodiment is as follows:
S101, recording the number of times that the broadcast sender sends the broadcast message in the system.
In the process of broadcast processing, a service process of a broadcast sender sends a broadcast message to a management module (e.g., an activity management service) by calling a broadcast sending function (e.g., sendBroadcast function), the management module receives the broadcast message and then puts the broadcast message into a broadcast sending queue, and the 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, the 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 process of sending the broadcast message by the broadcast sender and the process of receiving the broadcast message by the broadcast receiver are asynchronous operation processes, and the broadcast sender and the broadcast receiver realize low-coupling relationship matching through a management module, namely the broadcast sender does not care about who a specific broadcast receiver is after sending the broadcast message, and the broadcast receiver only receives the broadcast message which the broadcast receiver is interested in and does not care about the specific broadcast sender. Therefore, some third-party applications or broadcast senders of malicious software can frequently send broadcast messages all the time, after the broadcast messages are sent out, the broadcast messages are received and processed by corresponding broadcast receivers, and besides system resources are consumed in the process of processing the broadcast messages, the broadcast messages can pull up a plurality of un-started application programs, so that the system operation load is remarkably improved.
In this step, the number of times the broadcast sender sends the broadcast message in the system is recorded. Illustratively, the statistical record of the number of times a broadcast sender sends a broadcast message is performed, and in another embodiment, the statistical record of the number of times a broadcast message is received by a receiver is also performed.
Specifically, taking the counter application as an example of the broadcast sender, the instruction for sending the broadcast message may be represented as:
// creating a broadcast message
Intent intent=new Intent(BROADCAST_COUNTER_ACTION);
// passing the counter parameter and corresponding count value
intent.putExtra(COUNTER_VALUE,counter);
// sending broadcast messages
sendBroadcast(intent)
Wherein, the broadcast message can be sent once and then recorded.
Correspondingly, if the broadcast receiver wants to receive the broadcast, the registration of the broadcast receiver is required, which can be expressed as:
// define an interesting broadcast message (subscribe to broadcast message)
IntentFilter counterActionFilter=
new IntentFilter(CounterService.BROADCAST_COUNTER_ACTION);
V/making registration of the broadcast receiver
registerReceiver(counterActionReceiver,counterActionFilter)
when the BROADCAST message (BROADCAST _ COUNTER _ ACTION) sent by the BROADCAST sender is sent by the management module, the BROADCAST message will be received and called by the corresponding BROADCAST receiver because the BROADCAST receiver registers the corresponding BROADCAST receiver for receiving the BROADCAST message.
s102, after monitoring a broadcast message sending instruction, determining the frequency of sending the broadcast message by a broadcast sender corresponding to the broadcast message sending instruction, wherein the frequency of sending the broadcast message is determined by the frequency of sending the broadcast message in preset time.
In one embodiment, the management module sequentially transmits the broadcast messages in the broadcast transmission queue. The process of the broadcast sender sending the broadcast message and the process of the broadcast receiver receiving the broadcast message are asynchronous operation processes, and the broadcast sender and the broadcast receiver realize low-coupling relationship matching through the management module. The broadcast messages can be divided into ordinary broadcast messages and ordered broadcast messages according to different broadcast transmission modes. After the common broadcast message is sent by the management module, the broadcast receiver receives the broadcast message out of order, and after the ordered broadcast message is sent by the management module, the broadcast receiver receives the broadcast message in sequence, that is, after the first broadcast receiver receives and processes the broadcast message, the second broadcast receiver can start to receive and process the broadcast message, and so on. Specifically, when the broadcast receiver receives the broadcast message, the management module may obtain a registration instruction of the broadcast receiver, where the registration instruction of the broadcast receiver is sent by the broadcast receiver. Generally, a broadcast receiver registers (subscribes to) a broadcast message desired to be received with a management module through a process communication mechanism. The service process of the broadcast receiver registers the broadcast receiver in the management module by calling a register receiver function, and simultaneously defines the broadcast message which is interested by the broadcast receiver, when the management module sends the broadcast message in the broadcast sending queue, the management module sends the broadcast message to a message circulating queue corresponding to the broadcast receiver which subscribes to the broadcast receiver according to the registration condition of the broadcast receiver, and after receiving the broadcast message, the broadcast receiver calls back the receiving method (such as an onReceive method) in the registered broadcast receiver to execute corresponding functions so as to process the received broadcast message.
In this step, after a broadcast message sending instruction is monitored, the frequency of sending the broadcast message by a broadcast sender corresponding to the broadcast message sending instruction is determined. In one embodiment, when the management module detects that the BROADCAST message corresponding to the BROADCAST sending instruction is BROADCAST _ COUNTER _ ACTION, and determines that the corresponding BROADCAST sender is COUNTER, the management module searches the number of times that the BROADCAST sender sends the BROADCAST message, which is recorded in S101. For example, the frequency of the broadcast sender transmitting the broadcast message may be determined by the number of times the broadcast message is transmitted within a preset time (e.g., 10 minutes or 1 hour).
S103, controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender.
In this step, the broadcast message sent by the broadcast sender may be controlled according to the frequency of sending the broadcast message determined in S102. In one embodiment, if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency (for example, greater than 20 times/hour), the broadcast sender is prohibited from sending the broadcast message; if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, limiting the number of the broadcast messages sent by the broadcast sender; or, if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, the broadcast sender is prohibited from sending the broadcast message within the preset time. For example, when the management module processes a broadcast sending instruction, and determines that the broadcast sender meets a condition of prohibiting sending of a broadcast, the broadcast sending instruction is shielded. The method for limiting the number of broadcast messages sent by the broadcast sender (for example, only 5-10 broadcast messages can be sent every day) enables the broadcast sender to send only a certain number of broadcast messages, and also avoids the situation that the system load is increased due to the fact that a large number of broadcast messages are sent by the broadcast sender. In the method of prohibiting the broadcast sender from sending the broadcast message within a preset time (e.g., 1 hour), the setting of the preset time may be adaptively adjusted according to the real-time load (e.g., CPU occupancy, memory occupancy) of the system and the current remaining power of the terminal device, and if the current load of the system is high, the broadcast sender is prohibited from sending the broadcast message within 30 minutes.
By the control of the broadcast message sent by the broadcast sender, the broadcast receiver is prevented from receiving and processing a large amount of broadcast messages, and some broadcast receivers which originally run in a background or do not run are prevented from being pulled up, so that a broadcast processing mechanism is optimized, the broadcast processing efficiency is improved, and the resource consumption of a system is reduced.
It should be noted that, in one embodiment, the scheme is to control the broadcast message transmission performed by the broadcast sender, that is, the broadcast message transmission is reasonably limited at the broadcast sender, and the registration of the broadcast receiver is not affected.
According to the technical scheme provided by the embodiment, the frequency of sending the broadcast message by the broadcast sender corresponding to the broadcast message sending instruction is determined after the broadcast message sending instruction is monitored, the frequency of sending the broadcast message by the broadcast sender corresponding to the broadcast message sending instruction is determined, and the sending of the broadcast message by the broadcast sender is controlled according to the determined frequency of sending the broadcast message by the broadcast sender, so that the defects existing when the existing broadcast sender sends the broadcast message are overcome, the broadcast processing efficiency is improved, the system resource consumption is reduced, and the system stability is improved.
fig. 2 is a flowchart of another method for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention, where on the basis of the foregoing embodiment, optionally after the monitoring of the broadcast message sending instruction, the method further includes: traversing a broadcast queue corresponding to the broadcast message sending instruction, and determining the frequency of a broadcast sender in the broadcast queue for sending the broadcast message; and carrying out broadcast message sending control according to the determined frequency of the broadcast sender in the broadcast queue for sending the broadcast message.
based on the above optimization, as shown in fig. 2, the technical solution provided in this embodiment is specifically as follows:
S201, recording the times of sending the broadcast message by the broadcast sender in the system.
s202, after monitoring a broadcast message sending instruction, traversing a broadcast queue corresponding to the broadcast message sending instruction, and determining the frequency of sending the broadcast message by a broadcast sender in the broadcast queue.
Illustratively, the broadcast messages in the broadcast sending queue recorded by the management module are a, b, c, and D, and when a sending instruction of the broadcast message a is monitored, the broadcast sending queue is traversed to obtain the broadcast messages b, c, and D, and at this time, the broadcast message sending frequencies of the broadcast senders B, C and D corresponding to the broadcast messages b, c, and D are determined respectively.
s203, controlling the sending of the broadcast message according to the determined frequency of the broadcast sender in the broadcast queue to send the broadcast message.
Illustratively, the corresponding broadcast message transmission control is performed according to the broadcast message transmission frequencies of the broadcast transmitters B, C and D determined in S202. The determination of the broadcast message transmission frequency and the corresponding manner of controlling the broadcast message transmission are as described in S101-S103, and are not described herein again. When the broadcast queue executes processing on the broadcast message b, namely after a sending instruction of the broadcast message b is monitored, the sending of the broadcast message b is controlled according to the determined limiting mode for sending the broadcast message by the broadcast sender.
The embodiment provides a method for controlling a broadcast sender to send a broadcast message, wherein after a broadcast message sending instruction is monitored, traversing the broadcast queue corresponding to the broadcast message sending instruction, determining the frequency of the broadcast message sent by the broadcast sender in the broadcast queue, controlling the sending of the broadcast message according to the determined frequency of the broadcast message sent by the broadcast sender in the broadcast queue, avoiding the need of real-time query and calculation of the frequency of the broadcast message sent by the corresponding broadcast sender when a management module processes the broadcast message instruction every time, the frequency of the broadcast message sent by the broadcast sender determined by unified traversal can be used as the frequency of the broadcast message sent by the broadcast sender corresponding to the current broadcast sending instruction, so that the broadcast processing efficiency is improved, the real-time computation of the system is reduced, and the stability of the system is improved.
Fig. 3 is a flowchart of another method for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, after the controlling sending of the broadcast message of the broadcast sender, the method further includes: releasing control of broadcast message transmission to the broadcast sender.
Based on the above optimization, as shown in fig. 3, the technical solution provided by this embodiment is specifically as follows:
S301, recording the times of sending the broadcast message by the broadcast sender in the system.
s302, after monitoring a broadcast message sending instruction, determining the frequency of the broadcast message sent by a broadcast sender corresponding to the broadcast message sending instruction, wherein the frequency of the broadcast message sent is determined by the number of times of sending the broadcast message in preset time.
s303, controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast sender sending the broadcast message.
s304, releasing the control of the broadcast message transmission to the broadcast sender.
in this step, the control of the broadcast sender to send the broadcast message is released. In one embodiment, the current system operating conditions (CPU occupancy, memory occupancy, remaining power) may be used as the decision conditions for releasing the control of the broadcast sender to send the broadcast message. Or, the time for controlling the broadcast message sending by the broadcast sender is counted, and when the counted time reaches a preset release time (e.g., 1 day), the limitation on the broadcast message sending by the broadcast sender is released.
The embodiment provides a method for controlling a broadcast sender to send a broadcast message, which includes recording the number of times that the broadcast sender sends the broadcast message in a system, determining the frequency of sending the broadcast message by the broadcast sender corresponding to a broadcast message sending instruction after monitoring the broadcast message sending instruction, determining the frequency of sending the broadcast message by the broadcast sender within a preset time, controlling the sending of the broadcast message by the broadcast sender according to the determined frequency of sending the broadcast message by the broadcast sender, and correspondingly releasing the control of sending the broadcast message by the broadcast sender.
fig. 4 is a block diagram of an apparatus for controlling a broadcast sender to send a broadcast message according to an embodiment of the present invention, where the apparatus is configured to execute the method for controlling a broadcast sender to send a broadcast message according to the foregoing embodiment, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 4, the apparatus specifically includes: a recording module 401, a frequency determination module 402, a control module 403.
the recording module 401 is configured to record the number of times that a broadcast sender sends a broadcast message in the system;
The frequency determining module 402 is configured to determine, after monitoring a broadcast message sending instruction, a frequency at which a broadcast sender corresponding to the broadcast message sending instruction sends a broadcast message, where the frequency at which the broadcast message is sent is determined by the number of times the broadcast message is sent within a preset time;
the control module 403 is configured to control sending of the broadcast message of the broadcast sender according to the determined frequency of sending the broadcast message by the broadcast sender.
according to the technical scheme provided by the embodiment, the frequency of sending the broadcast message by the broadcast sender corresponding to the broadcast message sending instruction is determined after the broadcast message sending instruction is monitored, the frequency of sending the broadcast message by the broadcast sender corresponding to the broadcast message sending instruction is determined, and the sending of the broadcast message by the broadcast sender is controlled according to the determined frequency of sending the broadcast message by the broadcast sender, so that the defects existing when the existing broadcast sender sends the broadcast message are overcome, the broadcast processing efficiency is improved, the system resource consumption is reduced, and the system stability is improved.
Optionally, the control module 403 is specifically configured to: if the determined frequency of the broadcast sender for sending the broadcast message is greater than the preset frequency, the broadcast sender is prohibited from sending the broadcast message; if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, limiting the number of the broadcast messages sent by the broadcast sender; and if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, prohibiting the broadcast message from being sent by the broadcast sender within the preset time.
optionally, the method further includes: a traversing module 404, configured to traverse a broadcast queue corresponding to a broadcast message sending instruction after the broadcast message sending instruction is monitored, and determine a frequency of a broadcast sender in the broadcast queue to send a broadcast message; the control module is further configured to perform broadcast message transmission control according to the determined frequency of the broadcast sender in the broadcast queue to transmit the broadcast message.
Optionally, the frequency determining module 402 is specifically configured to: and counting the times of sending the broadcast messages recorded in the preset time every other preset time, and determining the frequency of sending the broadcast messages in the preset time.
optionally, the control module 403 is further configured to: releasing the control of the broadcast message transmission to the broadcast transmitter after the control of the broadcast message transmission to the broadcast transmitter.
The present embodiment provides a terminal device on the basis of the above embodiments, and the terminal device may include the apparatus for controlling a broadcast sender to send a broadcast message provided by the present invention. Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 5, the terminal device may include: memory 501, a Central Processing Unit (CPU) 502, peripheral interfaces 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, a power management chip 508, an input/output (I/O) subsystem 509, a touch screen 512, other input/control devices 510, and an external port 504, which communicate via one or more communication buses or signal lines 507.
it should be understood that the illustrated terminal device 500 is merely one example of a terminal device, and that the terminal device 500 may have more or fewer components than shown in the figures, 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 a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
a memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 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 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 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 505 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, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 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 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
and a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The CPU502 provided in the embodiment of the present invention may perform the following operations:
Recording the times of sending broadcast messages by a broadcast sender in the system;
after a broadcast message sending instruction is monitored, determining the frequency of a broadcast sender sending the broadcast message corresponding to the broadcast message sending instruction, wherein the frequency of sending the broadcast message is determined by the frequency of sending the broadcast message in preset time;
And controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender.
optionally, the controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast sender sending the broadcast message includes: if the determined frequency of the broadcast sender for sending the broadcast message is greater than the preset frequency, the broadcast sender is prohibited from sending the broadcast message; if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, limiting the number of the broadcast messages sent by the broadcast sender; and if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, prohibiting the broadcast message from being sent by the broadcast sender within the preset time.
optionally, after the monitoring of the broadcast message sending instruction, the method further includes: traversing a broadcast queue corresponding to the broadcast message sending instruction, and determining the frequency of a broadcast sender in the broadcast queue for sending the broadcast message; and carrying out broadcast message sending control according to the determined frequency of the broadcast sender in the broadcast queue for sending the broadcast message.
optionally, the determining, by the number of times the broadcast message is sent within the preset time, the frequency of sending the broadcast message includes: and counting the times of sending the broadcast messages recorded in the preset time every other preset time, and determining the frequency of sending the broadcast messages in the preset time.
Optionally, after the controlling the sending of the broadcast message of the broadcast sender, the method further includes: releasing control of broadcast message transmission to the broadcast sender.
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 of controlling a broadcast sender to send a broadcast message, comprising:
Recording the times of sending broadcast messages by a broadcast sender in a system, wherein the broadcast messages are sent by the system or application programs in the running process and are used for transmitting information between the system and/or the application programs;
After a broadcast message sending instruction is monitored, determining the frequency of a broadcast sender sending the broadcast message corresponding to the broadcast message sending instruction, wherein the frequency of sending the broadcast message is determined by the frequency of sending the broadcast message in preset time;
Controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender;
the controlling the transmission of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message transmitted by the broadcast sender comprises:
If the determined frequency of the broadcast sender for sending the broadcast message is greater than the preset frequency, the broadcast sender is prohibited from sending the broadcast message;
if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, limiting the number of the broadcast messages sent by the broadcast sender;
and if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, prohibiting the broadcast message from being sent by the broadcast sender within the preset time.
2. the method of claim 1, further comprising, after the monitoring for a broadcast message transmission instruction:
Traversing a broadcast queue corresponding to the broadcast message sending instruction, and determining the frequency of a broadcast sender in the broadcast queue for sending the broadcast message;
And carrying out broadcast message sending control according to the determined frequency of the broadcast sender in the broadcast queue for sending the broadcast message.
3. The method of any one of claims 1-2, wherein the frequency of sending the broadcast message is determined by the number of times the broadcast message is sent within a preset time, comprising:
And counting the times of sending the broadcast messages recorded in the preset time every other preset time, and determining the frequency of sending the broadcast messages in the preset time.
4. The method of claim 3, further comprising, after the controlling the transmission of the broadcast message by the broadcast transmitter:
Releasing control of broadcast message transmission to the broadcast sender.
5. An apparatus for controlling a broadcast sender to send a broadcast message, comprising:
the system comprises a recording module, a sending module and a receiving module, wherein the recording module is used for recording the times of sending broadcast messages by a broadcast sender in a system, and the broadcast messages are sent by the system or application programs in the running process and are used for transmitting information between the system and/or the application programs;
the system comprises a frequency determining module, a frequency judging module and a frequency judging module, wherein the frequency determining module is used for determining the frequency of a broadcast sender sending the broadcast message corresponding to a broadcast message sending instruction after monitoring the broadcast message sending instruction, and the frequency of the broadcast sender sending the broadcast message is determined by the frequency of sending the broadcast message in preset time;
The control module is used for controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender;
The control module is specifically configured to:
If the determined frequency of the broadcast sender for sending the broadcast message is greater than the preset frequency, the broadcast sender is prohibited from sending the broadcast message;
If the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, limiting the number of the broadcast messages sent by the broadcast sender;
And if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, prohibiting the broadcast message from being sent by the broadcast sender within the preset time.
6. the apparatus of claim 5, further comprising:
The traversing module is used for traversing a broadcast queue corresponding to the broadcast message sending instruction after the broadcast message sending instruction is monitored, and determining the frequency of the broadcast message sent by a broadcast sender in the broadcast queue;
The control module is further configured to perform broadcast message transmission control according to the determined frequency of the broadcast sender in the broadcast queue to transmit the broadcast message.
7. The apparatus according to any of claims 5-6, wherein the frequency determination module is specifically configured to:
and counting the times of sending the broadcast messages recorded in the preset time every other preset time, and determining the frequency of sending the broadcast messages in the preset time.
8. the apparatus of claim 7, wherein the control module is further configured to:
Releasing the control of the broadcast message transmission to the broadcast transmitter after the control of the broadcast message transmission to the broadcast transmitter.
9. a terminal device, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
recording the times of sending broadcast messages by a broadcast sender in a system, wherein the broadcast messages are sent by the system or application programs in the running process and are used for transmitting information between the system and/or the application programs;
After a broadcast message sending instruction is monitored, determining the frequency of a broadcast sender sending the broadcast message corresponding to the broadcast message sending instruction, wherein the frequency of sending the broadcast message is determined by the frequency of sending the broadcast message in preset time;
Controlling the sending of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message sent by the broadcast sender;
The controlling the transmission of the broadcast message of the broadcast sender according to the determined frequency of the broadcast message transmitted by the broadcast sender comprises:
if the determined frequency of the broadcast sender for sending the broadcast message is greater than the preset frequency, the broadcast sender is prohibited from sending the broadcast message;
If the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, limiting the number of the broadcast messages sent by the broadcast sender;
and if the determined frequency of the broadcast message sent by the broadcast sender is greater than the preset frequency, prohibiting the broadcast message from being sent by the broadcast sender within the preset time.
CN201710141274.6A 2017-03-10 2017-03-10 Method, device and terminal equipment for controlling broadcast sender to send broadcast message Expired - Fee Related CN106899943B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710141274.6A CN106899943B (en) 2017-03-10 2017-03-10 Method, device and terminal equipment for controlling broadcast sender to send broadcast message
PCT/CN2017/107189 WO2018161596A1 (en) 2017-03-10 2017-10-21 Method for controlling transmission of broadcast messages by broadcast sender, apparatus, terminal device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710141274.6A CN106899943B (en) 2017-03-10 2017-03-10 Method, device and terminal equipment for controlling broadcast sender to send broadcast message

Publications (2)

Publication Number Publication Date
CN106899943A CN106899943A (en) 2017-06-27
CN106899943B true CN106899943B (en) 2019-12-06

Family

ID=59192674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710141274.6A Expired - Fee Related CN106899943B (en) 2017-03-10 2017-03-10 Method, device and terminal equipment for controlling broadcast sender to send broadcast message

Country Status (2)

Country Link
CN (1) CN106899943B (en)
WO (1) WO2018161596A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899943B (en) * 2017-03-10 2019-12-06 Oppo广东移动通信有限公司 Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN111031105B (en) * 2019-11-26 2022-06-28 北京百度网讯科技有限公司 Statistical method, device, equipment and storage medium for message frequency in automatic driving

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100262651A1 (en) * 2009-04-09 2010-10-14 Samsung Electronics Co., Ltd. Method to prevent server overload for broadcast protocols by adaptively applying prescribed response behavior profiles
CN103595547B (en) * 2013-11-15 2016-07-13 北京奇虎科技有限公司 The broadcast hold-up interception method of smart machine and device
CN105682053A (en) * 2016-03-02 2016-06-15 北京小米移动软件有限公司 Method and apparatus for controlling broadcast frequency, bluetooth device, and terminal
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Method, device and system for controlling data transmission
CN106851014B (en) * 2017-03-10 2020-06-30 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN106878957B (en) * 2017-03-10 2019-05-14 Oppo广东移动通信有限公司 Broadcast queue's generation method, device and terminal device
CN106899943B (en) * 2017-03-10 2019-12-06 Oppo广东移动通信有限公司 Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106844069A (en) * 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 Adjust method, device and the terminal of broadcast message queue

Also Published As

Publication number Publication date
CN106899943A (en) 2017-06-27
WO2018161596A1 (en) 2018-09-13

Similar Documents

Publication Publication Date Title
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US10819455B2 (en) Broadcast processing method, non-transitory storage medium, and electronic device
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
CN106919459B (en) Management method, device and terminal for broadcast receiver
CN106851015B (en) Method, device and terminal for adjusting broadcast message queue
CN106921947B (en) Method, device and terminal for adjusting broadcast message queue
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
EP3592003A1 (en) Broadcast control method, device, storage medium and mobile terminal
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
US10785741B2 (en) Registration method for broadcast receiver, terminal and storage medium
EP3588993B1 (en) Broadcast sending method and terminal
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106844070B (en) Broadcast control method and device and mobile terminal
EP3373137B1 (en) Method, apparatus and terminal device for sending broadcast
WO2018161955A1 (en) Method and device for controlling broadcast recipient, and mobile terminal
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue
WO2018161506A1 (en) Method for monitoring broadcast message and terminal
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment
CN106936996B (en) Method, device and terminal for sending shutdown broadcast

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191206

CF01 Termination of patent right due to non-payment of annual fee