Movatterモバイル変換


[0]ホーム

URL:


CN101699824B - Device and method for failure recovery - Google Patents

Device and method for failure recovery
Download PDF

Info

Publication number
CN101699824B
CN101699824BCN2009101801805ACN200910180180ACN101699824BCN 101699824 BCN101699824 BCN 101699824BCN 2009101801805 ACN2009101801805 ACN 2009101801805ACN 200910180180 ACN200910180180 ACN 200910180180ACN 101699824 BCN101699824 BCN 101699824B
Authority
CN
China
Prior art keywords
media
processing unit
queue
command
commands
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009101801805A
Other languages
Chinese (zh)
Other versions
CN101699824A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN2009101801805ApriorityCriticalpatent/CN101699824B/en
Publication of CN101699824ApublicationCriticalpatent/CN101699824A/en
Application grantedgrantedCritical
Publication of CN101699824BpublicationCriticalpatent/CN101699824B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention discloses a device and method for failure recovery; a media recovery controller is used for monitoring working state of a media processing unit through a media monitoring unit and recording the necessary media order and key media data from the main control unit in the media order queue and the media data queue; when a failure occurs in the media processing unit, the media recovery controller will reset the failure and send the necessary media order and key media data stored in the media order queue and the media data queue to the media processing unit and empty all orders and data stored in the media order queue and the media data queue after recovering failure by the media processing unit. By using the device and method in the invention, the media processing unit can be quickly reset to the state before the failure so as to shorten the failure recovery time of the media processing unit.

Description

Fault recovery device and method
Technical Field
The invention relates to a fault recovery technology in the field of multimedia application, in particular to a fault recovery device and method of a media processing unit.
Background
The multimedia technology is a technology combining characters, images, sounds and the like, and is widely applied to the fields of education and training, consultation and demonstration, entertainment and games, video conference systems and the like.
In the prior art, a multimedia system mainly includes: a main control unit and a media processing unit; the main control unit is used for sending the media command and the media data to the media processing unit; the media processing unit, i.e., the media processing device, typically employs a Digital Signal Processor (DSP) for executing media commands and processing media data to display image content.
In practical applications, the media processing unit may fail to respond to the media command or may crash. A general solution is that the media processing unit is restarted by the main control unit to restore the media processing unit to an initial state, but the media processing unit loses the media command and the media data currently being processed, so that the state of the media processing unit is inconsistent with the state of the main control unit, and the media processing unit cannot make a correct response to the media command and the media data sent by the main control unit. Generally, in order to make the states of the main control unit and the media processing unit consistent, the main control unit needs to be restored to the initial state corresponding to the media processing unit, and since the state of the main control unit is complex, the main control unit needs to manually participate in the restoration setting of the service mode, thereby resulting in an excessively long time for the failure recovery of the media processing unit.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a failure recovery apparatus and method, which enable a media processing unit to recover to a state before a failure after the failure occurs, so as to shorten the time for recovering from the failure of the media processing unit.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a failure recovery device, comprising: the media recovery device comprises a media recovery controller, a media monitoring unit, a media command queue and a media data queue; wherein,
the media monitoring unit is used for monitoring the working state of the media processing unit and informing the media recovery controller when the media processing unit is monitored to have a fault;
the media recovery controller is used for monitoring the working state of the media processing unit through the media monitoring unit, resetting the media processing unit when the media processing unit is known to have a fault, and sending necessary media commands stored in the media command queue and key media data stored in the media data queue to the media processing unit;
the media command queue is used for storing necessary media commands sent to the media processing unit by the main control unit;
and the media data queue is used for storing the key media data sent to the media processing unit by the main control unit.
In the above solution, the media recovery controller is further configured to record a necessary media command in the media command queue and record critical media data in the media data queue.
In the above scheme, the apparatus further comprises: and the media channel recovery unit is used for recovering the communication channel between the main control unit and the media processing unit.
In the above scheme, the media recovery controller is further configured to notify the media channel recovery unit to recover the communication channel between the main control unit and the media processing unit after the failure of the media processing unit is known.
The invention also provides a fault recovery method, which comprises the following steps:
the media recovery controller monitors the working state of the media processing unit through the media monitoring unit, resets the media processing unit when the media processing unit fails, and sends necessary media commands stored in the media command queue and key media data stored in the media data queue to the media processing unit;
the media command queue stores necessary media commands sent to the media processing unit by the main control unit;
the media data queue stores key media data sent to the media processing unit by the main control unit.
In the foregoing solution, the media recovery controller monitors the working state of the media processing unit through the media monitoring unit, and specifically includes: the media recovery controller informs the media monitoring unit of monitoring the working state of the media processing unit according to the fault judgment condition, and informs the media recovery controller when the media monitoring unit monitors that the media processing unit is in fault.
In the foregoing solution, after the media recovery controller resets the media processing unit, the method further includes: the media recovery controller recovers the command channel and the data channel of the media processing unit.
In the above solution, when the media recovery controller monitors the working state of the media processing unit through the media monitoring unit, the method further includes: the media recovery controller records necessary media commands in the media commands sent by the main control unit to the media processing unit in a media command queue, and records key media data sent by the main control unit to the media processing unit in a media data queue.
In the above solution, after the sending the necessary media command and the key media data to the media processing unit, the method further includes: the media recovery controller empties the essential media commands in the media command queue and the critical media data in the media data queue, respectively.
The invention provides a failure recovery device and a method.A media recovery controller monitors the working state of a media processing unit through a media monitoring unit, and respectively records a necessary media command and key media data sent by a main control unit in a media command queue and a media data queue; and after the media processing unit is recovered from the fault, emptying all the commands and data recorded in the media command queue and the media data queue. The device and the method of the invention can quickly recover the media processing unit to the state before the failure without changing the current state of the main control unit, thereby shortening the failure recovery time of the media processing unit.
Drawings
Fig. 1 is a constitutional view of a failure recovery apparatus of the present invention;
fig. 2 is a flow chart of a fault recovery method in the present invention.
Detailed Description
The basic idea of the invention is: the media recovery controller monitors the working state of the media processing unit through the media monitoring unit, and records necessary media commands in the media commands sent by the main control unit and key media data in the media command queue and the media data queue respectively.
The following describes in detail the apparatus and method for implementing the present invention with reference to specific embodiments.
As shown in fig. 1, the failure recovery apparatus according to the present invention includes: amain control unit 101, amedia recovery controller 102, amedia monitoring unit 103, amedia command queue 104, amedia data queue 105, amedia processing unit 106 and a mediachannel recovery unit 107; wherein,
amain control unit 101, configured to send a media command and media data to amedia processing unit 106;
amedia recovery controller 102, connected to themain control unit 101, themedia monitoring unit 103, themedia command queue 104 and themedia data queue 105, and configured to monitor a working state of themedia processing unit 106 through themedia monitoring unit 103, reset themedia processing unit 106 when themedia processing unit 106 fails, and send necessary media commands stored in themedia command queue 104 and key media data stored in themedia data queue 105 to themedia processing unit 106;
themedia monitoring unit 103 is connected to themedia recovery controller 102 and themedia processing unit 106, and is configured to monitor a working state of themedia processing unit 106, and notify themedia recovery controller 102 when it is monitored that themedia processing unit 106 fails;
amedia command queue 104, connected to themain control unit 101 and themedia processing unit 106, for storing the necessary media commands sent by themain control unit 101 to themedia processing unit 106;
themedia data queue 105 is connected with themain control unit 101 and themedia processing unit 106 and is used for storing the key media data sent to themedia processing unit 106 by themain control unit 101;
themedia processing unit 106 is configured to execute the media command sent by themain control unit 101, decode the media data, and further display the media image.
Further, themedia recovery controller 102 is also configured to record the necessary media commands in themedia command queue 104 and record the critical media data in themedia data queue 105.
The device further comprises: a mediachannel recovery unit 107, configured to recover the communication channel between themain control unit 101 and themedia processing unit 106.
Further, themedia recovery controller 102 is further configured to notify the mediachannel recovery unit 107 to recover the communication channel between themain control unit 101 and themedia processing unit 106 after resetting themedia processing unit 106.
Based on the above device, the present invention provides a failure recovery method, as shown in fig. 2, the method includes the following steps:
step 201: themedia recovery controller 102 starts the media recovery function and informs themedia monitoring unit 103 to monitor the working state of themedia processing unit 106;
in this step, themain control unit 101 notifies themedia recovery controller 102 to start the media recovery function, themedia recovery controller 102 starts the media recovery function, sends the failure determination condition of themedia processing unit 106 to themedia monitoring unit 103, and notifies themedia monitoring unit 103 to monitor the working state of themedia processing unit 106 according to the failure determination condition. The specific implementation of themedia monitoring unit 103 monitoring the working state of themedia processing unit 106 may be set as: themedia monitoring unit 103 monitors the working state of themedia processing unit 106 by periodically sending and receiving messages to and from themedia processing unit 106; the fault judgment conditions are as follows: themedia recovery controller 102 formulates a message period. In this way, after themedia monitoring unit 103 sends a message to themedia processing unit 106, if the message returned by themedia processing unit 106 is not received in the message period, it is determined that themedia processing unit 106 has a fault; if the message returned by themedia processing unit 106 is received in the message period, the working state of themedia processing unit 106 is considered to be normal.
Step 202: themedia recovery controller 102 records the necessary media commands in themedia command queue 104 and the critical media data in themedia data queue 105;
in this step, when the state of themedia processing unit 106 is normal, themedia recovery controller 102 starts themedia command queue 104 and themedia data queue 105, and themedia processing unit 106 normally processes the media command and the media data sent by themain control unit 101; themedia recovery controller 102 records necessary media commands in the media commands sent by themain control unit 101 to themedia processing unit 106 in themedia command queue 104, and increases or decreases entries of the necessary media commands recorded in themedia command queue 104 according to the type of the media commands, so as to reduce the queue length of themedia command queue 104. The necessary media command refers to a command capable of changing the state of themedia processing unit 106, such as a command to start decoding, stop decoding, and adjust brightness; wherein, the command for starting decoding and stopping decoding belongs to the command for clearing the queue, when the command for clearing the queue is recorded in themedia command queue 104, all the media commands stored in themedia command queue 104 are cleared; the brightness adjustment command belongs to the replacement command, when the replacement command is recorded in themedia command queue 104, other replacement commands stored in themedia command queue 104 are removed, and the replacement command is recorded in themedia command queue 104, so that the queue length of themedia command queue 104 is reduced, and if the brightness adjustment command with the brightness of 100 is recorded in themedia command queue 104, the command replaces the command with the brightness of 10 stored in the previous queue, so as to reduce the queue length; the other category belongs to the query command, which is not considered to be a necessary media command and does not need to be recorded in themedia command queue 104, for example, the query work status command sent by themain control unit 101 to themedia processing unit 106 does not need to be recorded. Due to the unique nature of media data processing, the state of themedia processing unit 106 is not so many that the necessary media commands stored in themedia command queue 104 are not so many, thereby ensuring that themedia command queue 104 is not too long.
When the state of themedia processing unit 106 is normal, themedia recovery controller 102 further records key media data in the latest media data sent to themedia processing unit 106 by themain control unit 101 in themedia data queue 105, where the key media data refers to a key frame in a data code stream; for example, when themedia processing unit 106 processes a bitstream in the standard encoding format of h.264, the image parameter set, the sequence parameter set, and the I-frame data may be recorded as key media data in themedia data queue 105. Due to the special attribute of the media data processing, the media data can be allowed to have a certain loss on the premise of not influencing the display of the image, so that only the key media data is saved in themedia data queue 105 without recording all the media data, and the queue length of themedia data queue 105 is greatly shortened.
Here, the setting of the queue length of themedia command queue 104 and themedia data queue 105 may be specifically set according to the actual application situation to avoid the recorded necessary media commands and critical media data from overflowing.
Step 203: after learning that themedia processing unit 106 has a fault through themedia monitoring unit 103, themedia recovery controller 102 resets themedia processing unit 106 and recovers the command channel and the data channel;
in this step, themedia processing unit 106 may periodically send a message to themedia monitoring unit 103, and when themedia monitoring unit 103 does not receive the message sent by themedia processing unit 106 in the message period, according to the fault determination condition, themedia monitoring unit 103 regards that themedia processing unit 106 has a fault and notifies themedia recovery controller 102; after receiving the notification, themedia recovery controller 102 resets themedia processing unit 106, so that themedia processing unit 106 can be recovered to the initial normal state; specifically, themedia monitoring unit 103 may perform a reset on themedia processing unit 106 by sending a reset signal to a reset pin of themedia processing unit 106;
themedia recovery controller 102 also notifies the mediachannel recovery unit 107 to reestablish the command channel and the data channel to recover the command channel and the data channel between themain control unit 101 and themedia processing unit 106. The establishment of the command channel and the data channel is prior art and will not be described in detail herein.
Step 204: themedia recovery controller 102 sends the necessary media commands stored in themedia command queue 104 and the key media data stored in themedia data queue 105 to themedia processing unit 106;
in this step, themedia recovery controller 102 sends the necessary media commands stored in themedia command queue 104 to themedia processing unit 106, so that themedia processing unit 106 recovers in sequence according to the historical occurrence time of the necessary media commands, and themedia processing unit 106 finally recovers to the state before the failure; themedia recovery controller 102 sends the latest key media data stored in themedia data queue 105 to themedia processing unit 106, so that themedia processing unit 106 recovers the latest key media data. As can be seen fromstep 202, themedia processing unit 106 has a shorter failure recovery time due to the shorter queue length of themedia command queue 104 and themedia data queue 105.
Here, during the time of the failure recovery of themedia processing unit 106, since the state of themain control unit 101 is not changed, the media command and the media data are continuously sent to themedia processing unit 106, at this time, themedia recovery controller 102 continuously records the necessary media command and the critical media data in themedia command queue 104 and themedia data queue 105, respectively, and sends the necessary media command and the critical media data stored during the failure recovery time to themedia processing unit 106 after the failure recovery of themedia processing unit 106, so as to ensure that the state after the failure recovery of themedia processing unit 106 is consistent with the state of themain control unit 101.
Step 205: themedia recovery controller 102 empties themedia command queue 104 and themedia data queue 105, respectively.
In this step, when themedia monitoring unit 103 monitors that the working state of themedia processing unit 106 is recovered to normal according to the failure judgment condition, themedia recovery controller 102 is notified, themedia recovery controller 102 empties the media commands stored in themedia command queue 104 and the key media data stored in themedia data queue 105, respectively, and themedia monitoring unit 103 is notified to start a new round of monitoring on themedia processing unit 106.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (6)

the media recovery controller is used for monitoring the working state of the media processing unit through the media monitoring unit, resetting the media processing unit when the media processing unit is known to have a fault, and sending necessary media commands stored in the media command queue and key media data stored in the media data queue to the media processing unit; the media processing unit is also used for emptying necessary media commands in the media command queue and key media data in the media data queue respectively after the working state of the media processing unit is known to be recovered to normal; the media data processing device is also used for recording necessary media commands in the media command queue, recording key media data in the media data queue, and increasing or decreasing the entries of the necessary media commands recorded in the media command queue according to the types of the media commands: when the start decoding and stop decoding commands belonging to the command of clearing the queue are recorded in the media command queue, all the media commands stored in the media command queue are cleared; when the brightness adjusting command belonging to the replacing command is recorded in the media command queue, removing other replacing commands stored in the media command queue, and recording the replacing command in the media command queue; the query command is not recorded in the media command queue;
the media recovery controller records the necessary media commands in the media commands sent by the main control unit to the media processing unit in a media command queue, records the key media data sent by the main control unit to the media processing unit in a media data queue, and increases or decreases the entries of the necessary media commands recorded in the media command queue according to the types of the media commands: when the start decoding and stop decoding commands belonging to the command of clearing the queue are recorded in the media command queue, all the media commands stored in the media command queue are cleared; when the brightness adjusting command belonging to the replacing command is recorded in the media command queue, removing other replacing commands stored in the media command queue, and recording the replacing command in the media command queue; the query command is not recorded in the media command queue;
CN2009101801805A2009-11-162009-11-16Device and method for failure recoveryActiveCN101699824B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2009101801805ACN101699824B (en)2009-11-162009-11-16Device and method for failure recovery

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2009101801805ACN101699824B (en)2009-11-162009-11-16Device and method for failure recovery

Publications (2)

Publication NumberPublication Date
CN101699824A CN101699824A (en)2010-04-28
CN101699824Btrue CN101699824B (en)2012-11-28

Family

ID=42148269

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2009101801805AActiveCN101699824B (en)2009-11-162009-11-16Device and method for failure recovery

Country Status (1)

CountryLink
CN (1)CN101699824B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104104537B (en)*2013-04-152017-07-07北京中嘉时代科技有限公司A kind of service monitoring based on state and restoration methods and device
CN111338834B (en)*2020-02-212023-06-30北京百度网讯科技有限公司Data storage method and device
CN111562997B (en)*2020-04-142023-06-30深圳震有科技股份有限公司Media channel quick recovery method, system and storage medium
CN113028584B (en)*2021-03-192022-04-01珠海格力电器股份有限公司Abnormity processing method and device for air conditioner singlechip

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101167108A (en)*2005-03-092008-04-23Igt公司 MRAM for Power-Down Game Consoles as Critical Event Memory
CN101171611A (en)*2005-03-102008-04-30Igt公司 Secure virtual network in gaming environment
CN101442605A (en)*2007-11-212009-05-27康佳集团股份有限公司Method for recovering user data information of multimedia terminal and multimedia terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101167108A (en)*2005-03-092008-04-23Igt公司 MRAM for Power-Down Game Consoles as Critical Event Memory
CN101171611A (en)*2005-03-102008-04-30Igt公司 Secure virtual network in gaming environment
CN101442605A (en)*2007-11-212009-05-27康佳集团股份有限公司Method for recovering user data information of multimedia terminal and multimedia terminal

Also Published As

Publication numberPublication date
CN101699824A (en)2010-04-28

Similar Documents

PublicationPublication DateTitle
CN109240765B (en)Fusing method, device and equipment for service resources and computer readable storage medium
CN102457710B (en)3G wireless video monitoring system and video monitoring method thereof
CN101699824B (en)Device and method for failure recovery
CN101588490B (en)Method, system and apparatus for adjusting video quality grade
CN100536566C (en)A method for guaranteeing continuity of video monitoring video
CN110971922B (en)Live broadcast and microphone connection state monitoring method, client, server, medium and system
CN108141581B (en)Video coding
CN108521421B (en) Processing method, system and task management server of a transcoding task
WO2009046595A1 (en)A method for realizing offering a power-off alarm of a transmission apparatus and withdrawing the alarm
CN101854253B (en)Method for automatically recovering monitoring and storing and monitoring system thereof
CN104427223A (en)Monitoring camera device and monitoring camera system
CN102882708A (en)Operation and maintenance auditing method, device and system
CN105338006A (en)Back-up recovery method for called side SIP stack session state in IMS
US20130170547A1 (en)Video transmission apparatus and control method for video transmission apparatus
CN101533368A (en)Surveillance apparatus and program
CN107509108B (en)Method for recovering network type of smart television after restarting in abnormal condition
CN101753988A (en)Alarming filter method in a video monitoring system, system and central platform server
CN112650565B (en)Application process recovery method and device
CN101631204A (en)Method and device for following broadcast in broadcast controlling system
CN101895519A (en)Service processing method and device
US10097823B1 (en)Failure recovery for real-time audio and video encoding, decoding, and transcoding
JP4395040B2 (en) Communication apparatus and error correction packet insertion ratio control method
JP2009205221A (en)Maintenance management system and maintenance management method
CN119299738B (en)National standard cascade platform stream taking optimization method based on Redis storage and management
JP2001229032A (en) Automatic application recovery system, automatic application recovery method, and recording medium therefor

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp