CN112004150A - Television control method, system, television and storage medium - Google Patents
Television control method, system, television and storage medium Download PDFInfo
- Publication number
- CN112004150A CN112004150A CN202010834883.1A CN202010834883A CN112004150A CN 112004150 A CN112004150 A CN 112004150A CN 202010834883 A CN202010834883 A CN 202010834883A CN 112004150 A CN112004150 A CN 112004150A
- Authority
- CN
- China
- Prior art keywords
- resource
- television
- background application
- state
- system resource
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a television control method, a system, a television and a storage medium, wherein the television control method comprises the following steps: the system resource detection module detects the resource utilization rate of each system resource of the television system; the message broadcasting module sends system resource state broadcast according to the resource utilization rate of each system resource; and the system operation module controls the background application in the television system to run according to the resource state broadcast. According to the invention, by detecting the resource utilization rate of the system resource and controlling the background application in the television system to run according to the resource utilization rate of the system resource, the background application can be limited when the system resource is in shortage, and the effect of ensuring smooth running of the television system is realized.
Description
Technical Field
The invention relates to the technical field of household appliances, in particular to a television control method, a television control system, a television and a storage medium.
Background
The smart television based on the android system is widely used, and besides playing television program signals, the smart television is often provided with a plurality of applications, some of which need to run in the background to provide corresponding services, but the applications running in the background occupy system resources of the television, which results in reduced system fluency.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for controlling a television, a television and a storage medium, aiming at solving the problem that the television background application of the android system occupies the system resources of the television, which results in the reduction of the system fluency in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a television control method, wherein the method comprises:
detecting the resource utilization rate of each system resource of the television system;
generating a system resource state broadcast according to the resource utilization rate of each system resource;
and controlling background application in the television system to run according to the resource state broadcast.
The television control method, wherein the system resource comprises at least one of CPU data, GPU data, memory data, flow data and frame number.
The television control method, wherein the generating of the system resource state broadcast according to the resource usage rate of each system resource includes:
determining whether the state of each system resource is an idle state according to the resource utilization rate of each system resource;
generating the system resource state broadcast according to the state of each system resource;
wherein the system resource status broadcast includes a status of the system resource and a resource usage rate.
The television control method, wherein the controlling the background application in the television system to run according to the resource state broadcast comprises:
determining the state of each system resource according to the resource state broadcast;
and controlling background application in the television system according to the states of the system resources.
The method for controlling the television, wherein the controlling the background application in the television system according to the states of the system resources comprises:
when the state of the system resource is not an idle state, limiting the background application in the television system to run;
and when the states of all the system resources are idle states, controlling background applications in the television system to run according to the priority.
The television control method, wherein the limiting the background application in the television system to run includes:
closing the background application or limiting the background application from starting.
The method for controlling a television, wherein when the system resource is traffic data, the limiting the background application in the television system from running further comprises:
background applications are restricted from using the network.
A television control system, the system comprising:
the system resource detection module is used for detecting the resource utilization rate of the system resources of the television system;
the message broadcasting module is connected with the system resource detection module and is used for generating system resource state broadcasting according to the resource utilization rate of the system resources;
and the system operation module is connected with the message broadcasting module and is used for controlling background application running in the television system according to the resource state broadcast.
A television set, wherein the television set: the television control method comprises a processor and a storage medium which is in communication connection with the processor, wherein the storage medium is suitable for storing a plurality of instructions, and the processor is suitable for calling the instructions in the storage medium to execute the steps of realizing the television control method.
A storage medium, wherein the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the television control method according to any one of the above.
Has the advantages that: compared with the prior art, the invention provides the television control method, the television and the storage medium, the television control method controls the background application in the television system to run by detecting the resource utilization rate of system resources and according to the resource utilization rate of the system resources, can limit the background application when the system resources are in shortage, and achieves the effect of ensuring the smooth running of the television system.
Drawings
Fig. 1 is a flowchart of an embodiment of a television control method provided by the present invention;
fig. 2 is a flowchart illustrating sub-steps of step S300 in an embodiment of a television control method according to the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a television control system provided by the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a television set provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Fig. 1 is a flowchart illustrating a television control method according to a first embodiment of the television control method provided by the present invention, where the television control system includes a system resource detection module, a message broadcasting module, and a system operation module. The television control method comprises the following steps:
s100, detecting the resource utilization rate of system resources of the television system.
The method is suitable for the television of the android system, namely the television system is the android system. The system resource comprises at least one of CPU data, GPU data, memory data, flow data and frame number.
The television acquires the resource utilization rate of each relation graph resource by running a preset command, specifically, acquires CPU data by an adb shell dump sys CPU info command, and acquires flow data by an adb shell cat/proc/# pid #/net/dev command.
S200, generating system resource state broadcast according to the resource utilization rate of each system resource.
And after detecting the resource utilization rate of the system resource, generating a system resource state broadcast according to the resource utilization rate of each system resource, so that other modules in the system acquire the state of each system resource.
Specifically, the generating a system resource status broadcast according to the resource utilization rate of each system resource includes:
s210, determining whether the state of each system resource is an idle state according to the resource utilization rate of each system resource;
s220, generating the system resource state broadcast according to the states of the system resources.
Specifically, a threshold value of the idle state may be set, and when the resource usage rate of the system resource exceeds the threshold value, the system resource is not in the idle state. The system resource status broadcast includes the status of the system resource and the resource usage rate.
S300, controlling background application in the television system to run according to the resource state broadcast.
After the resource state broadcast is generated, the television controls the background application in the television system to run according to the resource state broadcast, specifically, a system operation module is arranged in the television, the system operation module can control the application in the television system to run, the system operation module monitors the broadcast in the system, and when the system resource state broadcast broadcasted by the message broadcast module is monitored, the background application in the television system is controlled to run according to the resource state broadcast.
Specifically, as shown in fig. 2, the controlling the background application running in the television system according to the resource status broadcast includes:
and S310, when the state of the system resource is not in an idle state, limiting the background application in the television system to run.
And after the system resource state broadcast is generated, acquiring the state of the system resource according to the system resource state broadcast, and limiting the background application in the television system to run when the state of the system resource is not idle. Specifically, the limiting the running of the background application in the television system includes:
closing the background application or limiting the background application from starting.
When the system resource state is not idle, the resource should be preferentially used by the foreground application, so that the background application (also called killing background application, the code may be android.
In a possible implementation manner, when the system resource is traffic data, that is, when network resources are in shortage, in order to guarantee the traffic data of the foreground, the background application may be closed or the background application may be restricted from starting, and the background application may be restricted from using the network.
And S320, when the states of all the system resources are idle states, controlling background applications in the television system to run according to the priority.
When the states of the system resources are idle states, the background application in the television system can occupy certain system resources, at this time, the background application in the television system is controlled to run according to the priority, and in the process that the background application runs according to the priority, if the states of the system resources are converted into non-idle states, the step of limiting the running of the background application in the television system is executed again at this time.
Specifically, priorities can be set in advance for each system in the television system, when the states of each system resource are idle states, the priorities of background applications are read and the applications are operated in sequence from high priority to low priority, and the background operation of the applications with high priorities is guaranteed on the premise that the fluency of the systems is not affected.
In summary, the present embodiment provides a method for controlling a television, which is implemented by detecting a resource utilization rate of a system resource and controlling a background application in the television system to run according to the resource utilization rate of the system resource, so that the background application can be limited when the system resource is in a short supply, and an effect of ensuring smooth running of the television system is achieved.
It should be understood that, although the steps in the flowcharts shown in the figures of the present specification are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Example two
The present invention also provides a television control system, as shown in fig. 3, the television control system includes:
a system resource detection module, configured to detect a resource usage rate of system resources of a television system, as described in embodiment one;
a message broadcasting module, connected to the system resource detection module, configured to send a system resource status broadcast according to a resource usage rate of the system resource, as described in embodiment one;
and a system operation module, connected to the message broadcasting module, for controlling a background application in the television system to run according to the resource state broadcast, as described in embodiment one.
EXAMPLE III
In one embodiment, a television set is provided, a functional block diagram of which may be as shown in fig. 4. The television comprises a memory 10 and a processor 20, wherein the memory 10 stores a computer program, and the processor 10 executes the computer program to realize at least the following steps:
detecting the resource utilization rate of each system resource of the television system;
generating a system resource state broadcast according to the resource utilization rate of each system resource;
and controlling background application in the television system to run according to the resource state broadcast.
The system resource comprises at least one of CPU data, GPU data, memory data, flow data and frame number.
Wherein the generating a system resource status broadcast according to the resource usage of each system resource comprises:
determining whether the state of each system resource is an idle state according to the resource utilization rate of each system resource;
generating the system resource state broadcast according to the state of each system resource;
wherein the system resource status broadcast includes a status of the system resource and a resource usage rate.
Wherein the broadcasting and controlling the background application in the television system to run according to the resource status comprises:
determining the state of each system resource according to the resource state broadcast;
and controlling background application in the television system according to the states of the system resources.
Wherein the controlling the background application in the television system according to the state of each system resource comprises:
when the state of the system resource is not an idle state, limiting the background application in the television system to run;
and when the states of all the system resources are idle states, controlling background applications in the television system to run according to the priority.
Wherein the limiting the background application running in the television system comprises:
closing the background application or limiting the background application from starting.
Wherein, when the system resource is the traffic data, the limiting the background application running in the television system further comprises:
background applications are restricted from using the network.
Example four
The present invention also provides a storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the television control method described in the above embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A television control method is characterized by comprising the following steps:
detecting the resource utilization rate of each system resource of the television system;
generating a system resource state broadcast according to the resource utilization rate of each system resource;
and controlling background application in the television system to run according to the resource state broadcast.
2. The method of claim 1, wherein the system resources comprise at least one of CPU data, GPU data, memory data, traffic data, frame count.
3. The method according to claim 1, wherein the generating a system resource status broadcast according to the resource usage rate of each system resource comprises:
determining whether the state of each system resource is an idle state according to the resource utilization rate of each system resource;
generating the system resource state broadcast according to the state of each system resource;
wherein the system resource status broadcast includes a status of the system resource and a resource usage rate.
4. The method of claim 1, wherein said broadcast controlling background applications running in a television system according to the resource status comprises:
determining the state of each system resource according to the resource state broadcast;
and controlling background application in the television system according to the states of the system resources.
5. The method according to claim 4, wherein the controlling the background application in the television system according to the status of the system resources comprises:
when the state of the system resource is not an idle state, limiting the background application in the television system to run;
and when the states of all the system resources are idle states, controlling background applications in the television system to run according to the priority.
6. The method of claim 5, wherein the limiting the background application running in the television system comprises:
closing the background application or limiting the background application from starting.
7. The method of claim 5, wherein when the system resource is traffic data, the limiting the background application running in the television system further comprises:
background applications are restricted from using the network.
8. A television control system, the television control system comprising:
the system resource detection module is used for detecting the resource utilization rate of the system resources of the television system;
the message broadcasting module is connected with the system resource detection module and is used for generating system resource state broadcasting according to the resource utilization rate of the system resources;
and the system operation module is connected with the message broadcasting module and is used for controlling background application running in the television system according to the resource state broadcast.
9. A television set, characterized in that the television set comprises: a processor, a storage medium communicatively connected to the processor, the storage medium adapted to store a plurality of instructions, the processor adapted to call the instructions in the storage medium to perform the steps of implementing the television control method of any of the preceding claims 1-7.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the television control method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010834883.1A CN112004150A (en) | 2020-08-14 | 2020-08-14 | Television control method, system, television and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010834883.1A CN112004150A (en) | 2020-08-14 | 2020-08-14 | Television control method, system, television and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112004150A true CN112004150A (en) | 2020-11-27 |
Family
ID=73473593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010834883.1A Pending CN112004150A (en) | 2020-08-14 | 2020-08-14 | Television control method, system, television and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112004150A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112702637A (en) * | 2020-12-21 | 2021-04-23 | 深圳铭薪房车科技有限公司 | Intelligent vehicle-mounted television and control method thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270169A (en) * | 2010-05-25 | 2011-12-07 | 三星电子株式会社 | Method and apparatus for managing an application being executed in a portable terminal |
CN106484534A (en) * | 2016-09-27 | 2017-03-08 | 努比亚技术有限公司 | Control method for the mobile terminal of displaying and control device |
CN107391259A (en) * | 2017-07-25 | 2017-11-24 | 广东欧珀移动通信有限公司 | Method for processing resource and device, computer-readable recording medium, mobile terminal |
CN109062625A (en) * | 2018-06-21 | 2018-12-21 | 北京小米移动软件有限公司 | The method, apparatus and readable storage medium storing program for executing of application program load |
CN109992310A (en) * | 2019-03-12 | 2019-07-09 | 中国平安财产保险股份有限公司 | Application program keepalive method, device, computer equipment and storage medium |
CN110018904A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
CN110045809A (en) * | 2018-01-12 | 2019-07-23 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
US20200226433A1 (en) * | 2017-09-30 | 2020-07-16 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and Device for Controlling Application, Storage Medium, and Electronic Device |
-
2020
- 2020-08-14 CN CN202010834883.1A patent/CN112004150A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270169A (en) * | 2010-05-25 | 2011-12-07 | 三星电子株式会社 | Method and apparatus for managing an application being executed in a portable terminal |
CN106484534A (en) * | 2016-09-27 | 2017-03-08 | 努比亚技术有限公司 | Control method for the mobile terminal of displaying and control device |
CN107391259A (en) * | 2017-07-25 | 2017-11-24 | 广东欧珀移动通信有限公司 | Method for processing resource and device, computer-readable recording medium, mobile terminal |
US20200226433A1 (en) * | 2017-09-30 | 2020-07-16 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and Device for Controlling Application, Storage Medium, and Electronic Device |
CN110018904A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
CN110045809A (en) * | 2018-01-12 | 2019-07-23 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
CN109062625A (en) * | 2018-06-21 | 2018-12-21 | 北京小米移动软件有限公司 | The method, apparatus and readable storage medium storing program for executing of application program load |
CN109992310A (en) * | 2019-03-12 | 2019-07-09 | 中国平安财产保险股份有限公司 | Application program keepalive method, device, computer equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112702637A (en) * | 2020-12-21 | 2021-04-23 | 深圳铭薪房车科技有限公司 | Intelligent vehicle-mounted television and control method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109992310B (en) | Application program keep-alive method, device, computer equipment and storage medium | |
CN111885170B (en) | Processing method and system of Internet of things control system, cloud server and medium | |
CN108073520B (en) | Memory control method and device | |
CN111352350B (en) | Method and device for determining execution of smart home scene | |
CN110599080A (en) | Service data distribution processing method and device, computer equipment and storage medium | |
CN110995617B (en) | MQTT-based data transmission method and device, computer equipment and storage medium | |
CN112004150A (en) | Television control method, system, television and storage medium | |
CN115390920A (en) | Event stream processing method and device, computer equipment and storage medium | |
US20230409391A1 (en) | Thread priority adjusting method, terminal, and computer-readable storage medium | |
CN110738156B (en) | Face recognition system and method based on message middleware | |
CN114168490A (en) | Method for determining memory recovery threshold and related equipment | |
CN111338803B (en) | Thread processing method and device | |
CN110049350B (en) | Video transcoding processing method and device, computer equipment and storage medium | |
US20090083754A1 (en) | Implementation of multi-tasking on a digital signal processor | |
CN111782378A (en) | Adaptive processing performance adjusting method, server and readable storage medium | |
CN114791818B (en) | Storage controller system update method, system, computer device and storage medium | |
CN113515056A (en) | Function execution method and intelligent household appliance | |
CN111367656B (en) | Method for distributing media resources, computer equipment and storage medium | |
CN114461323A (en) | Card pause processing method and device, electronic equipment and storage medium | |
CN110430090A (en) | A kind of distributed system election queue optimization method and device | |
CN113220429A (en) | Method, device, equipment and medium for processing tasks of Java thread pool | |
CN112835689B (en) | Method and device for controlling application process | |
CN110769046A (en) | Message acquisition method and device, electronic equipment and machine-readable storage medium | |
CN107092531B (en) | Computing framework, electronic device and information processing method | |
CN112579305A (en) | Task processing method and device, nonvolatile storage medium and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201127 |