CN106326021A - Method for processing abnormal working state of Android system of electronic equipment and electronic equipment - Google Patents
Method for processing abnormal working state of Android system of electronic equipment and electronic equipment Download PDFInfo
- Publication number
- CN106326021A CN106326021A CN201510347267.2A CN201510347267A CN106326021A CN 106326021 A CN106326021 A CN 106326021A CN 201510347267 A CN201510347267 A CN 201510347267A CN 106326021 A CN106326021 A CN 106326021A
- Authority
- CN
- China
- Prior art keywords
- android system
- control unit
- signal
- working state
- micro
- 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
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 42
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种处理电子设备的Android系统的异常工作状态的方法及电子设备。The invention relates to a method for processing an abnormal working state of an Android system of an electronic device and the electronic device.
背景技术Background technique
目前,安卓(Android)系统是一种开放式操作系统,用户可以随意安装第三方软件,如此方便了用户的使用休验,但伴随着而来的问题是:第三方软件渔目混珠,用户可能安装了功能有缺陷的软件,很容易导致安装有Android系统的电子设备因软件故障而工作异常,例如:Android系统崩溃,内存完全被占用等。At present, Android (Android) system is an open operating system, and users can install third-party software at will, which is convenient for users to use and test, but the problem that comes with it is: third-party software is misleading, and users Software with defective functions may be installed, and it is easy to cause the electronic device installed with Android system to work abnormally due to software failure, such as: Android system crashes, memory is completely occupied, etc.
而在设计目的为简约时尚的音频播放电子设备中,其上的按键功能有限,只能采用强行断电的方式来处理这种异常,如果在安装有Android系统的电子设备自带电池且电池不可拆卸的情况下,则需要将电池耗完后才可以正常使用,严重影响了用户体验。However, in the audio playback electronic equipment designed for simplicity and fashion, the functions of the buttons on it are limited, and the method of forcibly powering off can only be used to deal with this abnormality. In the case of disassembly, the battery needs to be exhausted before it can be used normally, which seriously affects the user experience.
因而现有技术还有待改进和提高。Thereby prior art still needs to improve and improve.
发明内容Contents of the invention
为了解决上述现有技术存在的问题,本发明的目的在于提供一种处理电子设备的Android系统的异常工作状态的方法,所述电子设备包括主控芯片以及与该主控芯片连接的微控制单元,所述Android系统安装于所述主控芯片中,其中,所述方法包括:所述主控芯片将所述Android系统的工作状态信号发送给所述微控制单元,其中,所述Android系统的工作状态信号包括正常工作状态信号和异常工作状态信号;所述微控制单元根据所述Android系统的工作状态信号识别所述Android系统处于何种工作状态;如果所述微控制单元识别出所述Android系统处于异常工作状态,则所述微控制单元向所述主控芯片提供Android系统重启信号。In order to solve the problems in the above-mentioned prior art, the object of the present invention is to provide a method for processing the abnormal working state of the Android system of an electronic device, the electronic device includes a main control chip and a micro control unit connected to the main control chip , the Android system is installed in the main control chip, wherein the method includes: the main control chip sends the working status signal of the Android system to the micro control unit, wherein the Android system The working state signal includes a normal working state signal and an abnormal working state signal; the micro-control unit recognizes which working state the Android system is in according to the working state signal of the Android system; if the micro-control unit recognizes that the Android When the system is in an abnormal working state, the micro control unit provides an Android system restart signal to the main control chip.
进一步地,所述正常工作状态信号为:初始输出高电平信号且每隔第一预定时间段输出第一预定时间的低电平信号的电平信号。Further, the normal working state signal is a level signal that initially outputs a high-level signal and outputs a low-level signal for a first predetermined time every first predetermined time period.
进一步地,所述异常工作状态信号为:初始输出高电平信号且每隔第一预定时间段输出第一预定时间的高电平信号的电平信号。Further, the abnormal working state signal is a level signal that initially outputs a high-level signal and outputs a high-level signal for a first predetermined time every first predetermined time period.
进一步地,所述微控制单元识别出所述Android系统处于正常工作状态的具体方法为:如果所述微控制单元在第二预定时间段内接收到至少一个低电平信号,则所述微控制单元识别出所述Android系统处于正常工作状态。Further, the specific method for the micro-control unit to recognize that the Android system is in a normal working state is: if the micro-control unit receives at least one low-level signal within the second predetermined time period, the micro-control unit The unit recognizes that the Android system is in a normal working state.
进一步地,所述微控制单元识别出所述Android系统处于异常工作状态的具体方法为:如果所述微控制单元在第二预定时间段内未接收到低电平信号,则所述微控制单元识别出所述Android系统处于异常工作状态。Further, the specific method for the micro-control unit to recognize that the Android system is in an abnormal working state is: if the micro-control unit does not receive a low-level signal within the second predetermined time period, the micro-control unit It is recognized that the Android system is in an abnormal working state.
本发明的另一目的还在于提供一种处理Android系统的异常工作状态的电子设备,所述电子设备包括安装有Android系统的主控芯片和微控制单元,所述主控芯片包括第一输出接口和重启接口,所述微控制单元包括输入接口和第二输出接口,其中,所述第一输出接口与所述输入接口连接,所述重启接口与所述第二输出接口连接,所述第一输出接口将所述Android系统的工作状态信号发送给所述输入接口,其中,所述Android系统的工作状态信号包括正常工作状态信号和异常工作状态信号;所述微控制单元根据所述Android系统的工作状态信号识别所述Android系统处于何种工作状态;如果所述微控制单元识别出所述Android系统处于异常工作状态,则所述第二输出接口将Android系统重启信号发送给所述重启接口。Another object of the present invention is also to provide an electronic device for processing the abnormal working state of the Android system, the electronic device includes a main control chip and a micro-control unit installed with the Android system, and the main control chip includes a first output interface and a restart interface, the microcontroller unit includes an input interface and a second output interface, wherein the first output interface is connected to the input interface, the restart interface is connected to the second output interface, and the first The output interface sends the working status signal of the Android system to the input interface, wherein the working status signal of the Android system includes a normal working status signal and an abnormal working status signal; The working state signal identifies which working state the Android system is in; if the micro-control unit recognizes that the Android system is in an abnormal working state, the second output interface sends an Android system restart signal to the restart interface.
进一步地,所述正常工作状态信号为:初始输出高电平信号且每隔第一预定时间段输出第一预定时间的低电平信号的电平信号。Further, the normal working state signal is a level signal that initially outputs a high-level signal and outputs a low-level signal for a first predetermined time every first predetermined time period.
进一步地,所述异常工作状态信号为:初始输出高电平信号且每隔第一预定时间段输出第一预定时间的高电平信号的电平信号。Further, the abnormal working state signal is a level signal that initially outputs a high-level signal and outputs a high-level signal for a first predetermined time every first predetermined time period.
进一步地,所述微控制单元识别出所述Android系统处于正常工作状态的具体方法为:如果所述输入接口在第二预定时间段内接收到至少一个低电平信号,则所述微控制单元识别出所述Android系统处于正常工作状态。Further, the specific method for the micro-control unit to recognize that the Android system is in a normal working state is: if the input interface receives at least one low-level signal within the second predetermined time period, the micro-control unit It is recognized that the Android system is in a normal working state.
进一步地,所述微控制单元识别出所述Android系统处于异常工作状态的具体方法为:如果所述输入接口在第二预定时间段内未接收到低电平信号,则所述微控制单元识别出所述Android系统处于异常工作状态。Further, the specific method for the micro-control unit to identify that the Android system is in an abnormal working state is: if the input interface does not receive a low-level signal within the second predetermined time period, the micro-control unit identifies The Android system is in an abnormal working state.
本发明利用微控制单元监控主控芯片中的Android系统的工作状态,当Android系统工作异常时,微控制单元控制重启Android系统,实现了安装有Android系统的电子设备自动处理Android系统工作异常的能力,提升了用户体验。The present invention utilizes the micro-control unit to monitor the working state of the Android system in the main control chip. When the Android system works abnormally, the micro-control unit controls and restarts the Android system, thereby realizing the ability of the electronic device installed with the Android system to automatically handle the abnormal work of the Android system. , which improves the user experience.
附图说明Description of drawings
通过结合附图进行的以下描述,本发明的实施例的上述和其它方面、特点和优点将变得更加清楚,附图中:The above and other aspects, features and advantages of embodiments of the present invention will become more apparent through the following description in conjunction with the accompanying drawings, in which:
图1示出了根据本发明的实施例的电子设备的模块示意图;FIG. 1 shows a schematic diagram of modules of an electronic device according to an embodiment of the present invention;
图2示出了根据本发明的实施例的处理电子设备的Android系统的异常工作状态的方法的流程图。Fig. 2 shows a flowchart of a method for processing an abnormal working state of an Android system of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
以下,将参照附图来详细描述本发明的实施例。然而,可以以许多不同的形式来实施本发明,并且本发明不应该被解释为限制于这里阐述的具体实施例。相反,提供这些实施例是为了解释本发明的原理及其实际应用,从而使本领域的其他技术人员能够理解本发明的各种实施例和适合于特定预期应用的各种修改。Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the specific embodiments set forth herein. Rather, the embodiments are provided to explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications as are suited to particular intended uses.
根据本发明的实施例的电子设备可例如是音频播放器(例如智能音箱)、智能手机等。图1示出了根据本发明的实施例的电子设备的模块示意图。An electronic device according to an embodiment of the present invention may be, for example, an audio player (such as a smart speaker), a smart phone, and the like. Fig. 1 shows a schematic diagram of modules of an electronic device according to an embodiment of the present invention.
参照图1,根据本发明的实施例的电子设备包括:主控芯片(例如,SoC(System-on-a-Chip)芯片)100和微控制单元(Microcontroller Unit;MCU)200。Android系统安装于主控芯片100中。需要说明的是,根据本发明的实施例的电子设备还可包括其他合适类型的元件。Referring to FIG. 1 , an electronic device according to an embodiment of the present invention includes: a main control chip (eg, SoC (System-on-a-Chip) chip) 100 and a microcontroller unit (Microcontroller Unit; MCU) 200 . The Android system is installed in the main control chip 100 . It should be noted that the electronic device according to the embodiment of the present invention may also include other suitable types of components.
主控芯片100包括第一输出接口(例如,通用输入/输出(General Purpose InputOutput;GPIO))110和重启接口120。微控制单元200包括输入接口(例如,通用输入/输出(General Purpose Input Output;GPIO))210和第二输出接口(例如,通用输入/输出(General Purpose Input Output;GPIO))220。主控芯片100的第一输出接口110与微控制单元200的输入接口210连接。主控芯片100的重启接口120与微控制单元200的第二输出接口220连接。The main control chip 100 includes a first output interface (eg, General Purpose Input/Output (GPIO)) 110 and a restart interface 120 . The MCU 200 includes an input interface (eg, General Purpose Input Output (GPIO)) 210 and a second output interface (eg, General Purpose Input Output (GPIO)) 220 . The first output interface 110 of the main control chip 100 is connected with the input interface 210 of the MCU 200 . The restart interface 120 of the main control chip 100 is connected with the second output interface 220 of the MCU 200 .
以下将结合图1和图2对根据本发明的实施例的处理电子设备的Android系统的异常工作状态的方法进行详细描述。图2示出了根据本发明的实施例的处理电子设备的Android系统的异常工作状态的方法的流程图。The method for handling the abnormal working state of the Android system of an electronic device according to an embodiment of the present invention will be described in detail below with reference to FIG. 1 and FIG. 2 . Fig. 2 shows a flowchart of a method for processing an abnormal working state of an Android system of an electronic device according to an embodiment of the present invention.
一并参照图1和图2,在操作310中,主控芯片100通过其第一输出接口110将安装在主控芯片100中的Android系统的工作状态信号发送给微控制单元200的输入接口210。1 and 2 together, in operation 310, the main control chip 100 sends the working state signal of the Android system installed in the main control chip 100 to the input interface 210 of the micro control unit 200 through its first output interface 110 .
这里,Android系统的工作状态信号可包括正常工作状态信号或异常工作状态信号。Here, the working status signal of the Android system may include a normal working status signal or an abnormal working status signal.
Android系统的正常工作状态信号为:初始输出高电平信号且每隔第一预定时间段(例如,1秒钟)输出持续第一预定时间(例如,1秒钟)的低电平信号的电平信号。换句话说,Android系统的正常工作状态信号为周期性地输出高电平信号和低电平信号的电平信号。The normal working status signal of the Android system is: initially output a high-level signal and output a low-level signal that lasts for a first predetermined time (for example, 1 second) every first predetermined time period (for example, 1 second) flat signal. In other words, the normal working state signal of the Android system is a level signal that periodically outputs a high-level signal and a low-level signal.
Android系统的异常工作状态信号为:初始输出高电平信号且每隔第一预定时间段(例如,1秒钟)输出第一预定时间(例如,1秒钟)的高电平信号的电平信号。换句话说,Android系统的异常工作状态信号为一直输出高电平信号的电平信号。The abnormal working status signal of the Android system is: initially output a high-level signal and output the level of the high-level signal for the first predetermined time (for example, 1 second) every first predetermined time period (for example, 1 second) Signal. In other words, the abnormal working state signal of the Android system is a level signal that always outputs a high level signal.
在操作320中,微控制单元200根据其输入接口210接收的Android系统的工作状态信号识别出Android系统是否处于异常工作状态。In operation 320 , the MCU 200 recognizes whether the Android system is in an abnormal working state according to the working state signal of the Android system received by its input interface 210 .
这里,微控制单元200识别出Android系统处于正常工作状态的具体方法为:如果微控制单元200的输入接口210在第二预定时间段内(例如,10秒钟内)接收到主控芯片100的第一输出接口110提供的至少一个低电平信号,则微控制单元200识别出Android系统处于正常工作状态。Here, the specific method for the micro-control unit 200 to recognize that the Android system is in a normal working state is: if the input interface 210 of the micro-control unit 200 receives an input from the main control chip 100 within a second predetermined period of time (for example, within 10 seconds) At least one low-level signal provided by the first output interface 110, the MCU 200 recognizes that the Android system is in a normal working state.
而微控制单元200识别出Android系统处于异常工作状态的具体方法为:如果微控制单元200的输入接口210在第二预定时间段内(例如,10秒钟内)未接收到主控芯片100的第一输出接口110提供的低电平信号,则微控制单元200识别出Android系统处于异常工作状态。And the specific method for the micro-control unit 200 to recognize that the Android system is in an abnormal working state is: if the input interface 210 of the micro-control unit 200 does not receive an input from the main control chip 100 within a second predetermined period of time (for example, within 10 seconds), If the low-level signal provided by the first output interface 110, the MCU 200 recognizes that the Android system is in an abnormal working state.
如果微控制单元200根据其输入接口210接收的Android系统的工作状态信号识别出Android系统处于异常工作状态,则进行操作330。If the MCU 200 recognizes that the Android system is in an abnormal working state according to the working state signal of the Android system received by its input interface 210 , then proceed to operation 330 .
在操作330中,微控制单元200产生Android系统重启信号,并且微控制单元200通过其第二输出接口220将Android系统重启信号发送给主控芯片100的重启接口120。这里,所述Android系统重启信号为低电平信号。之后,主控芯片100根据其重启接口120接收到的Android系统重启信号对Android系统进行重启。In operation 330 , the MCU 200 generates an Android system restart signal, and the MCU 200 sends the Android system restart signal to the restart interface 120 of the main control chip 100 through its second output interface 220 . Here, the Android system restart signal is a low-level signal. Afterwards, the main control chip 100 restarts the Android system according to the Android system restart signal received by its restart interface 120 .
如果微控制单元200根据其输入接口210接收的Android系统的工作状态信号识别出Android系统处于正常工作状态,则进行操作340。If the MCU 200 recognizes that the Android system is in a normal working state according to the working state signal of the Android system received by its input interface 210 , proceed to operation 340 .
在操作340中,微控制单元200产生Android系统继续信号,并且微控制单元200通过其第二输出接口220将Android系统继续信号发送给主控芯片100的重启接口120。这里,所述Android系统继续信号为高电平信号。之后,主控芯片100根据其重启接口120接收到的Android系统继续信号使Android系统继续工作。In operation 340 , the MCU 200 generates an Android system continuation signal, and the MCU 200 sends the Android system continuation signal to the restart interface 120 of the main control chip 100 through its second output interface 220 . Here, the Android system continuation signal is a high-level signal. Afterwards, the main control chip 100 makes the Android system continue to work according to the Android system continuation signal received by its restart interface 120 .
综上所述,根据本发明的实施例,利用微控制单元监控主控芯片中的Android系统的工作状态,当Android系统工作异常时,微控制单元控制重启Android系统,实现了安装有Android系统的电子设备自动处理Android系统工作异常的能力,提升了用户体验。In summary, according to the embodiments of the present invention, the micro-control unit is used to monitor the working state of the Android system in the main control chip. When the Android system works abnormally, the micro-control unit controls the restart of the Android system, and realizes that the Android system is installed. The ability of the electronic device to automatically handle the abnormal operation of the Android system improves the user experience.
虽然已经参照特定实施例示出并描述了本发明,但是本领域的技术人员将理解:在不脱离由权利要求及其等同物限定的本发明的精神和范围的情况下,可在此进行形式和细节上的各种变化。While the invention has been shown and described with reference to particular embodiments, it will be understood by those skilled in the art that changes may be made in the form and scope thereof without departing from the spirit and scope of the invention as defined by the claims and their equivalents. Various changes in details.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510347267.2A CN106326021A (en) | 2015-06-19 | 2015-06-19 | Method for processing abnormal working state of Android system of electronic equipment and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510347267.2A CN106326021A (en) | 2015-06-19 | 2015-06-19 | Method for processing abnormal working state of Android system of electronic equipment and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106326021A true CN106326021A (en) | 2017-01-11 |
Family
ID=57729033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510347267.2A Pending CN106326021A (en) | 2015-06-19 | 2015-06-19 | Method for processing abnormal working state of Android system of electronic equipment and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106326021A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107484078A (en) * | 2017-09-29 | 2017-12-15 | 奇瑞汽车股份有限公司 | Automobile sound system and starting control method thereof |
CN110532223A (en) * | 2019-08-30 | 2019-12-03 | 北京百度网讯科技有限公司 | Control circuit and control method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1997024652A1 (en) * | 1995-12-29 | 1997-07-10 | Advanced Micro Devices, Inc. | Integrated circuit reset incorporating battery monitor and watchdog timer |
CN102214124A (en) * | 2011-06-08 | 2011-10-12 | 深圳市理邦精密仪器股份有限公司 | Watchdog reset control system |
CN104657228A (en) * | 2015-03-04 | 2015-05-27 | 深圳市欧珀通信软件有限公司 | Method and device for processing system exceptions of mobile terminal |
-
2015
- 2015-06-19 CN CN201510347267.2A patent/CN106326021A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1997024652A1 (en) * | 1995-12-29 | 1997-07-10 | Advanced Micro Devices, Inc. | Integrated circuit reset incorporating battery monitor and watchdog timer |
CN102214124A (en) * | 2011-06-08 | 2011-10-12 | 深圳市理邦精密仪器股份有限公司 | Watchdog reset control system |
CN104657228A (en) * | 2015-03-04 | 2015-05-27 | 深圳市欧珀通信软件有限公司 | Method and device for processing system exceptions of mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107484078A (en) * | 2017-09-29 | 2017-12-15 | 奇瑞汽车股份有限公司 | Automobile sound system and starting control method thereof |
CN110532223A (en) * | 2019-08-30 | 2019-12-03 | 北京百度网讯科技有限公司 | Control circuit and control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6530774B2 (en) | Hardware failure recovery system | |
US8538720B2 (en) | Cold boot test system and method for electronic devices | |
CN107656856B (en) | A system state display method and device based on CPLD | |
CN102419719A (en) | Computer system and method for starting same | |
CN110300299A (en) | Show facility switching machine method for testing pressure, device, equipment and storage medium | |
US8935518B2 (en) | Electronic device with UART and input control method | |
CN103186439A (en) | Server test system and server stability test method | |
US8850175B2 (en) | Computer apparatus and resetting method for real time clock thereof | |
CN112783721B (en) | Method, device, system and storage medium for I2C bus monitoring | |
CN103605591A (en) | Method and device for controlling memory initialization of terminal system | |
US8726088B2 (en) | Method for processing booting errors | |
US20130283028A1 (en) | Adapter identification system and method for computer | |
US9570922B2 (en) | Charging method and electronic device | |
US8495353B2 (en) | Method and circuit for resetting register | |
TWI557551B (en) | Electronic apparatus and wake-up method thereof | |
CN106326021A (en) | Method for processing abnormal working state of Android system of electronic equipment and electronic equipment | |
US20120311310A1 (en) | Computer system and method for resetting the same | |
CN105141774B (en) | It is a kind of to solve method and the mobile terminal that side switch corrosion cannot be started up | |
CN107145405A (en) | The baseboard management controller of server and its operating method and control circuit | |
US9619355B2 (en) | Booting verification method of computer and electronic device | |
TWI631458B (en) | Motherboard and computer system thereof | |
CN108388481B (en) | Intelligent watchdog circuit system of OLT equipment | |
CN103870253A (en) | Chip application circuit | |
CN110989814A (en) | A protection method, device and equipment for a server | |
CN105224861B (en) | The deadlock condition processing method and system of a kind of smart machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170111 |
|
WD01 | Invention patent application deemed withdrawn after publication |