Power supply control method, power supply control system and target vehicle
By introducing control devices into the vehicle power control system, synchronous power state switching of the central control system and the instrument system is achieved, solving the problem of slow startup of the vehicle system, improving the user experience and saving hardware costs.
Patent Information
- Application Number
- CN202411209935.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In the existing technology, the car system starts up slowly when the vehicle is powered on, and the display screen cannot work in time, affecting the user experience. The existing improvement solutions cannot effectively solve this problem.
By introducing control devices into the power control system, the central control system and the instrument system communicate with the control devices, accurately controlling the power state switching of the central control system and the instrument system according to user instructions, and using the SPI interface to reduce communication delays and achieve synchronous control.
It improves the control efficiency of the central control system and instrument system, ensures the accuracy of power state switching, enhances user experience, and saves hardware costs.
Smart Images

Figure CN118928261B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power management, and in particular to a power control method, a power control system and a target vehicle. Background Art
[0002] With the development of the automotive industry, the vehicle computer system is becoming more and more sophisticated. The vehicle computer is an interactive control device on the vehicle that can realize display, touch and voice interaction functions.
[0003] In existing technologies, when a vehicle is powered on, the computer starts up slowly, and the display screen is inoperative for a long period of time. Existing improvement solutions, such as door-open start and unlock start, cannot completely address the long startup time. For example, when a user is resting in the vehicle and the vehicle is powered on again, the computer still takes a long time to start, seriously affecting the user experience. Summary of the Invention
[0004] In view of this, the present invention provides a power control method, a power control system and a target vehicle to solve the problem that the startup time of the vehicle computer is still long, which seriously affects the user experience.
[0005] In a first aspect, the present invention provides a power supply control method, which is applied to a control device in a power supply control system. The power supply control system also includes a central control system and an instrument system, and both the central control system and the instrument system are communicatively connected to the control device. The method includes:
[0006] Obtaining a user instruction of a target vehicle corresponding to the power control system;
[0007] According to user instructions, determine the target power status corresponding to the central control system and instrument system in the power control system;
[0008] Control the central control system and instrument system to switch from the current power state to the target power state.
[0009] The power control method provided in the embodiment of the present application obtains user instructions for the target vehicle corresponding to the power control system; according to the user instructions, the target power state corresponding to the central control system and the instrument system in the power control system is determined, thereby ensuring the accuracy of the target power state corresponding to the determined central control system and the instrument system. The central control system and the instrument system are controlled to switch from the current power state to the target power state, thereby ensuring the accuracy of controlling the central control system and the instrument system to switch from the current power state to the target power state. In the above method, the central control system and the instrument system are in the same power control system, which facilitates the control of the central control system and the instrument system, and improves the efficiency of controlling the central control system and the instrument system. Moreover, the central control system and the instrument system are both controlled by the control device, thereby ensuring the accuracy of controlling the central control system and the instrument system to switch from the current power state to the target power state. Thus, synchronous control of the central control system and the instrument system is achieved, the smooth experience of the user's sensory senses is enhanced, and hardware costs are saved.
[0010] In an optional embodiment, the user instruction includes shutting down the target vehicle, the target power state includes a target sleep state, and controlling the central control system and the instrument system to switch from the current power state to the target power state includes:
[0011] Sending a first sleep notification to the central control system to switch the central control system to a sleep state and perform a first sleep operation;
[0012] Sending a second sleep notification to the instrument system so that the instrument system performs the second sleep operation, and obtaining the first sleep state corresponding to the central control system, and transmitting the first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system to the control device;
[0013] receiving a first sleep state and a second sleep state sent by the instrument system;
[0014] A third sleep notification is sent to the communication module in the central control system, so that the communication module performs a third sleep operation to control the central control system and the instrument system to switch from the current power state to the target sleep state.
[0015] The power control method provided in the embodiment of the present application sends a first sleep notification to the central control system to switch the central control system to a sleep state, and executes a first sleep operation, thereby controlling the central control system to switch from a current power state to a target sleep state. A second sleep notification is sent to the instrument system to cause the instrument system to execute a second sleep operation and obtain the first sleep state corresponding to the central control system. The first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system are transmitted to the control device, thereby controlling the instrument system to switch from a current power state to a target sleep state. The first sleep state and the second sleep state sent by the instrument system are received to ensure that the sleep states corresponding to the central control system and the instrument system can be accurately obtained. A third sleep notification is sent to the communication module in the central control system to cause the communication module to execute a third sleep operation to control the central control system and the instrument system to switch from the current power state to the target sleep state. Rapid control of the central control system and the instrument system from the current power state to the target sleep state is achieved, which improves efficiency and reduces user waiting time.
[0016] In an optional implementation, sending the first sleep notification to the central control system includes:
[0017] Check whether there is any task being executed in the central control system;
[0018] If there is a task being executed in the central control system, wait for the task to be completed and send a first sleep notification to the central control system;
[0019] If there is no task being executed in the central control system, a first sleep notification is sent to the central control system.
[0020] The power control method provided in the embodiments of the present application detects whether a task is currently being executed in the central control system, thereby ensuring the accuracy of the detection results. If a task is currently being executed in the central control system, the method waits for the task to complete and then sends a first sleep notification to the central control system. If no task is currently being executed in the central control system, the method sends a first sleep notification to the central control system, thereby avoiding shutting down the central control system when a task is currently being executed, which could result in the failure of the task being executed.
[0021] In an optional embodiment, the user instruction includes starting the target vehicle, the target power state includes a target awake state; and controlling the central control system and the instrument system to switch from the current power state to the target power state includes:
[0022] Sending a first wake-up notification to the instrument system to cause the instrument system to exit the sleep state, perform a first wake-up operation, and send a wake-up message to the central control system;
[0023] Receiving a first wake-up state corresponding to the instrument system and a second wake-up state corresponding to the central control system fed back by the instrument system;
[0024] Sending a second wake-up notification to the communication module in the central control system, so that the central control system performs the second wake-up operation and establishes a communication connection with the control device;
[0025] A third wake-up notification is sent to the central control system, so that the central control system performs a third wake-up operation to control the central control system and the instrument system to switch from the current power state to the target wake-up state.
[0026] The power control method provided in an embodiment of the present application sends a first wake-up notification to the instrument system to cause the instrument system to exit a sleep state, execute a first wake-up operation, and send a wake-up message to the central control system, thereby ensuring that the instrument system can be woken up promptly and accurately. Then, the method receives feedback from the instrument system indicating the first wake-up state of the instrument system and the second wake-up state of the central control system, allowing the control device to accurately obtain the wake-up states of the instrument system and the central control system, thereby facilitating accurate control of the instrument system and the central control system. A second wake-up notification is sent to the communication module in the central control system to cause the central control system to execute the second wake-up operation and establish a communication connection with the control device, thereby accurately and promptly waking up the communication mode and waking up related peripherals based on the communication mode. A third wake-up notification is sent to the central control system to cause the central control system to execute the third wake-up operation to control the central control system and the instrument system to switch from the current power state to the target wake-up state. This method quickly controls the central control system and the instrument system to switch from the current power state to the target wake-up state, improving efficiency and reducing user waiting time.
[0027] In an optional embodiment, the user instruction includes remotely controlling the target vehicle to control the central control system and the instrument system to switch from the current power state to the target power state, including:
[0028] Receive remote control notifications sent by the power management module in the power control system;
[0029] According to the remote control notification, the instrument system and central control system wake up;
[0030] Receive the remote task completion notification sent by the power management module;
[0031] According to the notification of completion of remote task execution, the control instrument system and the central control system are put into sleep mode.
[0032] The power control method provided in an embodiment of the present application receives a remote control notification sent by a power management module in a power control system; based on the remote control notification, controls the instrument system and the central control system to wake up, thereby enabling the instrument system and the central control system to execute remote tasks. Furthermore, the method receives a remote task completion notification sent by the power management module, and based on the remote task completion notification, controls the instrument system and the central control system to sleep, thereby controlling the instrument system and the central control system to sleep after the remote task is completed, thereby ensuring the accuracy of control over the instrument system and the central control system.
[0033] In a second aspect, the present invention provides a power supply control method, characterized in that it is applied to a central control system in a power supply control system, the power supply control system also includes a control device and an instrument system, and the central control system is communicatively connected with the instrument system and the control device, and the method includes:
[0034] receiving a first state transition notification sent by the control device;
[0035] Based on the first state transition notification, an operation corresponding to the first state transition notification is performed to switch from the current power state to the target power state.
[0036] The power control method provided in the embodiment of the present application receives a first state transition notification sent by a control device, and based on the first state transition notification, executes an operation corresponding to the first state transition notification to switch from the current power state to the target power state, thereby ensuring the accuracy of executing the corresponding operation and realizing accurate and rapid switching from the current power state to the target power state under the control of the control device.
[0037] In an optional implementation, the first state transition notification is a first sleep notification; and based on the first state transition notification, performing an operation corresponding to the first state transition notification to switch from the current power state to the target power state includes:
[0038] Based on the first sleep notification, controlling the state machine to switch to a sleep state;
[0039] Control the shutdown of peripheral devices connected to the central control system, and shut down the operating system corresponding to the central control system and the software applications in the operating system.
[0040] The power control method provided in the embodiment of the present application controls the state machine to switch to the sleep state based on the first sleep notification, ensuring the accuracy of the control state machine switching to the sleep state. The method controls the shutdown of peripheral devices communicating with the central control system, and shuts down the operating system corresponding to the central control system and the software applications within the operating system, thereby enabling the central control system to switch from the current power state to the target power state.
[0041] In an optional implementation, the state transition notification is a first wake-up notification; and based on the state transition notification, performing an operation corresponding to the state transition notification includes:
[0042] Based on the first wake-up notification, controlling the state machine to exit the sleep state;
[0043] Ensure that the software applications in the operating system corresponding to the central control system are in a working state;
[0044] Control the peripheral devices connected to the central control system to turn on and wake up the operating system in the central control system.
[0045] The power control method provided in the embodiment of the present application controls the state machine to exit the sleep state based on the first wake-up notification, ensuring the accuracy of the state machine's exit from the sleep state. The method controls the software applications in the operating system corresponding to the central control system to be in an operational state; controls the peripheral devices communicating with the central control system to be turned on, and wakes up the operating system in the central control system, thereby achieving a switch from the current power state to the target wake-up state.
[0046] In a third aspect, the present invention provides a power control method, which is applied to an instrument system in a power control system. The power control system also includes a control device and a central control system. The instrument system is in communication with the central control system and the control device. The method includes:
[0047] receiving a second state transition notification sent by the control device;
[0048] Based on the second state transition notification, an operation corresponding to the second state transition notification is performed to switch from the current power state to the target power state.
[0049] The power control method provided in an embodiment of the present application receives a second state transition notification sent by a control device; based on the second state transition notification, executes an operation corresponding to the second state transition notification to switch from the current power state to the target power state. This ensures the accuracy of executing the corresponding operation, enabling accurate and rapid switching from the current power state to the target power state under the control of the control device.
[0050] In an optional implementation, the state transition notification is a second sleep notification; and based on the second state transition notification, performing an operation corresponding to the second state transition notification to switch from the current power state to the target power state includes:
[0051] Based on the second sleep notification, play the guest-sending animation and feedback the completion status of the playback to the control device;
[0052] Determine whether there is a display requirement;
[0053] If there is no display demand, a notification to close the instrument screen is sent to the control device;
[0054] If there is a display requirement, wait until the display is completed and send a notification to the control device to close the instrument screen;
[0055] Determine whether the vehicle network of the target vehicle corresponding to the power control system is dormant;
[0056] If the vehicle network is not dormant, continue waiting;
[0057] If the vehicle network is dormant, obtain the first dormant state corresponding to the central control system;
[0058] If the central control system is in sleep mode, the instrument system is controlled to be in sleep mode, and the first sleep mode corresponding to the central control system and the second sleep mode corresponding to the instrument system are transmitted to the control device.
[0059] The power control method provided in the embodiment of the present application plays a farewell animation based on the second sleep notification, and feeds back the playback completion status to the control device, so that the control device can receive the playback completion status of the instrument system. Determine whether there is a display requirement; if there is no display requirement, send a notification to close the instrument screen to the control device; if there is a display requirement, wait for the display to be completed, and then send a notification to close the instrument screen to the control device, thereby avoiding sending a notification to close the instrument screen to the control device when there is a display requirement, causing the control device to close the instrument screen, resulting in the inability to complete the display requirement and causing inconvenience to the user. Determine whether the entire vehicle network of the target vehicle corresponding to the power control system is in sleep mode; if the entire vehicle network is not in sleep mode, continue to wait; if the entire vehicle network is in sleep mode, obtain the first sleep mode corresponding to the central control system, thereby avoiding the instrument system from sleeping when the entire vehicle network is not in sleep mode, thereby failing to complete a specific task. If the central control system is in sleep mode, control the instrument system to sleep mode, and transmit the first sleep mode corresponding to the central control system and the second sleep mode corresponding to the instrument system to the control device.
[0060] In an optional implementation, the state transition notification is a second wake-up notification; and based on the state transition notification, performing an operation corresponding to the state transition notification includes:
[0061] exiting the dormant state based on the second wake-up notification;
[0062] Send a wake-up message to the central control system;
[0063] Feedback to the control device the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system;
[0064] Play the welcome animation and detect whether the instrument screen is turned on;
[0065] If the instrument screen is not turned on, a request to turn on the instrument screen is sent to the control device.
[0066] The power control method provided in this embodiment of the application exits the sleep state based on the second wake-up notification, ensuring the accuracy of the exit from the sleep state. A wake-up message is sent to the central control system; the corresponding first wake-up state of the instrument system and the corresponding second wake-up state of the central control system are fed back to the control device; a welcome animation is played and a check is made to see if the instrument screen is turned on; if the instrument screen is not turned on, a request to turn on the instrument screen is sent to the control device, thereby switching the instrument system from the current power state to the target wake-up state.
[0067] In a fourth aspect, the present invention provides a power supply control system, which includes a control device, a central control system and an instrument system, wherein the central control system and the instrument system are both communicatively connected to the control device, and the central control system is communicatively connected to the instrument system; wherein the control device is used to execute the power supply control method of the above-mentioned first aspect or any corresponding embodiment thereof; the central control system is used to execute the power supply control method of the above-mentioned second aspect or any corresponding embodiment thereof; and the instrument system is used to execute the power supply control method of the above-mentioned third aspect or any corresponding embodiment thereof.
[0068] In a fifth aspect, the present invention provides a target vehicle, which includes the power supply control system described in the fourth aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0070] Figure 1 is a schematic structural diagram of a power supply control system according to an embodiment of the present invention;
[0071] Figure 2 is a flow chart of a first power control method according to an embodiment of the present invention;
[0072] Figure 3 is a flow chart of a second power supply control method according to an embodiment of the present invention;
[0073] Figure 4 2 is a schematic diagram of a process for controlling the central control system and the instrument system to sleep according to an embodiment of the present invention;
[0074] Figure 5 is a flow chart of a third power control method according to an embodiment of the present invention;
[0075] Figure 61 is a schematic diagram of a process for controlling the central control system and the instrument system to wake up according to an embodiment of the present invention;
[0076] Figure 7 is a flowchart of a fourth power control method according to an embodiment of the present invention;
[0077] Figure 8 This is a schematic diagram of a process for remotely waking up a central control system and an instrument system according to an embodiment of the present invention;
[0078] Figure 9 is a flow chart of a power control method corresponding to a central control system according to an embodiment of the present invention;
[0079] Figure 10 is a flow chart of a power supply control method corresponding to an instrument system according to an embodiment of the present invention;
[0080] Figure 11 is a schematic structural diagram of another power supply control system according to an embodiment of the present invention;
[0081] Figure 12 is a diagram of internal components of an MCU according to an embodiment of the present invention;
[0082] Figure 13 is a flow chart of MCU power supply tasks according to an embodiment of the present invention;
[0083] Figure 14 4 is a power state machine switching flow chart according to an embodiment of the present invention. DETAILED DESCRIPTION
[0084] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0085] With the development of the automotive industry, the vehicle computer system is becoming more and more sophisticated. The vehicle computer is an interactive control device on the vehicle that can realize display, touch and voice interaction functions.
[0086] In related technologies, when a vehicle is powered on, the computer starts up slowly, and the display screen is inoperative for a long period of time. Existing improvement solutions, such as door-open start and unlock start, cannot completely address the long startup time. For example, when a user is resting in the vehicle and the vehicle is powered on again, the computer still takes a long time to start, seriously affecting the user experience.
[0087] Based on this, the embodiment of the present application provides a power supply control method, such as Figure 1 As shown, the control device used in the power control system also includes a central control system and an instrument system, and both the central control system and the instrument system are connected to the control device for communication. The central control system and the instrument system are both set up in the same SOC (System on Chip) system, that is, the central control system and the instrument system are in the same "system-level chip" or "system on chip". Among them, the central control system and the instrument system communicate using SPI (Serial Peripheral Interface), which reduces a large amount of CAN bus communication and improves data transmission efficiency. Among them, the control device can be an MCU or other control device.
[0088] Specifically, the control device obtains user instructions for the target vehicle corresponding to the power control system; based on the user instructions, the target power state corresponding to the central control system and the instrument system in the power control system is determined, thereby ensuring the accuracy of the target power state corresponding to the determined central control system and the instrument system. The central control system and the instrument system are controlled to switch from the current power state to the target power state, thereby ensuring the accuracy of controlling the central control system and the instrument system to switch from the current power state to the target power state. In the above method, the central control system and the instrument system are in the same power control system, which facilitates the control of the central control system and the instrument system, and improves the efficiency of controlling the central control system and the instrument system. Moreover, the central control system and the instrument system are both controlled by the control device, thereby ensuring the accuracy of controlling the central control system and the instrument system to switch from the current power state to the target power state. Thus, synchronous control of the central control system and the instrument system is achieved, which improves the smooth experience of the user's sensory senses and saves hardware costs.
[0089] According to an embodiment of the present invention, an embodiment of a power control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0090] In this embodiment, a power control method is provided, which is applied to a control device in a power control system. The power control system also includes a central control system and an instrument system. Both the central control system and the instrument system are in communication with the control device. Figure 2 FIG. 1 is a flow chart of a power control method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0091] Step S101: obtaining a user instruction of a target vehicle corresponding to the power supply control system.
[0092] Optionally, the control device in the power control system can monitor the body signal corresponding to the target vehicle and then determine the user instruction based on the body signal.
[0093] Among them, the vehicle body signal may include a vehicle body ignition signal, a door opening signal, a vehicle locking signal, etc. The embodiment of the present application does not specifically limit the vehicle body signal.
[0094] For example, if the vehicle body signal indicates the ignition is off and the doors are locked, the user instruction is determined to be to close the target vehicle; if the vehicle body signal indicates the ignition is off and the driver's door is open, the user instruction is determined to be to close the target vehicle; if the vehicle body signal indicates the ignition is off and no other vehicle body signal is detected within a preset time period, the user instruction is determined to be to close the target vehicle. If the vehicle body signal indicates the doors are unlocked and the doors are open, the user instruction is determined to be to open the target vehicle; if the vehicle body signal indicates the doors are unlocked and no other vehicle body signal is detected within a preset time period, the user instruction is determined to be to open the target vehicle.
[0095] Optionally, the control device in the power control system may also receive user instructions sent by other control devices in the target vehicle.
[0096] The embodiment of the present application does not specifically limit the manner in which the control device in the power control system obtains the user instruction of the target vehicle corresponding to the power control system.
[0097] Step S102: determining target power states corresponding to the central control system and the instrument system in the power control system according to a user instruction.
[0098] Specifically, the control device in the power control system can determine the target power states corresponding to the central control system and the instrument system in the power control system according to the correspondence between the user instruction and the target power states corresponding to the central control system and the instrument system.
[0099] Optionally, if the user instruction is to shut down the target vehicle, the target power state corresponding to the central control system and the instrument system in the power control system is determined to be a target dormant state.
[0100] Optionally, if the user instruction is to start the target vehicle, the target power state corresponding to the central control system and the instrument system in the power control system is determined to be the target awakening state.
[0101] Step S103: Control the central control system and the instrument system to switch from the current power state to the target power state.
[0102] Specifically, after determining the target power states corresponding to the central control system and the instrument system, the control device controls the central control system and the instrument system to switch from the current power state to the target power state based on a preset operation.
[0103] This step will be described in detail below.
[0104] The power control method provided in this embodiment obtains user instructions for the target vehicle corresponding to the power control system; based on the user instructions, the target power state corresponding to the central control system and the instrument system in the power control system is determined, thereby ensuring the accuracy of the target power state corresponding to the determined central control system and the instrument system. The central control system and the instrument system are controlled to switch from the current power state to the target power state, thereby ensuring the accuracy of controlling the central control system and the instrument system to switch from the current power state to the target power state. In the above method, the central control system and the instrument system are in the same power control system, which facilitates the control of the central control system and the instrument system, and improves the efficiency of controlling the central control system and the instrument system. Moreover, the central control system and the instrument system are both controlled by the control device, thereby ensuring the accuracy of controlling the central control system and the instrument system to switch from the current power state to the target power state. Thus, synchronous control of the central control system and the instrument system is achieved, which improves the smooth experience of the user's sensory organs and saves hardware costs.
[0105] In this embodiment, a power control method is provided, which is applied to a control device in a power control system. The power control system also includes a central control system and an instrument system. Both the central control system and the instrument system are in communication with the control device. Figure 3 FIG. 1 is a flow chart of a power control method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0106] Step S201: obtaining a user instruction of a target vehicle corresponding to the power supply control system.
[0107] For details about this step, please refer to the above description of step S101 and will not be repeated here.
[0108] Step S202: determining target power states corresponding to the central control system and the instrument system in the power control system according to a user instruction.
[0109] For details about this step, please refer to the above description of step S102 and will not be repeated here.
[0110] Step S203: Control the central control system and the instrument system to switch from the current power state to the target power state.
[0111] In an optional embodiment of the present application, the user instruction includes shutting down the target vehicle, and the target power state includes a target sleep state. Specifically, for example, the above step S203 "controlling the central control system and the instrument system to switch from the current power state to the target power state" may include the following steps:
[0112] Step S2031: Send a first sleep notification to the central control system to switch the central control system to a sleep state and perform a first sleep operation.
[0113] Specifically, the above step S2031 may include the following steps:
[0114] Step a1: Detect whether there is a task being executed in the central control system.
[0115] Optionally, the control device can use a dedicated task monitoring tool or software to monitor the task status, process information, and resource usage in the central control system in real time. The task status, process information, and resource usage in the central control system can be used to determine whether a task is being executed.
[0116] Optionally, the control device may also check the status of the task scheduler and the task queue in the central control system, and determine whether there is an executing task in the central control system based on the information provided by the task scheduler about the currently executing tasks and the tasks waiting to be executed.
[0117] Step a2: If there is a task being executed in the central control system, wait for the task being executed to be completed and send a first sleep notification to the central control system.
[0118] Specifically, if there is a task being executed in the central control system, the control device may wait for the task being executed to be completed and send a first sleep notification to the central control system.
[0119] Step a3: If there is no task being executed in the central control system, a first sleep notification is sent to the central control system.
[0120] Specifically, if there is no task being executed in the central control system, a first sleep notification is sent to the central control system based on the communication connection with the central control system.
[0121] Optionally, the control device may send the first sleep notification to the central control system by pulling down the first target GPIO pin.
[0122] Among them, the number of the first target GPIO pins can be one, two, or other numbers. The embodiment of the present application does not specifically limit the number of the first target GPIO pins.
[0123] For example, the control device can pull down GPIO1 and GPIO2 at the same time to send a first sleep notification to the central control system. GPIO1 is a hard-wired GPIO between the control device and the SOC system, used by the control device to notify the central control system to enter / exit the STR state (a high level indicates no screen wake-up); GPIO2 is a hard-wired GPIO between the control device and the SOC system, used by the control device to notify the central control system to enter / exit the STR state (a high level indicates screen wake-up). Note: When the MCU controls the central control system to sleep, GPIO1 and GPIO2 are both low.
[0124] After receiving the first sleep notification, the central control system controls the state machine to switch to the sleep state, controls the peripherals connected to the central control system to shut down, and shuts down the operating system corresponding to the central control system and the software applications in the operating system.
[0125] For example, after the control state machine switches to the sleep state, the central control system can notify PMS (PowerManagerService, Android management service) to execute sleep. PMS turns off the screen, turns off USB, Bluetooth, WiFi and other related peripherals, and sleeps the Android operating system in the central control system, and closes the software applications in the operating system corresponding to the central control system.
[0126] Step S2032: Send a second sleep notification to the instrument system to enable the instrument system to perform a second sleep operation, obtain the first sleep state corresponding to the central control system, and transmit the first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system to the control device.
[0127] Specifically, after sending a first sleep notification to the central control system to put the central control system into sleep mode, the control device can also send a second sleep notification to the instrument system to make the instrument system perform a second sleep operation, and obtain the first sleep state corresponding to the central control system, and transmit the first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system to the control device.
[0128] Exemplarily, the control device may send the second sleep notification to the instrument system by pulling down the second target GPIO pin.
[0129] Among them, the number of the second target GPIO pins can be one, two, or other numbers. The embodiment of the present application does not specifically limit the number of the second target GPIO pins.
[0130] Exemplarily, the control device may pull down GPIO8 and GPIO9 simultaneously and send a second sleep notification to the power manager in the instrument system.
[0131] Among them, GPIO8 is the hard-wired GPIO between the control device and the SOC system, which is used to control the device to notify the instrument to enter / exit the STR state (high level indicates no screen wake-up); GPIO9 is the hard-wired GPIO between the control device and the SOC system, which is used to control the device to notify the instrument to enter / exit the STR state (high level indicates screen wake-up).
[0132] Note: When the MCU controls the instrument to sleep, GPIO8 and GPIO9 are both low.
[0133] Specifically, after receiving the second sleep notification, the instrument system can play a welcome animation and report the completion status to the control device. The instrument system then determines whether there is a display request. If not, it sends a notification to the control device to shut down the instrument screen. If there is a display request, it waits for the display to complete before sending a notification to the control device to shut down the instrument screen. It then determines whether the vehicle network of the target vehicle corresponding to the power control system is in sleep mode. If the vehicle network is not in sleep mode, it continues waiting. If the vehicle network is in sleep mode, it obtains the first sleep state corresponding to the central control system. If the central control system is already in sleep mode, it controls the instrument system to sleep mode and transmits the first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system to the control device.
[0134] Step S2033: receiving the first sleep state and the second sleep state sent by the instrument system.
[0135] Specifically, the control device receives the first sleep state and the second sleep state sent by the instrument system, and identifies the first sleep state and the second sleep state, after determining that both the central control system and the instrument system are in sleep state.
[0136] Step S2034: Send a third sleep notification to the communication module in the central control system, so that the communication module performs a third sleep operation to control the central control system and the instrument system to switch from the current power state to the target sleep state.
[0137] Optionally, after the control device receives the first sleep state and the second sleep state sent by the instrument system, it can send a third sleep notification to the communication module in the central control system so that the communication module performs a third sleep operation to control the central control system and the instrument system to switch from the current power state to the target sleep state.
[0138] Optionally, after the control device receives the first sleep state and the second sleep state sent by the instrument system, it can identify the first sleep state and the second sleep state, and after determining that both the central control system and the instrument system are in sleep state, send a third sleep notification to the communication module in the central control system to enable the communication module to perform the third sleep operation to control the central control system and the instrument system to switch from the current power state to the target sleep state.
[0139] Specifically, after receiving the third sleep notification, the communication module in the central control system may enter sleep mode, shut down the public network, and release the weakup lock, and the kernel of the operating system enters a low power consumption state.
[0140] Exemplarily, the control device may send the third sleep notification to the communication module in the central control system by pulling down the third target GPIO pin.
[0141] Among them, the number of the third target GPIO pins can be one, two, or other numbers. The embodiment of the present application does not specifically limit the number of the third target GPIO pins.
[0142] Exemplarily, the control device may pull down GPIO4 and send a third sleep notification to the communication module in the central control system.
[0143] Among them, GPIO4 is the hard-wired GPIO between the control device and the SOC system, which is used to control the device to wake up or sleep the communication module in the central control system (high wake-up, low sleep).
[0144] For example, Figure 4As shown, the MCU determines whether the SOC sleep conditions are met (IGN off + locking the car, IGN off + opening the main driver's door, IGN off + timing for 3 minutes) -> determines whether there is a critical task (if there is, wait for the critical task to be completed) -> If not, request the central control and instrument to sleep -> GPIO1 and GPIO2 are pulled low at the same time to notify the central control to sleep. The central control power service NativeCorePower receives the notification and the execution state machine switches to STR in, and notify PMS to execute sleep, PMS turns off the screen, turns off USB, Bluetooth, WiFi and other related peripherals, and sleeps Android, GPIO8 and GPIO9 are pulled low at the same time to notify the instrument PowerManager (power manager) to sleep, and PowerManager plays the guest animation after receiving the request, and feedbacks the playback completion status, and then determines whether there is a display requirement. If not, it pulls down GPIO7 to notify MCU to turn off the instrument screen (GPIO6 has two requirements here, one is that the instrument requests to turn off the central control and instrument screen, and the other is that the Android central control controls the screen through GPIO6 itself), determines whether the entire vehicle network is dormant, if not, continue to wait, and obtain the dormancy status of the central control through Hypsor. If it is dormant, execute the instrument dormancy, and feedback the entire SOC dormancy status to MCU by pulling down GPIO5-> After the MCU receives the screen-off signal in sequence, it turns off the screen and then determines whether the entire vehicle network is dormant. Otherwise, continue to wait for the CAN network to sleep. If yes, GPIO4 is pulled low to notify 4G to enter sleep mode. -> 4G Capower (4G power management core module) receives the sleep request, executes sleep, shuts down the public network, releases the weakup lock, and the kernel enters suspend mode. -> After the MCU receives the SOC sleep feedback, it powers off the MCU and enters low-power mode, and the entire vehicle completes sleep.
[0145] The power control method provided in the embodiment of the present application detects whether there is a task being executed in the central control system, thereby ensuring the accuracy of the detection results. If there is a task being executed in the central control system, the method waits for the task to be completed and sends a first sleep notification to the central control system; if there is no task being executed in the central control system, the method sends a first sleep notification to the central control system, thereby avoiding shutting down the central control system when there is a task being executed in the central control system, resulting in the failure of the task being executed. The central control system is thereby switched to a sleep state and the first sleep operation is executed, thereby controlling the central control system to switch from the current power state to the target sleep state. A second sleep notification is sent to the instrument system to cause the instrument system to execute the second sleep operation and obtain the first sleep state corresponding to the central control system. The first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system are transmitted to the control device, thereby controlling the instrument system to switch from the current power state to the target sleep state. Receiving the first sleep state and the second sleep state sent by the instrument system ensures that the sleep states corresponding to the central control system and the instrument system can be accurately obtained. A third sleep notification is sent to the communication module in the central control system, causing it to execute the third sleep operation, thereby controlling the central control system and instrument system to switch from their current power state to the target sleep state. This allows for rapid control of the central control system and instrument system from their current power state to the target sleep state, improving efficiency and reducing user wait time.
[0146] In this embodiment, a power control method is provided, which is applied to a control device in a power control system. The power control system also includes a central control system and an instrument system. Both the central control system and the instrument system are in communication with the control device. Figure 5 A flow chart of a power control method according to an embodiment of the present invention is shown in FIG. Figure 1 As shown, the process includes the following steps:
[0147] Step S301: obtaining a user instruction of a target vehicle corresponding to the power supply control system.
[0148] For details about this step, please refer to the above description of step S201 and will not be repeated here.
[0149] Step S302: determining target power states corresponding to the central control system and the instrument system in the power control system according to a user instruction.
[0150] For details about this step, please refer to the above description of step S202 and will not be repeated here.
[0151] Step S303: Control the central control system and the instrument system to switch from the current power state to the target power state.
[0152] In an optional embodiment of the present application, the user instruction includes turning on the target vehicle, and the target power state includes the target awake state. Specifically, the above step S203 "controlling the central control system and the instrument system to switch from the current power state to the target power state" may include the following steps:
[0153] Step S3031: Send a first wake-up notification to the instrument system to make the instrument system exit the sleep state, perform a first wake-up operation, and send a wake-up message to the central control system.
[0154] Specifically, after determining that the target power state is the target wake-up state, the control device may send a first wake-up notification to the instrument system to cause the instrument system to exit the sleep state, perform a first wake-up operation, and send a wake-up message to the central control system.
[0155] Optionally, the control device may send the first wake-up notification to the instrument system by pulling up the second target GPIO pin.
[0156] The control device may pull up GPIO8 and GPIO9 simultaneously to send a first wake-up notification to the power manager in the instrument system.
[0157] After receiving the first wake-up notification, the instrument system can exit sleep mode based on the second wake-up notification and then send a wake-up message to the central control system. The instrument system can then report back to the control device the corresponding first wake-up state of the instrument system and the corresponding second wake-up state of the central control system. The system then plays a welcome animation and checks whether the instrument screen is on. If not, it sends a request to the control device to turn on the instrument screen.
[0158] Step S3032: Receive the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system fed back by the instrument system.
[0159] Specifically, the control device may receive the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system fed back by the instrument system.
[0160] The instrument system may send a first wake-up state corresponding to the instrument system and a second wake-up state corresponding to the central control system to the control device by pulling up the fourth target GPIO.
[0161] For example, the instrument system may feed back the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system to the control device by pulling up GPIO5.
[0162] Among them, GPIO5 is the hard-wired GPIO between the control device and the SOC system, which is used by the SOC system to notify the control device of the sleep and wake-up status of the instrument system and the central control system in the current SOC system.
[0163] Step S3033: Send a second wake-up notification to the communication module in the central control system, so that the central control system performs a second wake-up operation and establishes a communication connection with the control device.
[0164] Specifically, after receiving the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system fed back by the instrument system, the control device can send a second wake-up notification to the communication module in the central control system, so that the central control system performs the second wake-up operation and establishes a communication connection with the control device.
[0165] It should be noted that after the instrument system sends the wake-up message to the central control system, the central control system is not fully awakened. Therefore, the control device needs to send a third wake-up notification to the central control system.
[0166] Step S3034: Send a third wake-up notification to the central control system, so that the central control system performs a third wake-up operation to control the central control system and the instrument system to switch from the current power state to the target wake-up state.
[0167] Specifically, the control device may send a third wake-up notification to the central control system, so that the central control system performs a third wake-up operation to control the central control system and the instrument system to switch from a current power state to a target wake-up state.
[0168] Exemplarily, the control device may send a third wake-up notification to the central control system by pulling up GPIO1 and GPIO2.
[0169] After receiving the third wake-up notification, the central control system controls the state machine to exit the sleep state and controls the software applications in the operating system corresponding to the central control system to be in an operational state. Then, the peripheral devices connected to the central control system are controlled to turn on and wake up the operating system in the central control system.
[0170] For example, Figure 6As shown, the MCU determines that the SOC wake-up conditions are met (unlock + open the door, vehicle unlock + in the ready state, unlock without screen wake-up) -> pull up GPIO8 and GPIO9 to request the instrument to exit STR, the instrument PowerManager executes the wake-up, and wakes up the central control through Hyposr, then pulls up GPIO5 to feedback the instrument and central control wake-up status to the MCU, then plays the welcome animation, determines whether to turn on the screen and requests to turn on the screen (pull up GPIO6 and GPIO7) -> MCU determines the SOC wake-up status, receives the instrument feedback wake-up, and receives the screen turn-on request to turn on the screen, then pulls up GPIO4 to request 4G wake-up -> 4G wake-up, opens the public network, holds the weakup lock, and establishes a heartbeat with the MCU -> After success, the MCU pulls up GPIO1 and GPIO2 to request the central control to wake up, NativeCorePower receives the request, switches the state machine to STR out, notifies the application to the working state, and notifies the PMS to execute the screen opening animation, turn on Bluetooth, WiFi and other related peripherals, and wake up Android -> MCU wake-up is completed.
[0171] The power control method provided in an embodiment of the present application sends a first wake-up notification to the instrument system to cause the instrument system to exit a sleep state, execute a first wake-up operation, and send a wake-up message to the central control system, thereby ensuring that the instrument system can be woken up promptly and accurately. Then, the method receives feedback from the instrument system indicating the first wake-up state of the instrument system and the second wake-up state of the central control system, allowing the control device to accurately obtain the wake-up states of the instrument system and the central control system, thereby facilitating accurate control of the instrument system and the central control system. A second wake-up notification is sent to the communication module in the central control system to cause the central control system to execute the second wake-up operation and establish a communication connection with the control device, thereby accurately and promptly waking up the communication mode and waking up related peripherals based on the communication mode. A third wake-up notification is sent to the central control system to cause the central control system to execute the third wake-up operation to control the central control system and the instrument system to switch from the current power state to the target wake-up state. This method quickly controls the central control system and the instrument system to switch from the current power state to the target wake-up state, improving efficiency and reducing user waiting time.
[0172] In this embodiment, a power control method is provided, which is applied to a control device in a power control system. The power control system also includes a central control system and an instrument system. Both the central control system and the instrument system are in communication with the control device. Figure 7 FIG. 1 is a flow chart of a power control method according to an embodiment of the present invention. Figure 7 As shown, the process includes the following steps:
[0173] Step S401: obtaining a user instruction of a target vehicle corresponding to the power supply control system.
[0174] For details about this step, please refer to the above description of step S301 and will not be repeated here.
[0175] Step S402: determining target power states corresponding to the central control system and the instrument system in the power control system according to a user instruction.
[0176] For details about this step, please refer to the above description of step S302 and will not be repeated here.
[0177] Step S403: Control the central control system and the instrument system to switch from the current power state to the target power state.
[0178] In an optional embodiment of the present application, the user command includes remote control of the target vehicle. The remote control may include remote vehicle control, remote photography, remote 360 degree live broadcast, remote vehicle movement, etc., and the present embodiment does not specifically limit remote control. Specifically, the above step S403 "controlling the central control system and the instrument system to switch from the current power state to the target power state" includes:
[0179] Step S4031: receiving a remote control notification sent by a power management module in the power control system.
[0180] Specifically, the user sends a remote control instruction for the target vehicle based on the communication module in the central control system, and the communication module wakes up the power management module in the power control system based on the instruction.
[0181] After being awakened, the power management module sends a remote control notification to the control device, so that the control device can receive the remote control notification sent by the power management module in the power control system.
[0182] Step S4032: According to the remote control notification, the instrument system and the central control system are controlled to wake up.
[0183] Specifically, the control device can control the instrument system and the central control system to wake up based on the remote control notification.
[0184] Among them, the process of waking up the control instrument system and the central control system can be found above and will not be repeated here.
[0185] Step S4033: Receive a remote task execution completion notification sent by the power management module.
[0186] Specifically, after the remote task is completed, the control device may receive a remote task completion notification sent by the power management module.
[0187] Step S4034: According to the notification of completion of the remote task, the instrument system and the central control system are controlled to sleep.
[0188] Specifically, the control device can control the instrument system and the central control system to sleep according to the notification of completion of the remote task.
[0189] The process of controlling the instrument system and the central control system to sleep can be found above and will not be described in detail here.
[0190] For example, Figure 8 As shown in the figure, the communication module in the central control system receives a remote command and meets the remote wake-up conditions: remote vehicle control, remote photo taking, remote 360-degree live broadcast, remote vehicle moving, etc. The communication module wakes up the power management program CaPower->CaPower pulls up GPIO3 to wake up the MCU, and then the MCU executes the local wake-up process to wake up the instrument system and the central control system. During this period, Capower continuously detects whether the remote task is completed. If the execution is completed, it notifies the MCU to enter sleep mode. Then, the MCU controls the instrument system and the central control system to sleep.
[0191] The power control method provided in the embodiment of the present application controls the state machine to exit the sleep state based on the first wake-up notification, ensuring the accuracy of the state machine's exit from the sleep state. The method controls the software applications in the operating system corresponding to the central control system to be in an operational state; controls the peripheral devices communicating with the central control system to be turned on, and wakes up the operating system in the central control system, thereby achieving a switch from the current power state to the target wake-up state.
[0192] In this embodiment, a power control method is provided, which is applied to a central control system in a power control system. The power control system also includes a control device and an instrument system. The central control system is in communication with the instrument system and the control device. Figure 9 FIG. 1 is a flow chart of a power control method according to an embodiment of the present invention. Figure 9 As shown, the process includes the following steps:
[0193] Step S501: Receive a first state transition notification sent by a control device.
[0194] Specifically, the central control system may receive a first state transition notification sent by the control device.
[0195] Step S502: Based on the first state transition notification, perform the operation corresponding to the first state transition notification.
[0196] to switch from the current power state to the target power state.
[0197] In an optional implementation, the first state transition notification is a first sleep notification; and the above step S502 of “performing an operation corresponding to the first state transition notification based on the first state transition notification to switch from the current power state to the target power state” may include:
[0198] Step S5021: Based on the first sleep notification, the control state machine switches to the sleep state.
[0199] Specifically, the power manager in the central control system may control the state machine to switch to the sleep state based on the first sleep notification.
[0200] Step S5022: Control the peripheral devices connected to the central control system to shut down, and shut down the operating system corresponding to the central control system and the software applications in the operating system.
[0201] Specifically, the power manager in the central control system can notify PMS (PowerManagerService, Android management service) to perform sleep mode. PMS turns off the screen, turns off USB, Bluetooth, WiFi and other related peripherals, and sleeps the Android operating system in the central control system, and closes the software applications in the operating system corresponding to the central control system.
[0202] In an optional implementation, the state transition notification is a first wake-up notification; the above step S502
[0203] “Based on the state transition notification, executing the operation corresponding to the state transition notification” may also include the following:
[0204] Step S5023: Based on the first wake-up notification, control the state machine to exit the sleep state.
[0205] Specifically, the power manager in the central control system may control the state machine to exit the sleep state based on the first wake-up notification.
[0206] Step S5024: Control the software application in the operating system corresponding to the central control system to be in a working state.
[0207] Specifically, the power manager in the central control system can make the software applications in the operating system corresponding to the central control system in an operable state.
[0208] Step S5025: Control the peripheral devices connected to the central control system to turn on, and wake up the operating system in the central control system.
[0209] Specifically, the power manager in the central control system can control the PMS to execute the opening screen animation, turn on the Bluetooth, WiFi, USB and other related peripherals connected to the central control system, and wake up the operating system in the central control system.
[0210] The power control method provided in the embodiment of the present application receives a second state transition notification sent by a control device; if the state transition notification is a second sleep notification, based on the second sleep notification, plays a farewell animation and feeds back the play completion status to the control device, so that the control device can receive the play completion status of the instrument system. Determine whether there is a display requirement; if there is no display requirement, send a notification to close the instrument screen to the control device; if there is a display requirement, wait until the display is completed, and then send a notification to close the instrument screen to the control device, thereby avoiding sending a notification to close the instrument screen to the control device when there is a display requirement, causing the control device to close the instrument screen, resulting in failure to complete the display requirement and causing inconvenience to the user. Determine whether the vehicle network of the target vehicle corresponding to the power control system is dormant; if the vehicle network is not dormant, continue waiting; if the vehicle network is dormant, obtain the first dormant state corresponding to the central control system, thereby avoiding the instrument system being dormant when the vehicle network is not dormant, resulting in failure to complete a specific task. If the central control system is dormant, control the instrument system to be dormant, and transmit the first dormant state corresponding to the central control system and the second dormant state corresponding to the instrument system to the control device.
[0211] If the state transition notification is a second wake-up notification, the system exits the sleep state based on the second wake-up notification, ensuring accurate exit from the sleep state. A wake-up message is sent to the central control system; the corresponding first wake-up state of the instrument system and the corresponding second wake-up state of the central control system are fed back to the control device; a welcome animation is played, and a check is made to see if the instrument screen is on. If the instrument screen is not on, a request to turn it on is sent to the control device, thereby switching the instrument system from its current power state to the target wake-up state.
[0212] In this embodiment, a power control method is provided, which is applied to an instrument system in a power control system. The power control system also includes a control device and a central control system. The instrument system is in communication with the central control system and the control device. Figure 10 FIG. 1 is a flow chart of a power control method according to an embodiment of the present invention. Figure 10 As shown, the process includes the following steps:
[0213] Step S601: Receive a second state transition notification sent by a control device.
[0214] For details about this step, please refer to the above description of step S601 and will not be repeated here.
[0215] Step S602: Based on the second state transition notification, perform an operation corresponding to the second state transition notification to switch from the current power state to the target power state.
[0216] In an optional embodiment, the state transition notification is a second sleep notification; step S602, “based on the second state transition notification, executing an operation corresponding to the second state transition notification to switch from the current power state to the target power state,” may include the following steps:
[0217] Step S6021: Based on the second sleep notification, play the guest farewell animation and feedback the completion status of the play to the control device.
[0218] Specifically, the power manager in the instrument system may play a farewell animation based on the second sleep notification, and feedback a playback completion status to the control device.
[0219] Step S6022: Determine whether there is a display requirement.
[0220] Optionally, the power manager in the instrument system can use a dedicated task monitoring tool or software to monitor the task status, process information, and resource usage of the instrument system in real time. Based on the task status, process information, and resource usage in the instrument control system, it can be determined whether the instrument system has any tasks that need to be displayed.
[0221] Optionally, the power manager in the instrument system can also check the status and task queue of the task scheduler in the instrument system and determine whether the instrument system has any tasks to display based on information provided by the task scheduler about currently executing tasks and tasks waiting to be executed.
[0222] Step S6023: If there is no display requirement, a notification to close the instrument screen is sent to the control device.
[0223] Specifically, if there is no display requirement, the power manager in the instrument system may send a notification to the control device to turn off the instrument screen.
[0224] Optionally, the power manager in the instrument system may send a notification to turn off the instrument screen to the control device by pulling down the fifth target GPIO pin.
[0225] Among them, the number of the fifth target GPIO pins can be one, two, or more. The embodiment of the present application does not specifically limit the number of the fifth target GPIO pins.
[0226] For example, the power manager in the instrument cluster system can send a notification to the control device to shut down the instrument cluster screen by pulling down GPIO7. GPIO7 is a hard-wired GPIO between the control device and the instrument cluster system, and is used to request the MCU to turn the backlight on or off after the welcome animation is ready and the screen status is OK.
[0227] Optionally, the power manager in the instrument cluster system can send a notification to the control device to shut down the instrument cluster screen based on GPIO6. GPIO6 is a hard-wired GPIO between the control device and the instrument cluster system. It is used by the central control to request the MCU to turn the backlight on or off after the welcome animation is ready and the screen status is OK.
[0228] (There are two requirements for GPIO6 here. One is that the instrument makes a unified request to turn off the central control and instrument screen. The other is that the Android central control controls the screen through GPIO6 itself).
[0229] Step S6024: If there is a display requirement, wait until the display is completed and then send a notification to the control device to close the instrument screen.
[0230] Specifically, if there is a display requirement, after waiting for the display to be completed, a notification to close the instrument screen is sent to the control device.
[0231] Step S6025: determine whether the vehicle network of the target vehicle corresponding to the power control system is dormant.
[0232] Specifically, the control device can determine whether the vehicle network of the target vehicle corresponding to the power control system is dormant by monitoring the message traffic on the CAN bus.
[0233] If no CAN message is transmitted within the preset time, or the frequency of CAN messages is significantly reduced, this may indicate that the vehicle network has entered a dormant state.
[0234] Step S6026: If the vehicle network is not in sleep mode, continue waiting.
[0235] Specifically, if the vehicle network is not in sleep mode, continue waiting.
[0236] Step S6027: If the vehicle network is in sleep mode, obtain the first sleep state corresponding to the central control system.
[0237] Specifically, if the vehicle network is dormant, the first dormant state corresponding to the central control system is obtained based on the communication connection with the central control system.
[0238] Step S6028: If the central control system is in sleep mode, the instrument system is controlled to be in sleep mode, and the first sleep mode corresponding to the central control system and the second sleep mode corresponding to the instrument system are transmitted to the control device.
[0239] Specifically, if the central control system has entered sleep mode, the power manager in the instrument system controls the instrument system to enter sleep mode, and transmits a first sleep mode corresponding to the central control system and a second sleep mode corresponding to the instrument system to the control device.
[0240] Exemplarily, the power manager control in the instrument system may send the first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system to the control device by pulling down the fourth target GPIO.
[0241] For example, the power manager in the instrument system may feedback the first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system to the control device by pulling down GPIO5.
[0242] Among them, GPIO5 is the hard-wired GPIO between the control device and the SOC system, which is used by the SOC system to notify the control device of the sleep and wake-up status of the instrument system and the central control system in the current SOC system.
[0243] In an optional implementation, the state transition notification is a second wake-up notification; step S602, “based on the state transition notification, executing an operation corresponding to the state transition notification,” may include the following steps:
[0244] Step S6029: exit the sleep state based on the second wake-up notification.
[0245] Specifically, the battery manager in the instrument system exits the sleep state based on the second wake-up notification.
[0246] Step S60210: Send a wake-up message to the central control system.
[0247] Specifically, the battery manager in the instrument system sends a wake-up message to the central control system based on the communication connection between the battery manager and the central control system.
[0248] Step S60211: Feedback the first awakening state corresponding to the instrument system and the second awakening state corresponding to the central control system to the control device.
[0249] Then, the battery manager in the instrument system may send the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system to the control device by pulling up the fourth target GPIO.
[0250] For example, the instrument system may feed back the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system to the control device by pulling up GPIO5.
[0251] Among them, GPIO5 is the hard-wired GPIO between the control device and the SOC system, which is used by the SOC system to notify the control device of the sleep and wake-up status of the instrument system and the central control system in the current SOC system.
[0252] Step S60212, play the welcome animation and check whether the instrument screen is turned on.
[0253] Specifically, the battery manager in the instrument system can play a welcome animation and detect whether the instrument screen is turned on based on the connection with the instrument screen.
[0254] Step S60213: If the instrument screen is not turned on, a request to turn on the instrument screen is sent to the control device.
[0255] Specifically, if the instrument screen is not turned on, a request to turn on the instrument screen may be sent to the control device based on the communication connection with the control device.
[0256] Optionally, the battery manager in the instrument system may send an instrument screen power-on request to the control device by pulling up the fifth target GPIO pin.
[0257] Among them, the number of the fifth target GPIO pins can be one, two, or more. The embodiment of the present application does not specifically limit the number of the fifth target GPIO pins.
[0258] For example, the power manager in the instrument system may send a request to turn on the instrument screen to the control device by pulling up GPIO6 and GPIO7.
[0259] GPIO7 is a hard-wired GPIO between the control device and the instrument cluster system. It is used to request the MCU to turn the backlight on / off after the welcome animation is ready and the screen status is OK. GPIO6 is a hard-wired GPIO between the control device and the instrument cluster system. It is used to request the MCU to turn the backlight on / off after the welcome animation is ready and the screen status is OK.
[0260] The power control method provided in the embodiment of the present application receives a second state transition notification sent by a control device; if the state transition notification is a second sleep notification, based on the second sleep notification, plays a farewell animation and feeds back the play completion status to the control device, so that the control device can receive the play completion status of the instrument system. Determine whether there is a display requirement; if there is no display requirement, send a notification to close the instrument screen to the control device; if there is a display requirement, wait until the display is completed, and then send a notification to close the instrument screen to the control device, thereby avoiding sending a notification to close the instrument screen to the control device when there is a display requirement, causing the control device to close the instrument screen, resulting in failure to complete the display requirement and causing inconvenience to the user. Determine whether the vehicle network of the target vehicle corresponding to the power control system is dormant; if the vehicle network is not dormant, continue waiting; if the vehicle network is dormant, obtain the first dormant state corresponding to the central control system, thereby avoiding the instrument system being dormant when the vehicle network is not dormant, resulting in failure to complete a specific task. If the central control system is dormant, control the instrument system to be dormant, and transmit the first dormant state corresponding to the central control system and the second dormant state corresponding to the instrument system to the control device. If the state transition notification is a second wake-up notification, the system exits the sleep state based on the second wake-up notification, ensuring accurate exit from the sleep state. A wake-up message is sent to the central control system; the corresponding first wake-up state of the instrument system and the corresponding second wake-up state of the central control system are fed back to the control device; a welcome animation is played, and a check is made to see if the instrument screen is on. If the instrument screen is not on, a request to turn it on is sent to the control device, thereby switching the instrument system from its current power state to the target wake-up state.
[0261] An embodiment of the present application provides a power supply control system, comprising a control device, a central control system, and an instrument system, wherein the central control system and the instrument system are both communicatively connected to the control device, and the central control system is communicatively connected to the instrument system. The control device is configured to execute the power supply control method of the first aspect or any corresponding embodiment thereof; the central control system is configured to execute the power supply control method of the second aspect or any corresponding embodiment thereof; and the instrument system is configured to execute the power supply control method of the third aspect or any corresponding embodiment thereof.
[0262] For example, Figure 11 As shown, the entire power control system uses the control device (MCU) as the logic controller for initial signal judgment and is responsible for controlling the main sleep and wake-up logic. The MCU notifies various modules, such as the instrument system, central control system, and Tbox (the communication module within the central control system), to enter sleep or wake-up states through the general-purpose input / output (GPIO) interface. The instrument system runs on the Linux layer and has certain connections with the Android system and Tbox (both of which belong to the system-on-chip (SOC)). When the entire SOC enters sleep mode, the MCU can execute its own sleep logic.
[0263] The entire system first executes the boot process, activating each module and executing its business logic. When connected to a power source, the MCU supplies power to the entire SoC, which then executes the kernel boot process. The instrument cluster's corresponding Linux system boots up, followed by the central control system's corresponding Android system, along with the central control system's power management service, vehicle, and Tbox processes running on the Android system. Once all business processes are complete, the power management system logic begins.
[0264] Architecture such as Figure 1 As shown in the figure: After each module is started, the MCU monitors the vehicle body signals in real time, such as the key, driver's door, IGN status, CAN bus signals, 4G remote wake-up signals, etc. Then it performs power control logic processing, switches the state machine, and notifies each module to enter sleep or wake-up power logic through GPIO pins.
[0265] Wake-up: After the MCU determines that the wake-up conditions are met, it first notifies the instrument to exit sleep (STR_OUT) through GPIO8 and GPIO9. The instrument PowerManager receives the wake-up request and wakes up the instrument. The hypervisor then wakes up the central control (Android) and feeds back the instrument and central control wake-up status to the MCU through GPIO5. At the same time, the instrument requests to turn on the screen and play the boot animation. The MCU then wakes up 4G (Capower, CATbox) by pulling up GPIO4. After 4G wakes up, holds the weak_up lock, and opens the public network. The MCU then pulls up GPIO1 (remote wake-up pulls up virtual GPIO2, which is VG2 in the figure) to request the central control to wake up. After receiving the request, the central control power management service NativeCorePower exits STR, notifies the application layer that it can work, calls PMS to wake up Android, and executes the logic of turning on the screen and playing animations.
[0266] Sleep: After the MCU determines that the sleep conditions are met, it continuously checks whether there are any key tasks issued by the application. If so, it polls. If not, it notifies the central control (GPIO1 and VG2 are pulled low at the same time) and the instrument (GPIO8 and GPIO9 are pulled low at the same time) to enter STR; the Android power management service NativeCorePower receives the request, switches the internal state machine, notifies the application layer that it cannot work, schedules the PMS to sleep Android, and turns off the screen, GPS, WiFi, etc.
[0267] like Figure 11 The power management architecture diagram is shown in the figure: The figure describes the relevant component modules of the entire architecture link. We can understand the specific functional role of each module through Table 1. Figure 1The entire link sleep and wake-up process from bottom to top is described in this document, as well as the communication method of each module involved in the entire link.
[0268] Introduction to important components:
[0269] capower: 4G power management core module, communicates with the MCU through GPIO, and is responsible for transmitting 4G module remote wake-up requests.
[0270] NativeCorePower: SoC power management core module, communicates with the MCU through GPIO, and is responsible for receiving MCU's requests to enter and exit the IPO state.
[0271] Key task interface: NativeCorePower provides an interface for other modules to register key tasks, inform the MCU to delay entering sleep, communicate with upper-layer applications through AIDL, and communicate with the MCU through the vehicle through the SPI protocol.
[0272] PowerManagerService: implementer of STR interface, responsible for STR entry and exit business logic, screen control, etc.
[0273] IncallCoreServer: Encapsulates mission-critical interfaces for use by Java layer applications.
[0274] IVS: Responsible for uplink and downlink message communication with the RPC Manager service.
[0275] RPC Manager: responsible for uplink and downlink data communication between the instrument, MCU and Android system;
[0276] PowerManager: Combines MCU sleep / wakeup notifications with specific RPC messages to implement STR sleep / wakeup logic and manage state transitions between the instrument middleware and HMI. For details, see Table 1.
[0277] Table 1: Power management system components
[0278]
[0279] This system primarily uses the MCU as the main controller for sleep and wakeup logic. It monitors hardware and network signals to implement sleep (low-power mode) and wakeup logic processing. GPIO pins (screen on and off; the instrument panel's GPIO is virtualized for screen off) are used to notify the NativeCorePower and 4G middleware on the SoC side, as well as the instrument panel's sleep and wakeup logic. Table 2 shows a table of specific GPIO pin functions.
[0280] Table 2: GPIO pin function comparison table
[0281]
[0282]
[0283] MCU power main control internal components such as Figure 12 As shown: When the MCU power module program starts, the timer group is initialized to perform timing tasks; voltage detection is turned on; power event detection, sleep wake-up signal detection and logic judgment;
[0284] Workflow such as Figure 13 As shown: After the power task starts, the IO port and other hardware related functions are initialized, and then the battery detection, power event detection, power state machine and service timer timing are entered, and the state machine switching logic is started, that is, the switching of power states such as sleep and wake-up. After detecting the change of power event, the scene recognition is used to determine which power mode should be switched to. Then the power state machine switching is started, and each SOC module is notified to enter sleep or wake up, and the screen is lit or not to wake up, as well as the sleep process, to achieve sleep or wake up of the entire machine, realize the switching between working mode and low-power standby mode, save power consumption, and ensure that the power can support the normal operation of the vehicle computer for a long time.
[0285] NativeCorePower:soc core power service, by receiving the GPIO sleep or wake-up notification from the MCU, the internal state machine switches (the switching process is as follows Figure 14 As shown), by controlling the startIPO() and stopIPO() of PowerManagerService to control the Android central control to execute the sleep or wake-up logic, and notifying the application layer of the power status and engine status through AIDL. The application registers to listen for callback acquisition through IncallServerSDK, and uses CopwerApp to implement relevant pop-ups to inform users of the vehicle power status, such as key tasks, voltage, power, and other prompt signals.
[0286] Sleep: Turn off the screen and disable peripherals.
[0287] Wake-up: turn on the screen, welcome guests, and enable peripherals.
[0288] The 4G power management core module, CaPower, receives notifications from the MCU's STR GPIO pin, performs sleep and wakeup logic (such as network control and Weakup lock processing), and controls remote wakeup logic. During sleep, only after the 4G releases the Weakup lock can the entire SoC core enter the Suspend state and suspend all processes, thus notifying the MCU that the SoC has entered sleep and can proceed to the next sleep action. During wakeup, when the 4G holds the Weakup lock, the SoC core enters the Resume state and wakes up each service process.
[0289] Instrument power supply PowerManager: By receiving GPIO pin signals and SPI IGN off signals, it controls the instrument side's sleep and wake-up logic control, controls the instrument screen's on and off, and plays the welcome animation. It is responsible for providing linkage messages with the central control animation and feedbacks the instrument and central control's sleep and wake-up status to the MCU, forming a closed loop to ensure that the MCU side can correctly control the entire power management process.
[0290] An embodiment of the present application also provides a target vehicle, which includes the power control system introduced in the above embodiment.
[0291] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A power supply control method, characterized in that: A control device applied to a power supply control system, wherein the power supply control system further includes a central control system and an instrument system, wherein both the central control system and the instrument system are communicatively connected to the control device, and the method includes: Obtaining a user instruction of a target vehicle corresponding to the power control system; Determining target power states corresponding to the central control system and the instrument system in the power control system according to the user instruction; Controlling the central control system and the instrument system to switch from a current power state to the target power state; The user instruction includes shutting down the target vehicle, the target power state includes a target sleep state, and controlling the central control system and the instrument system to switch from a current power state to the target power state includes: Sending a first sleep notification to the central control system to switch the central control system to a sleep state and perform a first sleep operation; sending a second sleep notification to the instrument system so that the instrument system performs a second sleep operation, and obtaining a first sleep state corresponding to the central control system, and transmitting the first sleep state corresponding to the central control system and the second sleep state corresponding to the instrument system to the control device; receiving the first sleep state and the second sleep state sent by the instrument system; Sending a third sleep notification to the communication module in the central control system, so that the communication module performs a third sleep operation, thereby controlling the central control system and the instrument system to switch from a current power state to the target sleep state; The user instruction includes starting the target vehicle, and the target power state includes a target awakening state; and controlling the central control system and the instrument system to switch from a current power state to the target power state includes: Sending a first wake-up notification to the instrument system to cause the instrument system to exit a dormant state, perform a first wake-up operation, and send a wake-up message to the central control system; receiving a first wake-up state corresponding to the instrument system and a second wake-up state corresponding to the central control system fed back by the instrument system; Sending a second wake-up notification to the communication module in the central control system, so that the central control system performs a second wake-up operation and establishes a communication connection with the control device; A third wake-up notification is sent to the central control system, so that the central control system performs a third wake-up operation to control the central control system and the instrument system to switch from a current power state to the target wake-up state.
2. The method according to claim 1, characterized in that The sending a first sleep notification to the central control system includes: Detecting whether there is a task being executed in the central control system; If the task being executed exists in the central control system, waiting for the task being executed to be completed, and sending the first sleep notification to the central control system; If the executing task does not exist in the central control system, the first sleep notification is sent to the central control system.
3. The method according to claim 1, characterized in that The user instruction includes remotely controlling the target vehicle, and controlling the central control system and the instrument system to switch from a current power state to the target power state, including: Receive remote control notifications sent by the power management module in the power control system; Controlling the instrument system and the central control system to wake up according to the remote control notification; Receiving a remote task execution completion notification sent by the power management module; According to the notification of completion of the remote task execution, the instrument system and the central control system are controlled to sleep.
4. The method according to claim 1, wherein The method is also applied to a central control system in a power supply control system, and the method further comprises: receiving a first state transition notification sent by the control device; Based on the first state transition notification, an operation corresponding to the first state transition notification is performed to switch from a current power state to a target power state.
5. The method according to claim 4, characterized in that The first state transition notification is a first sleep notification; and performing an operation corresponding to the first state transition notification based on the first state transition notification to switch from the current power state to the target power state includes: Based on the first sleep notification, controlling the state machine to switch to a sleep state; Control the peripheral devices in communication connection with the central control system to shut down, and shut down the operating system corresponding to the central control system and the software applications in the operating system.
6. The method according to claim 4, characterized in that The first state transition notification is a first wake-up notification; and performing an operation corresponding to the first state transition notification based on the first state transition notification includes: Based on the first wake-up notification, controlling the state machine to exit the sleep state; Controlling the software applications in the operating system corresponding to the central control system to be in a working state; Control the peripheral devices in communication connection with the central control system to turn on, and wake up the operating system in the central control system.
7. The method according to claim 1, characterized in that The method is also applied to an instrument system in a power supply control system, and the method includes: receiving a second state transition notification sent by the control device; Based on the second state transition notification, an operation corresponding to the second state transition notification is performed to switch from the current power state to the target power state.
8. The method according to claim 7, characterized in that The second state transition notification is a second sleep notification; and performing an operation corresponding to the second state transition notification based on the second state transition notification to switch from the current power state to the target power state includes: Based on the second sleep notification, play the guest farewell animation and feedback the completion status of the playback to the control device; Determine whether there is a display requirement; If there is no display requirement, sending a notification to close the instrument screen to the control device; If there is a display requirement, after waiting for the display to be completed, a notification of closing the instrument screen is sent to the control device; Determining whether a vehicle network of a target vehicle corresponding to the power control system is dormant; If the vehicle network is not dormant, continue waiting; If the vehicle network is dormant, obtaining the first dormant state corresponding to the central control system; If the central control system is in sleep mode, the instrument system is controlled to be in sleep mode, and the first sleep mode corresponding to the central control system and the second sleep mode corresponding to the instrument system are transmitted to the control device.
9. The method according to claim 7, characterized in that The second state transition notification is a second wake-up notification; and performing an operation corresponding to the second state transition notification based on the second state transition notification includes: exiting the dormant state based on the second wake-up notification; Sending a wake-up message to the central control system; Feedback to the control device the first wake-up state corresponding to the instrument system and the second wake-up state corresponding to the central control system; Play the welcome animation and detect whether the instrument screen is turned on; If the instrument screen is not turned on, a request to turn on the instrument screen is sent to the control device.
10. A power supply control system, characterized in that: The power control system is used to execute the power control method according to any one of claims 1 to 9.
11. A target vehicle, characterized in that: The target vehicle includes the power supply control system according to claim 10.
Citation Information
Patent Citations
Power management method of intelligent host
CN113071437A
Instrument starting method and device, equipment, storage medium and program product
CN113656085A