CN111385651A - Automatic repair method and device based on middleware, smart television and storage medium - Google Patents

Automatic repair method and device based on middleware, smart television and storage medium Download PDF

Info

Publication number
CN111385651A
CN111385651A CN201811639302.8A CN201811639302A CN111385651A CN 111385651 A CN111385651 A CN 111385651A CN 201811639302 A CN201811639302 A CN 201811639302A CN 111385651 A CN111385651 A CN 111385651A
Authority
CN
China
Prior art keywords
middleware
module
daemon process
abnormal
based automatic
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
Application number
CN201811639302.8A
Other languages
Chinese (zh)
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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201811639302.8A priority Critical patent/CN111385651A/en
Publication of CN111385651A publication Critical patent/CN111385651A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring 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/4425Monitoring of client processing errors or hardware failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders

Abstract

The invention discloses an automatic repair method and device based on a middleware, a smart television and a storage medium, wherein the method comprises the following steps: the daemon process monitors that the middleware is abnormal; controlling the middleware to restart to restore the middleware. The invention creates a daemon process for monitoring the middleware and the running condition of the related resources when the intelligent television is started, controls the middleware to start running service, periodically sends state information to the daemon process by each module of the middleware, determines that the middleware is abnormal when the state information of any module is not received, stops the middleware program through the daemon process, and restarts the middleware to recover the middleware, thereby ensuring that the middleware is in a normal running state most of time, and even if the program crashes under a specific condition, the middleware can be restarted under the action of the mechanism, automatically judges the abnormality and actively repairs the related service and the program.

Description

Automatic repair method and device based on middleware, smart television and storage medium
Technical Field
The invention relates to the technical field of image processing, in particular to an automatic restoration method and device based on a middleware, a smart television and a storage medium.
Background
Some phenomena of jamming or random abnormality may occur in the process of using the smart television by a user, for example, a key does not respond, a signal source is not skipped successfully, an Application is not operated normally, and some of the phenomena may be caused by a middleware, for example, a deadlock phenomenon occurs in the middleware at a low probability, the middleware is a driving layer service operated in the whole system, only one driving layer service is provided in the whole system, and the driving layer service provides a driving layer API (Application Programming Interface) function for an Application layer, for example, a signal source switching API, a TV channel playing API, an image effect adjusting API, a proportional mode adjusting API, and the like; the other part may be that when the middleware calls the FPP interface, the FPP interface is blocked; at this time, it is the system that is dead and unusable for the user (no response to the key, unsuccessful source jump, abnormal application operation, etc.), which largely affects the use of the user and brings inconvenience to the user.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the invention is to recover the abnormal electronic equipment by restarting according to the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a middleware-based automatic repair method, wherein the middleware-based automatic repair method comprises:
the daemon process monitors that the middleware is abnormal;
controlling the middleware to restart to restore the middleware.
The automatic repair method based on the middleware, wherein before the daemon process monitors that any module of the middleware is abnormal, the method comprises the following steps:
the daemon periodically receives state information for each module of the middleware.
The automatic repair method based on the middleware comprises the following specific steps of monitoring the abnormality of a module of the middleware:
and when the state information of any module is not received, determining that the middleware is abnormal.
The automatic repair method based on the middleware, wherein the step of monitoring the middleware by the daemon process to be abnormal comprises the following steps:
a daemon process is created;
and when the daemon process does not receive the state information of the module, determining that the middleware is abnormal.
The automatic repair method based on the middleware, wherein the controlling the middleware to restart to recover the middleware comprises:
sending service no-response or reloading service prompt information to the corresponding UI;
and controlling to restart the middleware to repair the abnormity.
An automatic middleware-based restoration device, wherein the device comprises:
an information receiving module for periodically receiving the state information of each module of the middleware by the daemon process
The exception detection module is used for monitoring the exception of the middleware by the daemon process;
and the restart recovery module is used for controlling the middleware to restart so as to recover the middleware.
The automatic repair device based on the middleware, wherein the abnormality detection module specifically comprises:
a creation unit for creating a daemon process;
and the exception confirming unit is used for determining that the middleware is abnormal when the daemon process does not receive the state information of the module.
The automatic repair device based on the middleware, wherein the restart recovery module specifically comprises:
the information prompting unit is used for sending the service non-response or reloading the service prompting information to the corresponding UI;
and the restarting unit is used for controlling and restarting the middleware to repair the abnormity.
An intelligent television comprises the automatic repair device based on the middleware.
A storage medium, wherein the storage medium stores a middleware based automatic repair program, which when executed by a processor implements the steps of the middleware based automatic repair method as described above.
According to the invention, when the daemon process monitors that the middleware is abnormal, the middleware is controlled to restart to recover the middleware, so that the middleware is ensured to be in a normal running state, and the condition that the electronic equipment needs to be restarted to recover when the electronic equipment is abnormal is avoided.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the middleware-based automatic repair method of the present invention;
FIG. 2 is a flowchart of step S10 in the preferred embodiment of the middleware-based automatic repairing method of the present invention;
FIG. 3 is a flowchart of step S20 in the preferred embodiment of the middleware-based automatic repairing method of the present invention;
fig. 4 is a schematic structural diagram of a preferred embodiment of the automatic middleware-based restoration apparatus of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages 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.
As shown in fig. 1, the automatic repair method based on the middleware according to the preferred embodiment of the present invention includes the following steps:
and step S10, the daemon process monitors that the middleware is abnormal.
Specifically, before monitoring that any module of the middleware is abnormal, the daemon further comprises: the daemon process periodically receives the state information of each module of the middleware, wherein the step of monitoring the abnormality of one module of the middleware is specifically as follows: when the state information of any module is not received, determining that the middleware is abnormal; the abnormal condition of the middleware can cause the conditions of no response of keys of the intelligent television, unsuccessful source jump, abnormal application running and the like.
When the intelligent television is started to initialize, a daemon (daemon) for monitoring the running condition of the middleware and a related resource library (sittvservice) thereof is created in the system, the daemon runs in a background all the time, and the state of each module of the middleware is inquired at regular time.
Further, there are many modules of the middleware, for example, the following modules are included: a linein module, a signal module, an audio module, a video module, a zoom module, a play module, etc.; wherein the linein module: the information source module is mainly responsible for switching control of the information source and maintenance of the state of the information source; a signal module: the signal module is mainly responsible for maintaining the signal state of the information source; an audio module: the system is also called a sound module and is mainly responsible for controlling the sound state and the sound effect function of the system; a video module: the image module is mainly responsible for controlling the source image effect; a zoom module: the scaling module is mainly responsible for scaling control of the information source image; a play module: also called as a playing module, which is mainly responsible for controlling the playing of TV signal source (ATV, DTV) channels.
Each module of the middleware is configured to execute a respective function (corresponding to performing function control of each module, for example, each module in the above examples), and send state information to a daemon process within a preset time interval (for example, 5 seconds), that is, the daemon process periodically receives the state information of each module of the middleware, and determines whether the daemon process receives the state information sent by all the modules of the middleware, and when the daemon process does not receive the state information of any module, it may be determined that the middleware is abnormal.
Please refer to fig. 2, which is a flowchart of step S10 in the middleware-based automatic repair according to the present invention.
As shown in fig. 2, the step S10 includes:
s11, creating a daemon process;
s12, when the daemon process does not receive the state information of the module, determining that the middleware is abnormal.
Specifically, the process in which the daemon process is created is: establishing a daemon process for monitoring the running condition of the middleware and related dependent resources thereof during startup, and inquiring the state of each module of the middleware; and each module of the middleware periodically sends state information to the daemon process, and when the daemon process does not receive the state information of any module, the middleware is determined to be abnormal.
And step S20, controlling the middleware to restart to recover the middleware.
Specifically, if there is a module that does not successfully send status information within a preset time interval, that is, the daemon process does not receive status information of any module, it may be determined that the middleware is abnormal, at this time, the daemon process may send a message to the UI to perform a prompt for no response to the service or some prompt information for some reloading services, the daemon process may suspend (kill, delete) the middleware program, and execute a run.sh script to start the middleware service again (the middleware may be restored to a normal operating state after being restarted).
After the intelligent television is initialized to normally operate, each module in the middleware starts to maintain the operation state mark of the module, a daemon process daemon is an infinite loop, when the timing reaches a preset time interval (the reference value is 5 seconds), whether each module normally maintains the operation state mark of the module is judged, if one module is not normally maintained, all states are cleared, a message is sent to a UI (user interface) for prompt display, then a system kill command is executed, abnormal middleware services are killed, and the middleware services are restarted; and if all the modules of the middleware are normally maintained, entering the next specific time interval cycle, and so on.
Please refer to fig. 3, which is a flowchart of step S20 in the middleware-based automatic repair according to the present invention.
As shown in fig. 3, the step S20 includes:
s21, sending service no-response or reloading service prompt information to the corresponding UI;
and S22, controlling to restart the middleware to repair the abnormity.
Specifically, control clears all state information, and sends the no-response of service or reloads the service prompt message to UI; and then stopping the abnormal middleware program through the daemon process, and restarting the middleware to repair the abnormality.
Further, the daemon process may restart the middleware while sending the prompt information to the UI, that is, sending the information and restarting may be performed simultaneously.
By the mechanism, the problem that when the system middleware service and the resource library depended by the system middleware service are abnormal, operation is not responded or some crash is solved, the middleware can be ensured to be in a normal running state for most of time, even if a program crashes under a specific situation, the middleware can be restarted under the action of the mechanism, certainly, the function can be closed (the existing problem is solved as much as possible) in a debugging stage before software release, the function is opened when the software is released, and the system can self-repair and self-start related services after the system is abnormal, so that the stability of the software system is improved, and the fault maintenance rate is reduced.
Further, as shown in fig. 4, based on the above automatic repair method based on middleware, the present invention also provides an automatic repair device based on middleware, where the automatic repair device based on middleware includes:
the information receiving module 11 is used for periodically receiving the state information of each module of the middleware by the daemon process; the abnormality detection module 12 is used for monitoring the abnormality of the middleware by the daemon process; and a restart recovery module 13, configured to control the middleware to restart to recover the middleware.
Further, the abnormality detection module specifically includes:
a creating unit 121 for creating a daemon process;
an exception confirming unit 122, configured to determine that the middleware is abnormal when the daemon process does not receive state information of one module.
Further, the restart recovery module specifically includes:
an information prompt unit 131, configured to send a service non-response or reload service prompt information to a corresponding UI;
and a restarting unit 132, configured to control to restart the middleware for exception recovery.
Further, based on the automatic repair device based on the middleware, the invention also correspondingly provides an intelligent television, and the intelligent television comprises the automatic repair device based on the middleware.
The present invention also provides a storage medium, wherein the storage medium stores a middleware-based automatic repair program, and the middleware-based automatic repair program implements the steps of the middleware-based automatic repair method when executed by a processor.
In summary, the present invention provides an automatic repair method and apparatus based on middleware, a smart television and a storage medium, where the method includes: the daemon process monitors that the middleware is abnormal; controlling the middleware to restart to restore the middleware. The invention creates a daemon process for monitoring the middleware and the running condition of the related resources when the intelligent television is started, controls the middleware to start running service, periodically sends state information to the daemon process by each module of the middleware, determines that the middleware is abnormal when the state information of any module is not received, stops the middleware program through the daemon process, and restarts the middleware to recover the middleware, thereby ensuring that the middleware is in a normal running state most of time, and even if the program crashes under a specific condition, the middleware can be restarted under the action of the mechanism, automatically judges the abnormality and actively repairs the related service and the program.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A middleware-based automatic repair method, comprising:
the daemon process monitors that the middleware is abnormal;
controlling the middleware to restart to restore the middleware.
2. The middleware-based automatic restoration method according to claim 1, wherein before the daemon monitors that any module of the middleware is abnormal, the daemon comprises:
the daemon periodically receives state information for each module of the middleware.
3. The middleware-based automatic restoration method according to claim 2, wherein monitoring a module of the middleware for an abnormality is specifically:
and when the state information of any module is not received, determining that the middleware is abnormal.
4. The middleware-based automatic restoration method according to claim 1, wherein the daemon process monitoring the middleware for abnormality comprises:
a daemon process is created;
and when the daemon process does not receive the state information of the module, determining that the middleware is abnormal.
5. The middleware-based automatic restoration method according to claim 1, wherein the controlling the middleware restart to restore the middleware comprises:
sending service no-response or reloading service prompt information to the corresponding UI;
and controlling to restart the middleware to repair the abnormity.
6. An automated middleware-based repair device, the device comprising:
the information receiving module is used for periodically receiving the state information of each module of the middleware by the daemon process;
the exception detection module is used for monitoring the exception of the middleware by the daemon process;
and the restart recovery module is used for controlling the middleware to restart so as to recover the middleware.
7. The middleware-based automatic restoration device according to claim 6, wherein the abnormality detection module specifically includes:
a creation unit for creating a daemon process;
and the exception confirming unit is used for determining that the middleware is abnormal when the daemon process does not receive the state information of the module.
8. The middleware-based automatic restoration device according to claim 6, wherein the restart recovery module specifically comprises:
the information prompting unit is used for sending the service non-response or reloading the service prompting information to the corresponding UI;
and the restarting unit is used for controlling and restarting the middleware to repair the abnormity.
9. An intelligent television, characterized by comprising the middleware based automatic restoration apparatus according to any one of claims 6 to 8.
10. A storage medium storing a middleware-based automatic repair program which, when executed by a processor, implements the steps of the middleware-based automatic repair method according to any one of claims 1 to 5.
CN201811639302.8A 2018-12-29 2018-12-29 Automatic repair method and device based on middleware, smart television and storage medium Pending CN111385651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811639302.8A CN111385651A (en) 2018-12-29 2018-12-29 Automatic repair method and device based on middleware, smart television and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811639302.8A CN111385651A (en) 2018-12-29 2018-12-29 Automatic repair method and device based on middleware, smart television and storage medium

Publications (1)

Publication Number Publication Date
CN111385651A true CN111385651A (en) 2020-07-07

Family

ID=71220994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811639302.8A Pending CN111385651A (en) 2018-12-29 2018-12-29 Automatic repair method and device based on middleware, smart television and storage medium

Country Status (1)

Country Link
CN (1) CN111385651A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399769A (en) * 2013-08-02 2013-11-20 昆明能讯科技有限责任公司 Assembly loading system
JP5354579B2 (en) * 2009-01-13 2013-11-27 シャープ株式会社 Information processing apparatus having process monitoring function, process monitoring method, and process monitoring program
CN108427616A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 background program monitoring method and monitoring device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5354579B2 (en) * 2009-01-13 2013-11-27 シャープ株式会社 Information processing apparatus having process monitoring function, process monitoring method, and process monitoring program
CN103399769A (en) * 2013-08-02 2013-11-20 昆明能讯科技有限责任公司 Assembly loading system
CN108427616A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 background program monitoring method and monitoring device

Similar Documents

Publication Publication Date Title
US10114655B2 (en) Rapid start up method for electronic equipment
EP2864873B1 (en) Auto-update while running a client software application with update handshake between versions and runtime validation of the successor version
CN106201690A (en) Application progress control method and device
CN112380062A (en) Method and system for rapidly recovering system for multiple times based on system backup point
CN111913851A (en) Process monitoring method, system, terminal and storage medium
CN112732674B (en) Cloud platform service management method, device, equipment and readable storage medium
CN109471670A (en) Equipment starting method and electronic equipment
CN111124761B (en) Equipment restarting method, device, equipment and medium
CN111277373B (en) Server switching control method, terminal and storage medium
CN111949368A (en) Application program control method and device
CN111385651A (en) Automatic repair method and device based on middleware, smart television and storage medium
CN111427259B (en) Main and standby switching method of machine frame slot type, intelligent equipment and storage medium
CN107423087A (en) A kind of application program updating method that server can monitor
CN110555009B (en) Processing method and device for Network File System (NFS) service
CN109922014B (en) Method and system for judging cold and hot start of switch
CN111885746B (en) Network connection method and device of terminal equipment
CN111475339A (en) BIOS firmware updating method, device, equipment and storage medium
CN113094075A (en) Firmware upgrading method and device, terminal equipment and computer readable storage medium
CN111562997A (en) Media channel quick recovery method, system and storage medium
CN108874454B (en) Adaptive starting method and device of target driver
CN109640183B (en) Method for solving frequency drift of analog television, storage medium and electronic equipment
CN115629916B (en) Service program fault recovery method based on Zynq
CN111382016A (en) Method and device for connecting test terminal and computer
CN110932941B (en) Cloud screen connection state detection method, server and storage medium
CN115665112B (en) Video format conversion system and method suitable for industrial Internet

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

Application publication date: 20200707

RJ01 Rejection of invention patent application after publication