Electronic device and method for detecting operative states of components in the electronic device
AssigneeChi Mei Communications Systems, Inc.
InventorShao-En Chen
Life of this patent
Estimating the term…
Abstract
An electronic device and method for detecting operative states of components in the electronic device includes determining a selected component of the electronic device, and setting a threshold time of the selected component. In response to the electronic device detecting a first interrupt instruction from the selected component, a timer of the electronic device is enabled to time the threshold time. Upon the condition that the threshold time elapses, the selected component is determined to be in an abnormal state. Then the selected component is restarted and initialized.
Claims15
A method for detecting operative states of components in an electronic device, the electronic device comprising a processor, the method comprising:
- determining one of the components as a selected component;
- setting a threshold time of the selected component to determine whether the selected component is in a normal state;
- in response to detecting a first interrupt instruction from the selected component, enabling a timer of the electronic device to time the threshold time;
- determining that the selected component is in the normal state in response to detecting a second interrupt instruction before the threshold time elapses;
- or
- determining that the selected component is in an abnormal state upon the condition that the threshold time elapses, and restarting the selected component and initializing the selected component by recording settings of the selected component before the selected component is restarted, and restoring the recorded settings of the selected component after the selected component is restarted.
An electronic device comprising:
- a plurality of components;
- a storage system;
- at least one processor;
- and
- one or more programs stored in the storage system and being executable by the at least one processor, the one or more programs comprising:
- a setting module operable to set a threshold time of the selected component to determine whether the selected component is in a normal state;
- a detection module operable to detect a first interrupt instruction from the selected component, and enable a timer of the electronic device to time the threshold time;
- and
- a control module operable to determine that the selected component is in an abnormal state upon the condition that the threshold time elapsing, and restart the selected component and initialize the selected component by recording settings of the selected component before the selected component is restarted, and restoring the recorded settings of the selected component after the selected component is restarted, or determine that the selected component is in the normal state in response to the detection module detecting a second interrupt instruction before the threshold time elapses.
A non-transitory storage medium storing a set of instructions, the set of instructions capable of being executed by a processor to perform a method for detecting operative states of components in an electronic device, the method comprising:
- determining one of the components as a selected component;
- setting a threshold time of the selected component to determine whether the selected component is in a normal state;
- in response to detecting a first interrupt instruction from the selected component, enabling a timer of the electronic device to time the threshold time;
- determining that the selected component is in the normal state in response to detecting a second interrupt instruction before the threshold time elapses;
- or
- determining that the selected component is in an abnormal state upon the condition that the threshold time elapsing, and restarting the selected component and initializing the selected component by recording settings of the selected component before the selected component is restarted, and restoring the recorded settings of the selected component after the selected component is restarted.
Dependencies are inferred from the claim text.