Network dormancy control method, electronic equipment and vehicle
By controlling the network sleep after the vehicle is powered off, identifying and handling abnormal power consumption risks, the problem of the vehicle losing power due to the network is not dormant, improving the vehicle experience and achieving fault location.
Patent Information
- Application Number
- CN202411915817.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-11
AI Technical Summary
After the vehicle is powered off, the network does not sleep, causing the vehicle to lose power and cannot start, affecting the vehicle use experience.
A network sleep control method is provided, by determining the local area network status and the communication active duration of the local interconnect network, identifying the risk of abnormal power consumption, and making a fault alarm prompt when the vehicle wakes up again.
It effectively avoids the vehicle losing power due to the network not sleeping, improves the vehicle experience, and helps users troubleshoot problems through fault location.
Smart Images

Figure CN119815381A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a network dormancy control method, electronic equipment and vehicle. Background Art
[0002] After the vehicle is electrically locked, the network may not go into sleep mode sometimes, which can cause the vehicle to run out of power and be unable to start, resulting in a bad car experience. Summary of the invention
[0003] In view of this, the purpose of the present application is to propose a network dormancy control method, electronic device and vehicle, which are used to control the network dormancy after the vehicle is powered off to avoid the vehicle from running out of power.
[0004] Based on the above purpose, the present application provides a method for controlling network dormancy, including:
[0005] determining a local area network state of the control local area network, and when the local area network state is a dormant state, determining a communication activity duration of the local interconnect network;
[0006] Determining whether there is a risk of abnormal power consumption based on the active communication duration;
[0007] In response to the presence of an abnormal power consumption risk and the vehicle being awakened again, a fault alarm prompt is issued based on the current battery power and the valid active nodes in the local interconnection network.
[0008] Based on the same inventive concept, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.
[0009] Based on the same inventive concept, the present disclosure also provides a vehicle, comprising the electronic device as described above.
[0010] From the above, it can be seen that the network dormancy control method, electronic device and vehicle provided by the present application can determine the active communication duration of the local interconnected network when the local area network is in the dormant state; determine whether there is a risk of abnormal power consumption based on the active communication duration; and when there is a risk of abnormal power consumption and the vehicle is awakened again, issue a fault alarm prompt based on the current battery power and the valid active nodes in the local interconnected network. After controlling the local area network to sleep, by determining the active communication duration of the local interconnected network, it is detected whether there are local interconnected network nodes that are not dormant and consume power. If there are local interconnected network nodes that are active for a long time, it is determined that there is a risk of abnormal power consumption. When the vehicle is awakened again, it is measured whether an alarm is needed based on the current battery power to avoid battery depletion, and the fault location is determined through the valid active nodes in the local interconnected network to achieve fault location, which provides convenience for users to troubleshoot and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 This is a flow chart of a method for controlling network dormancy according to an embodiment of the present application;
[0013] Figure 2 A flow chart of determining the communication activity duration of a local interconnection network according to an embodiment of the present application;
[0014] Figure 3 This is a flow chart of an embodiment of the present application for determining whether there is a risk of abnormal power consumption according to the active communication duration;
[0015] Figure 4 A flowchart of a fault alarm prompt for an embodiment of the present application;
[0016] Figure 5 This is a schematic diagram of the structure of a control device for network dormancy according to an embodiment of the present application;
[0017] Figure 6 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0019] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0020] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0021] Based on the description of the above background technology, the related technology also has the following situations:
[0022] The network not sleeping includes two situations: the Controller Area Network (CAN) network not sleeping and the Local Interconnect Network (LIN) network not sleeping.
[0023] Among them, the controller in the CAN network has multiple working modes. Each node in the CAN network can compete to send data to the bus by bit-by-bit arbitration in a lossless structure according to the bus access priority (depending on the message identifier). The CAN protocol abolishes the station address coding and instead encodes the communication data, which allows different nodes to receive the same data at the same time. These characteristics make the data communication between the nodes of the network composed of the CAN bus highly real-time and easy to form a redundant structure, thereby improving the reliability and flexibility of the system.
[0024] CAN network has the following characteristics:
[0025] (1) There is no master-slave distinction in data communication. Any node can initiate data communication to any other (one or more) nodes, and the communication order is determined by the priority order of each node's information.
[0026] (2) When multiple nodes initiate communication at the same time, the nodes with lower priority give way to the nodes with higher priority, which will not cause congestion on the communication line.
[0027] (3) The maximum communication distance can reach 10KM (rate less than 5Kbps), and the rate can reach 1Mbps (communication distance less than 40M).
[0028] (4) The CAN network transmission medium can be twisted pair or coaxial cable.
[0029] Therefore, the CAN bus is suitable for short-distance communication with large amounts of data or long-distance communication with small amounts of data, with high real-time requirements, and for use in scenes with multiple masters and multiple slaves or where each node is equal.
[0030] The LIN network is a low-cost serial communication network defined for vehicle distributed electronic systems. It is a supplement to the CAN network and is suitable for nodes that do not have high requirements on the network's bandwidth, performance or fault tolerance.
[0031] LIN network has the following characteristics:
[0032] (1) Low cost: Communication is based on the universal UART interface, and almost all microcontrollers have the necessary hardware for LIN.
[0033] (2) The maximum transmission rate can reach 20Kbit / s;
[0034] (3) Single master / multiple slaves mode does not require an arbitration mechanism;
[0035] (4) The slave node can achieve self-synchronization without a crystal or ceramic oscillator, saving the hardware cost of the slave device and ensuring the delay time of signal transmission;
[0036] (5) Nodes can be added to the network without changing the hardware and software of the LIN slave nodes.
[0037] CAN network and LIN network can be distinguished from the following aspects:
[0038] 1. Speed: The data transmission speed of CAN network is usually much faster than that of LIN network. The maximum speed of CAN network data transmission can reach 1Mbps, while the maximum speed of LIN network is only 20Kbps.
[0039] 2. Function: CAN network is usually used for high-speed data transmission and control, can support multi-node communication, and has high reliability and anti-interference ability; while LIN network is usually used for low-speed data transmission and control, mainly for simpler control tasks, such as door locking and unlocking.
[0040] 3. Cost: Compared with CAN network, LIN network has lower cost because it uses simpler hardware and software and is suitable for low-cost automotive electronic systems. However, CAN network has relatively higher cost because it requires more complex hardware and software support.
[0041] 4. Application scenarios: CAN networks are usually used in application scenarios that require high-speed, reliable, and multi-node communication, such as engine control, body electronic systems, etc.; while LIN networks are usually used in application scenarios that require low speed, simplicity, and low cost, such as door locking, rearview mirror control, etc.
[0042] Based on the above differences, CAN communication is the main communication method for vehicle controllers. It is convenient to collect data and easy to find problems. It is easy to find CAN nodes with problems. LIN communication is mainly used for nodes with smaller data volumes. The communication line is single and it is not easy to collect data, which increases the difficulty of troubleshooting and causes LIN nodes to remain abnormally awake for a long time after the vehicle is powered off. LIN nodes that are abnormally awake for a long time will continue to consume the power of the entire vehicle, causing the entire vehicle to run out of power, which brings troubles to users.
[0043] The control method, electronic device and vehicle for network dormancy provided in the present application can determine the active communication duration of the local interconnected network when the local area network is in dormant state; determine whether there is a risk of abnormal power consumption based on the active communication duration; and issue a fault alarm prompt based on the current battery power and valid active nodes in the local interconnected network when there is a risk of abnormal power consumption and the vehicle is awakened again. After controlling the local area network to sleep, by determining the active communication duration of the local interconnected network, it is detected whether there are local interconnected network nodes that are not dormant and consume power. If there are local interconnected network nodes that are active for a long time, it is determined that there is a risk of abnormal power consumption. When the vehicle is awakened again, it is measured whether an alarm is needed based on the current battery power to avoid battery depletion, and the fault location is determined through the valid active nodes in the local interconnected network to achieve fault location, which provides convenience for users to troubleshoot and improves the user experience.
[0044] The following describes in detail the network dormancy control method provided by the embodiments of the present application in conjunction with the accompanying drawings.
[0045] In some embodiments, Figure 1 As shown, a method for controlling network dormancy includes:
[0046] Step 101: Determine the local area network state of the control local area network, and when the local area network state is a dormant state, determine the communication active duration of the local interconnection network.
[0047] In specific implementation, compared with the LIN network, the CAN network has high reliability and anti-interference ability. After the vehicle is powered off, the CAN network will quickly enter a dormant state, and generally there will be no nodes that remain abnormally awake. However, the communication line of the LIN network is single, which is not easy to collect data, resulting in some LIN nodes remaining awake for a long time after the vehicle is powered off, and continuously consuming battery power. Therefore, it is necessary to first determine whether the CAN network is in a dormant state. If the CAN network is not in a dormant state, it means that the engine control and body electronic systems of the vehicle may be in a working state. In order to ensure the normal operation of the engine control and body electronic systems, it is necessary to ensure that the LIN nodes remain awake to execute the corresponding control instructions at any time to ensure that the normal operation of the vehicle will not be affected. And if the CAN network is in an awake state, the nodes that remain awake in the CAN network may wake up the dormant LIN nodes at any time, resulting in misjudgment of the state of the LIN nodes, which in turn affects the determination process of the active communication duration, resulting in inaccurate active communication duration.
[0048] The communication active duration is the duration that the LIN network is awakened after the CAN network goes into sleep mode.
[0049] The process of determining the active communication duration is:
[0050] First, determine whether there are valid active nodes among the slave nodes of the local interconnect network. The local interconnect network consists of a master node and multiple slave nodes, some of which are directly connected to the master node, and some of which are connected to the master node through other intermediate slave nodes. The slave nodes can be divided into two categories according to the usage scenario. One category is the valid slave nodes that wake up after the vehicle is powered on and sleep after the vehicle is powered off. The other category is the fixed-frequency wake-up node that switches between the wake-up state and the sleep state according to the preset wake-up frequency. Since the fixed-frequency wake-up node also needs to be awakened regularly after the vehicle is powered off to perform the corresponding function (such as the function associated with the anti-theft function), after the CAN network is dormant, the fixed-frequency wake-up node in the awakened state will not cause the LIN network to be in the awakened state, and the fixed-frequency wake-up node in the awakened state can also be regarded as an invalid wake-up node. Therefore, when determining the active communication duration, it is necessary to exclude the influence of the fixed-frequency wake-up node, and the influence of the fixed-frequency wake-up node on the LIN network state is not counted when determining the active communication duration, that is, the active communication duration is determined only according to the state of the valid slave node.
[0051] The valid active node is a valid slave node in the awake state. After the CAN network goes into sleep mode, the master node of the LIN network will monitor the status of each valid slave node (including awake state or sleep state) in real time, and determine the nodes in the awake state as valid active nodes, and determine the nodes in the sleep state as sleep nodes.
[0052] When there is an effective wake-up node, the duration that the effective wake-up node is in the awake state after the CAN network goes into sleep is the communication active time. Therefore, the communication active time is a dynamic value, that is, the timing duration from the CAN network sleeping to the current moment will increase with the passage of time until all the communication active times are all dormant. The increase of the communication active time stops, and the communication active time changes from a dynamic value to a static value. The static communication active time is the interval between the CAN network sleep moment and the sleep moment of the last effective active node. After the last effective active node switches from the awake state to the sleep state, the timing is stopped and the timer is turned off to further reduce the energy consumption of the timer.
[0053] If there are no valid active nodes, it means that all valid slave nodes have entered a dormant state after the vehicle is powered off, which will not cause waste of battery power. A zero value can be determined as the communication active duration to reduce energy consumption in the subsequent processing of the terminal.
[0054] Step 102: Determine whether there is a risk of abnormal power consumption based on the communication activity duration.
[0055] In specific implementation, after the vehicle is powered off, if all nodes in the CAN network and LIN network are in sleep mode, the vehicle will instantly stop all control, which may cause the vehicle to lose control, so different nodes need to be gradually put into sleep mode after the vehicle is powered off. Therefore, after the CAN network is in sleep mode, some nodes in the LIN network need to continue working for a period of time. Therefore, within a certain time range, it is normal for the communication activity duration to be abnormal. The reason for the abnormal consumption of vehicle power is the abnormal effective active nodes that are in the awake state for a long time. Therefore, a duration threshold is introduced to judge whether the communication activity duration is abnormal. If the communication activity duration is greater than or equal to the duration threshold, it means that the communication activity duration is abnormal. There are effective active nodes that are abnormally awakened, which will continue to consume the battery power, and it is determined that there is a risk of abnormal power consumption.
[0056] If the communication active duration is less than the duration threshold, it means that there is no abnormality in the communication active duration, and there is no abnormal awakening of valid active nodes. It is normal for valid active nodes to remain awake for a short time, and it will not continuously consume the battery power. It is determined that there is no risk of abnormal power consumption. It may also be that the timing time is insufficient, resulting in a short communication active duration, and it is necessary to continue timing to temporarily determine that there is no risk of abnormal power consumption, and continue timing until the last valid active node enters the dormant state.
[0057] Step 103: In response to the presence of an abnormal power consumption risk and the vehicle being awakened again, a fault alarm prompt is issued based on the current battery power and valid active nodes in the local interconnection network.
[0058] In specific implementation, after determining that there is a risk of abnormal power consumption, it means that there are valid active nodes in an abnormal awake state. However, if the corresponding valid active nodes are directly put into sleep mode, it may affect the normal use of the vehicle, because it is impossible to determine whether other new faults will be caused after the valid active nodes are directly put into sleep mode. Therefore, it is necessary to determine whether the valid awake nodes that have been awake for a long time will have a more serious impact on the battery power based on the current battery power at the time of awakening after the vehicle is awakened again (the whole vehicle is powered on).
[0059] If the current battery power is less than or equal to the preset first power threshold (for example, 20%), it means that the current battery power is being abnormally consumed. The additional abnormal consumption causes the power consumption rate of the power battery to increase, causing the power battery power to drop rapidly to less than the first power threshold, causing the power battery to be in a low-power state, which may have a certain impact on the vehicle's driving.
[0060] Because, before the vehicle is powered off, the power battery is generally monitored in real time to ensure that the power battery is maintained in a healthy state (for example, greater than 35%). When the power battery is found to be unhealthy, if there is an engine, the engine will be started to charge the power battery to ensure that the power battery is maintained at a state greater than 35%. If there is no engine, the vehicle will be notified in advance to charge, and when the power is lower than 35%, the user may be reminded to charge the vehicle to ensure that the power battery is maintained at a healthy level, avoiding the vehicle from entering a power-deficient state of less than 20%. Therefore, when the power of the power battery is less than the first power threshold, it means that there is abnormal power consumption after the vehicle is dormant in the CAN network. If it is determined that there is an abnormal power consumption risk at this time, it means that the abnormal valid active node that remains awake for a long time is one of the reasons for the abnormal power consumption. An alarm prompt is required to remind the user that there is an abnormal power consumption node device, and to help the user determine the source of abnormal power consumption by uploading the fault code corresponding to the valid active node in the local interconnection network, so as to facilitate the user to perform later maintenance and improve the user experience.
[0061] If the current battery power is less than or equal to the preset second power threshold and greater than the preset first power threshold, it means that the current power level is in a healthy state and will not affect the normal use of the vehicle. However, since it has been determined that there is a risk of abnormal power consumption, the corresponding node device may still have abnormal power consumption. At this time, it is necessary to determine the number of status records (excluding this time) when there is a risk of abnormal power consumption and the current battery power is in a healthy state, and the current number of status records (including this time) will be determined based on the current number of status records = number of status records + 1. If the current number of records is small, it means that the occurrence of abnormal power consumption risk is accidental, which may be an abnormal wake-up caused by the external environment and will not consume excessive battery power. At this time, there is no need to issue an alarm prompt until the current number of records meets the alarm condition.
[0062] If the current battery power is greater than the second power threshold, it means that the power of the power battery has not been abnormally consumed, the battery power is sufficient, and it will not affect driving. It is temporarily determined that the risk of abnormal power consumption is a misjudgment, and the next risk judgment will be made after the CAN network goes into sleep mode.
[0063] In summary, the network dormancy control method provided in the present application can, after controlling the local area network to sleep, detect whether there are power-consuming local interconnected network nodes that are not dormant by determining the communication activity duration of the local interconnected network. If there are local interconnected network nodes that are active for a long time, it is determined that there is a risk of abnormal power consumption. When the vehicle is awakened again, it is measured whether an alarm is needed based on the current battery power to avoid battery depletion, and the fault location is determined through the effective active nodes in the local interconnected network to achieve fault location, which provides convenience for users to troubleshoot and improves the user experience.
[0064] In some embodiments, Figure 2 As shown in the figure, the communication active duration of the local interconnection network is determined, including:
[0065] Step 201: Determine whether there is a valid active node among the slave nodes of the local interconnection network.
[0066] In some embodiments, step 201 includes:
[0067] Step 2011: Filter out fixed-frequency wake-up nodes from the slave nodes, and remove the fixed-frequency wake-up nodes from the slave nodes to obtain valid slave nodes.
[0068] In specific implementation, the slave nodes of the LIN network can be divided into two categories according to the usage scenarios. One category is the effective slave nodes that wake up after the vehicle is powered on and sleep after the vehicle is powered off. The other category is the fixed-frequency wake-up nodes that switch between the wake-up state and the sleep state according to the preset wake-up frequency. After the vehicle is powered off and the CAN network is dormant, the fixed-frequency wake-up nodes will still be awakened periodically according to the preset wake-up frequency. Therefore, when determining the active communication duration, in order to avoid the influence of the fixed-frequency wake-up nodes on the active communication duration when they are awakened, it is necessary to screen out the fixed-frequency wake-up nodes from the slave nodes, and remove the fixed-frequency wake-up nodes from the slave nodes. The remaining nodes are valid slave nodes. Valid slave nodes refer to slave nodes of the LIN network that can be used to determine the active communication duration.
[0069] For example, if there are 5 slave nodes in the LIN network, namely, node 1, node 2, node 3, node 4, and node 5, and node 1 is a fixed frequency wake-up node, and node 2, node 3, node 4, and node 5 are valid slave nodes, then when determining the active communication duration, node 1 needs to be removed first, and the status of the 4 nodes, namely, node 2, node 3, node 4, and node 5, is used for duration statistics.
[0070] Step 2012: In response to the existence of a valid slave node in the awake state, the valid slave node in the awake state is determined as a valid active node, and the existence of a valid active node is determined.
[0071] In specific implementation, the valid active node is a valid slave node in the awake state. After determining the valid slave node, it is necessary to determine whether to use the corresponding valid slave node to determine the communication active duration according to the state of no valid slave node. If the valid slave node is in the dormant state, it means that with the power off of the vehicle and the dormancy of the CAN network, the valid slave node also directly enters the dormant state, which will not cause abnormal consumption of battery power, and there is no need to determine the communication active duration based on the valid slave node.
[0072] If the valid slave node is in the awake state, it means that as the vehicle is powered off and the CAN network is dormant, the valid slave node remains awake, and remaining awake will continue to consume the power of the power battery. If the valid slave node does not go into sleep for a long time, it will cause abnormal power consumption. Therefore, the valid slave node in the awake state is determined as a valid active node, and the valid active node is used to determine the active communication time.
[0073] Exemplarily, among the valid slave nodes Node 2, Node 3, Node 4, and Node 5, Node 2 is in a sleep state, and Node 3, Node 4, and Node 5 are in an awake state, then Node 3, Node 4, and Node 5 are valid slave nodes.
[0074] Step 2013: In response to the absence of a valid slave node in the awake state, determining that there is no valid active node.
[0075] In specific implementation, if there is no valid slave node in the awake state, it means that all valid slave nodes have entered the sleep state, there is no possibility of abnormal power consumption, and it is determined that there is no valid active node.
[0076] Step 202: In response to the existence of a valid active node, the time when the control local area network enters the sleep state is determined as the timing start time, and the communication active duration is determined according to the timing start time and the network state of the local interconnection network.
[0077] In specific implementation, when there is an effective wake-up node, the duration of time that the effective wake-up node is in the wake-up state after the CAN network goes into sleep is the communication active duration, so the communication active duration is a dynamic value, and the start time of the communication active duration is the time when the CAN network goes into sleep, that is, the timing starts after the CAN network goes into sleep. If there are always effective active nodes and the network state of the local interconnected network has not changed, then the current moment is the end point of the timing. If all effective active nodes have gone into sleep and the network state of the local interconnected network has changed, then the sleep moment of the last effective active node is the end point of the timing. Therefore, the timing start time of the determination process of the communication active duration is related to the network state of the local interconnected network.
[0078] In some embodiments, determining the communication active duration according to the timing start time and the network status of the local interconnect network includes:
[0079] Step 2021: In response to the network state being a dormant state, the dormant time of the last valid active node is determined as the timing end time, and the difference between the timing end time and the timing start time is determined as the communication active duration.
[0080] In specific implementation, if the network state is in the sleep state, it means that with the change of time, all valid active nodes change from the awake state to the sleep state. When the network state switches to the sleep state, the timing of the communication active duration ends, and the communication active duration changes from a dynamic value to a static value. The timing end time is the state switching time when the last valid active node switches from the awake state to the sleep state. The timing start time is the time when the CAN network sleeps. The difference between the timing end time and the timing start time is the communication active duration. At this time, the communication active duration is the time difference between the CAN network sleep and the LIN network sleep.
[0081] Step 2022: In response to the network status being the awake state, the difference between the current time and the timing start time is determined as the communication active duration, and the local area network status is monitored in real time.
[0082] In specific implementation, if the network status is the awake state, it means that with the change of time, there are always valid active nodes that remain awake, and the timing of the communication active duration continues. At this time, the communication active duration is a dynamic value, because the current moment is the end moment of the timing, but the current moment is changing in real time, so the communication active duration has been increasing. At this time, the communication active duration is the difference between the current moment and the timing start moment.
[0083] Since the active communication duration is determined under the premise that the CAN network is dormant, the network status of the CAN network will also affect the process of determining the active communication duration. Therefore, during the change of the active communication duration, it is necessary to monitor the LAN status of the CAN network in real time to determine whether the active communication duration needs to be adjusted according to the LAN status of the CAN network.
[0084] Step 2023: In response to the LAN state switching from the sleep state to the wake-up state, the communication active duration is cleared, and the switching time when the LAN state switches from the wake-up state to the sleep state again is determined, the switching time is determined as the new timing start time, and the communication active duration is determined according to the new timing start time and the network state.
[0085] In specific implementation, after the local area network state of the CAN network switches from the sleep state to the awake state, it means that the vehicle has re-controlled important nodes such as the engine control node and the body electronic system node, and some nodes of the LIN network need to cooperate with the CAN network to perform corresponding functions, resulting in the value of the communication active time being no longer reliable, so the communication active time is cleared and the timing is restarted after the CAN network goes dormant again. Therefore, it is necessary to re-determine the timing start time first. Since the communication active time needs to be determined when the CAN network goes dormant, the switching time when the CAN network switches from the awake state to the sleep state again is determined as the new timing start time, and the communication active time is determined according to the new timing start time and the network status of the LIN network.
[0086] Step 203: In response to the absence of a valid active node, a zero value is determined as the communication active duration.
[0087] In specific implementation, if there are no valid active nodes, it means that all valid slave nodes have entered a dormant state after the vehicle is powered off, which will not cause waste of battery power. A zero value can be determined as the communication active duration to reduce energy consumption in the subsequent processing of the terminal.
[0088] In some embodiments, Figure 3 As shown, whether there is a risk of abnormal power consumption is determined based on the active communication duration, including:
[0089] Step 301: In response to the communication being active for a time period shorter than a preset threshold, determining that there is no risk of abnormal power consumption.
[0090] In specific implementation, if the communication active duration is less than the duration threshold, it means that there is no abnormality in the communication active duration, there is no abnormal valid active node, and it is normal for the valid active node to remain awake for a short time, which will not continuously consume the battery power, and it is determined that there is no risk of abnormal power consumption. It may also be that the timing time is insufficient, resulting in a short communication active duration, and it is necessary to continue timing, temporarily determine that there is no risk of abnormal power consumption, and continue timing until the last valid active node enters the dormant state.
[0091] Step 302: In response to the communication active duration being greater than or equal to a preset duration threshold, determining a storage power value when the local area network state is switched to a sleep state.
[0092] In specific implementation, if the communication active duration is greater than or equal to the duration threshold, it means that there is an abnormality in the communication active duration, and there are effective active nodes that are abnormally awakened, which will continue to consume battery power. However, it is necessary to determine whether to allow the effective active nodes to continue to consume battery power based on the stored power value when the LAN state is switched to the sleep state.
[0093] Step 303: In response to the stored power value being greater than or equal to the preset power-on startup power value, determining that there is a risk of abnormal power consumption.
[0094] In specific implementation, if the stored power value is greater than or equal to the preset power-on startup power value (for example, 10%), it means that the battery power is sufficient to support the vehicle until it is awakened again, and a corresponding alarm prompt will be given after the vehicle is awakened again. Therefore, it can be determined at this time that there is a risk of abnormal power consumption.
[0095] Step 304: In response to the stored power value being less than the preset power-on startup power value, it is determined that there is a risk of low power and that there is no risk of abnormal power consumption.
[0096] During specific implementation, if the stored power value is less than the preset power-on startup power value, it means that the battery power is very low and cannot support the long-term consumption of effective active nodes, which may cause the vehicle to be unable to be woken up again. Therefore, it is impossible to wait for the vehicle to be woken up again before issuing a corresponding alarm prompt. It is directly determined that there is a risk of low power with a higher priority (higher priority than the risk of abnormal power consumption), and then it is determined that there is no risk of abnormal power consumption with a lower priority.
[0097] In some embodiments, after determining that there is a risk of low battery, the method further includes:
[0098] Force active nodes in the dormant wake-up state and issue a low battery reminder after the vehicle is woken up again.
[0099] In specific implementation, since the battery power can no longer support the long-term consumption of effective active nodes, it is necessary to force the effective active nodes in the sleep state to ensure that the vehicle has sufficient power to be awakened again. After the vehicle is awakened again, an alarm prompt is used to remind the user that the power is too low and there are faulty nodes with abnormal power consumption, and the user is prompted to maintain these effective active nodes that have not been in sleep for a long time to reduce power consumption.
[0100] In some embodiments, Figure 4 As shown, fault alarm prompts are given according to the current battery power and valid active nodes in the local interconnection network, including:
[0101] Step 401: Determine the current power state according to the current battery power.
[0102] In some embodiments, step 401 includes:
[0103] Step 4011: In response to the current battery power being less than or equal to a preset first power threshold, determining the low power state as the current power state, wherein the first power threshold is greater than the power-on startup power value.
[0104] In specific implementation, if the current battery power is less than or equal to a preset first power threshold (for example, 20%), it means that the current battery power is abnormally consumed. The additional abnormal consumption causes the power consumption rate of the power battery to increase, causing the power battery to quickly drop to less than the first power threshold, resulting in the power battery being in a low-power state, which may have a certain impact on the vehicle's driving. The low-power state is then determined as the current power state.
[0105] Step 4012: In response to the current battery power being less than or equal to a preset second power threshold and greater than a preset first power threshold, the health state is determined to be the current power state, wherein the second power threshold is greater than the first power threshold.
[0106] In specific implementation, if the current battery power is less than or equal to the preset second power threshold and greater than the preset first power threshold, it means that the current battery power is in a healthy state and will not affect the normal use of the vehicle.
[0107] Step 4013: In response to the current battery power being greater than a preset second power threshold, the full-charge state is determined as the current power state.
[0108] If the current battery power is greater than the second power threshold, it means that the power of the power battery has not been abnormally consumed, the battery power is sufficient, and there will be no impact on driving, and the full charge state is determined as the current power state.
[0109] Step 402: In response to the current power state being a low power state, a fault code corresponding to a valid active node is uploaded, and a low power alarm is issued.
[0110] In specific implementation, before the vehicle is powered off, the power battery is generally monitored in real time to ensure that the power battery remains in a healthy state (for example, greater than 35%). When the power battery is found to be unhealthy, the user will be prompted to charge or start the engine for charging to ensure that the battery remains in a healthy state. Therefore, after the vehicle is awakened again, if the power battery is less than the first power threshold, resulting in the current power state being a low-power state, it means that there is abnormal power consumption after the vehicle goes into sleep mode on the CAN network, and the low-power state is determined as the current power state.
[0111] Since it is determined that there is a risk of abnormal power consumption at this time, it means that the abnormally valid active nodes that remain awake for a long time are one of the reasons for the abnormal power consumption. An alarm is needed to remind the user that there are node devices with abnormal power consumption, and by uploading fault codes corresponding to valid active nodes in the local interconnected network, the user can be helped to determine the source of the abnormal power consumption, which is convenient for the user to perform subsequent maintenance and improve the user experience.
[0112] Step 403: In response to the current power state being a fully charged state, terminating the alarm control.
[0113] During specific implementation, if the current power status is fully charged, it means that the power of the power battery has not been abnormally consumed, the battery power is sufficient, and it will not affect driving. It is temporarily determined that the risk of abnormal power consumption is a misjudgment, and the next risk judgment will be carried out after the CAN network goes into sleep mode, and the alarm control will be terminated.
[0114] Step 404: In response to the current power state being a healthy state, the number of state records is determined, and a cumulative increase calculation is performed on the number of state records to obtain the current number of state records.
[0115] In specific implementation, if the current power status is in a healthy state, it means that it will not have a significant impact on the use of the vehicle. However, since it has been determined that there is a risk of abnormal power consumption, the corresponding node equipment may still have abnormal power consumption. At this time, it is necessary to determine the number of status records when the current battery power is in a healthy state and determine the current status record number based on the current status record number = status record number + 1 to determine whether the risk of abnormal power consumption is a misjudgment.
[0116] Step 405: In response to the current record count being greater than or equal to a preset count threshold, a fault code corresponding to a valid active node is uploaded, and a low battery alarm is issued.
[0117] During specific implementation, if the current number of records is greater than or equal to the preset number threshold, it means that this situation occurs frequently and is a high-probability event, eliminating the possibility of misjudgment. It is determined that there is an abnormal slave node that remains awake. It is necessary to upload the fault code corresponding to the valid active node to ensure that the user can find the source of the fault and facilitate the user's subsequent maintenance. At the same time, an alarm for low battery is issued to remind the user to charge in time to avoid affecting the normal use of the vehicle due to low battery.
[0118] Step 406: In response to the current number of records being less than a preset number threshold, the alarm control is terminated.
[0119] In specific implementation, if the current number of records is small, it means that the risk of abnormal power consumption is accidental, which may be an abnormal wake-up caused by the external environment and will not consume excessive battery power. At this time, there is no need to issue an alarm prompt until the current number of records meets the alarm condition.
[0120] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0121] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0122] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a network dormancy control device.
[0123] refer to Figure 5 , the network dormancy control device comprises:
[0124] The active duration determination module 10 is configured to: determine the local area network state of the control local area network, and when the local area network state is a dormant state, determine the communication active duration of the local interconnection network;
[0125] The power consumption risk determination module 20 is configured to: determine whether there is an abnormal power consumption risk according to the communication active duration;
[0126] The fault alarm prompt module 30 is configured to: in response to the existence of abnormal power consumption risk and the vehicle being awakened again, issue a fault alarm prompt based on the current battery power and valid active nodes in the local interconnection network.
[0127] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0128] The device of the above embodiment is used to implement the corresponding network dormancy control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0129] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the network sleep control method described in any of the above embodiments is implemented.
[0130] Figure 6 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0131] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0132] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0133] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0134] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0135] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0136] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0137] The electronic device of the above embodiment is used to implement the corresponding network dormancy control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0138] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the network sleep control method described in any of the above embodiments.
[0139] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0140] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the network dormancy control method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0141] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a vehicle, including the electronic device or network sleep control device of the above-mentioned embodiment, and the network sleep control method described in any of the above embodiments is executed through the electronic device or network sleep control device of the above-mentioned embodiment, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0142] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0143] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0144] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0145] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0146] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0147] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0148] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0149] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A method for controlling network dormancy, characterized in that: include: determining a local area network state of the control local area network, and when the local area network state is a dormant state, determining a communication activity duration of the local interconnect network; Determining whether there is a risk of abnormal power consumption based on the active communication duration; In response to the presence of an abnormal power consumption risk and the vehicle being awakened again, a fault alarm prompt is issued based on the current battery power and the valid active nodes in the local interconnection network.
2. The method for controlling network dormancy according to claim 1, characterized in that: The communication activity duration of the local interconnection network is determined to include: determining whether the valid active node exists among the slave nodes of the local interconnect network; In response to the existence of the valid active node, determining the time when the control local area network enters the sleep state as the timing start time, and determining the communication active duration according to the timing start time and the network state of the local interconnection network; In response to the absence of the valid active node, a zero value is determined as the communication active duration.
3. The method for controlling network dormancy according to claim 2, characterized in that: The determining whether there is a valid active node among the slave nodes of the local interconnection network comprises: Screening out fixed-frequency wake-up nodes from the slave nodes, and removing the fixed-frequency wake-up nodes from the slave nodes to obtain valid slave nodes; In response to the existence of a valid slave node in an awake state, determining the valid slave node in the awake state as the valid active node, and determining that there is a valid active node; In response to the absence of a valid slave node in the awake state, it is determined that there is no valid active node.
4. The method for controlling network dormancy according to claim 2, characterized in that: The determining the communication active duration according to the timing start time and the network status of the local interconnect network includes: In response to the network state being a dormant state, determining the dormant time of the last valid active node as a timing end time, and determining the difference between the timing end time and the timing start time as the communication active duration; In response to the network state being the awake state, determining the difference between the current time and the timing start time as the communication active duration, and monitoring the local area network state in real time; In response to the local area network state switching from the sleep state to the wake-up state, the communication active duration is cleared, and a switching time at which the local area network state switches from the wake-up state to the sleep state again is determined, the switching time is determined as a new timing start time, and the communication active duration is determined based on the new timing start time and the network state.
5. The method for controlling network dormancy according to claim 1, characterized in that: The determining whether there is a risk of abnormal power consumption according to the communication active duration includes: In response to the communication being active for a time period shorter than a preset threshold, determining that there is no risk of abnormal power consumption; In response to the communication active duration being greater than or equal to a preset duration threshold, determining a storage power value when the local area network state is switched to a dormant state; In response to the stored power value being greater than or equal to a preset power-on startup power value, determining that there is the abnormal power consumption risk; In response to the stored power value being less than the preset power-on startup power value, it is determined that there is a risk of low power, and it is determined that there is no risk of abnormal power consumption.
6. The method for controlling network dormancy according to claim 5, characterized in that: After determining that there is a risk of low battery, it also includes: Force active nodes in the dormant wake-up state and issue a low battery reminder after the vehicle is woken up again.
7. The method for controlling network dormancy according to claim 1, characterized in that: The fault alarm prompt according to the current battery power and the valid active nodes in the local interconnection network includes: Determine a current power state according to the current battery power; In response to the current power state being a low power state, uploading a fault code corresponding to the valid active node and issuing a low power alarm; In response to the current power state being a fully charged state, terminating the alarm control; In response to the current power state being a healthy state, determining a state record number, and performing a cumulative increase calculation on the state record number to obtain a current state record number; In response to the current record number being greater than or equal to a preset number threshold, uploading a fault code corresponding to the valid active node and issuing a low power alarm; In response to the current record number being less than a preset number threshold, the alarm control is terminated.
8. The method for controlling network dormancy according to claim 7, characterized in that: The determining the current power state according to the current battery power includes: In response to the current battery power being less than or equal to a preset first power threshold, determining the power-deficient state as the current power state; wherein the first power threshold is greater than the power-on startup power value; In response to the current battery power being less than or equal to a preset second power threshold and greater than a preset first power threshold, determining the health state as the current power state; wherein the second power threshold is greater than the first power threshold; In response to the current battery power being greater than a preset second power threshold, the fully charged state is determined as the current power state.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A vehicle, characterized in that: Comprising the electronic device as claimed in claim 9.
Citation Information
Patent Citations
Sleep and wake-up method for in-vehicle hybrid network including vehicle-mounted Ethernet
CN110758289A
Monitoring method and system for low-voltage power supply and vehicle
CN115107519A
Dormancy wake-up abnormity determination method and device, electronic equipment and storage medium
CN116600262A
Method and device for processing frequent wake-up fault, electronic equipment and vehicle
CN117762114A