The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
Several exemplary embodiments of the invention are described with reference to
The invention discloses an auto recovery method for a multimedia player.
Referring to
Next, microcontroller 120 determines whether a power-off request from CPU 110 is received (step S4). If CPU 110 is idle within a predetermined period of time, a power-off request is sent to microcontroller 120, and, upon receiving the power-off request, microcontroller 120 disconnects CPU 120 (indicating the main power of the multimedia player is powered off), such that the multimedia player enters a standby mode (step S5). In the standby mode, microcontroller 120 may receive control commands generated by pressing a button on VFD 130 located at a front panel (not shown) or on a remote controller (not shown), the power button, or the tray out button. Microcontroller 120 may also receive an IRQ, generated while the time of a schedule record is reached, from RTC 140 (step S6). Microcontroller 120 determines whether the control command is received (step S7). Since CPU 110 is currently disconnected, when receiving the control command, microcontroller 120 must reactivate CPU 110 (indicating the main power of the multimedia player is active) to perform corresponding operations (step S2). If the control command is not received, microcontroller 120 continues to wait for control commands or IRQs (step S6).
As described, when CPU 110 governs the management authority of the multimedia player, microcontroller 120 continues to wait continues to wait for power-off requests from CPU 110 and monitors for messages periodically transmitted from the monitor application (Watchdog) (not shown) while CPU 110 operates normally. If microcontroller 120 does not receive any power-off requests from CPU 110, microcontroller 120 determines whether monitor messages from the monitor application are periodically received (step S8). If so, microcontroller 120 continues to wait for power-off requests from CPU 110 and monitor messages periodically transmitted from the monitor application (Watchdog) (not shown) while CPU 110 normally works (step S3). If no monitor messages are received within a predetermined period of time, indicating CPU 110 is processing abnormal operations or system abnormalities are detected, microcontroller 120 waits for control commands or IRQs described in step S6 (step S9).
Microcontroller 120 determines whether a control command is received (step S10). If the control command is received, microcontroller 120 actively disconnects CPU 110 (indicating the main power of the multimedia player not active) (step S11) and then reactivates CPU 110 (step S2). If the control command is not received, microcontroller 120 determines whether no control commands have been received within a predetermined period of time (step S12). If not, the process proceeds to step S9. If so, microcontroller 120 actively disconnects CPU 110 (step S11) and then reactivates CPU 110 (step S2).
The monitor application (Watchdog) (not shown) is programmed and installed in CPU 110 to periodically monitor operational states of CPU 110. Additionally, an embodiment of the multimedia player provides, but is not limited to, CPU 110, microcontroller 120, VFD 130, and RTC 140. RTC 140, for example, can be installed in microcontroller 120.
In an embodiment of the method when system errors are detected, a CPU of a multimedia player is deactivated using a microcontroller based on a monitor application and then reactivated.
Methods and systems of the present disclosure, or certain aspects or portions of embodiments thereof, may take the form of program code (i.e., instructions) embodied in media, such as floppy diskettes, CD-ROMS, hard drives, firmware, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing embodiments of the disclosure. The methods and apparatus of the present disclosure may also be embodied in the form of program code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing and embodiment of the disclosure. When implemented on a general-purpose processor, the program code combines with the processor to provide a unique apparatus that operates analogously to specific logic circuits.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
TW95132345 | Sep 2006 | TW | national |