Dormancy detection method and system, electronic equipment and vehicle
By implementing a dormant detection method in a vehicle, the power consumption of the electronic control unit is detected and abnormal information is generated, the problem of continuous high vehicle power consumption caused by the electronic control unit being unable to enter the dormant state is solved, and the situation of reducing vehicle power consumption and avoiding power feeding is achieved.
Patent Information
- Application Number
- CN202510492804.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-06-06
AI Technical Summary
The electronic control unit cannot enter the dormant state due to software bugs or component failures, which continuously consumes vehicle power consumption, resulting in the vehicle being fed.
By implementing a sleep detection method in the vehicle, the electronic control unit is controlled to enter the sleep state in response to the sleep command, and calculate and detect the power consumption of the control unit within a unit time. If the power consumption is greater than the preset threshold, sleep abnormal information is generated.
Ensure that all electronic control units enter the dormant state, reduce vehicle power consumption, avoid the vehicle's power feeding situation, and deal with electronic control units that have not entered the dormant state through fault analysis.
Smart Images

Figure CN120096491A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a sleep detection method, system, electronic device and vehicle. Background Art
[0002] With the continuous development of the vehicle technology field, users have higher and higher requirements for vehicle functions. In order to meet the driving needs of users, multiple electronic control units are set in the vehicle. Different electronic control units can realize different functions to control the normal operation of the vehicle. For example, the air conditioning electronic control unit can control the temperature in the vehicle, and the engine electronic control unit can control the engine's air intake, fuel injection, and ignition time to control the speed of the vehicle.
[0003] At present, after the vehicle is turned off, if there is no business process in the electronic control unit, the electronic control unit can sleep, minimizing the power consumption of the vehicle to save the battery power in the vehicle. However, if the electronic control unit software bug or internal component failure causes business abnormalities in the electronic control unit, the electronic control unit cannot enter the sleep state, and then the vehicle power consumption continues to be consumed, causing the vehicle to be powered off. Summary of the invention
[0004] In view of the above, the present application provides a sleep detection method, system, electronic device and vehicle, which can solve the problem that if the software bug of the electronic control unit or the internal failure of the components causes the business abnormality in the electronic control unit, the electronic control unit cannot enter the sleep state, and then the vehicle's power consumption is continuously consumed, causing the vehicle to be powered off.
[0005] The first aspect of the present application discloses a sleep detection method, which is applied to a vehicle, wherein the vehicle includes at least one electronic control unit; the method includes: in response to a sleep instruction, controlling all the electronic control units to enter a sleep state; determining the power consumption of the control unit, wherein the power consumption of the control unit represents the power consumption of all the electronic control units per unit time; and generating sleep abnormality information when the power consumption of the control unit is greater than a preset threshold.
[0006] Compared with the related art, the embodiments of the present application have at least the following advantages: After all electronic control units are controlled to enter the dormant state, the power consumption of all electronic control units per unit time is calculated to confirm whether all electronic control units have entered the dormant state. Then, it is detected whether the power consumption of the control unit is greater than a preset threshold. If it is detected that the power consumption of the control unit is greater than the preset threshold, it indicates that at least one electronic control unit has not entered the dormant state. At this time, dormant abnormal information needs to be generated. This is to facilitate the subsequent processing of the electronic control unit that has not entered the dormant state, so as to solve the problem of vehicle power supply caused by the electronic control unit not entering the dormant state.
[0007] In some possible implementations, the vehicle also includes an energy consumption collection component for collecting the power consumption of the electronic control unit; determining the power consumption of the control unit includes: obtaining a first current value flowing through the energy consumption collection component; based on the first current value, calculating the cumulative power consumption, the cumulative power consumption represents the total power consumed by all the electronic control units within a first preset time period; and taking the quotient between the cumulative power consumption and the first preset time period as the power consumption of the control unit.
[0008] In some possible implementations, before calculating the cumulative power consumption, the method further includes: after a second preset time period, clearing the cumulative power consumption calculated in the historical period, the second preset time period being the time period starting from the first moment in response to the sleep instruction, the first preset time period being the time period starting from the second moment, the second moment being the moment after the first moment, and the time period between the first moment and the second moment being greater than or equal to the second preset time period.
[0009] In some possible implementations, after generating the sleep exception information, the method includes: in response to a state transition instruction, controlling all the electronic control units to transition from a current state to a normal operating state, and controlling all the electronic control units to transition from the normal operating state to the sleep state; and / or, in response to a fault analysis instruction, performing a fault analysis on the electronic control units based on the sleep exception information to generate a fault analysis result.
[0010] In some possible implementations, before controlling all the electronic control units to enter a sleep state in response to a sleep instruction, the method further includes: when the vehicle is in an ignition-off state, issuing the sleep instruction after a third preset time period, the third preset time period being the time period starting from a third moment in response to the ignition-off instruction.
[0011] In some possible implementations, the process of determining the preset threshold includes: acquiring a sleep current of each electronic control unit in the sleep state; and taking a sum of multiple sleep currents as the preset threshold.
[0012] In some possible implementations, after controlling all the electronic control units to enter a sleep state in response to a sleep instruction, the method includes: obtaining a second current value flowing through each of the electronic control units, one second current value corresponding to one electronic control unit; if any of the second current values is greater than a preset current threshold within a preset time period, generating the sleep exception information.
[0013] The second aspect of the present application discloses a sleep detection system, which includes a mode management module, a sleep monitoring module and at least one electronic control unit; the mode management module is used to issue a sleep instruction so that all the electronic control units enter a sleep state when they receive the sleep instruction; the sleep monitoring module is used to determine the power consumption of the control unit, and when the power consumption of the control unit is greater than a preset threshold, trigger the mode management module to generate sleep exception information, wherein the power consumption of the control unit represents the power consumption of all the electronic control units per unit time.
[0014] The third aspect of the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the sleep detection method as described above.
[0015] A fourth aspect of the present application discloses a vehicle, comprising computer instructions, which, when executed on the vehicle, enable the vehicle to execute the sleep detection method as described above.
[0016] It can be understood that the sleep detection system of the second aspect, the electronic device of the third aspect and the vehicle of the fourth aspect provided above all correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flowchart of a sleep detection method according to an embodiment of the present application.
[0018] Figure 2 This is a schematic diagram of the structure of an energy consumption collection component and an electronic control unit according to an embodiment of the present application.
[0019] Figure 3 Another step flow chart of a sleep detection method according to an embodiment of the present application.
[0020] Figure 4 This is a schematic diagram of the structure of a sleep detection system according to an embodiment of the present application.
[0021] Figure 5 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.
[0023] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0025] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0026] In this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0027] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0028] An embodiment of the present application provides a sleep detection method. The sleep detection method is applied to a vehicle, and specifically, the sleep detection method is applied to a sleep detection system in a vehicle. The specific structure of the sleep detection system is described in detail later and will not be repeated here. In this embodiment, the vehicle includes at least one electronic control unit, and the vehicle can be a new energy vehicle, a fuel vehicle, an engineering vehicle, etc. The present application does not limit the specific type of the vehicle.
[0029] At least one electronic control unit may include an air conditioning electronic control unit, an engine electronic control unit, a gearbox electronic control unit, a vehicle electronic control unit, an electronic stability system control unit, etc. Among them, the air conditioning electronic control unit can control the temperature in the vehicle, and the engine electronic control unit can control the engine's air intake, fuel injection, ignition timing, etc., to control the speed of the vehicle.
[0030] The transmission electronic control unit can monitor signals such as vehicle speed, engine speed, and accelerator pedal position. Based on the vehicle's driving status and the driver's operating intentions, and in accordance with the preset shifting logic, it can accurately control the transmission's shifting timing and shifting process, so that the vehicle can select the most appropriate gear under different road conditions and driving conditions, ensuring the smoothness and economy of power output.
[0031] The vehicle's electronic control unit can collect operating signals from the driver's accelerator pedal, brake pedal, shift handle, and other operating signals, as well as feedback information such as the vehicle's speed, battery status, and motor status, conduct comprehensive analysis and processing, and send control instructions to each subsystem to realize the vehicle's starting, acceleration, deceleration, braking and other driving control functions.
[0032] The electronic stability system control unit can monitor the vehicle's driving status in real time through wheel speed sensors, lateral acceleration sensors, steering wheel angle sensors, etc.; when the vehicle shows unstable trends such as oversteer or understeer, the electronic stability system control unit will automatically intervene in the braking of the corresponding wheels and adjust the engine torque to keep the vehicle in a stable driving posture and prevent dangerous situations such as skidding and tailspinning.
[0033] Please refer to Figure 1 , a sleep detection method is provided for an embodiment of the present application. The sleep detection method comprises the following steps: Step 101: In response to a sleep instruction, control all electronic control units to enter a sleep state.
[0034] In order to ensure that the subsequent vehicle can smoothly enter the dormant state, before executing this step, it is also possible to execute: the dormant detection system detects whether the vehicle is in the ignition off state. If the vehicle is detected to be in the ignition off state, a dormant command is issued after the third preset time length, so as to notify all electronic control units to enter the dormant state. Among them, the third preset time length is the time length starting from the third moment in response to the ignition off command. The third preset time length can be 3 minutes, 4 minutes or 5 minutes, and this application does not limit the specific value of the third preset time length.
[0035] In this embodiment, when the vehicle is in the starting state, after the driver presses the ignition switch, the vehicle will issue a shutdown command.
[0036] When the vehicle is in an off state and the sleep command is issued after the third preset time, it can be ensured that the vehicle is completely out of use, so that all electronic control units can be smoothly controlled to enter the sleep process subsequently.
[0037] Furthermore, in response to the sleep instruction, the sleep detection system controls all electronic control units to enter a sleep state. When the electronic control units are in a sleep state, the power consumption of the vehicle can be reduced.
[0038] Step 102: Determine the power consumption of the control unit, where the power consumption of the control unit represents the power consumption of all electronic control units per unit time.
[0039] In order to ensure the accuracy of the subsequent sleep abnormality information determined based on the power consumption of the control unit, before executing this step, it is also possible to perform: after the second preset time, the cumulative power consumption calculated in the historical period is cleared. The second preset time is the time length starting from the first moment in response to the sleep instruction. Among them, the second preset time length can be 5 minutes, 6 minutes or 7 minutes, and this application does not limit the specific value of the second preset time length.
[0040] Before determining the power consumption of the control unit, the cumulative power consumption calculated in the historical period is first cleared to ensure the accuracy of the power consumption of the control unit calculated subsequently. The cumulative power consumption represents the sum of the power consumed by all electronic control units within the first preset duration. The first preset duration is the duration starting from the second moment, the first moment is the moment after the third moment, the second moment is the moment after the first moment, and the duration between the first moment and the second moment is greater than or equal to the second preset duration. The first preset duration can be 1.5 hours, 2 hours, 2.5 hours or 3 hours, and this application does not limit the specific value of the first preset duration.
[0041] After the accumulated power consumption calculated in the historical period is cleared, the power consumption of the control unit can be determined. To determine the power consumption of the control unit, an energy consumption collection component is required. The energy consumption collection component is set in the vehicle, and the energy consumption collection component is a component that collects the power consumption of the electronic control unit. The energy consumption collection component is electrically connected to all electronic control units in series.
[0042] Please refer to Figure 2 , Figure 2 The figure is a schematic diagram of the circuit connection between the electronic control unit and the energy consumption collection component. When there are multiple electronic control units, the multiple electronic control units are connected in parallel, and then the multiple electronic control units and the energy consumption collection component are connected in series. Similarly, when there is only one electronic control unit, the electronic control unit and the energy consumption collection component are connected in series. Figure 2 The arrows in the diagram indicate the direction of current flow in the circuit.
[0043] In this embodiment, the energy consumption collection component can be a battery sensor. In other embodiments, the energy consumption collection component can also be a shunt or a Rogowski coil. This application does not limit the specific type of the energy consumption collection component, as long as the energy consumption collection component can obtain the current of the circuit where the energy consumption collection component is located.
[0044] Specifically, the step of determining the power consumption of the control unit includes: obtaining a first current value flowing through the energy consumption collection component, calculating the accumulated power consumption based on the first current value, and taking the quotient between the accumulated power consumption and the first preset time as the power consumption of the control unit.
[0045] In this embodiment, based on the first current value, the cumulative power consumption can be calculated as follows: cumulative power consumption = , wherein the difference of t2 minus t1 is equal to the first preset duration, t1 is the starting time point of the first preset duration, and t2 is the ending time point of the first preset duration.
[0046] Step 103: When the power consumption of the control unit is greater than a preset threshold, generate sleep abnormality information.
[0047] It is understandable that when the electronic control unit is in a dormant state, the current flowing through the electronic control unit is small. Conversely, when the electronic control unit is not in a dormant state, the current flowing through the electronic control unit is large. Therefore, in this embodiment, it is detected whether the power consumption of the control unit is greater than a preset threshold value to determine whether there are one or more electronic control units that have not entered the dormant state normally.
[0048] The process of determining the preset threshold may include: obtaining a sleep current of each electronic control unit in a sleep state; and taking the sum of multiple sleep currents as the preset threshold.
[0049] When it is detected that the power consumption of the control unit is greater than the preset threshold, it indicates that at least one electronic control unit is not in a sleep state, and at this time, sleep abnormality information is generated. The sleep abnormality information may include a sleep abnormality signal and sleep fault data. The sleep abnormality signal is used to notify other components that at least one electronic control unit is not in a sleep state, and the sleep fault data is used to display the fault information that the electronic control unit is not in a sleep state.
[0050] When it is detected that the power consumption of the control unit is not greater than the preset threshold, it indicates that all the electronic control units are in a dormant state. At this time, dormancy success information is generated.
[0051] Furthermore, after generating the sleep abnormality information, some measures need to be taken to prevent the electronic control unit that is not in the sleep state from being in high power consumption and causing the vehicle to be powered off. The specific measures include converting the current state of the electronic control unit and / or fault analysis.
[0052] (1) The step of converting the current state of the electronic control unit includes: in response to the state conversion instruction, the sleep detection system controls all the electronic control units to convert from the current state to the normal operating state, and controls all the electronic control units to switch from the normal operating state to the sleep state.
[0053] In this embodiment, when the sleep detection system generates sleep abnormality information, the sleep abnormality information includes a sleep abnormality signal, and the sleep detection system will send a sleep abnormality signal to notify the components in the system that at least one electronic control unit has not entered the sleep state normally. In order to avoid the situation where the electronic control unit that is not in the sleep state always consumes high power and causes the vehicle to be powered on, the sleep detection system will generate a state conversion instruction after generating the sleep abnormality information, and respond to the state conversion instruction, and control all electronic control units to convert from the current state to the normal operating state, and control all electronic control units to convert from the normal operating state to the sleep state.
[0054] In this way, the subsequent sleep detection system can control all electronic control units to enter the sleep state again.
[0055] (2) The fault analysis step includes: in response to the fault analysis instruction, the sleep detection system performs a fault analysis on the electronic control unit based on the sleep abnormality information and generates a fault analysis result.
[0056] In this embodiment, when the sleep detection system generates sleep abnormality information, it indicates that at least one electronic control unit has not entered the sleep state normally. In order to ensure that all electronic control units can enter the sleep state normally after the vehicle is in the off state next time, it is necessary to analyze the fault conditions of the electronic control units that are not in the sleep state this time.
[0057] Specifically, when an electronic control unit that is not in a dormant state has a dormant abnormality, it will record some dormant fault data. After the dormant detection system generates a dormant abnormality signal, based on the dormant abnormality signal, the dormant detection system will activate all electronic control units so that the electronic control units that are not in a dormant state can supplement the complete dormant fault data. The supplemented dormant fault data includes the vehicle's current mileage information, driving time, etc.
[0058] In this embodiment, the electronic control unit that is not in the sleep state will also store the supplementary complete sleep fault data and upload it to the cloud. So that when the vehicle is ignited next time, the cloud can analyze and locate based on the complete sleep fault data, so that engineers can understand the reason why the electronic control unit did not enter the sleep state and repair it.
[0059] Compared with the related art, the embodiments of the present application have at least the following advantages: On the one hand, after controlling all electronic control units to enter the sleep state, first, the accumulated power consumption calculated in the historical period is cleared to ensure the accuracy of the subsequent calculated control unit power consumption. Then, the control unit power consumption of all electronic control units per unit time is calculated to confirm whether all electronic control units have entered the sleep state. Next, it is detected whether the control unit power consumption is greater than the preset threshold. When it is detected that the control unit power consumption is greater than the preset threshold, it indicates that at least one electronic control unit has not entered the sleep state. At this time, sleep abnormality information needs to be generated. In order to facilitate the subsequent processing of the electronic control unit that has not entered the sleep state, the problem of vehicle power supply caused by the electronic control unit not entering the sleep state is solved.
[0060] On the other hand, after generating the sleep abnormality information, in order to prevent the electronic control units that are not in the sleep state from consuming high power all the time and causing the vehicle to be powered off, the sleep detection system will also control all the electronic control units to switch from the current state to the normal operation state. In this way, the subsequent sleep detection system can control all the electronic control units to enter the sleep state again.
[0061] On the other hand, in order to ensure that all electronic control units can enter the sleep state normally next time the vehicle is turned off, the sleep detection system will upload the sleep fault data of the electronic control units that are not in the sleep state to the cloud, and the cloud will analyze and locate the sleep fault data.
[0062] See also Figure 3 , Figure 3 Another flowchart of the sleep detection method provided in the embodiment of the present application is shown in FIG.
[0063] Step 201 : obtaining a second current value flowing through each electronic control unit, where one electronic control unit corresponds to one second current value.
[0064] In this embodiment, the sleep detection system further includes at least one circuit protection element, the number of the circuit protection elements is equal to the number of the electronic control units, and one circuit protection element corresponds to one electronic control unit. Figure 2 In the embodiment, the circuit protection element and the corresponding electronic control unit are connected in series. The circuit protection element may be an electronic fuse. In other embodiments, the circuit protection element may also be a current transformer or an integrated current detection chip. The present application does not limit the specific type of the circuit protection element, as long as the circuit protection element can collect the current of the circuit in which it is located.
[0065] It can be understood that the circuit protection element and its corresponding electronic control unit are connected in series, and the current flowing through the circuit protection element is equal to the current flowing through the electronic control unit corresponding to the circuit protection element. That is, the second current value flowing through an electronic control unit is equal to the current flowing through the circuit protection element corresponding to the electronic control unit.
[0066] Step 202: If any second current value is greater than a preset current threshold value within a preset time period, generate sleep abnormality information.
[0067] In step 201, a plurality of second current values may be obtained, and within a preset time period, each second current value may be detected to determine whether it is greater than a preset current threshold value, so as to determine whether there is a large current flowing through one or more electronic control units.
[0068] If any second current value is greater than the preset current threshold value within the preset time period, it indicates that at least one electronic control unit is not in a sleep state. At this time, sleep abnormality information needs to be generated.
[0069] On the contrary, if all the second current values are not greater than the preset current threshold value within the preset time period, it indicates that all the electronic control units are in a sleep state. At this time, sleep success information can be generated.
[0070] In this embodiment, the preset current threshold may be one or more. When there are multiple preset current thresholds, the values of the multiple preset current thresholds may be the same or different, and one preset current threshold corresponds to one electronic control unit. The specific value of the preset current threshold may be set with reference to the sleep current of the electronic control unit when it is in a sleep state.
[0071] After generating the sleep abnormality information, in order to prevent the electronic control unit that is not in the sleep state from being in a high power consumption and causing the vehicle to experience power outage, measures need to be taken to convert the current state of the electronic control unit and / or perform fault analysis. The specific contents have been described in detail in the previous text and will not be repeated here.
[0072] Compared with the related art, the embodiments of the present application have at least the following advantages: On the one hand, after controlling all electronic control units to enter a dormant state, first, obtain the second current value flowing through each electronic control unit. Then, within a preset time period, detect whether each second current value is greater than a preset current threshold value to determine whether there is a large current flowing through one or more electronic control units, thereby determining whether there is one or more electronic control units that are not in a dormant state. If any second current value is greater than the preset current threshold value within the preset time period, it indicates that at least one electronic control unit is not in a dormant state. At this time, dormant abnormality information needs to be generated. This is to facilitate the subsequent processing of electronic control units that have not entered a dormant state, so as to solve the problem of vehicle power feeding caused by the electronic control unit not entering a dormant state.
[0073] On the other hand, after generating the sleep abnormality information, in order to prevent the electronic control units that are not in the sleep state from consuming high power all the time and causing the vehicle to be powered off, the sleep detection system will also control all the electronic control units to switch from the current state to the normal operation state. In this way, the subsequent sleep detection system can control all the electronic control units to enter the sleep state again.
[0074] On the other hand, in order to ensure that all electronic control units can enter the sleep state normally next time the vehicle is turned off, the sleep detection system will upload the sleep fault data of the electronic control units that are not in the sleep state to the cloud, and the cloud will analyze and locate the sleep fault data.
[0075] See also Figure 4 , Figure 4The figure is a schematic diagram of the structure of the sleep detection system. The sleep detection system includes a battery, a mode management module, a sleep monitoring module and at least one electronic control unit. The battery is used to provide power to the mode management module, the sleep monitoring module and all the electronic control units. The mode management module, the sleep monitoring module and at least one electronic control unit are all in communication connection.
[0076] In some embodiments, the mode management module is used to issue a sleep instruction so that all electronic control units enter a sleep state when receiving the sleep instruction. The sleep monitoring module is used to determine the power consumption of the control unit, and when the power consumption of the control unit is greater than a preset threshold, the mode management module is triggered to generate sleep abnormality information, wherein the power consumption of the control unit represents the power consumption of all electronic control units per unit time.
[0077] After controlling all electronic control units to enter the sleep state, the sleep monitoring module can calculate the control unit power consumption of all electronic control units per unit time to confirm whether all electronic control units have entered the sleep state. Then, the sleep monitoring module detects whether the control unit power consumption is greater than a preset threshold. If it is detected that the control unit power consumption is greater than the preset threshold, it indicates that at least one electronic control unit has not entered the sleep state. At this time, the trigger mode management module generates sleep abnormality information. This is to facilitate the subsequent processing of the electronic control unit that has not entered the sleep state, so as to solve the problem of vehicle power supply caused by the electronic control unit not entering the sleep state.
[0078] In some embodiments, when the mode management module issues a sleep command, so that when all electronic control units receive the sleep command, before entering the sleep state, the mode management module will also detect whether the vehicle is in the off state. If it is determined that the vehicle is in the off state, the mode management module will issue a sleep command after a third preset time period.
[0079] In some embodiments, before the sleep monitoring module determines the power consumption of the control unit, after the second preset time, the sleep monitoring module will request the energy consumption collection component to clear the accumulated power consumption calculated in the historical period to ensure the accuracy of the new accumulated power consumption value calculated subsequently, thereby improving the accuracy of determining whether there is an electronic control unit that has not entered the sleep state.
[0080] In this embodiment, the step of determining the power consumption of the control unit by the sleep monitoring module includes: according to the first current value flowing through the sleep monitoring module collected by the energy consumption collection component, the sleep monitoring module calculates the cumulative power consumption based on the first current value, and takes the quotient between the cumulative power consumption and the first preset time as the power consumption of the control unit.
[0081] In some embodiments, after the mode management module generates the sleep abnormality information, the electronic control unit that did not enter the sleep state normally will record part of the sleep fault data. At the same time, the mode management module will activate all electronic control units, so that the electronic control units that did not enter the sleep state normally will supplement the sleep fault data. And the electronic control unit will save the supplemented complete sleep fault data into the memory.
[0082] The memory may include a high-speed random access memory and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0083] In some embodiments, the sleep detection system further includes a diagnosis main node and a vehicle network communication module, and the mode management module, the sleep monitoring module, at least one electronic control unit, the vehicle network communication module and the diagnosis main node are all connected in communication, and the vehicle network communication module can obtain the fault information stored in the memory. After the mode management module generates the sleep abnormality information, the mode management module will also issue a state conversion instruction, and the diagnosis main node responds to the state conversion instruction to control all electronic control units to convert from the current state to the normal operation state. In this embodiment, the diagnosis main node can be a body control module. In the sleep abnormality diagnosis of the electronic control unit, the body control module can communicate with other sub-control units through the vehicle's network system, such as the controller area network (CAN) bus, collect the status information of each sub-control unit, monitor their working mode and sleep status, and then determine whether there is abnormal sleep in the sub-control unit, and provide relevant diagnostic information to the maintenance personnel or the display system of the vehicle. In other embodiments, the diagnosis main node can also be other modules or devices, which are not limited by this application.
[0084] In some embodiments, after the mode management module generates sleep exception information, the mode management module will also issue a fault analysis instruction so that the cloud server responds to the fault analysis instruction. After the vehicle network communication module obtains the fault information, it performs a fault analysis on the electronic control unit based on the sleep exception information to generate a fault analysis result.
[0085] In other embodiments, the sleep detection system includes a battery, a mode management module, a sleep monitoring module, at least one electronic control unit and at least one circuit protection element, wherein the battery is used to provide power to the mode management module, the sleep monitoring module and all the electronic control units. One circuit protection element corresponds to one electronic control unit, and the circuit protection element is used to collect current flowing through the electronic control unit corresponding to itself.
[0086] In some embodiments, the mode management module is used to issue a sleep command so that all electronic control units enter a sleep state when receiving the sleep command. All electronic fuses collect current data flowing through the electronic control power supply corresponding to themselves to obtain multiple second current values. The sleep monitoring module obtains multiple second current values and detects whether each second current value is greater than a preset current threshold within a preset time period. If it is detected that any second current value is greater than the preset current threshold within the preset time period, the mode management module is triggered to generate sleep abnormality information.
[0087] It should be noted that the mode management module in the embodiment of the present application includes a first sensor and a mode controller, wherein the first sensor is used to obtain the state of each electronic control unit and send the state of each electronic control unit to the mode controller. The mode controller is used to switch the state of one or more electronic control units.
[0088] The sleep monitoring module includes a second sensor and a sleep controller. The second sensor is used to obtain the current value flowing through a certain component and send the current value to the sleep controller. The sleep controller is used to determine the power consumption of the control unit based on the current value, and when the power consumption of the control unit is greater than a preset threshold, the trigger mode controller generates sleep abnormality information.
[0089] The mode controller and the sleep controller may include one or more processing units, for example, the mode controller and the sleep controller may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more mode controllers and sleep controllers.
[0090] After controlling all electronic control units to enter the dormant state, each circuit protection element collects the second current value flowing through the electronic control power supply corresponding to itself. The dormant monitoring module then detects whether each second current value is greater than the preset current threshold value within the preset time period. If it is detected that any second current value is greater than the preset current threshold value within the preset time period, it indicates that the electronic control unit corresponding to the second current value greater than the preset current threshold value has not entered the dormant state. At this time, the trigger mode management module generates dormant abnormal information. This is to facilitate the subsequent processing of the electronic control unit that has not entered the dormant state, so as to solve the problem of vehicle power supply caused by the electronic control unit not entering the dormant state.
[0091] Please refer to Figure 5 , Figure 5 Schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Figure 5 As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above method in the electronic device 1000.
[0092] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.
[0093] In this embodiment, the electronic device 1000 may be an onboard processor of a vehicle, such as a vehicle controller, etc., but is not limited thereto.
[0094] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or may be integrated in one or more processors 1001.
[0095] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.
[0096] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0097] In some embodiments, processor 1001 is used to execute acceleration schemes such as single instruction multiple data (SIMD) and very long instruction word (VLIW).
[0098] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0099] This embodiment further provides a vehicle in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0100] Among them, the electronic equipment and vehicle provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0101] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0102] In several embodiments provided in the present application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0103] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0106] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A sleep detection method, characterized in that: Applied to a vehicle, the vehicle includes at least one electronic control unit; the method includes: In response to the sleep instruction, controlling all the electronic control units to enter a sleep state; Determining a control unit power consumption, wherein the control unit power consumption represents the power consumption of all the electronic control units per unit time; When the power consumption of the control unit is greater than a preset threshold, sleep abnormality information is generated.
2. The sleep detection method according to claim 1, characterized in that: The vehicle further comprises an energy consumption collection component for collecting the power consumption of the electronic control unit; The determining the power consumption of the control unit includes: Acquire a first current value flowing through the energy consumption collection component; Based on the first current value, calculating the accumulated power consumption, the accumulated power consumption represents the total power consumed by all the electronic control units within a first preset time period; The quotient of the accumulated power consumption and the first preset time duration is used as the power consumption of the control unit.
3. The sleep detection method according to claim 2, characterized in that: Before calculating the accumulated power consumption, the method further includes: After a second preset time, the accumulated power consumption calculated during the historical period is cleared, wherein the second preset time is the time counted from the first moment in response to the sleep instruction, the first preset time is the time counted from the second moment, the second moment is the moment after the first moment, and the time between the first moment and the second moment is greater than or equal to the second preset time.
4. The sleep detection method according to any one of claims 1 to 3, characterized in that: After generating the sleep exception information, the method includes: In response to the state transition instruction, control all the electronic control units to transition from the current state to the normal operating state, and control all the electronic control units to transition from the normal operating state to the sleep state; and / or, In response to the fault analysis instruction, a fault analysis is performed on the electronic control unit based on the sleep abnormality information to generate a fault analysis result.
5. The sleep detection method according to any one of claims 1 to 3, characterized in that: Before controlling all the electronic control units to enter a sleep state in response to the sleep instruction, the method further includes: When the vehicle is in an ignition-off state, the sleep instruction is issued after a third preset time period, and the third preset time period is a time period starting from a third moment in response to the ignition-off instruction.
6. The sleep detection method according to claim 2, characterized in that: The process of determining the preset threshold includes: Acquire a sleep current of each electronic control unit when the electronic control unit is in the sleep state; The sum of the multiple sleep currents is used as the preset threshold.
7. The sleep detection method according to claim 1, characterized in that: After controlling all the electronic control units to enter a sleep state in response to the sleep instruction, the method includes: Acquire a second current value flowing through each of the electronic control units, where one electronic control unit corresponds to one second current value; If any of the second current values is greater than a preset current threshold within a preset time period, the sleep abnormality information is generated.
8. A sleep detection system, characterized in that: The sleep detection system includes a mode management module, a sleep monitoring module and at least one electronic control unit; The mode management module is used to issue a sleep instruction, so that all the electronic control units enter a sleep state when receiving the sleep instruction; The sleep monitoring module is used to determine the power consumption of the control unit, and when the power consumption of the control unit is greater than a preset threshold, trigger the mode management module to generate sleep abnormality information, wherein the power consumption of the control unit represents the power consumption of all the electronic control units per unit time.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the sleep detection method according to any one of claims 1 to 7.
10. A vehicle, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the sleep detection method according to any one of claims 1 to 7.
Citation Information
Cited By
Method and device for testing automatic dormancy of train
CN121254800A