System and method for recording abnormal dormancy and abnormal wakeup of vehicle based on gateway
By introducing gateway-based systems and methods into the automotive electronic control unit, the abnormal sleep and abnormal wake-up situation of the car are automatically tested and recorded, and the problems of intricacies and low testing in the prior art are solved, and more efficient and accurate detection results are achieved.
Patent Information
- Application Number
- CN202411860661.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-15
AI Technical Summary
The test of abnormal wake-up of cars in the prior art is more complicated, reducing the efficiency of the test.
The gateway-based system and method are adopted to automatically test and record the abnormal sleep and abnormal wake-up of the car's electronic control unit through the gateway, including the strategies of recording abnormal sleep and abnormal wake-up of the car, and use technical means such as sleep fault detection timers and counters.
It improves the detection efficiency of abnormal sleep and abnormal wake-up of the car, simplifies the test process, reduces errors, and conducts tests without affecting the stability of the system, improving the accuracy of the test.
Smart Images

Figure CN119828641A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of automobile sleep failure detection, and in particular, the present invention relates to a gateway-based system and method for recording abnormal sleep and abnormal wake-up of a vehicle. Background Art
[0002] With the increase of electronic control units in modern automobiles, the hazards caused by abnormal sleep and abnormal wake-up of automobiles have to be taken seriously. Abnormal sleep and abnormal wake-up of automobiles will increase the energy loss of the automobile and affect the performance and safety of the automobile.
[0003] Chinese patent 113961258A discloses a method, system and storage medium for identifying abnormal vehicle status based on timing transfer, which belongs to the field of automotive electronic systems. The method uses vehicle signal data and is based on the human control logic of the vehicle to construct a timing state table including normal wake-up, abnormal wake-up, sleep, data loss, engine start, and non-sleep after defense. The vehicle timing state is extracted and the related active wake-up sources are listed. Based on the vehicle signal table and the timing state, a vehicle timing state transfer table associated with the state transfer is constructed; the vehicle abnormal state is extracted according to the timing state table using the active wake-up source, and a network abnormal data table is constructed. According to the network abnormal data table, the abnormal situation of the vehicle, the start and end time of the fault are remotely identified to realize remote detection and monitoring of abnormal vehicle conditions in the parking state.
[0004] The existing technology is relatively complicated to test abnormal wake-up of a car, which reduces the efficiency of the test. Summary of the invention
[0005] The present invention aims to provide a system and method for recording abnormal non-sleeping and abnormal awakening of a vehicle based on a gateway, so as to improve the efficiency of detecting abnormal sleeping and abnormal awakening of a vehicle.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is:
[0007] The present invention provides a system for recording abnormal sleep and abnormal awakening of a vehicle based on a gateway, comprising a gateway and an automobile electronic control unit, wherein the output end of the automobile electronic control unit is connected to the input end of the gateway.
[0008] The automobile electronic control unit outputs a network management message to the gateway.
[0009] The gateway and the automobile electronic control unit are connected via a CAN bus.
[0010] There are at least two automotive electronic control units.
[0011] The invention provides a method for recording abnormal sleep and abnormal awakening of a vehicle based on a gateway, comprising a strategy for recording abnormal non-sleep of a vehicle and a strategy for recording abnormal awakening of a gateway.
[0012] Record abnormal sleep strategy of the car: When the car reaches the conditions for entering the sleep state, the gateway starts the sleep fault detection timer. If the gateway is still in the awakened state within the set time, the gateway determines the car's electronic control unit that sends the network management message based on the network management message, and records the car's electronic control unit as an abnormal sleep node and saves it to the gateway's powered erasable programmable read-only memory.
[0013] Record gateway abnormal wake-up strategy: When the car enters sleep state and the gateway enters sleep state, when the gateway is awakened by a network management message, the gateway determines the vehicle electronic control unit that sends the network management message based on the network management message, and records the vehicle electronic control unit that sends the network management message as an abnormal wake-up node. The gateway counts the number of times the vehicle electronic control unit wakes up the gateway through a counter. The gateway records the vehicle electronic control unit whose count reaches the set value as an abnormal wake-up source and records it in the electrically erasable programmable read-only memory.
[0014] In the strategy of recording the abnormal non-sleep state of the vehicle, the sleep fault detection timer is reset the next time the vehicle reaches the condition to enter the sleep state.
[0015] In the strategy of recording abnormal non-sleeping of vehicles, the gateway only records once the abnormal sleeping node that repeatedly sends network management messages.
[0016] In the strategy for recording abnormal gateway wake-up, the vehicle electronic control units recorded by the gateway as abnormal wake-up nodes are counted through different counters.
[0017] After the abnormal awakening node is recorded as the abnormal awakening source, the counter corresponding to the abnormal awakening node is cleared.
[0018] The technical effects of the present invention are:
[0019] (1) The present invention automatically tests and records abnormal sleep and abnormal wake-up of the automobile electronic control unit through the gateway, thereby improving the efficiency of troubleshooting.
[0020] (2) The present invention tests and records abnormal sleep and abnormal wake-up of a car based on the original system without increasing the cost. The method is simple and effective and is easy to promote.
[0021] (3) The present invention performs testing without external interference and without affecting system stability, thereby improving the accuracy of the test.
[0022] (4) The present invention counts the abnormal wake-up nodes and determines the abnormal wake-up source after reaching a set number of times, thereby reducing the test error. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] This specification includes the following drawings, which show the following contents:
[0024] Figure 1 A logical structure block diagram of a system and method for recording abnormal non-sleep and abnormal awakening of a vehicle based on a gateway of the present invention;
[0025] Figure 1 The markings are: 1. Gateway; 2. Automotive electronic control unit. DETAILED DESCRIPTION
[0026] The specific implementation methods of the present invention are further explained in detail below by describing the embodiments with reference to the accompanying drawings, with the aim of helping those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solution of the present invention and facilitating their implementation.
[0027] The present invention provides a gateway-based system for recording abnormal sleep and abnormal wake-up of a vehicle, comprising a gateway 1 and an automobile electronic control unit 2, wherein the output end of the automobile electronic control unit is connected to the input end of the gateway 1. The automobile electronic control unit outputs a network management message to the gateway 1. The gateway 1 and the automobile electronic control unit are connected via a CAN bus. There are at least two automobile electronic control units.
[0028] The present invention provides a gateway-based method for recording abnormal sleep and abnormal awakening of a vehicle, comprising a strategy for recording abnormal non-sleep of a vehicle and a strategy for recording abnormal awakening of a gateway 1 .
[0029] Record abnormal sleep strategy of the car: When the car reaches the conditions for entering the sleep state, gateway 1 starts the sleep fault detection timer. If gateway 1 is still in the awakened state within the set time, gateway 1 determines the car's electronic control unit that sends the network management message based on the network management message, and records the car's electronic control unit as an abnormal sleep node and saves it to the powered erasable programmable read-only memory of gateway 1.
[0030] Record abnormal wake-up strategy of gateway 1: When the car enters the sleep state and gateway 1 enters the sleep state, when gateway 1 is awakened by the network management message, gateway 1 determines the vehicle electronic control unit that sends the network management message according to the network management message, and records the vehicle electronic control unit that sends the network management message as an abnormal wake-up node. Gateway 1 counts the number of times the vehicle electronic control unit wakes up gateway 1 through a counter. Gateway 1 records the vehicle electronic control unit whose count number reaches the set value as an abnormal wake-up source and records it in the electrically erasable programmable read-only memory.
[0031] In the strategy of recording abnormal non-sleep state of the vehicle, the sleep fault detection timer is reset the next time the vehicle reaches the condition of entering the sleep state. In the strategy of recording abnormal non-sleep state of the vehicle, the gateway 1 only records the abnormal sleep node that repeatedly sends the network management message once.
[0032] In the strategy for recording abnormal wakeup of gateway 1, the automotive electronic control units recorded as abnormal wakeup nodes by gateway 1 are counted by different counters. After the abnormal wakeup node is recorded as an abnormal wakeup source, the counter corresponding to the abnormal wakeup node is cleared.
[0033] The following describes in detail a gateway-based system and method for recording abnormal non-sleep and abnormal awakening of a vehicle according to the present invention.
[0034] The present invention discloses a gateway-based system for recording abnormal non-sleep and abnormal awakening of a vehicle, including a gateway 1 and an automobile electronic control unit, wherein the gateway 1 is a hub for the transmission of network information of the automobile electronic control unit. The present invention obtains abnormal automobile electronic control unit information when the automobile is in a dormant state by analyzing the network management message sent by the automobile electronic control unit, and determines the abnormal dormant node and abnormal awakening source. Specifically, the information of the automobile electronic control unit that sends the network management message is recorded when the gateway 1 reaches the dormant condition; and the abnormal awakening source that awakens the gateway 1 is recorded after the gateway 1 enters the dormant state. The automobile electronic control unit is the core of the automobile control system. There are many automobile electronic control units on a car. As the functions of the car increase, the number of automobile electronic control units is also increasing. The automobile electronic control unit communicates through the CAN bus, and the gateway 1 is the core of the communication. The messages sent by the automobile electronic control unit are all transmitted through the gateway 1. The purpose of the present invention is to record abnormal automobile electronic control units through the gateway 1.
[0035] The present invention tests and records abnormal sleep and abnormal awakening of a car on the basis of an existing system without increasing the cost. The method is simple and effective and is easy to promote.
[0036] The present invention discloses a gateway-based method for recording abnormal non-sleep and abnormal awakening of a vehicle, comprising a strategy for recording abnormal non-sleep of a vehicle and a strategy for recording abnormal awakening of a gateway 1 .
[0037] The strategy for recording the abnormal non-sleep state of the automobile is that when the automobile reaches the condition of entering the sleep state, the gateway 1 starts the sleep fault detection timer. Within the set time range, if the gateway 1 is still in the awakened state, the gateway 1 determines the automobile electronic control unit that sends the network management message according to the network management message. Specifically, the gateway 1 determines the automobile electronic control unit that sends the network management message according to the NM-PDU ID in the network management message. The gateway 1 records the automobile electronic control unit that sends the network management message as an abnormal sleep node and saves it to the powered erasable programmable read-only memory of the gateway 1. In the embodiment of the present invention, the timing time of the sleep fault detection timer is ten minutes, because after the automobile reaches the condition of entering the sleep state, it takes a certain amount of time for the automobile to completely enter the sleep state to complete the signal transmission and the transition of the sleep state. Entering the sleep state too quickly will affect the stability of the automobile system. The specific conditions for the automobile to enter the sleep state are that the engine of the automobile is not working, the automobile is in the defense state and is not in the charging state. The present invention performs the test without affecting the stability of the system while eliminating external interference, thereby improving the accuracy of the test.
[0038] In the strategy of recording abnormal non-sleep state of the car, the sleep fault detection timer in the gateway 1 is reset the next time the car meets the conditions for entering the sleep state.
[0039] The abnormal wake-up strategy of recording gateway 1 is that when the car enters the dormant state and gateway 1 enters the dormant state, when gateway 1 is awakened by the network management message, gateway 1 determines the automobile electronic control unit that sends the network management message according to the network management message, specifically, the automobile electronic control unit is determined by the "Active Wakeup Bit" in the network management message, gateway 1 records the automobile electronic control unit that sends the network management message as an abnormal wake-up node, gateway 1 counts the number of times the automobile electronic control unit wakes up gateway 1 through a counter, each automobile electronic control unit corresponds to a counter, gateway 1 records the automobile electronic control unit whose count number reaches the set value as an abnormal wake-up source and records it in the electrically erasable programmable read-only memory, after the abnormal wake-up node is recorded as the abnormal wake-up source, the counter corresponding to the abnormal wake-up node is cleared. In an embodiment of the present invention, the number of times the automobile electronic control unit that is recorded as the abnormal wake-up source sends the network management message is 15 times. The present invention reduces the error of the test by counting the abnormal wake-up nodes and determining the abnormal wake-up source after reaching the set number of times.
[0040] The present invention automatically tests and records abnormal feedback of the automobile electronic control unit through the gateway 1, thereby improving the efficiency of troubleshooting.
[0041] The present invention is described above by way of example in conjunction with the accompanying drawings. Obviously, the specific implementation of the present invention is not limited to the above-mentioned methods. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention; or the above concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.
Claims
1. A gateway-based system for recording abnormal vehicle sleep and abnormal wake-up, characterized in that: It comprises a gateway and an automobile electronic control unit, wherein the output end of the automobile electronic control unit is connected to the input end of the gateway.
2. A gateway-based system for recording abnormal vehicle sleep and abnormal wakeup as claimed in claim 1, characterized in that: The automobile electronic control unit outputs a network management message to the gateway.
3. A gateway-based system for recording abnormal vehicle sleep and abnormal wakeup as claimed in claim 1, characterized in that: The gateway and the automobile electronic control unit are connected via a CAN bus.
4. A gateway-based system for recording abnormal vehicle sleep and abnormal wakeup as claimed in claim 1, characterized in that: There are at least two automotive electronic control units.
5. A gateway-based method for recording abnormal sleep and abnormal wake-up of a vehicle as claimed in any one of claims 1 to 4, characterized in that: Including recording the strategy of abnormal non-sleep of the car and recording the strategy of abnormal wake-up of the gateway; Record abnormal dormancy strategy of the car: When the car reaches the conditions for entering the dormant state, the gateway starts the dormant fault detection timer. If the gateway is still in the awakened state within the set time, the gateway determines the car's electronic control unit that sends the network management message based on the network management message, and records the car's electronic control unit as an abnormal dormant node and saves it to the gateway's powered erasable programmable read-only memory; Record gateway abnormal wake-up strategy: When the car enters sleep state and the gateway enters sleep state, when the gateway is awakened by a network management message, the gateway determines the vehicle electronic control unit that sends the network management message based on the network management message, and records the vehicle electronic control unit that sends the network management message as an abnormal wake-up node. The gateway counts the number of times the vehicle electronic control unit wakes up the gateway through a counter. The gateway records the vehicle electronic control unit whose count reaches the set value as an abnormal wake-up source and records it in the electrically erasable programmable read-only memory.
6. A gateway-based method for recording abnormal vehicle sleep and abnormal wakeup as claimed in claim 5, characterized in that: In the strategy of recording the abnormal non-sleep state of the vehicle, the sleep fault detection timer is reset the next time the vehicle reaches the condition to enter the sleep state.
7. A gateway-based method for recording abnormal vehicle sleep and abnormal wakeup as claimed in claim 5, characterized in that: In the strategy of recording abnormal non-sleeping of vehicles, the gateway only records once the abnormal sleeping node that repeatedly sends network management messages.
8. A gateway-based method for recording abnormal vehicle sleep and abnormal wakeup as claimed in claim 5, characterized in that: In the strategy for recording abnormal gateway wake-up, the vehicle electronic control units recorded by the gateway as abnormal wake-up nodes are counted through different counters.
9. A gateway-based method for recording abnormal vehicle sleep and abnormal wakeup as claimed in claim 5, characterized in that: After the abnormal awakening node is recorded as the abnormal awakening source, the counter corresponding to the abnormal awakening node is cleared.
Citation Information
Patent Citations
Automobile state abnormity identification method and system based on time sequence transfer and storage medium
CN113961258A