Low-power consumption control method, system, medium and device for in-vehicle infotainment terminal
By collecting data on the vehicle's power supply status and determining the running status of the upgrade program, a hibernation command is sent to adjust the power state, enabling the microcontroller to enter a low-power mode. This solves the problem of vehicle-wide power loss caused by microcontroller flashing failure in the in-vehicle infotainment terminal, achieving low power consumption and energy-saving effects for the vehicle.
Patent Information
- Application Number
- CN202310313093.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2043-03-28
AI Technical Summary
The in-vehicle infotainment terminal cannot enter sleep mode after a failed microcontroller flashing, leading to a loss of battery power for the entire vehicle.
By collecting the status of the vehicle's power supply, the system determines the running status of the upgrade program and sends a hibernation command when the preset hibernation conditions are met. This adjusts the power supply status of peripheral devices and system-on-a-chip, enabling the microcontroller to enter a low-power mode and then wake up the system by detecting wake-up conditions.
This effectively solves the problem of vehicle power loss caused by the in-vehicle infotainment terminal not going into sleep mode after a microcontroller unit flashing failure, achieving low power consumption and energy saving in the vehicle.
Smart Images

Figure CN116279217B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of automobile energy saving, and in particular to a low-power consumption control method, system, medium and equipment for a vehicle information entertainment terminal. BACKGROUND
[0002] The vehicle information entertainment terminal is generally composed of two main control chips in the circuit, namely an MCU (Micro Control Unit) and an SOC (System on Chip). The MCU mainly undertakes tasks such as signal conversion and power management.
[0003] The software of the MCU is updatable, and thus is divided into a bootloader and an APP (application program). The main tasks of the MCU such as signal conversion and power management are in the software of the APP, and the bootloader is only responsible for writing and upgrading the APP. Therefore, the bootloader software only processes upgrading.
[0004] In fact, there may be a scenario in which the bootloader fails to upgrade the APP without the user knowing. In this scenario, the MCU software always resides in the bootloader running program. Since the bootloader does not have a power management function, it will not manage the sleep and wake-up of the SOC and the power-down of the on-board power supply, resulting in the vehicle information entertainment terminal assembly being in a non-sleep high-power consumption state (current size is about 1A), which leads to the vehicle being out of power.
[0005] Therefore, if a method for solving the problem of the vehicle information entertainment terminal not sleeping after the micro control unit fails to write, leading to the vehicle being out of power, can be provided, it will be more beneficial to the vehicle information entertainment terminal to achieve low power consumption and vehicle energy saving. SUMMARY
[0006] In view of the above shortcomings of the prior art, the present application provides a low-power consumption control method, system, medium and equipment for a vehicle information entertainment terminal to solve the technical problem of the vehicle information entertainment terminal not sleeping after the micro control unit fails to write, leading to the vehicle being out of power.
[0007] To achieve the above object and related objects, the first aspect of the present application provides a low-power consumption control method for a vehicle information entertainment terminal, which comprises:
[0008] Collecting the gear state of the vehicle power supply;
[0009] When the gear state is in the off gear, obtaining the running state of the upgrade program of the micro control unit of the vehicle information entertainment terminal within a preset time period;
[0010] The running state is compared with preset hibernation conditions, and when the running state meets the preset hibernation conditions, a hibernation instruction is sent to the system-on-chip of the vehicle information entertainment terminal system;
[0011] The working state of the system-on-chip during execution of the hibernation instruction is acquired;
[0012] The working state is compared with preset power-off conditions, and a hibernation wake-up strategy is implemented according to a comparison result, the hibernation wake-up strategy including adjusting power-on and power-off states of the peripheral power supply and the power supply of the system-on-chip, causing the micro control unit to enter a low-power consumption mode, and when a gear state of the vehicle power supply meets preset wake-up conditions in the low-power consumption mode, causing the micro control unit and the system-on-chip in the low-power consumption mode to wake up.
[0013] In an embodiment of the present application, the preset hibernation conditions are that when the gear of the vehicle power supply is the off gear, the running state of the upgrade program within the preset time length is no upgrade behavior.
[0014] In an embodiment of the present application, the hibernation instruction is to pull up a general-purpose input and output to notify the system-on-chip to hibernate.
[0015] In an embodiment of the present application, the preset power-off conditions are to time the time length for the system-on-chip to enter hibernation, and when the time length reaches a preset hibernation threshold, the working state of the system-on-chip is hibernated.
[0016] In an embodiment of the present application, the preset wake-up conditions are that the vehicle information entertainment terminal detects an existing wake-up source, and the wake-up source is that the gear state of the vehicle power supply is in the start gear.
[0017] In an embodiment of the present application, when the vehicle information entertainment terminal wakes up the micro control unit and the system-on-chip in the low-power consumption mode, a power-on instruction is executed, and the power-on instruction is to power on the peripheral power supply and / or the system-on-chip.
[0018] The second aspect of the present application provides a low-power consumption control system of a vehicle information entertainment terminal, and the system includes:
[0019] A power gear detection module is configured to collect a gear state of a vehicle power supply;
[0020] An upgrade program running state detection module is configured to acquire a running state of an upgrade program of a micro control unit of the vehicle information entertainment terminal within a preset time length when the gear state is in the off gear;
[0021] A hibernation judgment module is configured to compare the running state with preset hibernation conditions, and judge whether the running state meets the preset hibernation conditions;
[0022] The hibernation execution module is configured to send a hibernation instruction to the system-on-chip of the in-vehicle infotainment terminal when the running state meets preset hibernation conditions.
[0023] The working state detection module is configured to acquire a working state of the system-on-chip during execution of the hibernation instruction.
[0024] The hibernation wake-up strategy execution module is configured to compare the working state with preset power-off conditions, and implement a hibernation wake-up strategy according to a comparison result, the hibernation wake-up strategy including adjusting power-on and power-off states of the peripheral power supply and the power supply of the system-on-chip, causing the micro control unit to enter a low-power consumption mode, and when the gear state of the in-vehicle power supply meets preset wake-up conditions in the low-power consumption mode, waking up the micro control unit and the system-on-chip in the low-power consumption mode.
[0025] In an embodiment of the present application, the system further includes a power-on module configured to execute a power-on instruction after the in-vehicle infotainment terminal wakes up the micro control unit and the system-on-chip in the low-power consumption mode, the power-on instruction being power-on of the peripheral power supply and / or the system-on-chip.
[0026] In an embodiment of the present application, the system further includes a timing module configured to time an upgrade behavior of the upgrade program and / or time a duration for which the system-on-chip enters hibernation.
[0027] In an embodiment of the present application, the hibernation wake-up strategy execution module further includes a detection module configured to detect a level of the gear of the in-vehicle power supply and an interrupt source.
[0028] In an embodiment of the present application, the system further includes a first power management module configured to manage power supply of the upgrade program, and a second power management module configured to manage power supply of an application program in the in-vehicle infotainment terminal.
[0029] The third aspect of the present application provides a device, which includes:
[0030] one or more processors;
[0031] a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the device to implement the low-power consumption control method of the in-vehicle infotainment terminal.
[0032] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program, which, when executed by a processor of a computer, causes the computer to execute the low-power consumption control method of the in-vehicle infotainment terminal.
[0033] The application has the beneficial effects that: the application collects the state of the vehicle-mounted power supply gear and judges, when the state of the power supply gear is in the off gear, the running state of the upgrade program in the preset time length is detected, whether it meets the preset sleep condition is judged, when the preset sleep condition is not met, that is, there is an upgrade behavior in the preset time length, the upgrade program continues to execute the upgrade instruction; when the preset sleep condition is met and the preset power-off condition is met, the peripheral power supply controlled by the micro control unit is powered off, and the micro control unit enters the low power consumption mode, if the preset power-off condition is not met, the system chip power supply is powered off. At the same time, the first power management module is set for the upgrade program, which can solve the problem that the power management of the conventional micro control unit is only in the application program, after the micro control unit fails to flash, the upgrade program is not associated with the sleep wake-up of the system chip and the power-off of the peripheral power supply, resulting in the power loss of the whole vehicle. The low power consumption control method of the vehicle-mounted information entertainment terminal of the application is simple, and the energy consumption of the vehicle is lower and more energy-saving through the method.
[0034] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory and are not restrictive of the application. BRIEF DESCRIPTION OF DRAWINGS
[0035] The drawings incorporated by reference in the specification and forming a part thereof illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application. It is clear that the drawings in the following description are only some embodiments of the application, and those skilled in the art can obtain other drawings from these drawings without creative labor. In the drawings:
[0036] Figure 1 is a micro control unit software overall architecture diagram of an exemplary embodiment of the application;
[0037] Figure 2 is a low power consumption control method flow chart of the vehicle-mounted information entertainment terminal of an exemplary embodiment of the application;
[0038] Figure 3 is a low power consumption control method flow chart of the vehicle-mounted information entertainment terminal of another exemplary embodiment of the application;
[0039] Figure 4 is a micro control unit first power management flow chart of another exemplary embodiment of the application;
[0040] Figure 5 is a block diagram of the low power consumption control system of the vehicle-mounted information entertainment terminal of an exemplary embodiment of the application;
[0041] Figure 6is an internal block diagram of a hibernate wake-up strategy execution module according to an example embodiment of the present application;
[0042] Figure 7 A structural diagram of a computer system of an electronic device suitable for implementing embodiments of the present application is shown. DETAILED DESCRIPTION
[0043] Other advantages and effects of the present application can be easily understood by those skilled in the art from the above description of the embodiments of the present application. The present application can also be implemented or applied in other different specific embodiments, and the details in the specification can be modified or changed based on different views and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, and are not intended to limit the protection scope of the present application.
[0044] It should be noted that the diagrams provided in the following embodiments only schematically illustrate the basic concept of the present application, and only show the components related to the present application in the diagrams, rather than being drawn according to the number, shape and size of the components in actual implementation. The shapes, number and proportions of the components in actual implementation can be arbitrarily changed, and the layout pattern of the components can be more complex.
[0045] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application, however, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details, and in other embodiments, the well-known structures and devices are shown in the form of block diagrams rather than in the form of details, to avoid making the embodiments of the present application difficult to understand.
[0046] First of all, it should be noted that power-off in the present application is equivalent to power-down.
[0047] MCU, Microcontroller Unit, also known as Single Chip Microcomputer or Single Chip Microprocessor, is a computer that integrates the frequency and specifications of a central processing unit (CPU), memory, counters, USB, A / D conversion, UART (asynchronous receiver-transmitter), PLC (programmable logic controller), DMA (direct memory access), and even LCD (liquid crystal display) drive circuit on a single chip, forming a chip-level computer for different application scenarios. For example, mobile phones, PC peripherals, remote controls, automotive electronics, industrial stepper motors, and robot arm controls.
[0048] SOC(System on Chip), system on chip, also called system on a chip, means it is a product, is a dedicated target integrated circuit, which contains a complete system and embedded software. It is also a technology to achieve the whole process from the determination of system function, to the division of software and hardware, and to the completion of design. SOC starts from reset, and then loads the code from the power-off saveable chip, such as Flash, to SRAM (storage chip in SOC chip) through a general-purpose loading program, such as bootloader. SOC can include three power management state machines, running, startup and shutdown.
[0049] Bootloader, upgrade program, in embedded operating system, Bootloader runs before the operating system kernel runs. It can initialize hardware devices, establish memory space mapping, and thus bring the system software and hardware environment to a suitable state, so as to prepare the correct environment for the final call of the operating system kernel. In embedded systems, there is usually no firmware program like BIOS (Basic Input Output System) (some embedded CPUs also have a short startup program), so the entire system loading and starting task is completely completed by Bootloader.
[0050] GPIO (General-purpose input / output), general-purpose input / output, similar to the functions of P0-P3 of 8051, its pins can be freely used by the user through program control, PIN can be used as general input (GPI) or general output (GPO) or general input and output (GPIO), such as when clk generator, chip select, etc. Since a pin can be used for input, output or other special functions, there must be a register to select these functions. For input, the high and low of the pin potential can be determined by reading a certain register; for output, the pin can output high or low potential by writing a certain register; for other special functions, there are other registers to control them.
[0051] DC (Direct Current), also known as DC / DC, refers to a device that converts a DC power supply of a certain voltage level into a DC power supply of another voltage level. DC / DC is categorized by voltage conversion relationship: step-up power supplies and step-down power supplies. It is also categorized by input-output relationship: isolated power supplies and non-isolated power supplies. For example, the DC / DC converter connected to an on-board DC power supply converts high-voltage DC power into low-voltage DC power. DC / DC stands for direct current to direct current (DC to DC) (conversion of different DC power values), and any device that meets this definition can be called a DC / DC converter. Specifically, it converts DC input power into alternating current (AC) through a self-excited oscillating circuit, then converts the voltage back to DC output after a transformer, or converts AC power into high-voltage DC output through a voltage-doubling rectifier circuit.
[0052] An LDO (low-dropout linear regulator) is a new generation of integrated circuit voltage regulators. Unlike three-terminal regulators, an LDO is a miniature system-on-chip (SoC) with very low self-consumption. It can be used for main current channel control. The chip integrates hardware circuits such as MOSFETs with extremely low on-resistance, Schottky diodes, sampling resistors, and voltage divider resistors. It also features overcurrent protection, overtemperature protection, a precision reference source, a differential amplifier, and a delay circuit. PG is a new generation of LDOs with self-checking functions for each output state and delayed safe power supply. It is also called "power good," meaning "good power or stable power." LDOs typically have extremely low inherent noise and a high power supply rejection ratio (PSRR).
[0053] Figure 1 This is a diagram showing the overall architecture of the microcontroller software according to an exemplary embodiment of the present application. Figure 1As shown, the MCU software in the vehicle infotainment terminal of the embodiment includes two parts of an upgrade program (bootloader) and an application program (APP). The bootloader is the first code running when the MCU is powered on, which can realize the update and upgrade of the APP in the MCU through the communication interface, and brings convenience for the APP upgrade of the networked embedded product. The bootloader of the embodiment mainly executes the upgrade processing program and the first power management program. The first power management is based on the upgrade behavior of the bootloader, and the object of the first power management is the peripheral power of the MCU controlled on the vehicle circuit board, such as TIMER (timer), watchdog, interrupt controller and UART (universal asynchronous receiver transmitter), etc., and the SOC in the vehicle infotainment terminal. The execution program of the first power management of the embodiment is to power off, power on the peripheral power of the MCU, and put the SOC to sleep and wake up. The embodiment adds the first power management function to the bootloader, and relates the originally independent upgrade processing behavior of the bootloader to the power off, power on of the MCU and the sleep and wake up of the SOC, so as to avoid the situation that after the bootloader fails to upgrade the APP, the MCU continuously stays in the bootloader running program, and the vehicle infotainment terminal assembly is always in the non-sleep high power consumption state.
[0054] The APP of the embodiment mainly executes the signal conversion, complex driver and second power management program. Among them, the complex driver (Complex Drivers) of the APP is between the microcontroller hardware layer and the RTE (run wake-up), and its main task is to integrate non-standard function modules with special purposes and cannot be configured by the MCAL (microcontroller abstraction layer), embed this part of function into the AUTOSAR basic software layer, and thus process the specific functions and time requirements of complex sensors and actuators. The complex driver can use specific interrupts or complex microcontroller peripherals to directly access the microcontroller, so as to realize the evaluation of complex sensors and the control of actuators, such as automobile fuel injection control, electromagnetic valve control, incremental position detection, etc. The APP can use the second power management to arrange tasks, such as managing device startup, keeping running, putting the running program in the APP to sleep and wake up, etc., which can optimize the power consumption of the APP. The first power management and the second power management are independent of each other in the embodiment.
[0055] Figure 2 It is a low-power control method flow chart of the vehicle infotainment terminal shown in an exemplary embodiment of the present application. As shown in the figure, Figure 2 The embodiment includes steps S210 to S250, which are described in detail as follows:
[0056] Step S210, collect the gear state of the vehicle power supply.
[0057] The embodiment collects the power supply level of the input hardwire of the vehicle infotainment terminal, and judges whether it is in the off gear or the start gear. The input hardwire transmits a hardwire signal, which is directly connected to the pin (PIN) of the chip and transmits high and low levels, such as the ignition control of the vehicle infotainment terminal. If it is judged that the ignition switch of the vehicle infotainment terminal is in the off gear, i.e. in the off state, the timer in the vehicle infotainment terminal is started.
[0058] In step S220, when the gear state is in the off gear, the running state of the upgrade program of the micro control unit of the vehicle infotainment terminal in the preset time length is obtained.
[0059] The preset time length of the embodiment can be 10 minutes, and the specific parameters of the preset time length are not limited here, and are set according to the actual situation. The running state of the upgrade program includes the existence of the upgrade behavior in the preset time length and the non-existence of the upgrade behavior in the preset time length.
[0060] In step S230, the running state is compared with the preset sleep condition, and when the running state meets the preset sleep condition, a sleep instruction is sent to the system-on-chip of the vehicle infotainment terminal.
[0061] The preset sleep condition of the embodiment is that when the vehicle power gear is in the off gear, the upgrade program has no upgrade behavior in the preset time length. When the upgrade program (bootloader) has an upgrade behavior in the preset time length, it means that it is still updating the APP, and the timer in step S210 is timed and cleared to ensure that the upgrade task of the APP can be normally executed.
[0062] When the bootloader has no upgrade behavior in the preset time length, the preset sleep condition is met, and a general-purpose input and output (GPIO) is pulled up to notify the system-on-chip (SOC) to sleep and start the timer for waiting for the SOC to sleep. The GPIO is the most basic peripheral function that the micro control unit (MCU) must have, and it usually has three states: high level, low level and high resistance state. The high resistance state is the disconnected state or the floating state. Therefore, the pull-up GPIO is used to prevent the input end from being suspended, so that it has a certain state and reduces the interference of external current to the MCU. The pull-up GPIO is to raise the uncertain signal to high level through a resistor. The SOC integrates 40 bidirectional GPIOs, and the input and output direction of each GPIO is controlled by a direction register, and the input and output level value of the pin is saved in the corresponding input / output value register. Therefore, the embodiment notifies the CPU of the SOC and all circuit blocks of the peripheral circuit to stop running and the external clock to be closed by pulling up the GPIO, so as to achieve the sleep state and reduce the energy consumption loss of the vehicle infotainment terminal.
[0063] Step S240, the working state of the system on chip in the process of executing the sleep instruction is acquired.
[0064] The working state of the embodiment in the process of executing the sleep instruction includes having slept and not having slept.
[0065] Step S250, the working state is compared with the preset power-off condition, and a sleep wake-up strategy is implemented according to a comparison result, the sleep wake-up strategy including adjusting the power-on and power-off state of the power supply of the peripheral device and the power supply of the system on chip, making the micro control unit enter a low power consumption mode, and when the gear state of the vehicle-mounted power supply meets the preset wake-up condition in the low power consumption mode, waking up the micro control unit and the system on chip in the low power consumption mode.
[0066] The preset power-off condition is timing the time length for the system on chip to enter sleep, and when the time length reaches a preset sleep threshold, the working state of the system on chip is having slept. The preset sleep threshold can be 1 min, and the value of the preset sleep threshold is not limited here and can be set according to actual needs.
[0067] When the timer in step S230 times to the preset sleep threshold, the embodiment monitors the level of the GPIO in real time, and feeds back whether the working state of the SOC is in the sleep state through the level of the GPIO. For example, when the GPIO is in the high resistance state, the working state of the SOC is having slept.
[0068] The sleep wake-up strategy of the embodiment specifically includes:
[0069] If the SOC feeds back that it has slept through the GPIO when the timer in step S230 times to the preset sleep threshold, the power supply of the rest of the peripheral devices controlled by the MCU on the vehicle-mounted circuit board is cut off, and the principle followed is to cut off the power supply of the chip first, and then cut off the power supply of the DC / DC power supply and the LDO power supply, including the system 5V power supply and the system 3.3V power supply, such as the power supply of the vehicle computer board and the power supply of the vehicle information entertainment system. The power supply of the system on chip that has slept is not cut off when the power supply of the peripheral device is cut off in the embodiment.
[0070] If the SOC feeds back that it is not in the sleep state through the GPIO when the timer in step S230 times to the preset sleep threshold, the power supply of the SOC is cut off to reduce the power loss of the whole vehicle. At this time, the MCU enters the low power consumption mode.
[0071] When the gear state of the vehicle-mounted power supply meets the preset wake-up condition in the low power consumption mode, the micro control unit and the system on chip in the low power consumption mode are woken up, and the specific wake-up way is as follows:
[0072] The preset wake-up condition is that the vehicle information entertainment terminal detects that there is a wake-up source, and the wake-up source is that the gear of the vehicle-mounted power supply is in the starting gear.
[0073] The embodiment sets the starting gear of the vehicle-mounted power supply gear as the wake-up source, and sets the GPIO interrupt of the power supply gear signal to detect the power supply gear level and the interrupt source in real time. The interrupt source can be a key, a timer, ADC conversion completion, UART data generation and reception, etc. The GPIO interrupt refers to the interrupt generated by the GPIO module, which has an edge trigger interrupt or a level flip interrupt.
[0074] When the MCU enters the low-power mode, the wake-up source is detected, and the GPIO of the power supply gear signal is not interrupted, the MCU and the SOC are awakened once after a preset interval. The preset interval can be 100 ms, and the value of the preset interval is not limited here, which can be set according to the actual situation.
[0075] If the power supply gear level changes and the GPIO interrupt is detected, it is determined that the power supply is in an abnormal state, and the interrupt source is detected for subsequent maintenance processing.
[0076] In a specific embodiment of the present application, when the vehicle information entertainment terminal wakes up the micro control unit and the system level chip in the low-power mode, the power-on instruction is executed, and the power-on instruction is the power-on of the peripheral power supply and / or the SOC. After the vehicle information entertainment terminal wakes up the micro control unit and the system level chip in the low-power mode, the MCU exits the low-power mode and executes the power-on process of the peripheral power supply controlled by the MCU. If the SOC power supply is powered off during the foregoing power-off process of the peripheral power supply, the SOC power supply is powered on at this time to make the MCU and the SOC enter the normal running state. When the MCU and the SOC meet the preset sleep condition, the low-power mode is entered again.
[0077] Figure 3 is a low-power control method flow chart of a vehicle information entertainment terminal according to another exemplary embodiment of the present application. As shown in Figure 2 The embodiment includes steps S310 to S370, which are described in detail as follows:
[0078] Step S310, start.
[0079] Step S320, determine whether the running state meets the preset sleep condition.
[0080] When it is determined that the running state of the upgrade program meets the preset sleep condition, i.e., the bootloader has no upgrade behavior within the preset time, the next program is performed. When it is determined that the running state of the upgrade program does not meet the preset sleep condition, i.e., the bootloader has an upgrade behavior within the preset time, the bootloader maintains its upgrade behavior and continuously detects its upgrade behavior.
[0081] Step S330, execute the SOC sleep instruction and time.
[0082] When the bootloader has no upgrade behavior within the preset time length, pull up the GPIO to notify the SOC to sleep and start the timer waiting for the SOC to sleep.
[0083] Step S340, determine whether the preset power-off condition is met.
[0084] Step S350, the peripheral power is turned off, and the SOC is continuously powered on.
[0085] When it is determined that the preset power-off condition is met, i.e., when the preset sleep threshold is reached and the SOC has been put to sleep, the peripheral power controlled by the MCU is turned off, and the SOC power that has been put to sleep is not turned off.
[0086] Step S360, the SOC is powered off.
[0087] When it is determined that the preset power-off condition is not met, i.e., when the preset sleep threshold is reached and the SOC has not been put to sleep, the SOC power is turned off.
[0088] Step 370, end.
[0089] After the power-off is completed, the MCU enters a low-power mode and the SOC is in a sleep state.
[0090] Figure 4 is a microcontroller first power management flowchart shown in another exemplary embodiment of the present application. As shown in the embodiment, it includes steps S4001 to S4013, which are described in detail as follows: Figure 4
[0091] Step S4001, start.
[0092] Step S4002, whether the vehicle power supply gear is in the off gear.
[0093] When it is determined that the vehicle power supply gear is not in the off gear, the subsequent program is not executed, and the power supply gear is continuously detected.
[0094] Step S4003, start the off gear timer and begin timing.
[0095] When it is determined that the vehicle power supply gear is in the off gear, the timer starts timing.
[0096] Step S4004, whether the upgrade program has an upgrade behavior.
[0097] Step S4005, clear the timer.
[0098] When it is determined that the bootloader has an upgrade behavior, the gear timer is cleared to ensure that the bootloader can perform the upgrade task normally.
[0099] Step S4006: reaching the preset time length.
[0100] When the timer reaches the preset time and the bootloader does not perform any upgrade behavior within the preset time, the subsequent program is executed.
[0101] Step S4007, executing the SOC sleep instruction.
[0102] When the timer reaches the preset duration and the bootloader does not perform any upgrade behavior within the preset duration, the GPIO is pulled up to notify the SOC to sleep.
[0103] Step S4008: Power off the peripheral device.
[0104] When it is determined that the preset power-off condition is met, that is, when the preset sleep threshold is reached and the SOC is in sleep mode, the power supply of the peripherals controlled by the MCU is cut off, and the power supply of the SOC in sleep mode is not cut off.
[0105] Step S4009: Set the wakeup source and put the MCU into low power consumption mode.
[0106] Set the vehicle power gear start gear as the wake-up source.
[0107] Step S4010: Whether the preset wake-up condition is met.
[0108] When it is determined that the vehicle power gear is not in the start gear, the preset wake-up condition is not met, and the process jumps to step S4009.
[0109] Step S4011: The MCU exits low power consumption and powers on peripheral devices.
[0110] When the preset wake-up conditions are met and the GPIO power level signal is not interrupted, the MCU and SOC are awakened. The MCU and SOC are self-awakened once every preset interval. After waking up, the MCU exits low-power mode and powers on peripherals controlled by the MCU. If the SOC power supply is turned off during the peripheral power-off process, the SOC power supply is powered on at this time.
[0111] Step S4012, enter normal working state.
[0112] MCU and SOC enter normal working state.
[0113] Step S4013, end.
[0114] Figure 5FIG is a block diagram of a low power consumption control system of an in-vehicle infotainment terminal according to an exemplary embodiment of the present application. Figure 5 As shown, the system of this embodiment includes:
[0115] The power gear detection module 5001 is used to collect the gear status of the vehicle power supply;
[0116] The upgrade program running state detection module 5002 is used to obtain the running state of the upgrade program of the vehicle infotainment terminal micro control unit within a preset time period when the gear state is in the closed gear position;
[0117] A sleep determination module 5003 is configured to compare the operating state with a preset sleep condition to determine whether the operating state satisfies the preset sleep condition;
[0118] The sleep execution module 5004 is used to send a sleep instruction to the system-level chip of the in-vehicle infotainment terminal when the running state meets the preset sleep condition;
[0119] The working state detection module 5005 is used to obtain the working state of the system-level chip during the execution of the sleep instruction;
[0120] The sleep / wake-up strategy execution module 5006 is used to compare the working status with the preset power-off condition to implement the sleep / wake-up strategy according to the comparison result. The sleep / wake-up strategy includes adjusting the power-up and power-down states of the peripheral power supply and the system-level chip power supply to put the microcontroller unit into a low-power mode, and waking up the microcontroller unit and the system-level chip in the low-power mode when it is detected in the low-power mode that the gear state of the vehicle power supply meets the preset wake-up condition.
[0121] The power-on module 5007 is used to execute a power-on instruction after waking up the microcontroller unit and the system-on-chip in the low-power mode of the in-vehicle infotainment terminal, wherein the power-on instruction is to power on the peripheral power supply and / or the system-on-chip;
[0122] The timing module 5008 is used to time the upgrade behavior of the upgrade program and / or time the duration of the system-level chip being in sleep mode;
[0123] The first power management module 5009 is used to perform power management on the upgrade program; the second power management module 5010 is used to perform power management on the application program in the in-vehicle infotainment terminal.
[0124] Figure 6 FIG. 1 is an internal block diagram of a sleep / wake-up strategy execution module according to an exemplary embodiment of the present application. Figure 6 As shown, in a specific embodiment of the present application, the sleep / wake-up strategy execution module 5006 further includes a detection module 6001 for detecting the level of the vehicle power gear and the interrupt source.
[0125] It should be noted that the low-power consumption control system of the vehicle infotainment terminal provided in the above embodiments and the low-power consumption control method of the vehicle infotainment terminal provided in the above embodiments belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiments, which will not be described here. The low-power consumption control system of the vehicle infotainment terminal provided in the above embodiments can be applied in actual applications, and the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0126] Embodiments of the present application also provide a device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the device implements the low-power consumption control method of the vehicle infotainment terminal provided in each of the above embodiments.
[0127] Figure 7 The structure of the computer system of the electronic device suitable for implementing the embodiments of the present application is shown. It should be noted that, Figure 7 The computer system 700 of the electronic device shown is only an example, and should not limit the functions and use range of the embodiments of the present application.
[0128] As Figure 7 shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 702 or programs loaded from a storage portion 708 into a random access memory (RAM) 703, such as performing the methods described in the above embodiments. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0129] The following components are connected to the I / O interface 705: an input part 706 including a keyboard, a mouse, etc.; an output part 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage part 708 including a hard disk, etc.; and a communication part 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as necessary. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 710 as necessary, so that a computer program read out therefrom is installed in the storage part 708 as necessary.
[0130] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing a computer program for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, various functions defined in the system of the present application are executed.
[0131] It should be noted that the computer-readable medium in the embodiments shown in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may, for example, be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable signal medium can include a data signal propagating in a baseband or as a carrier wave in a propagated data signal, in which the computer-readable computer program is carried. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit programs for use by or in connection with an instruction execution system, device or component. The computer program contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination of the above.
[0132] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different order than that shown in the drawings. For example, two blocks represented in succession can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0133] The units described in the embodiments of the present application can be implemented in the form of software, or can be implemented in the form of hardware, and the described units can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0134] Another aspect of the present application also provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor of a computer, so that the computer executes the low-power consumption control method of the in-vehicle infotainment terminal as described above. The computer readable storage medium can be included in the electronic device described in the above embodiments, or can exist separately and not be assembled into the electronic device.
[0135] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the low-power consumption control method of the in-vehicle infotainment terminal provided in each of the above embodiments.
[0136] The above embodiments only exemplarily illustrate the principles and effects of the present application, and are not used to limit the present application. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes completed by any person skilled in the art without departing from the spirit and technical thought of the present application should be covered by the claims of the present application.
Claims
1. A low-power consumption control method for an in-vehicle infotainment terminal, characterized by, The method comprises: collecting a gear state of a vehicle-mounted power supply; when the gear state is in an off gear, obtaining a running state of an upgrade program of a micro control unit of a vehicle-mounted information and entertainment terminal within a preset time length; comparing the running state with a preset sleep condition, and when the running state meets the preset sleep condition, sending a sleep instruction to a system level chip of the vehicle-mounted information and entertainment terminal; obtaining a working state of the system level chip during execution of the sleep instruction; comparing the working state with a preset power-off condition to implement a sleep wake-up strategy according to a comparison result, the sleep wake-up strategy comprising adjusting power-on and power-off states of a peripheral power supply and a power supply of the system level chip, causing the micro control unit to enter a low-power consumption mode, and when the gear state of the vehicle-mounted power supply meets a preset wake-up condition in the low-power consumption mode, waking up the micro control unit and the system level chip in the low-power consumption mode.
2. The low power consumption control method of an in-vehicle infotainment terminal according to claim 1, characterized by, The preset sleep condition is that when the gear state of the vehicle-mounted power supply is in the off gear, the running state of the upgrade program within the preset time length is no upgrade behavior.
3. The low power consumption control method of an in-vehicle infotainment terminal according to claim 1, characterized by, The sleep instruction is to pull up a general-purpose input and output to notify the system level chip to sleep.
4. The low power consumption control method of the in-vehicle infotainment terminal according to claim 1, characterized by, The preset power-off condition is to time a time length for the system level chip to enter sleep, and when the time length reaches a preset sleep threshold, the working state of the system level chip is already sleeping.
5. The low power consumption control method of the in-vehicle infotainment terminal according to claim 1, characterized by, The preset wake-up condition is that the vehicle-mounted information and entertainment terminal detects an existing wake-up source, and the wake-up source is that the gear state of the vehicle-mounted power supply is in a start gear.
6. The low power consumption control method of the in-vehicle infotainment terminal according to claim 1, characterized by, After the vehicle-mounted information and entertainment terminal wakes up the micro control unit and the system level chip in the low-power consumption mode, an upper power-on instruction is executed, and the upper power-on instruction is to power on the peripheral power supply and / or the system level chip.
7. A low power consumption control system for an in-vehicle infotainment terminal, characterized by, The system comprises: a power supply gear detection module for collecting a gear state of a vehicle-mounted power supply; an upgrade program running state detection module for obtaining a running state of an upgrade program of a micro control unit of a vehicle-mounted information and entertainment terminal within a preset time length when the gear state is in an off gear; a sleep judgment module for comparing the running state with a preset sleep condition; a sleep execution module for sending a sleep instruction to a system level chip of the vehicle-mounted information and entertainment terminal when the running state meets the preset sleep condition; a working state detection module for obtaining a working state of the system level chip during execution of the sleep instruction; a sleep wake-up strategy execution module for comparing the working state with a preset power-off condition to implement a sleep wake-up strategy according to a comparison result, the sleep wake-up strategy comprising adjusting power-on and power-off states of a peripheral power supply and a power supply of the system level chip, causing the micro control unit to enter a low-power consumption mode, and when the gear state of the vehicle-mounted power supply meets a preset wake-up condition in the low-power consumption mode, waking up the micro control unit and the system level chip in the low-power consumption mode.
8. The low power control system of an in-vehicle infotainment terminal according to claim 7, characterized by, The system further comprises a power-on module for executing an upper power-on instruction after the vehicle-mounted information and entertainment terminal wakes up the micro control unit and the system level chip in the low-power consumption mode, and the upper power-on instruction is to power on the peripheral power supply and / or the system level chip.
9. The low power control system of an in-vehicle infotainment terminal according to claim 7, characterized by, The system further comprises a timing module configured to time the upgrade behavior of the upgrade program and / or time the duration for which the system-on-chip enters the sleep state.
10. The low power control system of an in-vehicle infotainment terminal according to claim 7, characterized by, The sleep wake-up strategy execution module further comprises a detection module configured to detect the level of the vehicle power supply gear and the interrupt source.
11. The low power control system of an in-vehicle infotainment terminal according to claim 7, characterized by, The system further comprises a first power management module configured to manage the power supply of the upgrade program; and a second power management module configured to manage the power supply of the application programs in the in-vehicle infotainment terminal.
12. An apparatus, comprising: The apparatus comprises: one or more processors; a storage device for storing one or more programs, which, when executed by the one or more processors, cause the apparatus to implement the low-power consumption control method of the in-vehicle infotainment terminal according to any one of claims 1 to 6.
13. A computer-readable storage medium, characterized in that, A computer program is stored thereon, which, when executed by a processor of a computer, causes the computer to perform the low-power consumption control method of the in-vehicle infotainment terminal according to any one of claims 1 to 6.
Citation Information
Patent Citations
Application starting method and device, storage medium and electronic equipment
CN112988256A
Control method and system for car networking system
CN114312618A