CN108205480B - Abnormity processing method and device, intelligent rearview mirror and storage medium - Google Patents

Abnormity processing method and device, intelligent rearview mirror and storage medium Download PDF

Info

Publication number
CN108205480B
CN108205480B CN201711460781.2A CN201711460781A CN108205480B CN 108205480 B CN108205480 B CN 108205480B CN 201711460781 A CN201711460781 A CN 201711460781A CN 108205480 B CN108205480 B CN 108205480B
Authority
CN
China
Prior art keywords
mode
abnormal
timing
duration
exception handling
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
CN201711460781.2A
Other languages
Chinese (zh)
Other versions
CN108205480A (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.)
Volkswagen Mobvoi Beijing Information Technology Co Ltd
Original Assignee
Volkswagen Mobvoi Beijing Information 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 Volkswagen Mobvoi Beijing Information Technology Co Ltd filed Critical Volkswagen Mobvoi Beijing Information Technology Co Ltd
Priority to CN201711460781.2A priority Critical patent/CN108205480B/en
Publication of CN108205480A publication Critical patent/CN108205480A/en
Application granted granted Critical
Publication of CN108205480B publication Critical patent/CN108205480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • G06F11/0739Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in automotive or aircraft systems
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R1/00Optical viewing arrangements; Real-time viewing arrangements for drivers or passengers using optical image capturing systems, e.g. cameras or video systems specially adapted for use in or on vehicles
    • B60R1/02Rear-view mirror arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Mechanical Engineering (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses an exception handling method and device, an intelligent rearview mirror and a storage medium. The method comprises the following steps: when the system is detected to jump from a normal mode to an abnormal mode, timing is started according to the duration matched with the abnormal mode; and controlling the system to shut down when the timing duration reaches the duration. By the technical scheme, the extreme condition of consuming the electric quantity of the battery can be avoided, and unnecessary electric energy waste is reduced.

Description

Abnormity processing method and device, intelligent rearview mirror and storage medium
Technical Field
The embodiment of the invention relates to the technical field of vehicle-mounted control, in particular to an exception handling method and device, an intelligent rearview mirror and a storage medium.
Background
With the rapid development of the automobile industry, the vehicle-mounted equipment tends to be more intelligent. As the types of smart devices in the vehicle-mounted device are gradually increased, problems such as system abnormality may occur during system upgrade, system debugging, or user use.
In the prior art, when an abnormal problem occurs in a system of an intelligent vehicle-mounted device (such as an intelligent rearview mirror), an error can be automatically reported, a corresponding screen is started, and a system CPU (central processing unit) is kept to continuously work.
Disclosure of Invention
The embodiment of the invention provides an exception handling method and device, an intelligent rearview mirror and a storage medium, which are used for avoiding the extreme condition of consuming the electric quantity of a light battery and reducing unnecessary electric energy waste.
In a first aspect, an embodiment of the present invention provides an exception handling method, including:
when the system is detected to jump from a normal mode to an abnormal mode, timing is started according to the duration matched with the abnormal mode;
and controlling the system to shut down when the timing duration reaches the duration.
Further, before starting timing according to a duration matched with the abnormal pattern, the method further includes:
detecting an exception handling operation performed by the system in the exception mode and determining that the exception handling operation does not belong to a predefined legitimate operation.
Further, the method also comprises the following steps:
if the exception handling operation is determined to belong to the predefined legal operation, detecting whether the system is abnormal in the exception handling operation process;
if yes, timing is started according to the set time length;
and controlling the system to shut down when the timing duration is determined to reach the set timing duration.
Further, after detecting whether an exception occurs in the system during the exception handling operation, the method further includes:
and if the system is detected not to be abnormal in the process of the abnormal processing operation, jumping the system from the abnormal mode to the normal mode when the abnormal processing operation is finished.
Further, after the timing is started according to the duration matched with the abnormal pattern, the method further comprises the following steps:
and if the user input operation is detected, restarting timing according to the time length matched with the abnormal mode.
Further, the abnormal mode includes a recovery mode and a debugging mode.
Further, the starting of timing according to the duration matched with the abnormal pattern includes:
if the abnormal mode is the recovery mode, timing is started according to a first time length matched with the recovery mode;
if the abnormal mode is a debugging mode, timing according to a second time length matched with the debugging mode;
wherein the first duration is greater than the second duration.
In a second aspect, an embodiment of the present invention further provides an exception handling apparatus, where the apparatus includes:
the matching timing module is used for starting timing according to the time length matched with the abnormal mode when the system is detected to jump from the normal mode to the abnormal mode;
and the first shutdown module is used for controlling the shutdown of the system when the timing duration is determined to reach the duration.
Further, the method also comprises the following steps:
and the operation detection module is used for detecting the exception handling operation executed by the system in the exception mode before timing is started according to the time length matched with the exception mode, and determining that the exception handling operation does not belong to the preset legal operation.
Further, the method also comprises the following steps:
the exception detection module is used for detecting whether the system is abnormal or not in the exception handling operation process if the exception handling operation is determined to belong to the predefined legal operation;
the timing starting module is used for starting timing according to set duration if the system is detected to be abnormal in the process of the abnormal processing operation;
and the second shutdown module is used for controlling the shutdown of the system when the timing duration is determined to reach the set timing duration.
Further, the method also comprises the following steps:
and the mode skipping module is used for skipping the system from the abnormal mode to the normal mode when the abnormal processing operation is finished after detecting whether the system is abnormal or not in the process of the abnormal processing operation and if the system is not detected to be abnormal in the process of the abnormal processing operation.
Further, the method also comprises the following steps:
and the re-timing module is used for restarting timing according to the duration matched with the abnormal mode if the user input operation is detected after timing is started according to the duration matched with the abnormal mode.
Further, the abnormal mode includes a recovery mode and a debugging mode.
Further, the matching timing module is specifically configured to:
if the abnormal mode is the recovery mode, timing is started according to a first time length matched with the recovery mode;
if the abnormal mode is a debugging mode, timing according to a second time length matched with the debugging mode;
wherein the first duration is greater than the second duration.
In a third aspect, an embodiment of the present invention further provides an intelligent rearview mirror, where the intelligent rearview mirror includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the exception handling method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the exception handling method according to any one of the embodiments of the present invention.
The embodiment of the invention sets the matched timing duration for the abnormal mode, starts timing when the abnormal mode enters, and controls the system to be shut down in time when the duration is reached, thereby utilizing the advantage of setting different overtime protection mechanisms for different abnormal modes, solving the problem of power consumption of the system caused by the abnormal problem of the system and the fact that a user does not use the system in a short time in the prior art, realizing the effects of avoiding the extreme condition of power consumption of a photocell and reducing unnecessary electric energy waste.
Drawings
Fig. 1 is a schematic flowchart of an exception handling method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an exception handling method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an exception handling apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an intelligent rearview mirror provided in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating an exception handling method according to an embodiment of the present invention. The method is applicable to the situation of overtime protection in abnormal situations, and can be executed by an exception handling device which can be composed of hardware and/or software and can be generally integrated in an intelligent rearview mirror and all intelligent terminals containing overtime protection functions. The method specifically comprises the following steps:
and S110, when the system is detected to jump from the normal mode to the abnormal mode, timing is started according to the time length matched with the abnormal mode.
Optionally, the normal mode may be a user-oriented system mode, and the abnormal mode may be a non-user-oriented system mode. For example, when a system performs a specific operation or a user malfunctions, the system may be automatically transitioned from the normal mode to the abnormal mode, for example, when the user erroneously selects a system debugging function, or when the system is upgraded, the system may be transitioned from the normal mode to the abnormal mode.
Optionally, the abnormal mode may include multiple modes, and a protection duration matched with each abnormal mode may be set in advance for each abnormal mode, where the protection duration may be determined according to actual needs of the abnormal mode, and the protection duration set corresponding to each abnormal mode may be different.
Because the abnormal mode usually has no automatic sleep mechanism, that is, the screen can be kept normally bright and the system CPU can continuously work in the abnormal mode, and in this case, if no human operation is performed, a large amount of electricity is consumed, therefore, when the system enters the abnormal mode, the timing is started according to the time length matched with the abnormal mode, so as to control the operation time of the system in the abnormal mode, and avoid unnecessary waste of electricity, and particularly, in the case of supplying power by using a storage battery, the electricity in the storage battery is prevented from being consumed and affecting the normal start of the system.
Preferably, the exception mode includes a recovery mode and a debug mode.
The Recovery mode may be a mode used for system upgrade and/or factory reset in the system, for example, a Recovery mode; the debug mode can be a debug mode used in a system to fix a system bug and/or a system development, such as a Fastboot mode. Of course, the abnormal mode may include other abnormal modes, and is not limited herein.
Preferably, the starting of the timing according to the duration matched with the abnormal pattern includes:
if the abnormal mode is the recovery mode, timing is started according to a first time length matched with the recovery mode;
if the abnormal mode is the debugging mode, timing is started according to a second time length matched with the debugging mode;
wherein the first duration is greater than the second duration.
For example, if the abnormal mode entered by the system is the recovery mode, indicating that the system is upgrading or recovering the factory settings, correspondingly, a time length longer than the time length required for normal upgrading or recovering the factory settings, that is, a first time length, may be set as the protection time length, and the timing is started according to the first time length as the highest time limit; if the abnormal mode entered by the system is a debugging mode, it indicates that bug repair is required to be performed when the system runs, or a debugging function is selected because of false triggering of a user or a developer needs to debug the system, correspondingly, a time length longer than that required for normal bug repair can be set, that is, a second time length is used as a protection time length, and timing is started according to the second time length as a highest time limit. Since the time duration required for system upgrade is greater than the time duration required for bug fix in most cases, the first time duration may be set to be greater than the second time duration.
Preferably, after the timing is started according to the duration matched with the abnormal pattern, the method further includes:
and if the user input operation is detected, restarting timing according to the time length matched with the abnormal mode.
For example, in order to avoid that the system mistakenly starts the timeout protection mechanism due to the fact that the system enters the abnormal mode through manual operation, for example, the user mistakenly operates or the developer debugging system jumps to the debugging mode, when the user input operation is detected in the abnormal mode, that is, the fact that a person is operating the system at the moment is explained, the timing can be restarted according to the time length matched with the abnormal mode, and the system can delay the timing starting time.
And S120, when the timing duration reaches the duration, controlling the system to shut down.
Optionally, timing may be performed in a countdown manner, that is, timing is started from the time of the highest time duration until the timing is zero, and it is determined that the timing time duration reaches the time duration matched with the current abnormal mode; and timing in a time-keeping timing mode, namely starting timing from zero until the timing time length is the same as the time length matched with the current abnormal mode, and determining that the timing time length reaches the time length. Illustratively, when the timing duration is determined to reach the duration, a shutdown instruction is called, and the system is controlled to be shut down according to the shutdown instruction.
When the timing duration reaches the duration, the control system is turned off, so that the overtime protection mechanism can be started in time when the system enters the abnormal mode, and the system is controlled to be turned off in time when the timing duration reaches the specified duration, the problem that the system consumes power continuously when the system has abnormal problems and a user does not use the system in a short time is avoided, and particularly in the vehicle-mounted intelligent rearview mirror, the extreme condition that the vehicle cannot be started due to the fact that the rearview mirror enters the abnormal mode and consumes the electric quantity of the vehicle-mounted storage battery can be avoided.
According to the technical scheme, the matched timing duration is set for the abnormal mode, timing is started when the abnormal mode is entered, the system is controlled to be shut down in time when the duration is reached, the advantages that different overtime protection mechanisms are set for different abnormal modes are utilized, the problem of power consumption of the system caused by the fact that the system is abnormal and a user does not use the system in a short time in the prior art is solved, the extreme condition of the electric quantity of the photovoltaic cell is avoided, and unnecessary electric energy waste is reduced.
Example two
Fig. 2 is a flowchart illustrating an exception handling method according to a second embodiment of the present invention. The present embodiment is optimized based on the above embodiments, and provides a preferred exception handling method, specifically, before starting timing according to a duration matched with an exception pattern, the optimization further includes: an exception handling operation performed by the system in the exception mode is detected and it is determined that the exception handling operation does not belong to a predefined legitimate operation. The method comprises the following specific steps:
s210, when the system is detected to jump from the normal mode to the abnormal mode, detecting the abnormal processing operation executed by the system in the abnormal mode.
Optionally, after the system enters the abnormal mode and before the system starts timing, the cause of the system jumping to the abnormal mode may be roughly determined by detecting the abnormal processing operation executed by the system in the abnormal mode. The exception handling operation may be an operation that the system needs to run in an exception mode, which causes the system to jump from a normal mode to an exception mode, for example, a system upgrade operation, a bug fix operation, a system debug operation, and the like. Alternatively, the exception handling operation may be triggered manually or automatically by the system, and is not limited herein. The purpose of detecting the exception handling operation executed by the system in the exception mode is to acquire the running condition of the system in the exception mode so as to judge whether the system belongs to normal jump.
S220, determining whether the abnormal processing operation belongs to a preset legal operation, if so, executing S250; if not, go to S230.
Optionally, the predefined legal operation may be, for example, a system upgrade operation, a bug fix operation, an operation of restoring factory settings, or the like, and the normal mode jump automatically occurs when the system is normally running. In contrast, the exception handling operation that is not a legal operation may be, for example, a system debugging operation, a system error reporting operation, or a mode jump that occurs when a manual operation or a system runs abnormally. If the abnormal processing operation belongs to legal operation, the mode jump is caused by normal operation of the system at the moment, and the mode jump can automatically return to the normal mode when the operation is finished; if the abnormal processing operation does not belong to legal operation, the mode jump is caused by manual operation or system abnormal operation, the mode jump can be returned to the normal mode only by the manual operation, and an overtime protection mechanism can be added to start timing shutdown.
The advantage of determining whether the abnormal processing operation belongs to the predefined legal operation is that different processing can be performed according to the actual jump situation, so as to avoid the problem of error shutdown when the system is executing normal operation due to the added overtime protection mechanism.
And S230, timing is started according to the time length matched with the abnormal pattern.
And S240, when the timing duration reaches the duration, controlling the system to shut down.
S250, detecting whether the system is abnormal or not in the process of abnormal processing operation, and if so, executing S260; if not, go to step S280.
For example, if the exception handling operation belongs to a legal operation, it indicates that the mode jump at this time is caused by normal operation of the system (e.g., system upgrade, factory reset), and it is necessary to detect whether the system is operating normally in the exception handling operation process, that is, to detect whether the system is abnormal, so as to determine whether the system needs to perform timeout protection.
And S260, starting timing according to the set time length.
For example, if an abnormality occurs in the system during the process of the abnormality processing operation, in order to avoid wasting electric energy due to the system staying in the abnormal mode for a long time, the timeout protection needs to be started, that is, timing is started according to a set time length, the set time length may be preset, different abnormal modes may set the same set time length, or different set time lengths, which is not limited herein.
And S270, controlling the system to shut down when the timing duration reaches the set timing duration.
For example, the timing may be performed in a countdown manner, that is, the timing is started from the time with the highest set time duration until the timing is zero, and it is determined that the timing time duration reaches the set time duration; the timing can also be carried out in a time-keeping timing mode, namely, the timing is started from zero until the timing duration is the same as the set duration, and the timing duration is determined to reach the set duration.
When the timing duration reaches the set duration, the shutdown control system has the advantages that the overtime protection mechanism can be started in time when the abnormal processing operation fails, and the shutdown control system can be controlled in time when the timing duration reaches the set duration, so that the problem that the system continuously consumes power when the system fails to operate in the abnormal processing operation and a user does not operate the system in a short time is solved, and particularly in the vehicle-mounted intelligent rearview mirror, the condition that the electric quantity of a vehicle-mounted storage battery is consumed to cause the extreme condition that the vehicle cannot be started due to the fact that the rearview mirror fails to be upgraded or repaired after the rearview mirror enters the abnormal mode due to system upgrading or repair holes can be avoided.
And S280, jumping the system from the abnormal mode to the normal mode when the abnormal processing operation is finished.
For example, if it is detected that the system is not abnormal during the exception handling operation, that is, the exception handling operation can be completed normally, the system is automatically jumped from the exception mode to the normal mode when the exception handling operation is ended, for example, if the system is upgraded normally or bug repair is completed normally, the system is automatically jumped from the exception mode back to the normal mode without starting the timeout protection in the exception mode.
According to the technical scheme, the abnormal processing operation executed in the abnormal mode is detected, whether the abnormal processing operation belongs to the legal operation specified in advance is judged, whether the system is abnormal in the abnormal processing operation process is further detected when the abnormal processing operation is determined to be the legal operation, whether an overtime protection mechanism is started is further determined according to actual conditions, the overtime protection is not started when the system is in normal operation, the overtime protection is started in time when the system is in abnormal operation, the extreme condition of the electric quantity of the light-consuming battery is avoided, unnecessary electric energy waste is reduced, the timeliness and the reliability of the overtime protection of the system are improved, and user experience is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an exception handling apparatus according to a third embodiment of the present invention. Referring to fig. 3, the exception handling apparatus includes: the matching timing module 310 and the first shutdown module 320 are described in detail below.
The matching timing module 310 is configured to start timing according to a duration matched with the abnormal mode when it is detected that the system jumps from the normal mode to the abnormal mode;
a first shutdown module 320, configured to control the system to shutdown when it is determined that the timing duration reaches the duration.
The embodiment provides an exception handling device, which sets a matched timing duration for an exception mode, starts timing when entering the exception mode, and timely controls a system to shut down when the duration is reached, thereby utilizing the advantage of setting different timeout protection mechanisms for different exception modes, solving the problem of power consumption of the system caused by the fact that the system is abnormal and a user does not use the system in a short time in the prior art, realizing the effect of avoiding the extreme condition of the electric quantity of a photovoltaic cell and reducing unnecessary electric energy waste.
Optionally, the method may further include:
and the operation detection module is used for detecting the exception handling operation executed by the system in the exception mode before timing is started according to the time length matched with the exception mode, and determining that the exception handling operation does not belong to the preset legal operation.
Optionally, the method may further include:
the exception detection module is used for detecting whether the system is abnormal or not in the exception handling operation process if the exception handling operation is determined to belong to the predefined legal operation;
the timing starting module is used for starting timing according to set duration if the system is detected to be abnormal in the process of the abnormal processing operation;
and the second shutdown module is used for controlling the shutdown of the system when the timing duration is determined to reach the set timing duration.
Optionally, the method may further include:
and the mode skipping module is used for skipping the system from the abnormal mode to the normal mode when the abnormal processing operation is finished after detecting whether the system is abnormal or not in the process of the abnormal processing operation and if the system is not detected to be abnormal in the process of the abnormal processing operation.
Optionally, the method may further include:
and the re-timing module is used for restarting timing according to the duration matched with the abnormal mode if the user input operation is detected after timing is started according to the duration matched with the abnormal mode.
Optionally, the abnormal mode includes a recovery mode and a debug mode.
Optionally, the matching timing module may be specifically configured to:
if the abnormal mode is the recovery mode, timing is started according to a first time length matched with the recovery mode;
if the abnormal mode is a debugging mode, timing according to a second time length matched with the debugging mode;
wherein the first duration is greater than the second duration.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an intelligent rearview mirror provided in a fourth embodiment of the present invention, and as shown in fig. 4, the intelligent rearview mirror provided in this embodiment includes: a processor 41 and a memory 42. The number of the processors in the intelligent rearview mirror can be one or more, fig. 4 illustrates one processor 41, the processor 41 and the memory 42 in the intelligent rearview mirror can be connected through a bus or in other ways, and fig. 4 illustrates the connection through the bus.
The processor 41 of the intelligent rearview mirror in the embodiment is integrated with the abnormality processing device provided by the above embodiment. In addition, the memory 42 in the intelligent rearview mirror is used as a computer-readable storage medium for storing one or more programs, which may be software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the exception handling method in the embodiment of the present invention (for example, the modules in the exception handling apparatus shown in fig. 3 include the matching timer module 310 and the first shutdown module 320). The processor 41 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 42, that is, implements the exception handling method in the above-described method embodiment.
The memory 42 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 42 may further include memory located remotely from processor 41, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And, when the one or more programs included in the above-mentioned smart rearview mirror are executed by the one or more processors 41, the programs perform the following operations:
when the system is detected to jump from a normal mode to an abnormal mode, timing is started according to the duration matched with the abnormal mode; and controlling the system to shut down when the timing duration reaches the duration.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by an exception handling apparatus, implements an exception handling method according to an embodiment of the present invention, where the method includes: when the system is detected to jump from a normal mode to an abnormal mode, timing is started according to the duration matched with the abnormal mode; and controlling the system to shut down when the timing duration reaches the duration.
Of course, the computer-readable storage medium provided in the embodiments of the present invention is not limited to implement the method operations described above when the computer program stored on the storage medium is executed, and may also implement the relevant operations in the exception handling method provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the foregoing exception handling apparatus, each unit and each module included in the foregoing exception handling apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. An exception handling method, comprising:
when the system is detected to jump from a normal mode to an abnormal mode, detecting an abnormal processing operation executed by the system in the abnormal mode, and determining whether the abnormal processing operation belongs to a preset legal operation or not; the abnormal mode is a system mode which has no automatic sleep mechanism and is not oriented to the use of users;
if the exception handling operation is determined to belong to the predefined legal operation, detecting whether the system is abnormal in the exception handling operation process; if yes, timing is started according to the set time length; when the timing duration is determined to reach the set timing duration, controlling the system to shut down;
if the abnormal processing operation is determined not to belong to the preset legal operation, timing is started according to the time length matched with the abnormal mode; and controlling the system to shut down when the timing duration reaches the duration.
2. The method of claim 1, wherein after detecting whether an exception occurs in the system during the exception handling operation, further comprising:
and if the system is detected not to be abnormal in the process of the abnormal processing operation, jumping the system from the abnormal mode to the normal mode when the abnormal processing operation is finished.
3. The method of claim 1, after starting timing by a duration matching the abnormal pattern, further comprising:
and if the user input operation is detected, restarting timing according to the time length matched with the abnormal mode.
4. The method of claim 1, wherein the exception mode comprises a recovery mode and a debug mode.
5. The method of claim 4, wherein said starting timing by a duration matching said abnormal pattern comprises:
if the abnormal mode is the recovery mode, timing is started according to a first time length matched with the recovery mode;
if the abnormal mode is a debugging mode, timing according to a second time length matched with the debugging mode;
wherein the first duration is greater than the second duration.
6. An exception handling apparatus, comprising:
the operation detection module is used for detecting the abnormal processing operation executed by the system in the abnormal mode when the system is detected to jump from the normal mode to the abnormal mode, and determining whether the abnormal processing operation belongs to the preset legal operation; the abnormal mode is a system mode which has no automatic sleep mechanism and is not oriented to the use of users;
the exception detection module is used for detecting whether the system is abnormal or not in the exception handling operation process if the exception handling operation is determined to belong to the predefined legal operation; if yes, timing is started according to the set time length; when the timing duration is determined to reach the set timing duration, controlling the system to shut down;
the shutdown control module is used for starting timing according to the time length matched with the abnormal mode if the abnormal processing operation is determined not to belong to the preset legal operation; and controlling the system to shut down when the timing duration reaches the duration.
7. An intelligent rearview mirror, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the exception handling method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the exception handling method according to any one of claims 1 to 5.
CN201711460781.2A 2017-12-28 2017-12-28 Abnormity processing method and device, intelligent rearview mirror and storage medium Active CN108205480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711460781.2A CN108205480B (en) 2017-12-28 2017-12-28 Abnormity processing method and device, intelligent rearview mirror and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711460781.2A CN108205480B (en) 2017-12-28 2017-12-28 Abnormity processing method and device, intelligent rearview mirror and storage medium

Publications (2)

Publication Number Publication Date
CN108205480A CN108205480A (en) 2018-06-26
CN108205480B true CN108205480B (en) 2021-10-26

Family

ID=62605893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711460781.2A Active CN108205480B (en) 2017-12-28 2017-12-28 Abnormity processing method and device, intelligent rearview mirror and storage medium

Country Status (1)

Country Link
CN (1) CN108205480B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609356A (en) * 2012-01-19 2012-07-25 福建升腾资讯有限公司 Terminal product driver loading stability testing method
CN103902424A (en) * 2012-12-27 2014-07-02 鸿富锦精密工业(深圳)有限公司 Server and temperature anomaly protecting method thereof
CN105204954A (en) * 2015-09-17 2015-12-30 广东欧珀移动通信有限公司 Method and terminal for processing dead halt state
CN105867579A (en) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 Terminal control method and apparatus as well as terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508734B (en) * 2011-09-30 2015-06-03 Tcl集团股份有限公司 Operating system recovery method and intelligent equipment
US9721660B2 (en) * 2014-10-24 2017-08-01 Microsoft Technology Licensing, Llc Configurable volatile memory without a dedicated power source for detecting a data save trigger condition
CN104932963B (en) * 2015-05-29 2019-03-08 Oppo广东移动通信有限公司 The method and device of management terminal
US10069710B2 (en) * 2016-03-01 2018-09-04 Dell Products, Lp System and method to identify resources used by applications in an information handling system
CN206523840U (en) * 2017-01-10 2017-09-26 西京学院 A kind of protection device of computer anti-power failure
CN111367707B (en) * 2020-05-27 2020-09-11 成都易我科技开发有限责任公司 Bad disk access management method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609356A (en) * 2012-01-19 2012-07-25 福建升腾资讯有限公司 Terminal product driver loading stability testing method
CN103902424A (en) * 2012-12-27 2014-07-02 鸿富锦精密工业(深圳)有限公司 Server and temperature anomaly protecting method thereof
CN105204954A (en) * 2015-09-17 2015-12-30 广东欧珀移动通信有限公司 Method and terminal for processing dead halt state
CN105867579A (en) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 Terminal control method and apparatus as well as terminal

Also Published As

Publication number Publication date
CN108205480A (en) 2018-06-26

Similar Documents

Publication Publication Date Title
EP2506114B1 (en) Method and device for intelligent terminal reset
CN101354677B (en) Method for detecting and restoring application program running state and restoring device thereof
CN106257417B (en) Boot program upgrading method, embedded equipment, control equipment and embedded system
CN106637805B (en) Internet of things washing machine control method and system and washing machine
CN110908847A (en) Abnormity recovery method, system, electronic equipment and storage medium
CN103796066A (en) Smart television system and method for turning on and turning off smart television system
CN109067416B (en) Method for realizing hot plug and start of SIM card and intelligent hardware
CN101882085A (en) System starting method and embedded equipment
US20220004246A1 (en) Multi-core chip, system and method based thereon, and storage medium
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN103514014A (en) Method for designing boot system of embedded terminal equipment
JP7261543B2 (en) Control device and control method
CN108205480B (en) Abnormity processing method and device, intelligent rearview mirror and storage medium
CN106101406B (en) Shutdown alarm triggering processing method based on mobile terminal and mobile terminal
CN103890713A (en) Apparatus and method for managing register information in a processing system
CN108241361B (en) Vehicle power supply control method, controller and vehicle
CN109151144B (en) Hardware management method, device, system, computer equipment and storage medium
CN107179911B (en) Method and equipment for restarting management engine
CN109558167A (en) The method for managing the plug in software module of the electronic computer of electrical switching apparatus
CN110795293B (en) Method, system and device for testing soft shutdown of server
CN114578721B (en) Watchdog module management method and device and vehicle
CN108897248A (en) A kind of self―tuning control and mobile robot
CN100367147C (en) Method and device for setting working clock by detecting state of BIOS
CN108874451B (en) Unmanned aerial vehicle battery protection method and device and storage medium
US10921875B2 (en) Computer system, operational method for a microcontroller, and computer program product

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
CB02 Change of applicant information

Address after: Room 3011, Room 3, Building 27, 25 North Third Ring West Road, Haidian District, Beijing 100098

Applicant after: Public Question (Beijing) Information Technology Co., Ltd.

Address before: 102206 No. 522, No. 115, No. 115, Shang Zhuang Road, Shang Zhuang Town, Haidian District, Beijing.

Applicant before: Intelligent information technology (Beijing) Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant