WO2019010875A1 - 操作系统重启方法、装置和辅助系统 - Google Patents

操作系统重启方法、装置和辅助系统 Download PDF

Info

Publication number
WO2019010875A1
WO2019010875A1 PCT/CN2017/109426 CN2017109426W WO2019010875A1 WO 2019010875 A1 WO2019010875 A1 WO 2019010875A1 CN 2017109426 W CN2017109426 W CN 2017109426W WO 2019010875 A1 WO2019010875 A1 WO 2019010875A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
restarting
operating
abnormal
state
Prior art date
Application number
PCT/CN2017/109426
Other languages
English (en)
French (fr)
Inventor
方杰
Original Assignee
深圳市沃特沃德股份有限公司
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 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Publication of WO2019010875A1 publication Critical patent/WO2019010875A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • 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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Definitions

  • the present invention relates to the field of in-vehicle technology, and in particular, to an operating system restart method, apparatus, and auxiliary system.
  • a primary object of the present invention is to provide an operating system restart method, apparatus, and auxiliary system for improving the reliability and stability of an in-vehicle device.
  • an embodiment of the present invention provides an operating system restart method, where the method includes the following steps:
  • the step of monitoring an operating state of the operating system includes:
  • the step of determining whether the operating state is abnormal includes: [0012] determining whether the heartbeat connection is broken;
  • the step of determining whether the heartbeat connection is broken includes:
  • the heartbeat connection is determined to be broken.
  • the step of establishing a heartbeat connection with the operating system includes:
  • the step of establishing a heartbeat connection with the operating system includes:
  • the step of monitoring an operating state of the operating system includes: monitoring a square wave signal of the operating system
  • the step of determining whether the running state is abnormal includes:
  • the step of restarting the operating system comprises: restarting the operating system by interrupting power supply of the operating system.
  • the step of restarting the operating system comprises: restarting the operating system by a reset logic
  • the embodiment of the present invention provides an operating system restarting device, and the device includes:
  • a monitoring module configured to monitor an operating state of the operating system
  • a determining module configured to determine whether the running state is abnormal
  • the restarting module is configured to restart the operating system when the operating state is abnormal.
  • the monitoring module includes:
  • connection establishing unit configured to establish a heartbeat connection with the operating system
  • a heartbeat monitoring unit configured to monitor the heartbeat connection
  • the determining module includes:
  • a determining unit configured to determine whether the heartbeat connection is broken; [0034] The first determining unit is configured to determine that the running state is abnormal when the heartbeat connection is broken.
  • the determining unit is configured to: determine that the heartbeat connection is broken when the heartbeat packet sent by the operating system is not received in the first preset time.
  • connection establishing unit is configured to: establish a heartbeat connection with a core service of the operating system.
  • connection establishing unit is configured to: establish a heartbeat connection with the operating system by using a serial communication mode, an SPI communication mode, or an I2C bus communication manner.
  • the monitoring module includes a signal monitoring unit, where the signal monitoring unit is configured to: monitor a square wave signal of the operating system;
  • the determining module includes a second determining unit, where the second determining unit is configured to: determine that the operating state is abnormal when the square wave signal of the operating system is not received in the second preset time .
  • the restarting module includes an interrupt restarting unit, and the interrupt restarting unit is configured to: restart the operating system by interrupting power supply of the operating system.
  • the restarting module includes a reset restarting unit, where the resetting and restarting unit is configured to: restart the operating system by using a reset logic.
  • Embodiments of the present invention also provide an auxiliary system including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, The application is configured to perform the aforementioned operating system restart method.
  • An operating system restarting method provided by the embodiment of the present invention automatically monitors the operating state of the operating system, and when the operating state of the operating system is abnormal, the operating system is automatically restarted immediately, thereby enabling the operating system to operate. Returning to normal, eliminating the need for the user to manually restart the operating system, improving the reliability and stability of the in-vehicle device and improving the user experience.
  • FIG. 1 is a flowchart of an embodiment of an operating system restart method of the present invention
  • FIG. 2 is a schematic diagram of hardware connection of an operating system restart method for implementing an embodiment of the present invention
  • FIG. 3 is a block diagram showing an embodiment of an operating system restarting apparatus according to the present invention
  • 4 is a block diagram of the monitoring module of FIG. 3;
  • FIG. 5 is another block diagram of the monitoring module of FIG. 3;
  • FIG. 6 is a block diagram of the determination module of FIG. 3;
  • FIG. 7 is a block diagram of still another module of the determining module of FIG. 3;
  • FIG. 8 is a block diagram of the restart module of FIG. 3;
  • FIG. 9 is a block diagram of the restart module of FIG. 3.
  • FIG. 1 an embodiment of an operating system restarting method of the present invention is provided, and the method includes the following steps.
  • S12. Determine whether the operating state of the operating system is abnormal. When the running state is abnormal, go to step S13; when the running state is normal, continue monitoring.
  • the operating system installed on the in-vehicle device is an Android system, and of course, other operating systems may be installed, which is not limited by the present invention.
  • the in-vehicle device further has an auxiliary system, and the power supply of the operating system is controlled by the auxiliary system, and the operating system provides at least one restart mechanism to the auxiliary system, so that the auxiliary system can be utilized to implement the implementation of the present invention.
  • Example of operating system restart method Example of operating system restart method.
  • the vehicle signal is sent to the auxiliary system for pre-processing, and the auxiliary system processes the signal and then sends the signal to the operating system, such as ignition, flameout, reverse, and headlights, so that the auxiliary system can monitor the vehicle.
  • the operating system such as ignition, flameout, reverse, and headlights
  • step S11 after the auxiliary system is initialized, the monitoring mode is entered, and the operating state of the operating system is monitored.
  • the Android system process includes user mode (user space) and kernel mode (kernel space). When both processes are in normal operation, the Android system is in a stable state.
  • the embodiment of the present invention can monitor the running status of the operating system in the following manner.
  • the auxiliary system can monitor the running status of the operating system by monitoring the user state of the operating system. Specifically, the auxiliary system first establishes a heartbeat connection with the operating system, and can communicate through a serial port and a serial peripheral interface (Serial Peripheral).
  • the secondary system monitors the state of the heartbeat connection, which includes the maintenance state and the disconnection state.
  • the auxiliary system and the operating system transmit a heartbeat packet every certain time, that is, the auxiliary system receives the heartbeat packet sent by the operating system, and Send a heartbeat packet to the operating system every certain time. For example, the secondary system and the operating system synchronize the heartbeat packets every two seconds.
  • the auxiliary system may establish a heartbeat connection with an application program interface (API) of the operating system.
  • API application program interface
  • the auxiliary system establishes a heartbeat connection with the core service of the operating system, that is, the heartbeat package is placed in the The core service of the operating system runs. Because the core service is abnormal, the entire operating system is in an unstable state, which can improve the accuracy of judgment and prevent misjudgment.
  • the auxiliary system can monitor the running status of the operating system by monitoring the kernel state of the operating system.
  • the square wave signal of the kernel state can be monitored, that is, the operating system determines to output a square wave signal to the auxiliary system, such as a square wave signal with a frequency of 1 ⁇ and a duty ratio of 50%, and the auxiliary system receives the square wave signal.
  • the kernel-mode square wave signal it is possible to detect whether the operating system kernel (such as the Linux kernel) is in a normal running state, thereby monitoring the operating state of the operating system.
  • the foregoing two monitoring modes may also be combined, that is, the auxiliary system monitors the user state and the kernel state of the operating system, thereby making the monitoring means more comprehensive and improving the accuracy of the judgment.
  • step S12 the auxiliary system can determine whether the operating state of the operating system is abnormal by the following manner.
  • the auxiliary system determines whether the heartbeat connection with the operating system is broken; when the heartbeat connection of the two systems is broken , that is, in the state of disconnection, it is determined that the operating state of the operating system is abnormal; when the heartbeat connection of the two is not broken, that is, in the maintenance state, other monitoring methods may be further determined, and the operating system may be directly determined.
  • the operating status is normal.
  • the auxiliary system determines that the heartbeat connection with the operating system is broken.
  • the first preset time can be set according to actual needs, for example, it can be set within a range of 1-4 seconds, preferably 2 seconds.
  • other methods in the prior art can also be used to determine whether the heartbeat connection is broken. The present invention will not be repeated here.
  • the auxiliary system monitors the running state of the operating system by monitoring the kernel state of the operating system, if the auxiliary system does not receive the square wave signal of the operating system in the second preset time, It is determined that the operating state of the operating system is abnormal; otherwise, it can continue to be judged by other monitoring methods, or it can directly determine that the operating state of the operating system is normal.
  • the auxiliary system monitors the user state and the kernel state of the operating system, as long as any one of the shapes
  • the state is abnormal, that is, when the heartbeat connection of the auxiliary system and the operating system is broken, or when the auxiliary system does not receive the square wave signal of the operating system within the second preset time, it is determined that the operating state of the operating system is abnormal. If both forms are normal, that is, when the heartbeat connection between the auxiliary system and the operating system is maintained, or when the auxiliary system receives the square wave signal of the operating system within the second preset time, then other The monitoring mode is further judged, and it is also possible to directly determine that the operating state of the operating system is normal.
  • the auxiliary system may automatically restart the operating system by using various restart mechanisms.
  • the auxiliary system may restart the operating system by interrupting power supply of the operating system. Specifically, when the operating state of the operating system is abnormal, the auxiliary system first disconnects the operating system from the power supply, and then restores the connection between the operating system and the power supply, so that the power supply of the operating system is temporarily interrupted, thereby realizing the restart of the operating system.
  • the auxiliary system may restart the operating system by reset logic. Specifically, when the operating state of the operating system is abnormal, the auxiliary system generates a reset signal to control the operating system to reset and restart.
  • the operating system restarting device of the embodiment of the present invention may adopt a hardware connection structure as shown in FIG. 2, wherein the main processor carrying the operating system includes a general purpose input/output (General Purpose Input Output, GPIO) pin, serial port, SYSRST pin and VBAT pin, the auxiliary processor carrying the auxiliary system includes the detection port, the serial port and two GPIO pins, the GPIO pin of the main processor and the auxiliary processor The port connection is detected, the serial port of the main processor is connected to the serial port of the auxiliary processor, the SYSRST pin of the main processor is connected to a GPIO pin of the auxiliary processor, and the VBAT pin and the auxiliary processor of the main processor are connected. Another GPIO pin is connected.
  • GPIO General Purpose Input Output
  • the main processor outputs a square wave signal to the auxiliary processor through the GPIO pin, and the auxiliary processor detects the square wave signal of the main processor through the detection port, thereby realizing the monitoring of the square wave signal.
  • the main processor and the auxiliary processor perform heartbeat packet communication through respective serial ports, thereby realizing monitoring of heartbeat connection.
  • the main processor and the auxiliary processor can also perform heartbeat packet communication by replacing the serial port through an SPI port, an I2C bus, or the like.
  • the auxiliary processor can be weighted by one of the GPIO pins controlling the SYSRST pin reset of the main processor. To start the operating system, you can also restart the operating system by controlling the connection of the VBAT pin of the main processor to the power supply through another GPIO pin. In other embodiments, the main processor may also select only one of the SYSRST pin and the VBAT pin to connect to the GPIO pin of the auxiliary processor to implement an operating system restart.
  • the operating system restarting method of the embodiment of the present invention automatically monitors the operating state of the operating system. When the operating state of the operating system is abnormal, the operating system is automatically restarted immediately, so that the operating system can be restored to normal. The process of manually restarting the operating system is performed, which improves the reliability and stability of the in-vehicle device and improves the user experience.
  • the apparatus includes a monitoring module 10, a determining module 20, and a restarting module 30, wherein: the monitoring module 10 is configured to monitor an operating state of the operating system.
  • the determining module 20 is configured to determine whether the operating state of the operating system is abnormal.
  • the restarting module 30 is configured to restart the operating system when the operating state is abnormal.
  • the power supply of the operating system is controlled by the operating system restarting device, and the operating system provides at least one restarting mechanism to the operating system to restart the device, so that the operating system can be restarted by the operating system to restart the operating system.
  • the vehicle signal is sent to the operating system restart device for pre-processing, and the operating system restarts the device and then sends the signal to the operating system, and the vehicle signal such as ignition, flameout, reversing, turning on the headlight, etc., thereby operating
  • the system restart device can monitor the state of the vehicle and can more reliably implement the restart operation of the operating system.
  • the monitoring module 10 can monitor the operating state of the operating system by monitoring the user state of the operating system.
  • the monitoring module 10 includes a connection establishing unit 11 and a heartbeat monitoring unit 12 , wherein the connection establishing unit 11 is configured to establish a heartbeat connection with the operating system, and the heartbeat monitoring unit 12 is configured to monitor the state of the heartbeat connection.
  • This state includes a maintenance state and a shutdown state.
  • the operating system restarting device and the operating system transmit a heartbeat packet every certain time, that is, the operating system restarting device receives the heartbeat packet sent by the operating system, and sends a heartbeat packet to the operating system every certain time. For example, the operating system restarts the device and the operating system synchronizes the heartbeat packet every two seconds.
  • connection establishing unit 11 can communicate through a serial port communication method, an SPI communication method, an I2C bus communication method, and the like.
  • the letter mode establishes a heartbeat connection with the operating system.
  • connection establishing unit 11 can establish a heartbeat connection with an application program interface (API) of the operating system.
  • API application program interface
  • the connection establishing unit 11 establishes a heartbeat connection with the core service of the operating system.
  • the heartbeat package is placed in the core service of the operating system. Because the core service is abnormal, the entire operating system is in an unstable state, which can improve the accuracy of the judgment and prevent misjudgment.
  • the monitoring module 10 can monitor the operational status of the operating system by monitoring the kernel state of the operating system.
  • the monitoring module 10 includes a signal monitoring unit for monitoring a square wave signal of a kernel state of the operating system, that is, an operating system determines to output a square wave signal to the operating system restarting device, such as a frequency of 1 ⁇ , a duty ratio. 50% square wave signal, the signal monitoring unit receives the square wave signal.
  • the kernel-waveform square wave signal it is possible to detect whether the operating system kernel (such as the Linux kernel) is in a normal running state, thereby monitoring the operating state of the operating system.
  • the foregoing two monitoring modes may also be combined, that is, the monitoring module 10 monitors the user state and the kernel mode of the operating system, and the monitoring module 10 is as shown in FIG. 5, and includes a connection establishing unit 11, a heartbeat monitoring unit 12, and a signal monitoring unit 13, wherein: a connection establishing unit 11 for establishing a heartbeat connection with an operating system; a heartbeat monitoring unit 12 for monitoring a heartbeat connection; and a signal monitoring unit 13 for Monitor the square wave signal of the operating system.
  • a connection establishing unit 11 for establishing a heartbeat connection with an operating system
  • a heartbeat monitoring unit 12 for monitoring a heartbeat connection
  • a signal monitoring unit 13 for Monitor the square wave signal of the operating system.
  • the determining module 20 can determine whether the operating state of the operating system is abnormal by:
  • the determining module 20 when the monitoring module 10 monitors the running state of the operating system by monitoring the user state of the operating system, includes a determining unit 21 and a first determining unit 22, as shown in FIG.
  • the determining unit 21 is configured to determine whether the heartbeat connection between the operating system restarting device and the operating system is broken.
  • the first determining unit 22 is configured to determine the operating system when the heartbeat connection of the two is broken, that is, in a broken state.
  • the running state is abnormal. When the heartbeat connection of the two is not broken, that is, it is in the maintenance state, it can continue to judge by other monitoring methods, or directly determine that the operating state of the operating system is normal.
  • the determining unit 21 determines that the heartbeat connection with the operating system has been broken.
  • the interval can be set according to actual needs, for example, it can be set within a range of 1-4 seconds, preferably 2 seconds.
  • other methods in the prior art can also be used to determine whether the heartbeat connection is broken. The present invention will not be repeated here.
  • the monitoring module 10 when the monitoring module 10 monitors the running state of the operating system by monitoring the kernel state of the operating system, the monitoring module 10 includes a second determining unit, where the second determining unit is configured to:
  • the operating system restarting device does not receive the square wave signal of the operating system in the second preset time, and determines that the operating state of the operating system is abnormal; otherwise, it may continue to use other monitoring methods to further determine, or directly determine the operation.
  • the system is operating normally.
  • the second preset time can be set according to actual needs, for example, it can be set within a range of 1-4 seconds, preferably 2 seconds.
  • the determining module 20 when the monitoring module 10 monitors the user state and the kernel state of the operating system, the determining module 20 includes a determining unit 21, a first determining unit 22, and a second determining unit 23, as shown in FIG.
  • the determining unit 21 is configured to determine whether the heartbeat connection is broken.
  • the first determining unit 22 is configured to: when the heartbeat connection is broken, determine that the operating state of the operating system is abnormal; and the second determining unit 23 is configured to be in the second The square wave signal of the operating system is not received in the preset time, and the operating state of the operating system is determined to be abnormal.
  • any one of the forms is abnormal, that is, when the operating system restarts the device and the operating system's heartbeat connection is broken, or when the operating system restarting device does not receive the operating system's square wave in the second preset time.
  • the signal is ⁇
  • the restart module 30 can employ various restart mechanisms to automatically restart the operating system.
  • the restart module 30 includes an interrupt restart unit 31 for restarting the operating system by interrupting power supply of the operating system. Specifically, when the operating state of the operating system is abnormal, the interrupt restart unit 31 first disconnects the operating system from the power supply, and then restores the connection between the operating system and the power supply, so that the power supply of the operating system is temporarily interrupted, thereby implementing the restart of the operating system. .
  • the restart module 30 includes a reset restart unit 32 for restarting the operating system by the reset logic. Specifically, when the operating state of the operating system is abnormal, the reset restart unit 32 generates a reset signal, and controls the operating system to reset and restart. [0102] In some embodiments, the restart module 30 may also include an interrupt restart unit 31 and a reset restart unit 32, and select one of the restart modes according to actual needs.
  • the operating system restarting device of the embodiment of the present invention automatically monitors the operating state of the operating system, and when the operating state of the operating system is abnormal, the operating system is automatically restarted immediately, so that the operating system can be restored to normal.
  • the process of manually restarting the operating system is performed, which improves the reliability and stability of the in-vehicle device and improves the user experience.
  • the present invention also provides an auxiliary system including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to execute Operating system restart method.
  • the operating system restart method includes the following steps: monitoring the operating state of the operating system; determining whether the operating state of the operating system is abnormal; when the operating state of the operating system is abnormal, restarting the operating system.
  • the operating system restarting method described in this embodiment is the operating system restarting method in the foregoing embodiment of the present invention, and details are not described herein again.
  • the present invention includes apparatus related to performing one or more of the operations described herein.
  • These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer.
  • These devices have computer programs stored therein that are selectively activated or reconfigured.
  • Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and respectively coupled to a bus, including but not limited to any Types of disks (including floppy disks, hard disks, CDs, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only)
  • a readable medium includes any medium that is stored or transmitted by a device (e.g., a computer) in a readable form.

Abstract

一种操作系统重启方法,所述方法包括以下步骤:监控操作系统的运行状态(S11);判断所述运行状态是否异常(S12);当所述运行状态异常时,重启所述操作系统(S13)。从而使得操作系统能够及时恢复正常,省去了用户手动重启操作系统的过程,提高了车载设备的可靠性和稳定性,提升了用户体验。

Description

操作系统重启方法、 装置和辅助系统
技术领域
[0001] 本发明涉及车载技术领域, 特别是涉及到一种操作系统重启方法、 装置和辅助 系统。
背景技术
[0002] 目前, 安卓 (Android) 系统等智能操作系统已越来越多的被应用于车载设备 , 相对于传统的 WinCE系统, 安卓系统可以为用户提供更好的用户体验。 安卓 系统在长吋间运行或者压力操作的情况下, 可能会出现核心服务异常、 死机等 问题。 现有技术都是利用安卓系统自身的机制来检测系统运行状态, 一旦发生 应用程序无响应 (Application Not Responding, ANR) 、 系统假死等异常状态, 只能靠用户手动重启系统来解决, 导致车载设备的可靠性和稳定性较低, 严重 影响用户体验。
技术问题
[0003] 本发明的主要目的为提供一种操作系统重启方法、 装置和辅助系统, 旨在提高 车载设备的可靠性和稳定性。
问题的解决方案
技术解决方案
[0004] 为达以上目的, 本发明实施例提出一种操作系统重启方法, 所述方法包括以下 步骤:
[0005] 监控操作系统的运行状态;
[0006] 判断所述运行状态是否异常;
[0007] 当所述运行状态异常吋, 重启所述操作系统。
[0008] 可选地, 所述监控操作系统的运行状态的步骤包括:
[0009] 与操作系统建立心跳连接;
[0010] 监测所述心跳连接;
[0011] 所述判断所述运行状态是否异常的步骤包括: [0012] 判断所述心跳连接是否断幵;
[0013] 当所述心跳连接断幵吋, 判定所述运行状态异常。
[0014] 可选地, 所述判断所述心跳连接是否断幵的步骤包括:
[0015] 当在第一预设吋间内没有接收到所述操作系统发送的心跳包吋, 判定所述心跳 连接断幵。
[0016] 可选地, 所述与操作系统建立心跳连接的步骤包括:
[0017] 与所述操作系统的核心服务建立心跳连接。
[0018] 可选地, 所述与操作系统建立心跳连接的步骤包括:
[0019] 通过串口通信方式、 SPI通信方式或 I2C总线通信方式与操作系统建立心跳连接
[0020] 可选地, 所述监控操作系统的运行状态的步骤包括: 监测所述操作系统的方波 信号;
[0021] 所述判断所述运行状态是否异常的步骤包括:
[0022] 当在第二预设吋间内没有接收到所述操作系统的方波信号吋, 判定所述运行状 态异常。
[0023] 可选地, 所述重启所述操作系统的步骤包括: 通过中断所述操作系统的供电来 重启所述操作系统。
[0024] 可选地, 所述重启所述操作系统的步骤包括: 通过复位逻辑重启所述操作系统
[0025] 本发明实施例同吋提出一种操作系统重启装置, 所述装置包括:
[0026] 监控模块, 用于监控操作系统的运行状态;
[0027] 判断模块, 用于判断所述运行状态是否异常;
[0028] 重启模块, 用于当所述运行状态异常吋, 重启所述操作系统。
[0029] 可选地, 所述监控模块包括:
[0030] 连接建立单元, 用于与操作系统建立心跳连接;
[0031] 心跳监测单元, 用于监测所述心跳连接;
[0032] 所述判断模块包括:
[0033] 判断单元, 用于判断所述心跳连接是否断幵; [0034] 第一判定单元, 用于当所述心跳连接断幵吋, 判定所述运行状态异常。
[0035] 可选地, 所述判断单元用于: 当在第一预设吋间内没有接收到所述操作系统发 送的心跳包吋, 判定所述心跳连接断幵。
[0036] 可选地, 所述连接建立单元用于: 与所述操作系统的核心服务建立心跳连接。
[0037] 可选地, 所述连接建立单元用于: 通过串口通信方式、 SPI通信方式或 I2C总线 通信方式与操作系统建立心跳连接。
[0038] 可选地, 所述监控模块包括信号监测单元, 所述信号监测单元用于: 监测所述 操作系统的方波信号;
[0039] 所述判断模块包括第二判定单元, 所述第二判定单元用于: 当在第二预设吋间 内没有接收到所述操作系统的方波信号吋, 判定所述运行状态异常。
[0040] 可选地, 所述重启模块包括中断重启单元, 所述中断重启单元用于: 通过中断 所述操作系统的供电来重启所述操作系统。
[0041] 可选地, 所述重启模块包括复位重启单元, 所述复位重启单元用于: 通过复位 逻辑重启所述操作系统。
[0042] 本发明实施例同吋提出一种辅助系统, 所述辅助系统包括存储器、 处理器和至 少一个被存储在所述存储器中并被配置为由所述处理器执行的应用程序, 所述 应用程序被配置为用于执行前述操作系统重启方法。
发明的有益效果
有益效果
[0043] 本发明实施例所提供的一种操作系统重启方法, 通过监控操作系统的运行状态 , 当监测到操作系统的运行状态异常吋, 则立即自动重启操作系统, 从而使得 操作系统能够及吋恢复正常, 省去了用户手动重启操作系统的过程, 提高了车 载设备的可靠性和稳定性, 提升了用户体验。 对附图的简要说明
附图说明
[0044] 图 1是本发明的操作系统重启方法一实施例的流程图;
[0045] 图 2是实现本发明实施例的操作系统重启方法的硬件连接示意图;
[0046] 图 3是本发明的操作系统重启装置一实施例的模块示意图; [0047] 图 4是图 3中的监控模块的模块示意图;
[0048] 图 5是图 3中的监控模块的又一模块示意图;
[0049] 图 6是图 3中的判断模块的模块示意图;
[0050] 图 7是图 3中的判断模块的又一模块示意图;
[0051 ] 图 8是图 3中的重启模块的模块示意图;
[0052] 图 9是图 3中的重启模块的模块示意图。
[0053] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
[0054] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。
[0055] 下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至 终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下 面通过参考附图描述的实施例是示例性的, 仅用于解释本发明, 而不能解释为 对本发明的限制。
[0056] 本技术领域技术人员可以理解, 除非特意声明, 这里使用的单数形式"一"、 " 一个"、 "所述 "和"该"也可包括复数形式。 应该进一步理解的是, 本发明的说明 书中使用的措辞"包括"是指存在所述特征、 整数、 步骤、 操作、 元件和 /或组件 , 但是并不排除存在或添加一个或多个其他特征、 整数、 步骤、 操作、 元件、 组件和 /或它们的组。 应该理解, 当我们称元件被"连接"或"耦接"到另一元件吋 , 它可以直接连接或耦接到其他元件, 或者也可以存在中间元件。 此外, 这里 使用的"连接"或"耦接"可以包括无线连接或无线耦接。 这里使用的措辞 "和 /或"包 括一个或更多个相关联的列出项的全部或任一单元和全部组合。
[0057] 本技术领域技术人员可以理解, 除非另外定义, 这里使用的所有术语 (包括技 术术语和科学术语) , 具有与本发明所属领域中的普通技术人员的一般理解相 同的意义。 还应该理解的是, 诸如通用字典中定义的那些术语, 应该被理解为 具有与现有技术的上下文中的意义一致的意义, 并且除非像这里一样被特定定 义, 否则不会用理想化或过于正式的含义来解释。 [0058] 本发明实施例的操作系统重启方法和装置, 主要应用于车载设备, 当然, 也可 以根据实际需要应用其它相关的电子设备, 本发明对此不作限定。 下面以应用 于车载设备为例进行详细说明。
[0059] 参照图 1, 提出本发明的操作系统重启方法一实施例, 所述方法包括以下步骤
[0060] Sl l、 监控操作系统的运行状态。
[0061] S12、 判断操作系统的运行状态是否异常。 当运行状态异常吋, 进入步骤 S13 ; 当运行状态正常吋, 则继续监控。
[0062] S13、 重启操作系统。
[0063] 本发明实施例中, 车载设备安装的操作系统为安卓 (Android) 系统, 当然也 可以安装其它的操作系统, 本发明对此不作限定。
[0064] 本发明实施例中, 车载设备中还具有一辅助系统, 操作系统的供电由辅助系统 控制, 操作系统提供至少一种重启机制给辅助系统, 从而可以利用该辅助系统 来实现本发明实施例的操作系统重启方法。
[0065] 可选地, 车载信号先送到辅助系统做预处理, 辅助系统处理后再发送给操作系 统, 车载信号如点火、 熄火、 倒车、 幵启大灯等信号, 从而辅助系统可以监控 车辆状态, 能够更加可靠的实现操作系统的重启操作。
[0066] 步骤 S11中, 辅助系统初始化后, 进入监控模式, 监控操作系统的运行状态。
以安卓系统为例, 安卓系统的进程包括用户态 (用户空间) 和内核态 (内核空 间) , 当这两种形态的进程都处于正常运行状态吋, 安卓系统则处于稳定状态
。 基于此, 本发明实施例可以通过以下方式来监控操作系统的运行状态。
[0067] 可选地, 辅助系统可以通过监控操作系统的用户态来实现操作系统的运行状态 的监控。 具体实施吋, 辅助系统先与操作系统建立心跳连接, 可以通过串口通 信方式、 串行外设接口(Serial Peripheral
Interface, SPI)通信方式、 I2C(Inter-Integrated Circuit)总线通信方式等通信方式与 操作系统建立心跳连接。 当建立心跳连接后, 辅助系统则监测心跳连接的状态 , 该状态包括维持状态和断幵状态。 在心跳连接维持状态, 辅助系统与操作系 统每隔一定吋间传输一次心跳包, 即辅助系统接收操作系统发送的心跳包, 并 每隔一定吋间向操作系统发送一次心跳包。 例如, 辅助系统与操作系统每隔两 秒同步一次心跳包。
[0068] 辅助系统可以与操作系统的应用程序接口 (API) 建立心跳连接, 作为优选, 本发明实施例中, 辅助系统与操作系统的核心服务建立心跳连接, 也就是说, 将心跳包放置在操作系统的核心服务中运行, 因为核心服务一旦异常, 则整个 操作系统必然处于不稳定状态, 从而可以提高判断的准确性, 防止误判。
[0069] 可选地, 辅助系统可以通过监控操作系统的内核态来实现操作系统的运行状态 的监控。 具体实施吋, 可以监控内核态的方波信号, 即操作系统定吋向辅助系 统输出方波信号, 如频率 1Ηζ、 占空比 50%的方波信号, 辅助系统接收该方波信 号。 通过对内核态的方波信号的监控, 可以检测到操作系统的内核 (如 Linux内 核) 是否处于正常运行状态, 从而实现操作系统的运行状态的监控。
[0070] 可选地, 也可以将前述两种监控方式结合起来, 即辅助系统同吋监控操作系统 的用户态和内核态, 从而使得监控手段更加全面, 提高判断的准确性。
[0071] 步骤 S12中, 辅助系统可以通过以下方式判断操作系统的运行状态是否异常。
[0072] 可选地, 当辅助系统通过监控操作系统的用户态来实现操作系统的运行状态的 监控吋, 辅助系统判断其与操作系统的心跳连接是否断幵; 当二者的心跳连接 断幵, 即处于断幵状态吋, 则判定操作系统的运行状态异常; 当二者的心跳连 接没有断幵, 即处于维持状态吋, 可以继续采用其它的监控方式进一步判断, 也可以直接判定操作系统的运行状态正常。
[0073] 具体实施吋, 当辅助系统在第一预设吋间内没有接收到操作系统发送的心跳包 吋, 辅助系统则判定其与操作系统的心跳连接已断幵。 第一预设吋间可以根据 实际需要设定, 如可以设定在 1-4秒的范围内, 优选 2秒。 此外, 也可以采用现有 技术中的其它方式来判断心跳连接是否断幵, 本发明在此不再一一列举赘述。
[0074] 可选地, 当辅助系统通过监控操作系统的内核态来实现操作系统的运行状态的 监控吋, 如果辅助系统在第二预设吋间内没有接收到操作系统的方波信号, 则 判定操作系统的运行状态异常; 反之, 则可以继续采用其它的监控方式进一步 判断, 也可以直接判定操作系统的运行状态正常。
[0075] 可选地, 当辅助系统同吋监控操作系统的用户态和内核态吋, 只要任意一个形 态异常, 即当辅助系统与操作系统的心跳连接断幵吋, 或者当辅助系统在第二 预设吋间内没有接收到操作系统的方波信号吋, 则判定操作系统的运行状态异 常。 如果两个形态均正常, 即当辅助系统与操作系统的心跳连接处于维持状态 吋, 或者当辅助系统在第二预设吋间内接收到操作系统的方波信号吋, 则可以 继续采用其它的监控方式进一步判断, 也可以直接判定操作系统的运行状态正 常。
[0076] 步骤 S13中, 辅助系统可以采用各种重启机制来自动重启操作系统。
[0077] 可选地, 辅助系统可以通过中断操作系统的供电来重启操作系统。 具体的, 当 操作系统的运行状态异常吋, 辅助系统先断幵操作系统与电源的连接, 然后再 恢复操作系统与电源的连接, 使得操作系统的供电短暂中断, 从而实现操作系 统的重启。
[0078] 可选地, 辅助系统可以通过复位逻辑重启操作系统。 具体的, 当操作系统的运 行状态异常吋, 辅助系统生成复位信号, 控制操作系统复位重启。
[0079] 本领域技术人员可以理解, 除了上述列举的重启机制, 还可以采用现有技术中 的其它重启机制来重启操作系统, 本发明对此不再一一列举赘述。
[0080] 本发明实施例的操作系统重启装置, 在具体实施吋, 可以采用如图 2所示的硬 件连接结构, 其中, 承载操作系统的主处理器包括通用输入 /输出 (General Purpose Input Output, GPIO)管脚、 串行端口、 SYSRST管脚和 VBAT管脚, 承载 辅助系统的辅助处理器包括检测端口、 串行端口和两个 GPIO管脚, 主处理器的 GPIO管脚与辅助处理器的检测端口连接, 主处理器的串行端口与辅助处理器的 串行端口连接, 主处理器的 SYSRST管脚与辅助处理器的一个 GPIO管脚连接, 主处理器的 VBAT管脚与辅助处理器的另一个 GPIO管脚连接。
[0081] 主处理器通过 GPIO管脚向辅助处理器输出方波信号, 辅助处理器通过检测端 口检测主处理器的方波信号, 从而实现方波信号的监测。
[0082] 主处理器和辅助处理器通过各自的串行端口进行心跳包通讯, 从而实现心跳连 接的监测。 在其它实施例中, 主处理器与辅助处理器也可以通过 SPI端口、 I2C总 线等替换串行端口来进行心跳包通讯。
[0083] 辅助处理器可以通过其中一个 GPIO管脚控制主处理器的 SYSRST管脚复位来重 启操作系统, 也可以通过另一个 GPIO管脚控制主处理器的 VBAT管脚中断与电 源的连接来重启操作系统。 在其它实施例中, 主处理器也可以只选择 SYSRST管 脚和 VBAT管脚中的任意一个管脚来与辅助处理器的 GPIO管脚连接实现操作系 统重启。
[0084] 本发明实施例的操作系统重启方法, 通过监控操作系统的运行状态, 当监测到 操作系统的运行状态异常吋, 则立即自动重启操作系统, 从而使得操作系统能 够及吋恢复正常, 省去了用户手动重启操作系统的过程, 提高了车载设备的可 靠性和稳定性, 提升了用户体验。
[0085] 参照图 3, 提出本发明的操作系统重启装置一实施例, 所述装置包括监控模块 1 0、 判断模块 20和重启模块 30, 其中: 监控模块 10, 用于监控操作系统的运行状 态; 判断模块 20, 用于判断操作系统的运行状态是否异常; 重启模块 30, 用于 当运行状态异常吋, 重启操作系统。
[0086] 本发明实施例中, 操作系统的供电由操作系统重启装置控制, 操作系统提供至 少一种重启机制给操作系统重启装置, 从而可以利用该操作系统重启装置来重 启操作系统。
[0087] 可选地, 车载信号先送到操作系统重启装置做预处理, 操作系统重启装置处理 后再发送给操作系统, 车载信号如点火、 熄火、 倒车、 幵启大灯等信号, 从而 操作系统重启装置可以监控车辆状态, 能够更加可靠的实现操作系统的重启操 作。
[0088] 在某些实施例中, 监控模块 10可以通过监控操作系统的用户态来实现操作系统 的运行状态的监控。 此吋, 监控模块 10如图 4所示, 包括连接建立单元 11和心跳 监测单元12, 其中, 连接建立单元 11用于与操作系统建立心跳连接, 心跳监测 单元 12用于监测心跳连接的状态, 该状态包括维持状态和断幵状态。 在心跳连 接维持状态, 操作系统重启装置与操作系统每隔一定吋间传输一次心跳包, 即 操作系统重启装置接收操作系统发送的心跳包, 并每隔一定吋间向操作系统发 送一次心跳包。 例如, 操作系统重启装置与操作系统每隔两秒同步一次心跳包
[0089] 连接建立单元 11可以通过串口通信方式、 SPI通信方式、 I2C总线通信方式等通 信方式与操作系统建立心跳连接。
[0090] 连接建立单元 11可以与操作系统的应用程序接口 (API) 建立心跳连接, 作为 优选, 本发明实施例中, 连接建立单元 11与操作系统的核心服务建立心跳连接
, 也就是说, 将心跳包放置在操作系统的核心服务中运行, 因为核心服务一旦 异常, 则整个操作系统必然处于不稳定状态, 从而可以提高判断的准确性, 防 止误判。
[0091] 在另一些实施例中, 监控模块 10可以通过监控操作系统的内核态来实现操作系 统的运行状态的监控。 此吋, 监控模块 10包括信号监测单元, 该信号监测单元 用于监控操作系统的内核态的方波信号, 即操作系统定吋向操作系统重启装置 输出方波信号, 如频率 1Ηζ、 占空比 50%的方波信号, 信号监测单元接收该方波 信号。 通过对内核态的方波信号的监控, 可以检测到操作系统的内核 (如 Linux 内核) 是否处于正常运行状态, 从而实现操作系统的运行状态的监控。
[0092] 在一优选实施例中, 也可以将前述两种监控方式结合起来, 即监控模块 10同吋 监控操作系统的用户态和内核态, 此吋, 监控模块 10如图 5所示, 包括连接建立 单元 11、 心跳监测单元 12和信号监测单元 13, 其中: 连接建立单元 11, 用于与 操作系统建立心跳连接; 心跳监测单元 12, 用于监测心跳连接; 信号监测单元 1 3, 用于监测操作系统的方波信号。 从而使得监控手段更加全面, 提高后续判断 的准确性。
[0093] 判断模块 20可以通过以下方式判断操作系统的运行状态是否异常:
[0094] 可选地, 当监控模块 10通过监控操作系统的用户态来实现操作系统的运行状态 的监控吋, 判断模块 20如图 6所示, 包括判断单元 21和第一判定单元 22, 其中: 判断单元 21, 用于判断操作系统重启装置与操作系统的心跳连接是否断幵; 第 一判定单元 22, 用于当二者的心跳连接断幵, 即处于断幵状态吋, 则判定操作 系统的运行状态异常; 当二者的心跳连接没有断幵, 即处于维持状态吋, 可以 继续采用其它的监控方式进一步判断, 也可以直接判定操作系统的运行状态正 常。
[0095] 具体实施吋, 当操作系统重启装置在第一预设吋间内没有接收到操作系统发送 的心跳包吋, 判断单元 21则判定其与操作系统的心跳连接已断幵。 第一预设吋 间可以根据实际需要设定, 如可以设定在 1-4秒的范围内, 优选 2秒。 此外, 也可 以采用现有技术中的其它方式来判断心跳连接是否断幵, 本发明在此不再一一 列举赘述。
[0096] 可选地, 当监控模块 10通过监控操作系统的内核态来实现操作系统的运行状态 的监控吋, 此吋, 监控模块 10包括第二判定单元, 该第二判定单元用于: 当操 作系统重启装置在第二预设吋间内没有接收到操作系统的方波信号吋, 则判定 操作系统的运行状态异常; 反之, 则可以继续采用其它的监控方式进一步判断 , 也可以直接判定操作系统的运行状态正常。 第二预设吋间可以根据实际需要 设定, 如可以设定在 1-4秒的范围内, 优选 2秒。
[0097] 可选地, 当监控模块 10同吋监控操作系统的用户态和内核态吋, 判断模块 20如 图 7所示, 包括判断单元 21、 第一判定单元 22和第二判定单元 23, 其中: 判断单 元 21, 用于判断心跳连接是否断幵; 第一判定单元 22, 用于当心跳连接断幵吋 , 判定操作系统的运行状态异常; 第二判定单元 23, 用于当在第二预设吋间内 没有接收到操作系统的方波信号吋, 判定操作系统的运行状态异常。
[0098] 此吋, 只要任意一个形态异常, 即当操作系统重启装置与操作系统的心跳连接 断幵吋, 或者当操作系统重启装置在第二预设吋间内没有接收到操作系统的方 波信号吋, 则判定操作系统的运行状态异常。 如果两个形态均正常, 即当操作 系统重启装置与操作系统的心跳连接处于维持状态吋, 或者当操作系统重启装 置在第二预设吋间内接收到操作系统的方波信号吋, 则可以继续采用其它的监 控方式进一步判断, 也可以直接判定操作系统的运行状态正常。
[0099] 重启模块 30可以采用各种重启机制来自动重启操作系统。
[0100] 可选地, 如图 8所示, 重启模块 30包括中断重启单元 31, 其用于通过中断操作 系统的供电来重启操作系统。 具体的, 当操作系统的运行状态异常吋, 中断重 启单元 31先断幵操作系统与电源的连接, 然后再恢复操作系统与电源的连接, 使得操作系统的供电短暂中断, 从而实现操作系统的重启。
[0101] 可选地, 如图 9所示, 重启模块 30包括复位重启单元 32, 其用于通过复位逻辑 重启操作系统。 具体的, 当操作系统的运行状态异常吋, 复位重启单元 32生成 复位信号, 控制操作系统复位重启。 [0102] 在某些实施例中, 重启模块 30也可以同吋包括中断重启单元 31和复位重启单元 32, 根据实际需要选择其中一种重启方式。
[0103] 本领域技术人员可以理解, 除了上述列举的重启机制, 还可以采用现有技术中 的其它重启机制来重启操作系统, 本发明对此不再一一列举赘述。
[0104] 本发明实施例的操作系统重启装置, 通过监控操作系统的运行状态, 当监测到 操作系统的运行状态异常吋, 则立即自动重启操作系统, 从而使得操作系统能 够及吋恢复正常, 省去了用户手动重启操作系统的过程, 提高了车载设备的可 靠性和稳定性, 提升了用户体验。
[0105] 本发明同吋提出一种辅助系统, 该辅助系统包括存储器、 处理器和至少一个被 存储在存储器中并被配置为由处理器执行的应用程序, 该应用程序被配置为用 于执行操作系统重启方法。 所述操作系统重启方法包括以下步骤: 监控操作系 统的运行状态; 判断操作系统的运行状态是否异常; 当操作系统的运行状态异 常吋, 重启操作系统。 本实施例中所描述的操作系统重启方法为本发明中上述 实施例所涉及的操作系统重启方法, 在此不再赘述。
[0106] 本领域技术人员可以理解, 本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。 这些设备可以为所需的目的而专门设计和制造, 或者也可以 包括通用计算机中的已知设备。 这些设备具有存储在其内的计算机程序, 这些 计算机程序选择性地激活或重构。 这样的计算机程序可以被存储在设备 (例如 , 计算机) 可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何 类型的介质中, 所述计算机可读介质包括但不限于任何类型的盘 (包括软盘、 硬盘、 光盘、 CD-ROM、 和磁光盘) 、 ROM (Read-Only Memory , 只读存储器 ) 、 RAM (Random Access Memory , 随机存储器) 、 EPROM (Erasable Programmable Read-Only
Memory , 可擦写可编程只读存储器) 、 EEPROM (Electrically Erasable Programmable Read-Only Memory , 电可擦可编程只读存储器) 、 闪存、 磁性卡 片或光线卡片。 也就是, 可读介质包括由设备 (例如, 计算机) 以能够读的形 式存储或传输信息的任何介质。
[0107] 本技术领域技术人员可以理解, 可以用计算机程序指令来实现这些结构图和 / 或框图和 /或流图中的每个框以及这些结构图和 /或框图和 /或流图中的框的组合。 本技术领域技术人员可以理解, 可以将这些计算机程序指令提供给通用计算机 、 专业计算机或其他可编程数据处理方法的处理器来实现, 从而通过计算机或 其他可编程数据处理方法的处理器来执行本发明公幵的结构图和 /或框图和 /或流 图的框或多个框中指定的方案。
[0108] 本技术领域技术人员可以理解, 本发明中已经讨论过的各种操作、 方法、 流程 中的步骤、 措施、 方案可以被交替、 更改、 组合或刪除。 进一步地, 具有本发 明中已经讨论过的各种操作、 方法、 流程中的其他步骤、 措施、 方案也可以被 交替、 更改、 重排、 分解、 组合或刪除。 进一步地, 现有技术中的具有与本发 明中公幵的各种操作、 方法、 流程中的步骤、 措施、 方案也可以被交替、 更改 、 重排、 分解、 组合或刪除。
[0109] 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

权利要求书
一种操作系统重启方法, 其特征在于, 包括以下步骤:
监控操作系统的运行状态;
判断所述运行状态是否异常;
当所述运行状态异常吋, 重启所述操作系统。
根据权利要求 1所述的操作系统重启方法, 其特征在于, 所述监控操 作系统的运行状态的步骤包括:
与操作系统建立心跳连接;
监测所述心跳连接;
所述判断所述运行状态是否异常的步骤包括:
判断所述心跳连接是否断幵;
当所述心跳连接断幵吋, 判定所述运行状态异常。
根据权利要求 2所述的操作系统重启方法, 其特征在于, 所述判断所 述心跳连接是否断幵的步骤包括:
当在第一预设吋间内没有接收到所述操作系统发送的心跳包吋, 判定 所述心跳连接断幵。
根据权利要求 2所述的操作系统重启方法, 其特征在于, 所述与操作 系统建立心跳连接的步骤包括:
与所述操作系统的核心服务建立心跳连接。
根据权利要求 2所述的操作系统重启方法, 其特征在于, 所述与操作 系统建立心跳连接的步骤包括:
通过串口通信方式、 SPI通信方式或 I2C总线通信方式与操作系统建立 心跳连接。
根据权利要求 1所述的操作系统重启方法, 其特征在于, 所述监控操 作系统的运行状态的步骤包括: 监测所述操作系统的方波信号; 所述判断所述运行状态是否异常的步骤包括:
当在第二预设吋间内没有接收到所述操作系统的方波信号吋, 判定所 述运行状态异常。 根据权利要求 1所述的操作系统重启方法, 其特征在于, 所述重启所 述操作系统的步骤包括: 通过中断所述操作系统的供电来重启所述操 作系统。
根据权利要求 1所述的操作系统重启方法, 其特征在于, 所述重启所 述操作系统的步骤包括: 通过复位逻辑重启所述操作系统。
一种操作系统重启装置, 其特征在于, 包括:
监控模块, 用于监控操作系统的运行状态;
判断模块, 用于判断所述运行状态是否异常;
重启模块, 用于当所述运行状态异常吋, 重启所述操作系统。
根据权利要求 9所述的操作系统重启装置, 其特征在于, 所述监控模 块包括:
连接建立单元, 用于与操作系统建立心跳连接;
心跳监测单元, 用于监测所述心跳连接;
所述判断模块包括:
判断单元, 用于判断所述心跳连接是否断幵;
第一判定单元, 用于当所述心跳连接断幵吋, 判定所述运行状态异常 根据权利要求 10所述的操作系统重启装置, 其特征在于, 所述判断单 元用于: 当在第一预设吋间内没有接收到所述操作系统发送的心跳包 吋, 判定所述心跳连接断幵。
根据权利要求 10所述的操作系统重启装置, 其特征在于, 所述连接建 立单元用于: 与所述操作系统的核心服务建立心跳连接。
根据权利要求 10所述的操作系统重启装置, 其特征在于, 所述连接建 立单元用于: 通过串口通信方式、 SPI通信方式或 I2C总线通信方式与 操作系统建立心跳连接。
根据权利要求 9所述的操作系统重启装置, 其特征在于, 所述监控模 块包括信号监测单元, 所述信号监测单元用于: 监测所述操作系统的 方波信号; 所述判断模块包括第二判定单元, 所述第二判定单元用于: 当在第二 预设吋间内没有接收到所述操作系统的方波信号吋, 判定所述运行状 态异常。
[权利要求 15] 根据权利要求 9所述的操作系统重启装置, 其特征在于, 所述重启模 块包括中断重启单元, 所述中断重启单元用于: 通过中断所述操作系 统的供电来重启所述操作系统。
[权利要求 16] 根据权利要求 9所述的操作系统重启装置, 其特征在于, 所述重启模 块包括复位重启单元, 所述复位重启单元用于: 通过复位逻辑重启所 述操作系统。
[权利要求 17] —种辅助系统, 包括存储器、 处理器和至少一个被存储在所述存储器 中并被配置为由所述处理器执行的应用程序, 其特征在于, 所述应用 程序被配置为用于执行权利要求 1所述的操作系统重启方法。
PCT/CN2017/109426 2017-07-14 2017-11-03 操作系统重启方法、装置和辅助系统 WO2019010875A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710576644.9A CN107402844A (zh) 2017-07-14 2017-07-14 操作系统重启方法、装置和辅助系统
CN201710576644.9 2017-07-14

Publications (1)

Publication Number Publication Date
WO2019010875A1 true WO2019010875A1 (zh) 2019-01-17

Family

ID=60400857

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109426 WO2019010875A1 (zh) 2017-07-14 2017-11-03 操作系统重启方法、装置和辅助系统

Country Status (2)

Country Link
CN (1) CN107402844A (zh)
WO (1) WO2019010875A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647114B (zh) * 2018-03-30 2022-03-08 斑马网络技术有限公司 车机操作系统及其启动方法、系统分区更新和恢复方法
CN111367185A (zh) * 2018-12-26 2020-07-03 博西华电器(江苏)有限公司 家电控制系统、家电控制方法、存储介质及家电
CN109710322A (zh) * 2018-12-26 2019-05-03 京信通信系统(中国)有限公司 通信设备复位方法、装置及系统
CN110442470B (zh) * 2019-07-26 2023-08-29 高新兴科技集团股份有限公司 一种通信设备的系统稳定性监测及恢复方法
CN112918406A (zh) * 2019-12-06 2021-06-08 中车永济电机有限公司 有轨电车的监控系统及有轨电车系统
CN111949446A (zh) * 2020-07-30 2020-11-17 深圳市元征科技股份有限公司 重启方法、装置、车载设备及存储介质
CN111858186B (zh) * 2020-09-22 2020-12-08 蘑菇车联信息科技有限公司 车载终端系统监控方法及系统、电子设备及可读存储介质
CN112181731A (zh) * 2020-10-26 2021-01-05 江苏特思达电子科技股份有限公司 一种应用程序的保活方法、装置及计算机设备
CN115168869A (zh) * 2022-07-11 2022-10-11 合肥杰发科技有限公司 基于多操作系统的车载系统及其控制方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701651A (zh) * 2013-12-31 2014-04-02 山东中创软件工程股份有限公司 一种国产环境下应用服务容灾装置和方法
CN103902316A (zh) * 2012-12-27 2014-07-02 联想(北京)有限公司 切换方法和电子设备
CN104199694A (zh) * 2014-08-27 2014-12-10 山东超越数控电子有限公司 一种基于pxe的操作系统自动安装与恢复方法
CN105279046A (zh) * 2015-11-04 2016-01-27 研华科技(中国)有限公司 一种提高嵌入式系统可靠性的方法
CN106598594A (zh) * 2016-12-14 2017-04-26 捷开通讯(深圳)有限公司 一种快速恢复测试程序的测试系统及方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902316A (zh) * 2012-12-27 2014-07-02 联想(北京)有限公司 切换方法和电子设备
CN103701651A (zh) * 2013-12-31 2014-04-02 山东中创软件工程股份有限公司 一种国产环境下应用服务容灾装置和方法
CN104199694A (zh) * 2014-08-27 2014-12-10 山东超越数控电子有限公司 一种基于pxe的操作系统自动安装与恢复方法
CN105279046A (zh) * 2015-11-04 2016-01-27 研华科技(中国)有限公司 一种提高嵌入式系统可靠性的方法
CN106598594A (zh) * 2016-12-14 2017-04-26 捷开通讯(深圳)有限公司 一种快速恢复测试程序的测试系统及方法

Also Published As

Publication number Publication date
CN107402844A (zh) 2017-11-28

Similar Documents

Publication Publication Date Title
WO2019010875A1 (zh) 操作系统重启方法、装置和辅助系统
KR101464741B1 (ko) 전원관리 제어 장치 및 방법
US9811145B2 (en) Reduction of idle power in a communication port
US8635479B2 (en) Apparatus, system, and method of power saving control, and power saving control program
KR20010062749A (ko) 정보 처리 장치 등의 원격 전력 관리 시스템
JP2008042888A (ja) 通信ネットワークシステム及び未ウェイクアップノードのウェイクアップ方法
CN105022467A (zh) 一种单板复位方法及装置
CN103558907B (zh) 电子装置及降低电子装置功耗的方法
JP5182463B2 (ja) 投写装置および制御方法
WO2012126396A1 (zh) 业务单板的节能方法、主控板、业务单板及接入设备
JP2001331239A (ja) コンピュータの自動終了制御法
WO2012106948A1 (zh) 一种网络连接方法及通讯终端
CN112443938A (zh) 用于空调内外机通讯误配线的室内机主动检测方法
TWI463831B (zh) 伺服器叢集及其控制方法
EP3401756A1 (en) Method and associated apparatus for performing destination power management with aid of source data statistics in storage system
KR102410515B1 (ko) 제어장치 및 이를 제어하는 방법
CN105334763B (zh) 模型飞机遥控器及其开关机电路
CN206039423U (zh) 一种在电子设备假死状态下自动复位的电路
JPH11212895A (ja) 消費電流制御方法及び装置
JP2020109550A (ja) 情報処理システム及び中継装置
WO2019047371A1 (zh) 通信方法和通信装置
JP4155565B2 (ja) 表示システムおよびその制御方法
JPH0944278A (ja) 省電力制御装置及びこれを使用した携帯機器、並びに省電力制御方法
US20100251375A1 (en) Method and apparatus for minimizing network vulnerability
US20200209940A1 (en) Information processing system and relay device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17917229

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17917229

Country of ref document: EP

Kind code of ref document: A1