CN117234175A - Dormancy control method, device, equipment and medium - Google Patents

Dormancy control method, device, equipment and medium Download PDF

Info

Publication number
CN117234175A
CN117234175A CN202210644867.5A CN202210644867A CN117234175A CN 117234175 A CN117234175 A CN 117234175A CN 202210644867 A CN202210644867 A CN 202210644867A CN 117234175 A CN117234175 A CN 117234175A
Authority
CN
China
Prior art keywords
vehicle
sleep
core
wake
event
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
Application number
CN202210644867.5A
Other languages
Chinese (zh)
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.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing Rockwell 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 Beijing Rockwell Technology Co Ltd filed Critical Beijing Rockwell Technology Co Ltd
Priority to CN202210644867.5A priority Critical patent/CN117234175A/en
Publication of CN117234175A publication Critical patent/CN117234175A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The embodiment of the disclosure provides a sleep control method, a sleep control device, sleep control equipment and a sleep control medium. The dormancy control method comprises the following steps: monitoring for a sleep trigger event for the vehicle; responsive to monitoring the sleep trigger event, freezing each task of the master controller running on the slave core; the method comprises the steps that a main core of the main controller monitors a dormancy wakeup event aiming at a vehicle, and the dormancy wakeup event is used for waking the vehicle. Therefore, according to the sleep control method provided by the embodiment of the disclosure, after the sleep trigger event aiming at the vehicle is monitored, the vehicle is controlled to enter the sleep state, each task running on the slave core of the master controller is frozen, and only the master core of the master controller monitors the sleep wake event. The method has the advantages that the complete dormancy of the slave core of the master controller is realized, the power consumption of the vehicle in the dormant state is reduced, the waste of battery energy is further reduced, and the cruising ability of the battery is improved.

Description

Dormancy control method, device, equipment and medium
Technical Field
The disclosure relates to the technical field of vehicles, and in particular relates to a sleep control method, a sleep control device, sleep control equipment and a sleep control medium.
Background
With further improvement of the vehicle performance requirements of users, the main controllers of the existing vehicles are mostly multi-core controllers.
In the related art, when a vehicle is in a sleep state, each core of the multi-core controller periodically monitors whether a sleep wakeup event wakes up the vehicle based on the multi-core controller, and wakes up the vehicle when the sleep wakeup event is monitored. However, when the vehicle is in a sleep state, each core of the multi-core controller circularly monitors a sleep wake-up event, so that battery power consumption in the sleep state can be increased, and waste of battery energy is caused.
Disclosure of Invention
In order to solve the technical problems, the present disclosure provides a sleep control method, a sleep control device, a sleep control apparatus, and a sleep control medium.
In a first aspect, the present disclosure provides a sleep control method, including:
monitoring for a sleep trigger event for the vehicle;
responsive to monitoring the sleep trigger event, freezing each task of the master controller running on the slave core;
the method comprises the steps that a main core of the main controller monitors a dormancy wakeup event aiming at a vehicle, and the dormancy wakeup event is used for waking the vehicle.
In a second aspect, the present disclosure provides a sleep control apparatus, comprising:
a monitoring module for monitoring sleep trigger events for a vehicle;
the freezing module is used for responding to the detection of the dormancy triggering event and freezing each task of the slave core of the master controller;
The monitoring module is used for monitoring a dormancy wakeup event aiming at the vehicle through a main core of the main controller, wherein the dormancy wakeup event is used for waking the vehicle.
In a third aspect, the present disclosure provides a sleep control apparatus, including:
a processor;
a memory for storing executable instructions;
the processor is configured to read executable instructions from the memory and execute the executable instructions to implement the sleep control method of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the sleep control method of the first aspect.
In at least one embodiment provided by the disclosure, after the sleep trigger event for the vehicle is monitored, only the master core of the master controller monitors the sleep wake event for the vehicle, and freezes each task running on the slave core of the master controller, so that the slave core enters the sleep state, the complete sleep of the slave core of the master controller is realized, the power consumption of the vehicle in the sleep state is reduced, the waste of battery energy is further reduced, and the cruising ability of the battery is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flowchart of an implementation of a conventional sleep control method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a sleep control method according to an embodiment of the disclosure;
fig. 3 is a flowchart illustrating another sleep control method according to an embodiment of the disclosure;
fig. 4 is a flowchart illustrating another sleep control method according to an embodiment of the disclosure;
fig. 5 is a flowchart illustrating an implementation of another sleep control method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a sleep control device according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of a sleep control device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
In general, when a vehicle is not in use, the vehicle enters a sleep state in order to avoid static high power consumption of the vehicle. When the vehicle enters a sleep state, the core of the vehicle main controller only keeps a simple monitoring function, monitors whether a sleep wake-up event is generated to wake the vehicle, and turns off other functions with high power consumption.
Monitoring whether there is a sleep wakeup event to wake up the vehicle requires sensing the sleep wakeup event first, usually a plurality of electronic control units ((Electronic Control Unit, ECU)) are installed on the vehicle to sense external operation events for the vehicle, and a part of ECU on the vehicle is preset to sense the sleep wakeup event for the vehicle.
Taking an electric automobile as an example, part of ECUs on the automobile are set as wake-up source ECUs on the electric automobile, an event perceived by the wake-up source ECUs is used as a sleep wake-up event of the automobile, and the automobile can be awakened after the automobile main controller monitors the sleep wake-up event perceived by the wake-up source ECUs.
Currently, common wake source ECU are, for example: a door wake source ECU, a screen wake source ECU, a seat wake source ECU, and the like.
Illustratively, when a user opens a door, the door wake source ECU may sense the door open event; when a user slides a central control screen on a vehicle, a screen wake-up source ECU can sense a touch event of the central control screen; the seat wake source ECU may sense a compression event or the like when the user sits on the vehicle. It will be appreciated that the above events occur, typically when a user enters the vehicle or wants to start the vehicle, and the user needs to wake the vehicle in a dormant state.
Meanwhile, the existing vehicle main controllers are all multi-core controllers. When a vehicle enters a sleep state, based on a multi-core controller, the implementation principle of the existing technical scheme is as shown in fig. 1: the method comprises the steps that a main controller of a vehicle monitors a dormancy trigger event, an ECU of a wake source is enabled to enter a low-power-consumption working state, a non-wake source is enabled to enter a complete dormancy state, then each core of a multi-core controller can independently start a task, and whether the dormancy wake event exists or not is monitored in a circulating mode.
However, each core starts a separate task, and periodically monitors whether there is a sleep wakeup event, which increases battery power consumption in the sleep state and causes waste of battery energy.
In view of the above problems, embodiments of the present disclosure provide a sleep control method, apparatus, device, and medium. The sleep control method will be described first with reference to specific embodiments. Fig. 2 is a flow chart of a conventional sleep control method according to an embodiment of the disclosure.
In the embodiment of the present disclosure, the sleep control method may be performed by a main controller of a vehicle. The master controller of the vehicle may be a processor on the vehicle.
It should be noted that, before executing the sleep control method provided in this embodiment, it is necessary to preset which ECU belongs to the wake-up source ECU and which belong to the non-wake-up source ECU on the vehicle.
For example, a door wake source ECU, a screen wake source ECU, a seat wake source ECU, and the like are set in advance as wake source ECUs; the vehicle-mounted camera ECU, the battery management module ECU, the sound ECU and the like are preset as the wake-up source ECU.
It should be noted that, the wake source ECU and the non-wake source ECU may be set according to actual needs, which is not limited by the embodiments of the present disclosure.
After the above setting is completed, the method provided by the embodiment of the present disclosure is executed.
As shown in fig. 2, the sleep control method provided in the embodiment of the present disclosure includes the following steps S210 to S230:
S210, monitoring a dormancy trigger event for the vehicle.
As described above, the main controller of the vehicle controls the vehicle to enter the sleep state in order to avoid static high power consumption of the vehicle when the vehicle is not in use. In the embodiment of the disclosure, a main controller of a vehicle detects a sleep trigger event for the vehicle in real time, and determines whether to control the vehicle to enter a sleep state according to a monitoring result. When the main controller of the vehicle monitors that the dormancy triggering event aiming at the vehicle exists, the vehicle is controlled to enter a dormancy state, otherwise, the vehicle is kept in a normal working state.
In some embodiments, the main controller of the vehicle may detect the sleep trigger event for the vehicle in real time, and determine whether to control the vehicle to enter the sleep state according to the monitoring result may be: firstly, a main controller of the vehicle judges whether a person is on the vehicle or not by utilizing data acquired by a camera installed on the vehicle and/or a seat pressure sensor installed on the vehicle, and then the main controller of the vehicle further judges whether the person is always not on the vehicle or not in a preset time. If no person is present on the vehicle for a preset time, a vehicle sleep event is triggered. Further, the main controller of the vehicle controls the vehicle to make a sleep state. Otherwise, the vehicle is kept in an operating state.
In other embodiments, the main controller of the vehicle may detect the sleep trigger event for the vehicle in real time, and determine whether to control the vehicle to enter the sleep state according to the monitoring result may be: the main controller of the vehicle monitors whether a button on the vehicle associated with the vehicle entering a sleep state is operated. When a user operates a button on the vehicle associated with the vehicle entering a sleep state, a vehicle sleep event is triggered. Further, the main controller of the vehicle controls the vehicle to enter a sleep state. Otherwise, the normal working state is maintained.
In still other embodiments, other methods may be used as to whether the vehicle's main controller has detected a sleep trigger event for the vehicle, as embodiments of the present disclosure are not limited in this regard.
S220, in response to the detection of the sleep trigger event, freezing each task of the slave core of the master controller.
Typically, to quickly respond to user instructions, the master controller is typically a multi-core controller. And the master core of the master controller and the slave core of the master controller are distinguished on the master controller, and the master core on the master controller and the slave core of the master controller can respectively execute different tasks corresponding to different user instructions. The primary core of the primary controller and the secondary core of the primary controller are distinguished by the inherent attribute of the primary controller, which is not described herein.
In the embodiment of the disclosure, the master controller is a multi-core controller. After the master controller monitors the sleep trigger event, each task running on the slave core of the master controller is frozen.
Wherein, each task running on the slave core comprises a monitoring task running on the slave core, a task responding to a user instruction on the slave core and the like.
In some embodiments, freezing each task of the master controller running on the slave core may be specifically: target values are written into registers of the slave cores of the master controller, and the target values are used for freezing each task running on the slave cores of the master controller.
Wherein the target value may be a value representing a slave core state of the master controller. For example, 0 indicates that the slave core of the master controller is in a normal operation state, and 1 is in a frozen state.
In the disclosed embodiment, the master controller responds to the sleep trigger event, and the master core of the master controller starts a listening task. The monitoring task sends a notification instruction to a register of a slave core of the master controller through inter-core communication. The notification instruction is used for notifying the register of the slave core of the master controller, after receiving the notification instruction, the register of the slave core of the master controller writes a target value, for example, 1, and after judging the target value of the register, the master controller freezes each task running on the slave core.
S230, monitoring a dormancy wakeup event aiming at the vehicle through a main core of the main controller, wherein the dormancy wakeup event is used for waking the vehicle.
In the embodiment of the disclosure, after the main controller monitors the sleep trigger event, the main core of the main controller of the vehicle starts a monitoring task, and the monitoring task is executed to perform cyclic monitoring on a plurality of wake-up source ECUs preset on the vehicle. And if the monitoring task monitors that at least one of a plurality of wake-up source ECUs preset on the vehicle senses a sleep wake-up event, waking up the vehicle.
In some embodiments, the cycle listening performed by the listening task on the multiple wake-up source ECUs preset on the vehicle may be: the monitoring task sends a request to each preset awakening source ECU on the vehicle at intervals of preset time, and obtains a dormancy awakening event identifier corresponding to each preset awakening source ECU on the vehicle, wherein the dormancy awakening event identifier is used for indicating whether the preset awakening source ECU senses the dormancy awakening event. For example, in a sleep state of the vehicle, a sleep wake event identifier corresponding to each preset wake source ECU on the vehicle is 0, and when the preset wake source ECU on the vehicle senses the sleep wake event, the sleep wake event identifier corresponding to the preset wake source ECU on the vehicle is changed to be 1, so that a main core of the main controller monitors that the preset wake source ECU on the vehicle senses the sleep wake event according to the sleep wake event identifier.
In other embodiments, the cycle monitoring performed by the monitoring task on the multiple wake-up source ECUs preset on the vehicle may also be: registering each preset wake-up source ECU on the vehicle to the main controller, and acquiring a sleep wake-up event identifier corresponding to each preset wake-up source ECU on the main controller by the monitoring task at intervals of preset time. The sleep wakeup event identifier is the same as the above implementation manner, and will not be described in detail herein.
According to the sleep control method provided by the embodiment of the disclosure, after the sleep trigger event aiming at the vehicle is monitored, the vehicle is controlled to enter a sleep state, all tasks running on the slave core of the master controller are frozen, and only the master core of the master controller monitors the sleep wake event of the vehicle. The method has the advantages that the complete dormancy of the slave core of the master controller is realized, the power consumption of the vehicle in the dormant state is reduced, the waste of battery energy is further reduced, and the cruising ability of the battery is improved.
Optionally, in response to detecting the sleep trigger event, the sleep control method further comprises: the clock frequency of the master core of the master controller is reduced.
In the embodiment of the disclosure, the clock frequency of the main core of the main controller may be the working frequency when the main core of the main controller works.
Alternatively, the clock frequency of the main controller may be reduced by the listening task in step S230.
When the vehicle is in a sleep state, the clock frequency of the master core of the master controller may specifically be a cyclic listening frequency of listening tasks initiated by the master core of the master controller. Thus, the clock frequency of the master core of the master controller is reduced, in particular, the frequency of the cyclic snoop sleep wakeup events of the snoop task is reduced.
Optionally, in response to detecting the sleep trigger event, the sleep control method further comprises: and controlling a preset wake-up source ECU on the vehicle to enter a low-power-consumption working state, wherein the low-power-consumption working state is used for enabling a main core of the main controller to monitor a sleep wake-up event through the wake-up source ECU.
In the embodiment of the present disclosure, the controlling the wake source ECU preset on the vehicle to enter the low power consumption working state may be: the main controller responds to the dormancy trigger event and sends a notification instruction to the battery management module. The notification instruction is used for notifying the battery management module to supply power to all the preset wake-up source ECUs on the vehicle at low power, so that all the preset wake-up source ECUs on the vehicle enter a low-power-consumption working state.
Optionally, in response to detecting the sleep trigger event, the sleep control method further comprises: and controlling a preset non-wake source ECU on the vehicle to enter a full sleep state.
In the embodiment of the present disclosure, the control of the non-wake source ECU preset on the vehicle to enter the fully dormant state may be: the main controller responds to the dormancy trigger event and sends a notification instruction to the battery management module. The notification instruction is used for notifying the battery management system to stop supplying power to all the non-wake-up source ECUs preset on the vehicle, so that all the non-wake-up source ECUs preset on the vehicle enter a full sleep state.
In another embodiment of the present disclosure, after the vehicle enters the sleep state, the consumption of the vehicle may be further reduced, and the sleep control method for further reducing the consumption of the vehicle provided by the present disclosure will be described with reference to fig. 3.
As shown in fig. 3, the sleep control method includes the following steps S310 to S360:
s310, monitoring a dormancy trigger event for the vehicle.
In the embodiment of the present disclosure, this step is the same as step S210, and will not be described here again.
S320, controlling a preset wake source ECU on the vehicle to enter a low-power-consumption working state, wherein the low-power-consumption working state is used for enabling a main core of the main controller to monitor a sleep wake event through the wake source ECU.
In the embodiment of the present disclosure, the method described above may be used to control a wake-up source ECU preset on a vehicle to enter a low-power consumption working state, which is not described herein.
S330, controlling a non-wake-up source ECU preset on the vehicle to enter a full sleep state.
In the embodiment of the present disclosure, the method described above may be used to control the non-wake-up source ECU preset on the vehicle to enter a fully dormant state, which is not described herein.
S340, writing target values into registers of the slave cores of the master controller, wherein the target values are used for freezing each task running on the slave cores of the master controller.
In the embodiment of the present disclosure, the above-described method may be used to write the target value into the register of the slave core of the master controller, and freeze each task running on the slave core of the master controller, which is not described herein.
S350, reducing the clock frequency of the main core of the main controller.
In the embodiment of the present disclosure, the method described above may be used to reduce the clock frequency of the main core of the main controller, which is not described herein.
S360, monitoring a dormancy wakeup event aiming at the vehicle through a main core of the main controller, wherein the dormancy wakeup event is used for waking the vehicle.
In the embodiment of the present disclosure, this step is the same as step S230, and will not be described here again.
According to the sleep control method provided by the embodiment of the disclosure, after the sleep trigger event aiming at the vehicle is monitored, the wake-up source ECU is enabled to enter a low-power-consumption working state, the non-wake-up source ECU is enabled to enter a complete sleep state, and all tasks running on the slave core of the master controller are frozen. Therefore, the embodiment not only realizes the complete dormancy of the non-wake-up source ECU, but also realizes the complete dormancy of the slave core of the master controller, and reduces the power consumption of the vehicle in the dormant state. And after the main controller controls the wake-up source ECU to enter a low-power-consumption working state, controls the non-wake-up source ECU to enter a complete sleep state and freezes each task of the main controller running on the slave core, the clock frequency of the main core of the main controller is reduced, and the power consumption of the vehicle in the sleep state is further reduced.
In yet another embodiment of the present disclosure, the vehicle may also be awakened by a sleep wakeup event after the vehicle enters a sleep state. Optionally, after listening for a sleep wake event for the vehicle by the master core of the master controller, the method further comprises: and responding to the master core of the master controller monitoring the dormancy wakeup event, stopping monitoring the dormancy wakeup event through the master core of the master controller, and waking up the vehicle.
Specifically, in the embodiment of the present disclosure, after the master core of the master controller monitors the sleep wake event, the vehicle is woken up, and the vehicle enters a normal working state.
In the normal working state of the vehicle, the main core of the main controller does not need to monitor whether a preset wake-up source ECU on the vehicle senses the sleep wake-up event, so that the monitoring task started by the main core of the main controller is required to stop monitoring the sleep wake-up event.
In some examples, the snoop task snoop sleep wake event that stops master core initiation of the master controller may be: the monitoring task does not send a request to each wake-up source ECU preset on the vehicle any more, and then stops monitoring the dormancy wake-up event.
In other embodiments, the listening task listening sleep wake event that stops master core initiation of the master controller may also be: the monitoring task does not acquire the dormancy wakeup event identification of each wakeup source ECU registered on the main controller any more, and then stops monitoring the dormancy wakeup event, and stops the monitoring task.
In some embodiments, after stopping listening for the sleep wakeup event, the master controller further stops the listening task and starts a new task for subsequent operations.
Further, waking the vehicle includes: and restoring the main controller to a normal working state.
Specifically, the restoration of the main controller to the normal working state may be: and restoring the master core of the master controller and the slave core of the master controller to a normal working state.
Wherein, the recovery of the main core of the main controller to the normal working state may be: and (3) increasing the clock frequency of the main core of the main controller to the frequency in the normal working state.
In the embodiment of the disclosure, after the master core of the master controller of the vehicle monitors the sleep wake event perceived on any wake source ECU, the master controller first increases the clock frequency of the master core of the master controller to the frequency when in a normal working state.
The recovery of the slave core of the master controller to the normal working state may be: the tasks of the master controller running on the slave cores are resumed.
In the embodiment of the disclosure, after the master controller recovers the clock frequency of the master core of the master controller, a task is started, the task sends a notification instruction to a register of a slave core of the master controller through inter-core communication, and after the notification instruction is received by the register of the slave core of the master controller, the target value is written, for example, 0 is written. After judging the target value of the register, the main controller restores each task running on the slave core.
In some embodiments, waking the vehicle further comprises: and (5) recovering each ECU preset on the vehicle to a normal working state.
Specifically, the restoration of each ECU preset on the vehicle to the normal operating state may be: and all the wake source ECUs preset on the vehicle and the non-wake source ECUs preset on the vehicle are restored to the normal working state.
Wherein, the restoration of the preset wake source ECU on the vehicle to the normal working state can be as follows: and enabling a preset wake-up source ECU on the vehicle to exit the low-power-consumption working state and restore to the normal working state.
In the embodiment of the disclosure, after the master controller increases the clock frequency of the master core of the master controller to the frequency in the normal working state and resumes each task running on the slave core of the master controller, a notification instruction is further sent to the battery management module. The notification instruction is used for notifying the battery management module to supply power to all the preset wake-up source ECUs on the vehicle with normal power, and then all the wake-up source ECUs enter a normal working state.
Wherein, the restoration of the non-wake-up source ECU preset on the vehicle to the normal working state can be as follows: and (3) exiting the non-wake-up source ECU preset on the vehicle from the full sleep state, and restoring the vehicle to the normal working state.
In the embodiment of the disclosure, after the clock frequency of the master core of the master controller is increased to a frequency in a normal working state and each task running on the slave core of the master controller is restored, the master controller further sends a notification instruction to the battery management module, wherein the notification instruction is used for notifying the battery management system to supply power to all non-wake-up source ECUs preset on the vehicle with normal power, and then all the non-wake-up source ECUs preset on the vehicle enter the normal working state.
In the disclosed embodiment, the control sequences of the wake source ECU and the non-wake source ECU preset in the vehicle are not limited.
Fig. 4 is a schematic diagram of another sleep control method according to an embodiment of the disclosure. An example of the sleep control method provided by the present disclosure is described below with reference to fig. 4.
As shown in fig. 4, the sleep control method mainly includes the following steps S410 to S480:
s410, monitoring a dormancy trigger event for the vehicle.
S420, controlling a preset wake-up source ECU on the vehicle to enter a low-power-consumption working state.
S430, controlling a preset non-wake-up source ECU on the vehicle to enter a full sleep state.
S440, writing a target value into a register of the slave core of the master controller, wherein the target value is used for freezing each task running on the slave core of the master controller.
In the embodiment of the present disclosure, the above-described method may be used to write the target value into the register of the slave core of the master controller, and freeze each task running on the slave core of the master controller, which is not described herein.
S450, reducing the clock frequency of the main core of the main controller.
S460, monitoring a sleep wake event perceived by a wake source ECU preset on the vehicle through a main core of the main controller, wherein the sleep wake event is used for waking the vehicle.
In the embodiment of the present disclosure, steps S410 to S460 are the same as steps S310 to S360 in fig. 3, and are not described herein.
S470, responding to the master core of the master controller to monitor the dormancy wakeup event, and stopping monitoring the dormancy wakeup event through the master core of the master controller.
In the embodiment of the present disclosure, the above-described method may be adopted to stop the monitoring of the sleep wake event by the master core of the master controller, which is not described herein.
S480, waking up the vehicle.
In the embodiment of the present disclosure, the method described above may be used to wake up the vehicle, which is not described herein.
Fig. 5 is a flowchart of an implementation of another sleep control method according to an embodiment of the present disclosure. As shown in fig. 5, a further implementation flow of the sleep control method provided by the embodiment of the present disclosure is: the method comprises the steps that a main controller of a vehicle monitors a dormancy trigger event aiming at the vehicle, so that a preset wake-up source ECU on the vehicle enters a low-power-consumption working state; enabling a non-wake-up source ECU preset on a vehicle to enter a complete sleep state; the master core of the master controller of the vehicle starts a sleep-wake event monitoring Task0, the Task0 informs a register of the slave core of the master controller to freeze each Task running on the slave core, and the clock frequency of the master core of the master controller is reduced. And then, the Task0 circularly monitors whether all the preset wake-up source ECUs on the vehicle sense the sleep wake-up event or not at the reduced clock frequency. If the sleep wakeup event is not monitored, the loop monitoring is continued.
And stopping the monitoring Task started by the main core of the main controller and starting a new Task1 after the Task0 monitors that at least one of all the preset wake-up source ECUs on the vehicle senses a sleep wake-up event. The master controller firstly increases the clock frequency of the master core of the master controller to the frequency when in a normal working state, then the Task1 informs the register of the slave core of the master controller, each Task on the slave core is restored, all the pre-set wake-up source ECUs on the vehicle are restored to the normal working state, and the pre-set non-wake-up source ECUs on the vehicle are restored to the normal working state.
Therefore, in the embodiment of the disclosure, when the vehicle is in the sleep state, the preset wake source ECU on the vehicle is enabled to enter the low-power-consumption working state, the preset non-wake source ECU on the vehicle is enabled to enter the complete sleep state, and all tasks running on the slave core of the master controller are frozen, so that the power consumption of the vehicle in the sleep state is reduced, and after the master core of the master controller monitors the sleep wake event, the clock frequency of the master core of the master controller is first increased, all tasks running on the slave core of the master controller are restored, and the efficiency of waking the vehicle is ensured.
Fig. 6 is a schematic structural diagram of a sleep control device according to an embodiment of the disclosure. The sleep control provided by the embodiment of the present disclosure may execute the processing flow provided by the sleep method embodiment, as shown in fig. 6, the sleep control apparatus 60 includes:
A monitoring module 61 for monitoring sleep triggering events for a vehicle;
a freezing module 62 for freezing each task of the master controller running on the slave core in response to monitoring the sleep trigger event;
the monitoring module 63 is configured to monitor, by the master core of the master controller, a sleep wake event for waking up the vehicle.
In some embodiments, the sleep control device 60 further includes a clock frequency reduction module for reducing the clock frequency of the master core of the master controller after the freezing module 62 responds to the detection of the sleep trigger event.
In some embodiments, the sleep control device 60 further includes a wake source ECU control module, configured to control a wake source ECU preset on the vehicle to enter a low power consumption operating state, where the low power consumption operating state is configured to enable the main core of the main controller to monitor a sleep wake event through the wake source ECU.
In some embodiments, the sleep control apparatus 60 further includes a non-wake source ECU control module for controlling a pre-set non-wake source ECU on the vehicle to enter a fully sleep state in response to the detection of a sleep trigger event.
In some embodiments, the freezing module 62 is configured to freeze each task running on the slave core of the master controller, and in particular to write a target value to a register of the slave core of the master controller, the target value being configured to freeze each task running on the slave core of the master controller.
In some embodiments, the sleep control device 60 further includes a stop listening module, a wake-up module. The master core monitoring module is used for monitoring the sleep wake-up event of the vehicle through the master core of the master controller, and responding to the sleep wake-up event monitored by the master core of the master controller; the vehicle is awakened.
In some embodiments, the wake-up module is configured to restore the main controller to a normal operating state when the vehicle is being awakened.
It should be noted that, the sleep control apparatus 60 shown in fig. 6 may perform the steps in the method embodiments shown in fig. 2 to 5, and implement the processes and effects in the method embodiments shown in fig. 2 to 5, which are not described herein.
Embodiments of the present disclosure also provide a sleep control device that may include a processor and a memory that may be used to store executable instructions. The processor may be configured to read the executable instructions from the memory and execute the executable instructions to implement the sleep control method in the above embodiment.
Fig. 7 illustrates a schematic structural diagram of a sleep control device according to an embodiment of the present disclosure. Referring now in particular to fig. 7, a schematic diagram of a configuration of a sleep control device 70 suitable for use in implementing embodiments of the present disclosure is shown.
The sleep control device 70 in the embodiments of the present disclosure may be an electronic device. Among them, the electronic devices may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), wearable devices, and the like, and stationary terminals such as digital TVs, desktop computers, smart home devices, and the like.
Note that the sleep control device 70 shown in fig. 7 is only one example, and should not impose any limitation on the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the sleep control apparatus 70 may include a processing device (e.g., a central processing unit, a graphic processor, etc.) 71, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 72 or a program loaded from a storage device 78 into a Random Access Memory (RAM) 73. In the RAM 73, various programs and data required for the operation of the information processing apparatus 1200 are also stored. The processing device 71, the ROM 72 and the RAM 73 are connected to each other via a bus 74. An input/output (I/O) interface 75 is also connected to bus 74.
In general, the following devices may be connected to the I/O interface 75: input devices 76 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 77 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, etc.; storage 78 including, for example, magnetic tape, hard disk, etc.; and communication means 79. Communication means 79 may allow sleep control device 70 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 shows a sleep control apparatus 70 having various devices, it should be understood that not all of the illustrated devices are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The presently disclosed embodiments also provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the sleep control method in the above embodiments.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 79, or from storage device 78, or from ROM 72. When executed by the processing device 71, the computer program performs the above-described functions defined in the sleep control method of the embodiment of the present disclosure.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP, and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the sleep control apparatus; or may exist alone without being incorporated into the sleep control device.
The computer-readable medium carries one or more programs that, when executed by the sleep control apparatus, cause the sleep control apparatus to perform:
monitoring for a sleep trigger event for the vehicle; responding to the monitored dormancy triggering event, and completely freezing tasks running on the slave cores of the master controller; the method comprises the steps that a main core of the main controller monitors a dormancy wakeup event aiming at a vehicle, and the dormancy wakeup event is used for waking the vehicle.
In an embodiment of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (10)

1. A sleep control method applied to a main controller of a vehicle, the method comprising:
monitoring for a sleep trigger event for the vehicle;
responsive to monitoring the sleep trigger event, freezing each task of the master controller running on a slave core;
and monitoring a dormancy wakeup event aiming at the vehicle through a main core of the main controller, wherein the dormancy wakeup event is used for waking the vehicle.
2. The method of claim 1, wherein the responding to the sleep trigger event is followed by the method further comprising:
the clock frequency of the master core of the master controller is reduced.
3. The method of claim 1, wherein the method further comprises, in response to monitoring a sleep trigger event:
and controlling a preset wake-up source ECU on the vehicle to enter a low-power-consumption working state, wherein the low-power-consumption working state is used for enabling a main core of the main controller to monitor the dormancy wake-up event through the wake-up source ECU.
4. The method of claim 1, wherein the method further comprises, in response to monitoring a sleep trigger event:
and controlling the non-wake-up source ECU preset on the vehicle to enter a full sleep state.
5. The method of claim 1, wherein the freezing each task of the master controller running on a slave core comprises:
and writing target values into registers of the slave cores of the master controller, wherein the target values are used for freezing each task running on the slave cores of the master controller.
6. The method of claim 1, wherein after the master core by the master controller listens for a sleep wake event for the vehicle, the method further comprises:
stopping monitoring the dormancy wakeup event through the main core of the main controller in response to the main core of the main controller monitoring the dormancy wakeup event;
waking up the vehicle.
7. The method of claim 6, wherein the waking the vehicle comprises:
and restoring the main controller to a normal working state.
8. A sleep control device for a main controller of a vehicle, the device comprising:
A monitoring module for monitoring sleep trigger events for the vehicle;
the freezing module is used for responding to the detection of the dormancy triggering event and freezing each task running on the slave core of the master controller;
and the monitoring module is used for monitoring a dormancy wakeup event aiming at the vehicle through the main core of the main controller, wherein the dormancy wakeup event is used for waking the vehicle.
9. A sleep control device, comprising:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the sleep control method of any of the preceding claims 1-7.
10. A computer readable storage medium, characterized in that the storage medium stores a computer program, which when executed by a processor causes the processor to implement the sleep control method as claimed in any one of the preceding claims 1-7.
CN202210644867.5A 2022-06-08 2022-06-08 Dormancy control method, device, equipment and medium Pending CN117234175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210644867.5A CN117234175A (en) 2022-06-08 2022-06-08 Dormancy control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210644867.5A CN117234175A (en) 2022-06-08 2022-06-08 Dormancy control method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117234175A true CN117234175A (en) 2023-12-15

Family

ID=89095427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210644867.5A Pending CN117234175A (en) 2022-06-08 2022-06-08 Dormancy control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117234175A (en)

Similar Documents

Publication Publication Date Title
KR101993569B1 (en) Dynamic adjustment of mobile device based on peer event data
US9116704B1 (en) Delaying the initiation of transitioning to a lower power mode by placing a computer system into an intermediate power mode between a normal power mode and the lower power mode
CN109324833B (en) Method and device for running application program
CN110018901B (en) Memory recovery method and device, computer equipment and computer readable storage medium
CN107407956B (en) Method and system for coordinating operating states among multiple SOCs within a computing device
CN110678825A (en) Low power environment computing system with machine learning functionality
CN108702421B (en) Electronic device and method for controlling applications and components
US10594835B2 (en) Efficient context monitoring
US9880894B2 (en) High availability and energy-efficient watchdog timer
JP5705999B2 (en) Method and system for managing sleep state of an interrupt controller in a portable computing device
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
US9285856B2 (en) Method and system for rapid entry into and for rapid exiting from sleep states for processors of a portable computing device
WO2012087533A1 (en) Minimizing resource latency between processor application states in a portable computing device by using a next-active state set
CN105404558B (en) Method and device for processing events in multiple systems
WO2019128553A1 (en) Application processing method, electronic device, and computer-readable storage medium
WO2016196497A1 (en) Prediction and notification of changes in the operating context of a computing device
WO2016137823A1 (en) Dynamic adjustment of user experience based on system capabilities
CN108646909B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN117234175A (en) Dormancy control method, device, equipment and medium
CN111382694A (en) Face recognition method and device and electronic equipment
CN114816031B (en) Power saving method for terminal equipment, terminal equipment and medium
CN110045812B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN110928745B (en) Deep sleep state abnormality detection method and device, storage medium and terminal
Lautner et al. Sensor-based low power management for mobile platforms
CN109992377B (en) Information processing method, information processing device, computer equipment and computer readable storage medium

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