BCM Forced Hibernation Method, System, Electronic Device and Storage Medium

By setting a timeout counter and countdown judgment after the vehicle is powered off, BCM sleep is forced to execute, which solves the problem of power feeding of the entire vehicle battery caused by inability to sleep in abnormal BCM scenarios, ensuring that the vehicle starts normally.

CN115158191BActive Publication Date: 2025-07-11JIANGLING MOTORS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210578941.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2025-07-11
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

BCM cannot sleep in abnormal scenarios, resulting in the problem that the whole vehicle battery cannot start the power supply.

Method used

After the vehicle is powered off, the sleep flag is detected by setting a timeout counter with a preset timeout value and countdown judgment is made. If the countdown exceeds the preset time limit, sleep is forced to be executed.

Benefits of technology

Ensure that the entire vehicle will not be fed due to non-sleeping in abnormal scenarios, and ensure that the vehicle starts normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115158191B_ABST
    Figure CN115158191B_ABST
Patent Text Reader

Abstract

The present invention provides a BCM forced sleep method, system, electronic device and storage medium. The method includes: when the vehicle is powered off, starting a timeout counter with a preset timeout value set; when at least one of the obtained sleep flag bits is not idle, determining whether the BCM is in the OTA mode; if so, setting the count value in the OTA countdown counter to a preset countdown value and starting the OTA countdown counter; detecting one by one the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state and the sleep flag bit state, and determining whether any one of the states meets the preset requirements; if not, determining whether the value in the timeout counter reaches the preset timeout value and whether the value in the OTA countdown counter is zero; if so, performing a forced sleep process on the BCM. Through this application, it can be ensured that the entire vehicle will not have a situation of battery power depletion due to the non-sleep caused by certain abnormal scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of automotive body control system dormancy, and particularly relates to a BCM forced dormancy method, system, electronic device and storage medium. Background Art

[0002] The application of electronic control units in automobiles is increasing, and data communication between various electronic devices is also increasing. At the same time, the widespread use of these independent control units has brought problems such as increased costs, high failure rates, and complex wiring, while reducing the driving experience and comfort of the vehicle. In view of this, as a control module with powerful design functions, the BCM realizes discrete controller functions and controls numerous electrical appliances, and has become the electrical core of the vehicle. Due to the large number of external conditions and control strategies involved, and the large number of new functions and new strategies in recent years, there are more or less omissions in the verification scenarios during the design process. When an abnormal scenario occurs, it may cause the entire vehicle not to enter dormancy, resulting in battery power depletion and ultimately the vehicle being unable to start.

[0003] Currently, the dormancy strategy of the BCM is as follows: after the vehicle is powered off, the BCM determines whether to enter the dormancy strategy and checks whether all sleep flags of the BCM itself are empty; if they are empty, the vehicle network management enters dormancy, and if not, it continues to check the sleep flags. When this flag cannot be cleared all the time, it will cause the BCM to be in an abnormal situation all the time, and the vehicle cannot enter dormancy, affecting the power consumption of the entire vehicle.

[0004] Therefore, how to design an effective forced dormancy strategy for the BCM in abnormal scenarios to solve the technical problem that the BCM does not enter dormancy in abnormal scenarios, resulting in the vehicle battery being depleted and unable to start, is an urgent problem to be solved by those skilled in the art. Summary of the Invention

[0005] To solve the above technical problems, the present invention provides a BCM forced dormancy method, system, electronic device and storage medium. After the vehicle is powered off, when a sleep flag is detected, a forced dormancy strategy with a preset dormancy judgment condition is started for countdown. If the sleep flag still exists after the countdown exceeds the preset duration, dormancy is enforced to ensure that the entire vehicle does not fail to enter dormancy due to certain abnormal scenarios, resulting in battery power depletion.

[0006] In a first aspect, the application provides a BCM forced dormancy method, including:

[0007] When the vehicle is powered off, start a timeout counter with a preset timeout value;

[0008] When at least one of the obtained sleep flags is not idle, determine whether the BCM is in the OTA mode;

[0009] If so, set the count value in the OTA countdown counter to a preset countdown value, and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0010] Detect the IGN switch state, PEPS power supply state, in-vehicle network diagnosis state, hazard warning light state, and sleep flag bit state one by one, and determine whether any one of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0011] If not, determine whether the value in the timeout counter reaches the preset timeout value, and whether the value in the OTA countdown counter is zero;

[0012] If so, perform a forced sleep process on the BCM.

[0013] Preferably, after the step of determining whether the BCM is in the OTA mode when at least one of the obtained sleep flag bits is not idle, the method further includes:

[0014] If the BCM is not in the OTA mode, detect the IGN switch state, PEPS power supply state, in-vehicle network diagnosis state, hazard warning light state, and sleep flag bit state one by one, and determine whether any one of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0015] If not, determine whether the value in the timeout counter reaches the preset timeout value;

[0016] If so, perform a forced sleep process on the BCM.

[0017] Preferably, after the step of detecting the IGN switch state, PEPS power supply state, in-vehicle network diagnosis state, hazard warning light state, and sleep flag bit state one by one, and determining whether any one of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, the method further includes:

[0018] If it is determined that none of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, determine whether the value in the timeout counter reaches the preset timeout value;

[0019] Otherwise, the forced sleep process for the BCM is not executed;

[0020] Preferably, after the step of determining whether the value in the timeout counter reaches the preset timeout value, the method further includes:

[0021] If it is determined that the value in the timeout counter reaches the preset timeout value, then it is further determined whether the value in the OTA countdown counter is zero;

[0022] Otherwise, the forced sleep process for the BCM is not executed.

[0023] Preferably, after the step of detecting the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and determining whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, the method further includes:

[0024] If it is determined that any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, the value of the timeout counter is set to zero until the value of the timeout counter reaches the preset timeout value, and then it is determined whether the value in the OTA countdown counter is zero;

[0025] If so, the forced sleep process for the BCM is executed.

[0026] Preferably, the preset requirements refer to that the IGN switch state is in the on state, the PEPS power state is in the on state, the in-vehicle network diagnosis state is in the running state, the hazard warning light state is in the on state, and the sleep flag bit state is in the switching state.

[0027] Preferably, the preset countdown value is greater than the default value of the vehicle's own OTA countdown counter.

[0028] In a second aspect, the present application provides a BCM forced sleep system, including:

[0029] A first startup module, configured to start a timeout counter with a preset timeout value when the vehicle is powered off;

[0030] A first judgment module, configured to judge whether the BCM is in the OTA mode when at least one of the obtained sleep flag bits is not idle;

[0031] A second startup module, configured to set the count value in the OTA countdown counter to a preset countdown value and start the OTA countdown counter if it is determined that the BCM is in the OTA mode, where the preset timeout value is less than the preset countdown value;

[0032] A first detection module, configured to detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0033] A second judgment module, configured to determine whether the value in the timeout counter reaches the preset timeout value and whether the value in the OTA countdown counter is zero if it is determined that none of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0034] A first processing module, configured to perform a forced sleep process on the BCM if it is determined that the value in the timeout counter reaches the preset timeout value and the value in the OTA countdown counter is zero.

[0035] Preferably, the system further includes:

[0036] A second detection module, configured to detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one if the BCM is not in the OTA mode, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0037] A third judgment module, configured to determine whether the value in the timeout counter reaches the preset timeout value if it is determined that none of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0038] A second processing module, configured to perform a forced sleep process on the BCM if it is determined that the value in the timeout counter reaches the preset timeout value.

[0039] Preferably, the system further includes:

[0040] The fourth judgment module is configured to, if it is determined that any one of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state does not meet the preset requirements, then determine whether the value in the timeout counter reaches the preset timeout value;

[0041] The third processing module is configured to, if it is determined that the value in the timeout counter does not reach the preset timeout value, then not perform the forced sleep processing for the BCM.

[0042] Preferably, the system further includes:

[0043] The fifth judgment module is configured to, if it is determined that the value in the timeout counter reaches the preset timeout value, then further determine whether the value in the OTA countdown counter is zero;

[0044] The fourth processing module is configured to, if it is determined that the value in the OTA countdown counter is not zero, then not perform the forced sleep processing for the BCM.

[0045] Preferably, the system further includes:

[0046] The sixth judgment module is configured to, if it is determined that one of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, then set the value of the timeout counter to zero, and until the value of the timeout counter reaches the preset timeout value, then further determine whether the value in the OTA countdown counter is zero;

[0047] The fifth processing module is configured to, if it is determined that the value in the OTA countdown counter is zero, then perform the forced sleep processing for the BCM.

[0048] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, the BCM forced sleep method described in the first aspect above is implemented.

[0049] In a fourth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the program is executed by a processor, the BCM forced sleep method described in the first aspect above is implemented.

[0050] Compared with the prior art, a BCM forced sleep method, system, electronic device and storage medium provided by the present application turn on a timeout counter with a preset timeout value after the vehicle is powered off, and perform different forced sleep processes according to whether the BCM is in the OTA mode: when in the OTA mode, first set a preset countdown value greater than the default value of the vehicle's own OTA countdown counter for the OTA countdown counter and then start it. Detect the IGN switch state, PEPS power state, in-vehicle network diagnosis state, hazard warning light state and sleep flag bit state one by one. According to whether any one of the states meets the preset requirements, when it is determined that the value in the timeout counter reaches the preset timeout value and the value in the OTA countdown counter is zero, perform forced sleep on the BCM, otherwise do not perform forced sleep on the BCM; when not in the OTA mode, detect the IGN switch state, PEPS power state, in-vehicle network diagnosis state, hazard warning light state and sleep flag bit state one by one. According to whether any one of the states meets the preset requirements, when it is determined that the value in the timeout counter reaches the preset timeout value, then judge whether the value in the OTA countdown counter is zero. If so, perform forced sleep on the BCM, if not, do not perform forced sleep on the BCM. The present application adopts a forced sleep strategy of starting a preset sleep judgment condition countdown after detecting a sleep flag bit after the vehicle is powered off. If the sleep flag bit still exists after the countdown exceeds the preset duration, forced sleep is enforced to ensure that the vehicle will not fail to sleep due to some abnormal scenarios, resulting in battery power depletion. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0052] Figure 1 is a flowchart of the BCM forced sleep method provided in Embodiment 1 of the present invention;

[0053] Figure 2 is a block diagram of the BCM forced sleep system corresponding to the method in Embodiment 2 of the present invention;

[0054] Figure 3 is a flowchart of the BCM forced sleep method provided in Embodiment 3 of the present invention;

[0055] Figure 4 is a block diagram of the BCM forced sleep system corresponding to the method in Embodiment 4 of the present invention;

[0056] Figure 5 It is a flowchart of the BCM forced sleep method provided in Embodiment 5 of the present invention;

[0057] Figure 6 It is a block diagram of the BCM forced sleep system corresponding to the method in Embodiment 6 of the present invention;

[0058] Figure 7 It is a flowchart of the BCM forced sleep method provided in Embodiment 7 of the present invention;

[0059] Figure 8 It is a block diagram of the BCM forced sleep system corresponding to the method in Embodiment 8 of the present invention;

[0060] Figure 9 It is a flowchart of the BCM forced sleep method provided in Embodiment 9 of the present invention;

[0061] Figure 10 It is a block diagram of the BCM forced sleep system corresponding to the method in Embodiment 10 of the present invention;

[0062] Figure 11 It is a schematic diagram of the hardware structure of the electronic device provided in Embodiment 11 of the present invention.

[0063] Explanation of reference numerals:

[0064] 101 - First startup module, 102 - First judgment module, 103 - Second startup module, 104 - First detection module, 105 - Second judgment module, 106 - First processing module, 107 - Second detection module, 108 - Third judgment module, 109 - Second processing module, 110 - Fourth judgment module, 111 - Third processing module, 112 - Fifth judgment module, 113 - Fourth processing module, 114 - Sixth judgment module, 115 - Fifth processing module;

[0065] 20 - Bus, 21 - Processor, 22 - Memory, 23 - Communication interface. Detailed implementation manners

[0066] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described and explained below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments provided in the present application without creative efforts belong to the scope of protection of the present application.

[0067] References to "embodiments" in this application mean that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of this application. The phrase may not necessarily refer to the same embodiment each time it appears in the specification, nor is it an independent or alternative embodiment mutually exclusive of other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0068] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the ordinary meanings understood by those of ordinary skill in the technical field to which this application pertains. The words "a", "an", "one", "the" and similar terms involved in this application do not denote a limitation of quantity and may refer to the singular or the plural. The terms "include", "comprise", "have" and any variations thereof involved in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may further include unlisted steps or units, or may further include other steps or units inherent to these processes, methods, products or devices. The terms "connected", "coupled" and similar terms involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" involved in this application means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, "A and / or B" may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific order for the objects.

[0069] The various technologies described in this application can be used in various wireless communication systems, such as 2G, 3G, 4G, 5G communication systems and next-generation communication systems, and also such as Global System for Mobile communications (GSM for short), Code Division Multiple Access (CDMA for short) system, Time Division Multiple Access (TDMA for short) system, Wideband Code Division Multiple Access (WCDMA for short), Frequency Division Multiple Addressing (FDMA for short) system, Orthogonal Frequency-Division Multiple Access (OFDMA for short) system, Single-Carrier FDMA (SC-FDMA) system, General Packet Radio Service (GPRS for short) system, Long Term Evolution (LTE for short) system, 5G New Radio (NR for short) system and other such communication systems.

[0070] Embodiment 1

[0071] This embodiment provides a method for forced BCM sleep. Figure 1 It is a flowchart of the method for forced BCM sleep according to the embodiment of this application. As Figure 1 shown, this process includes the following steps:

[0072] S101, when the vehicle is powered off, start a timeout counter with a preset timeout value set;

[0073] Specifically, in this embodiment, by setting a timeout counter, when the vehicle still has a sleep flag bit after exceeding the preset timeout value, the method for forced BCM sleep of this embodiment is started. Among them, the preset timeout value in the used timeout counter is set to 20 minutes.

[0074] S102, when at least one of the obtained sleep flag bits is not idle, determine whether the BCM is in the OTA mode;

[0075] Specifically, the sleep flag bit refers to the sleep flag bit of the CAN gateway. As the hub of the vehicle network, the gateway needs to forward and process relevant signals for each controller of the vehicle. Each CAN line and the controllers on it form a network segment, such as the power network segment, the body network segment, the audio-visual network segment, the chassis network segment, etc. The network segments are independent and communicate through the gateway. The sleep strategy of the network segment can follow the AUTOSAR network management mechanism, that is: under normal circumstances, when the controller itself meets the sleep condition, it will set its own sleep flag bit. After all controllers have set their own sleep flag bits, the last controller to set the bit will send a command to enter the sleep state on the bus. If there is no wake-up event within the waiting time, the network segment can enter the sleep state.

[0076] S103, if so, set the count value in the OTA countdown counter to the preset countdown value and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0077] Specifically, the preset countdown value is greater than the default value of the OTA countdown counter of the vehicle itself. The purpose is to ensure that each software loaded on the vehicle can be upgraded normally before the BCM is forced to sleep if the vehicle is in the OTA mode.

[0078] S104, detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0079] Specifically, the preset requirements mean that the IGN switch state is in the on state, the PEPS power state is in the on state, the in-vehicle network diagnosis state is in the running state, the hazard warning light state is in the on state, and the sleep flag bit state is in the switching state. In this embodiment, first, the IGN switch state is detected. If the IGN switch state is in the off state, the PEPS power state is detected continuously, otherwise, the next step is directly carried out; if the detected PEPS power state is in the off state, the in-vehicle network diagnosis state is detected continuously, otherwise, the next step is directly carried out. Similarly, the detection of the hazard warning light state and the sleep flag bit state is carried out in turn.

[0080] S105, if not, determine whether the value in the timeout counter reaches the preset timeout value and whether the value in the OTA countdown counter is zero;

[0081] Specifically, through the dual comparison of the values in the timeout counter and the OTA countdown counter with the preset values, the technical problem of the vehicle's battery being drained due to the vehicle not going into sleep due to certain abnormal scenarios is solved.

[0082] S106, if so, perform forced sleep processing on the BCM.

[0083] In summary, after the vehicle is powered off, start the timeout counter with a preset timeout value set. When the BCM is in the OTA mode, set a preset countdown value greater than the default value of the vehicle's own OTA countdown counter in the OTA countdown counter and then start it. Detect the IGN switch status, PEPS power status, in-vehicle network diagnosis status, hazard warning light status, and sleep flag status one by one. If any one of the statuses does not meet the preset requirements, and it is determined that the value in the timeout counter reaches the preset timeout value and the value in the OTA countdown counter is zero, perform forced sleep on the BCM.

[0084] Embodiment 2

[0085] This embodiment provides a structural block diagram of a system corresponding to the method described in Embodiment 1. Figure 2 It is a structural block diagram of a BCM forced sleep system according to an embodiment of the present application, as Figure 2 shown. The system includes:

[0086] A first startup module 101, configured to start the timeout counter with a preset timeout value set when the vehicle is powered off;

[0087] A first judgment module 102, configured to judge whether the BCM is in the OTA mode when at least one of the obtained sleep flag bits is not idle;

[0088] A second startup module 103, configured to, if it is judged that the BCM is in the OTA mode, set the count value in the OTA countdown counter to the preset countdown value and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0089] A first detection module 104, configured to detect the IGN switch status, PEPS power status, in-vehicle network diagnosis status, hazard warning light status, and sleep flag status one by one, and judge whether any one of the IGN switch status, the PEPS power status, the in-vehicle network diagnosis status, the hazard warning light status, and the sleep flag status meets the preset requirements;

[0090] The second judgment module 105 is configured to, if it is determined that any one of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state does not meet the preset requirements, determine whether the value in the timeout counter reaches the preset timeout value and whether the value in the OTA countdown counter is zero;

[0091] The first processing module 106 is configured to, if it is determined that the value in the timeout counter reaches the preset timeout value and the value in the OTA countdown counter is zero, perform forced sleep processing on the BCM.

[0092] It should be noted that the above-mentioned each module can be a functional module or a program module, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned each module can be located in the same processor; or the above-mentioned each module can also be located in different processors in any combination form.

[0093] Embodiment III

[0094] This embodiment provides a method for forcibly sleeping the BCM. Figure 3 It is a flowchart of the method for forcibly sleeping the BCM according to the embodiment of the present application, as Figure 3 shown, and the process includes the following steps:

[0095] S201. When the vehicle is powered off, start a timeout counter with a preset timeout value;

[0096] S202. When at least one of the obtained sleep flag bits is not idle, determine whether the BCM is in the OTA mode;

[0097] S203. If not, perform one-by-one detection on the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state, and determine whether any one of the IGN switch state, the PEPS power supply state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0098] S204. If not, determine whether the value in the timeout counter reaches the preset timeout value;

[0099] S205. If so, perform forced sleep processing on the BCM.

[0100] In summary, after the vehicle is powered off, an overtime counter with a preset overtime value is started. When the BCM is not in the OTA mode, a preset countdown value greater than the default value of the vehicle's own OTA countdown counter is set for the OTA countdown counter and then started. The IGN switch status, the PEPS power status, the in-vehicle network diagnosis status, the hazard warning light status, and the sleep flag status are detected one by one. If any one of the statuses does not meet the preset requirements and it is determined that the value in the overtime counter reaches the preset overtime value, the BCM is forced to enter the sleep state.

[0101] Embodiment 4

[0102] This embodiment provides a structural block diagram of a system corresponding to the method described in Embodiment 3. Figure 4 It is a structural block diagram of a BCM forced sleep system according to an embodiment of the present application, as Figure 4 shown. The system includes:

[0103] A first startup module 101, configured to start an overtime counter with a preset overtime value when the vehicle is powered off;

[0104] A first judgment module 102, configured to judge whether the BCM is in the OTA mode when at least one of the obtained sleep flags is not idle;

[0105] A second detection module 107, configured to, if the BCM is not in the OTA mode, detect the IGN switch status, the PEPS power status, the in-vehicle network diagnosis status, the hazard warning light status, and the sleep flag status one by one, and judge whether any one of the IGN switch status, the PEPS power status, the in-vehicle network diagnosis status, the hazard warning light status, and the sleep flag status meets the preset requirements;

[0106] A third judgment module 108, configured to judge whether the value in the overtime counter reaches the preset overtime value if it is judged that any one of the IGN switch status, the PEPS power status, the in-vehicle network diagnosis status, the hazard warning light status, and the sleep flag status does not meet the preset requirements;

[0107] A second processing module 109, configured to perform a forced sleep process on the BCM if it is judged that the value in the overtime counter reaches the preset overtime value.

[0108] It should be noted that the above-mentioned each module can be a functional module or a program module, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned each module can be located in the same processor; or the above-mentioned each module can also be located in different processors in any combined form.

[0109] Example Five

[0110] This embodiment provides a method for forcibly putting the BCM into sleep mode. Figure 5 It is a flowchart of the method for forcibly putting the BCM into sleep mode according to an embodiment of the present application. As Figure 5 shown, the process includes the following steps:

[0111] S301, when the vehicle is powered off, turn on the timeout counter with a preset timeout value set;

[0112] S302, when at least one of the obtained sleep flag bits is not idle, determine whether the BCM is in the OTA mode;

[0113] S303, if so, set the count value in the OTA countdown counter to the preset countdown value and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0114] S304, detect one by one the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0115] S305, if not, determine whether the value in the timeout counter reaches the preset timeout value;

[0116] S306, if not, do not perform the forced sleep processing for the BCM.

[0117] In summary, after the vehicle is powered off, turn on the timeout counter with a preset timeout value set. When the BCM is in the OTA mode, set a preset countdown value greater than the default value of the vehicle's own OTA countdown counter and then start it. Detect one by one the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state. If any one of the states does not meet the preset requirements and it is determined that the value in the timeout counter does not reach the preset timeout value, do not perform the forced sleep for the BCM.

[0118] Example Six

[0119] This embodiment provides a structural block diagram of a system corresponding to the method described in Example Five. Figure 6 It is a structural block diagram of the BCM forced sleep system according to an embodiment of the present application. As Figure 6 shown, the system includes:

[0120] The first startup module 101 is configured to, when the vehicle is powered off, start a timeout counter set with a preset timeout value;

[0121] The first judgment module 102 is configured to, when at least one of the obtained sleep flag bits is not idle, judge whether the BCM is in the OTA mode;

[0122] The second startup module 103 is configured to, if it is judged that the BCM is in the OTA mode, set the count value in the OTA countdown counter to a preset countdown value and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0123] The first detection module 104 is configured to detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and judge whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0124] The fourth judgment module 110 is configured to, if it is judged that none of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, judge whether the value in the timeout counter reaches the preset timeout value;

[0125] The third processing module 111 is configured to, if it is judged that the value in the timeout counter does not reach the preset timeout value, not perform the forced sleep processing for the BCM.

[0126] It should be noted that the above-mentioned each module can be a functional module or a program module, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned each module can be located in the same processor; or the above-mentioned each module can also be located in different processors in any combined form.

[0127] Embodiment Seven

[0128] This embodiment provides a method for forcibly sleeping the BCM. Figure 7 It is a flowchart of the method for forcibly sleeping the BCM according to the embodiment of the present application. As Figure 7 shown, the process includes the following steps:

[0129] S401, when the vehicle is powered off, start a timeout counter set with a preset timeout value;

[0130] S402. When at least one of the acquired sleep flag bits is not idle, determine whether the BCM is in the OTA mode;

[0131] S403. If so, set the count value in the OTA countdown counter to a preset countdown value and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0132] S404. Detect the IGN switch status, PEPS power status, in-vehicle network diagnosis status, hazard warning light status, and sleep flag bit status one by one, and determine whether any one of the IGN switch status, the PEPS power status, the in-vehicle network diagnosis status, the hazard warning light status, and the sleep flag bit status meets the preset requirements;

[0133] S405. If not, determine whether the value in the timeout counter has reached the preset timeout value;

[0134] S406. If so, further determine whether the value in the OTA countdown counter is zero;

[0135] S407. If not, do not perform the forced sleep processing on the BCM.

[0136] In summary, after the vehicle is powered off, start the timeout counter with the preset timeout value set. When the BCM is in the OTA mode, set a preset countdown value greater than the default value of the vehicle's own OTA countdown counter and then start the OTA countdown counter. Detect the IGN switch status, PEPS power status, in-vehicle network diagnosis status, hazard warning light status, and sleep flag bit status one by one. If any one of the statuses does not meet the preset requirements, when it is determined that the value in the timeout counter has reached the preset timeout value and then it is determined that the value in the OTA countdown counter is not zero, do not perform the forced sleep on the BCM.

[0137] Embodiment Eight

[0138] This embodiment provides a structural block diagram of a system corresponding to the method described in Embodiment Five. Figure 8 It is a structural block diagram of a BCM forced sleep system according to an embodiment of the present application, as Figure 8 shown. The system includes:

[0139] The first startup module 101 is used to start the timeout counter with the preset timeout value set when the vehicle is powered off;

[0140] The first judgment module 102 is used to determine whether the BCM is in the OTA mode when at least one of the acquired sleep flag bits is not idle;

[0141] The second startup module 103 is configured to, if it is determined that the BCM is in the OTA mode, set the count value in the OTA countdown counter to a preset countdown value and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0142] The first detection module 104 is configured to detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0143] The fourth judgment module 110 is configured to, if it is determined that none of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, determine whether the value in the timeout counter reaches the preset timeout value;

[0144] The fifth judgment module 112 is configured to, if it is determined that the value in the timeout counter reaches the preset timeout value, further determine whether the value in the OTA countdown counter is zero;

[0145] The fourth processing module 113 is configured to, if it is determined that the value in the OTA countdown counter is not zero, do not perform the forced sleep processing on the BCM.

[0146] It should be noted that the above-mentioned each module can be a functional module or a program module, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned each module can be located in the same processor; or the above-mentioned each module can also be located in different processors in any combined form.

[0147] Embodiment Nine

[0148] This embodiment provides a BCM forced sleep method. Figure 9 It is a flowchart of the BCM forced sleep method according to the embodiment of the present application, as Figure 9 shown, and this process includes the following steps:

[0149] S501, when the vehicle is powered off, turn on the timeout counter with a preset timeout value set;

[0150] S502, when at least one of the obtained sleep flag bits is not idle, determine whether the BCM is in the OTA mode;

[0151] S503, if so, set the count value in the OTA countdown counter to a preset countdown value, and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0152] S504, detect one by one the IGN switch state, PEPS power state, in-vehicle network diagnosis state, hazard warning light state, and sleep flag bit state, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements;

[0153] S505, if so, set the value of the timeout counter to zero, until the value of the timeout counter reaches the preset timeout value, and then determine whether the value in the OTA countdown counter is zero;

[0154] S506, if so, perform forced sleep processing on the BCM.

[0155] In summary, after the vehicle is powered off, start a timeout counter with a preset timeout value set. When the BCM is in the OTA mode, set a preset countdown value greater than the default value of the vehicle's own OTA countdown counter and then start it. Detect one by one the IGN switch state, PEPS power state, in-vehicle network diagnosis state, hazard warning light state, and sleep flag bit state. When one of the states meets the preset requirements, set the value of the timeout counter to zero, until the value of the timeout counter reaches the preset timeout value, and then determine whether the value in the OTA countdown counter is zero, and perform forced sleep on the BCM.

[0156] Embodiment Ten

[0157] This embodiment provides a structural block diagram of a system corresponding to the method described in Embodiment Five. Figure 10 It is a structural block diagram of a BCM forced sleep system according to an embodiment of the present application, as Figure 10 shown. The system includes:

[0158] A first startup module 101, configured to start a timeout counter with a preset timeout value set when the vehicle is powered off;

[0159] A first judgment module 102, configured to judge whether the BCM is in the OTA mode when at least one of the obtained sleep flag bits is not idle;

[0160] The second startup module 103 is configured to, if it is determined that the BCM is in the OTA mode, set the count value in the OTA countdown counter to a preset countdown value, and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value;

[0161] The first detection module 104 is configured to detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets a preset requirement;

[0162] The sixth judgment module 114 is configured to, if it is determined that any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets a preset requirement, set the value of the timeout counter to zero, and until the value of the timeout counter reaches the preset timeout value, then determine whether the value in the OTA countdown counter is zero;

[0163] The fifth processing module 115 is configured to, if it is determined that the value in the OTA countdown counter is zero, perform forced sleep processing on the BCM.

[0164] It should be noted that the above-mentioned various modules can be functional modules or program modules, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned various modules can be located in the same processor; or the above-mentioned various modules can also be located in different processors in any combined form.

[0165] Embodiment XI

[0166] Combined with Figure 1 、 Figure 3 、 Figure 5 、 Figure 7 And Figure 9 The BCM forced sleep method of the present invention described can be implemented by an electronic device. Figure 11 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

[0167] The electronic device may include a processor 21 and a memory 22 storing computer program instructions.

[0168] Specifically, the above-mentioned processor 21 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured as one or more integrated circuits for implementing the embodiments of the present application.

[0169] Among them, the memory 22 may include a mass storage for data or instructions. By way of example and not limitation, the memory 22 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 22 may include removable or non-removable (or fixed) media. In appropriate cases, the memory 22 may be internal or external to the data processing device. In a particular embodiment, the memory 22 is non-volatile memory. In a particular embodiment, the memory 22 includes a read-only memory (ROM) and a random access memory (RAM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or a flash memory, or a combination of two or more of these. In appropriate cases, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), where the DRAM may be a fast page mode dynamic random access memory (FPMDRAM), an extended date out dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0170] The memory 22 can be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 22.

[0171] The processor 21 reads and executes the computer program instructions stored in the memory 22 to implement the BCM forced sleep methods of the first, third, fifth, seventh, and ninth embodiments described above.

[0172] In some of the embodiments, the electronic device may further include a communication interface 23 and a bus 20. Among them, as Figure 11 shown, the processor 21, the memory 22, and the communication interface 23 are connected through the bus 20 and complete communication with each other.

[0173] The communication interface 23 is used to implement communication between the various modules, devices, units, and / or devices in the embodiments of the present application. The communication interface 23 can also implement data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.

[0174] Bus 20 includes hardware, software, or both, and couples components of an electronic device to each other. Bus 20 includes, but is not limited to, at least one of the following: Data Bus, Address Bus, Control Bus, Expansion Bus, Local Bus. By way of example and not limitation, Bus 20 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable bus or a combination of two or more of these. In a suitable case, Bus 20 may include one or more buses. Although embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.

[0175] Based on the obtained BCM forced sleep system, the electronic device may execute the BCM forced sleep methods of Embodiments 1, 3, 5, 7, and 9 of the present application.

[0176] In addition, in combination with the BCM forced sleep methods in Embodiments 1, 3, 5, 7, and 9 above, embodiments of the present application may provide a storage medium to implement. Computer program instructions are stored on the storage medium; when the computer program instructions are executed by a processor, the BCM forced sleep methods in Embodiments 1, 3, 5, 7, and 9 above are implemented.

[0177] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0178] The above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A BCM forced sleep method, characterized in that, including: When the vehicle is powered off, start a timeout counter with a preset timeout value set; When at least one of the obtained sleep flag bits is not idle, determine whether the BCM is in the OTA mode; If so, set the count value in the OTA countdown counter to a preset countdown value and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value; Individually detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements. The preset requirements mean that the IGN switch state is in the on state, the PEPS power state is in the on state, the in-vehicle network diagnosis state is in the running state, the hazard warning light state is in the on state, and the sleep flag bit state is in the switching state; If it is determined that none of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, then determine whether the value in the timeout counter reaches the preset timeout value and whether the value in the OTA countdown counter is zero; If so, perform a forced sleep process on the BCM.

2. The BCM forced sleep method according to claim 1, characterized in that, After the step of determining whether the BCM is in the OTA mode when at least one of the obtained sleep flag bits is not idle, the method further includes: If the BCM is not in the OTA mode, individually detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements; If not, determine whether the value in the timeout counter reaches the preset timeout value; If so, perform a forced sleep process on the BCM.

3. The BCM forced hibernation method according to claim 1, wherein After the step of individually detecting the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state and determining whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, the method further includes: If it is determined that none of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, then determine whether the value in the timeout counter reaches the preset timeout value; If not, do not perform a forced sleep process on the BCM.

4. The BCM forced sleep method according to claim 3, characterized in that, After the step of determining whether the value in the timeout counter reaches the preset timeout value, the method further includes: If it is determined that the value in the timeout counter reaches the preset timeout value, then determine whether the value in the OTA countdown counter is zero; If not, do not perform the forced sleep process for the BCM.

5. The BCM forced hibernation method according to claim 1, characterized in that, After the step of detecting the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and determining whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, the method further includes: If it is determined that one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, set the value of the timeout counter to zero until the value of the timeout counter reaches the preset timeout value, and then determine whether the value in the OTA countdown counter is zero; If so, perform the forced sleep process for the BCM.

6. The BCM forced sleep method according to any one of claims 1 to 5, characterized in that, The preset countdown value is greater than the default value of the vehicle's own OTA countdown counter.

7. A BCM forced sleep system, characterized in that, Including: A first start module, configured to, when the vehicle is powered off, start a timeout counter with a preset timeout value set; A first judgment module, configured to, when at least one of the obtained sleep flag bits is not idle, determine whether the BCM is in the OTA mode; A second start module, configured to, if it is determined that the BCM is in the OTA mode, set the count value in the OTA countdown counter to a preset countdown value, and start the OTA countdown counter, where the preset timeout value is less than the preset countdown value; A first detection module, configured to detect the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state one by one, and determine whether any one of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, where the preset requirements mean that the IGN switch state is in the on state, the PEPS power state is in the on state, the in-vehicle network diagnosis state is in the running state, the hazard warning light state is in the on state, and the sleep flag bit state is in the switching state; A second judgment module, configured to, if it is determined that none of the IGN switch state, the PEPS power state, the in-vehicle network diagnosis state, the hazard warning light state, and the sleep flag bit state meets the preset requirements, determine whether the value in the timeout counter reaches the preset timeout value, and whether the value in the OTA countdown counter is zero; The first processing module is configured to perform forced sleep processing on the BCM if it is determined that the value in the timeout counter reaches the preset timeout value and the value in the OTA countdown counter is zero.

8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the BCM forced sleep method according to any one of claims 1 to 6.

9. A storage medium, on which a computer program is stored, characterized in that, When the program is executed by the processor, it implements the BCM forced sleep method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for switching sleep mode and wakeup mode of electric vehicle control unit and realization circuit thereof

    CN102673421A

  • Vehicle forced dormancy control method and device and vehicle

    CN113511154A