Search

CN-122018380-A - Power-down control method, power-down control system and domain controller

CN122018380ACN 122018380 ACN122018380 ACN 122018380ACN-122018380-A

Abstract

The disclosure provides a power-down control method, a power-down control system and a domain controller, and relates to the field of vehicle control. The method comprises the steps that a microcontroller responds to a power-down instruction, a power-down notification message is sent to a first operating system in the microprocessor through a first general input/output port, the microprocessor responds to the power-down notification message, closing operation is carried out on a plurality of upper-layer applications of the first operating system according to a first preset rule, the first preset rule is determined based on at least one of screen related information and application association numbers corresponding to the upper-layer applications of the first operating system, the microprocessor responds to closing operation on the plurality of upper-layer applications and bottom-layer applications of the first operating system, which is sequentially carried out, a first response message is sent to the microcontroller through a second general input/output port, and the microcontroller responds to the first response message, and carries out power-down operation on the first operating system.

Inventors

  • XIANG QIAN

Assignees

  • 博泰车联网(南京)有限公司

Dates

Publication Date
20260512
Application Date
20241112

Claims (10)

  1. 1. A power-down control method, comprising: the microcontroller responds to the received power-on instruction and sends a power-on notification message to a first operating system in the microprocessor through a first general input/output port; the microprocessor responds to the power-down notification message and executes a closing operation on a plurality of upper-layer applications of the first operating system according to a first preset rule, wherein the first preset rule is determined based on at least one of screen related information and application association numbers corresponding to the upper-layer applications of the first operating system; The microprocessor responds to closing operation of a plurality of upper-layer applications and bottom-layer applications of the first operating system, which is sequentially executed, and sends a first response message to the microcontroller through a second general input/output port; the microcontroller performs a power-down operation on the first operating system in response to receiving the first response message.
  2. 2. The method of claim 1, wherein the sending a power down notification message to a first operating system in a microprocessor through a first general purpose input output port comprises: and sending the power-down notification message to the first operating system by pulling the level of the first general input/output port high.
  3. 3. The method of claim 2, wherein the method further comprises: the microcontroller sending the power-down notification message to a second operating system in the microprocessor by pulling high the level of the first general purpose input output port in response to receiving the power-down instruction, and The microcontroller performs a power-down operation on the first operating system in response to receiving the first response message, including: and the microcontroller responds to the received first response message to execute power-down operation on the first operating system and the second operating system.
  4. 4. The method of claim 3, wherein the microprocessor performing a shutdown operation on a plurality of upper layer applications of the first operating system according to a first preset rule in response to receiving the power-down notification message comprises: The microprocessor responds to the power-down notification message and executes a closing operation on a plurality of upper-layer applications of the second operating system according to a second preset rule, wherein the second preset rule is determined based on at least one of screen related information and application association numbers corresponding to the upper-layer applications of the second operating system; And the microprocessor responds to the second response message which is detected to be sent to the first operating system by the second operating system after the closing operation of the plurality of upper-layer applications and the lower-layer applications of the second operating system is sequentially executed, and executes the closing operation on the plurality of upper-layer applications of the first operating system according to the first preset rule.
  5. 5. The method of claim 1 or 4, wherein the screen related information includes at least one of a set position of a screen in a vehicle, a display position applied in the screen, and a display area occupied in the screen.
  6. 6. The method of claim 4, wherein the first operating system comprises a real-time operating system and the second operating system comprises an android operating system.
  7. 7. The method of claim 6, wherein, The plurality of upper layer applications of the first operating system comprise at least two of an instrument application, a network service application and an alarm application, and the lower layer application of the first operating system comprises a real-time operating system driver; The plurality of upper layer applications of the second operating system comprise at least two of a multimedia application, a wireless connection application, an office application, an instant messaging application and a data storage application, and the bottom layer application of the second operating system comprises an android operating system driver.
  8. 8. The method of claim 1, wherein the power down instruction is sent in response to triggering a plurality of keys on a steering wheel of the vehicle.
  9. 9. A power-down control system comprises a microcontroller and a microprocessor, wherein, The microcontroller is configured to send a power-down notification message to a first operating system in the microprocessor through a first general purpose input/output port in response to receiving a power-down instruction; the microprocessor is configured to respond to the power-down notification message and execute a closing operation on a plurality of upper-layer applications of the first operating system according to a first preset rule, wherein the first preset rule is determined based on at least one of screen related information and application association numbers corresponding to the upper-layer applications of the first operating system; the microprocessor is further configured to send a first response message to the microcontroller through a second general purpose input/output port in response to sequentially executing a shutdown operation for a plurality of upper layer applications and a lower layer application of the first operating system; The microcontroller is further configured to perform a power-down operation on the first operating system in response to receiving the first response message.
  10. 10. A domain controller comprising the power down control system of claim 9.

Description

Power-down control method, power-down control system and domain controller Technical Field The disclosure relates to the field of vehicle control, and in particular relates to a power-down control method, a power-down control system and a domain controller. Background For the power-down control of an operating system in a vehicle (such as automatic driving), a forced power-down mode is generally adopted, the power-down mode is relatively simple and rough, when the system is running, the sudden power-down of a capacitor easily causes system abnormality, and the safety requirement cannot be met. Disclosure of Invention The embodiment of the disclosure provides a power-down control method, a power-down control system and a domain controller. In a first aspect, an embodiment of the present disclosure proposes a power-down control method, including a microcontroller sending a power-down notification message to a first operating system in the microprocessor through a first general purpose input/output port in response to receiving a power-down instruction, the microprocessor executing a power-down operation on a plurality of upper applications of the first operating system according to a first preset rule in response to receiving the power-down notification message, where the first preset rule is determined based on at least one of screen related information and an application association number corresponding to the upper applications of the first operating system, the microprocessor sending a first response message to the microcontroller through a second general purpose input/output port in response to sequentially executing the power-down operation on the plurality of upper applications and a bottom application of the first operating system, and the microcontroller executing the power-down operation on the first operating system in response to receiving the first response message. In a second aspect, embodiments of the present disclosure provide a power-down control system including a microcontroller and a microprocessor. The microcontroller is configured to send a power-down notification message to a first operating system in the microprocessor through a first general purpose input/output port in response to receiving the power-down notification message, the microprocessor is configured to execute a power-down operation on a plurality of upper applications of the first operating system according to a first preset rule in response to receiving the power-down notification message, the first preset rule is determined based on at least one of screen related information and an application association number corresponding to the upper applications of the first operating system, the microprocessor is further configured to send a first response message to the microcontroller through a second general purpose input/output port in response to sequentially executing the power-down operation on the first operating system. In a third aspect, embodiments of the present disclosure provide a domain controller including a power down control system as described in any one of the implementations of the second aspect above. According to the power-down control method, the power-down control system and the domain controller, the microcontroller and the microprocessor can realize efficient interaction through the respective GPIO ports, specifically, the microcontroller can send a power-down notification message to the microprocessor through the first GPIO port under the condition that a power-down instruction is received, and the microprocessor can sequentially close the upper layer application and the bottom layer application of the first operating system according to the sequence after receiving the power-down notification message, and can send feedback (namely, a first response message) to the microcontroller through the second GPIO port after the upper layer application and the bottom layer application of the first operating system are sequentially closed, when the first operating system has a plurality of upper layer applications, the microcontroller can realize regular power-down operation on the plurality of upper layer applications according to the first preset rule determined based on at least one of screen related information and application association numbers corresponding to the upper layer application, and further the microcontroller can acquire the state that the first operating system basically enters into a stop operation state after receiving the feedback, the power-down operation is executed on the microcontroller, the power-down operation can be forcedly reduced under the condition that the running stability of the first operating system in the whole power-down process is ensured, the reliability of the power-down system is effectively reduced, the reliability of the power-down system is improved, the reliability is improved, and the reliability is guaranteed, and the reliability is improved, and the reliability i