Seat ECU control method for preventing high-voltage power-off of non-gateway complete vehicle and related device
By detecting the CAN bus message status and severing the connection between the seat ECU and the vehicle network in case of a fault, the problem of messages crowding out network channels in the non-gateway vehicle management mode is solved, thereby improving the security and reliability of the vehicle network.
Patent Information
- Application Number
- CN202310104271.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-28
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-01-28
AI Technical Summary
In the non-gateway vehicle management mode, the controller continuously sends messages to the vehicle network at a high frequency for more than 300ms, causing network channel congestion, triggering vehicle network communication failure and resulting in high-voltage power outage.
By detecting the transmission status flag of the CAN bus message, the fault is determined, and when the fault occurs, the ECU's message transmission and reception status and working time are obtained. If the set value is exceeded, the connection between the seat ECU and the vehicle network is cut off, the CAN transceiver is set to Sleep mode, and the CAN is reinitialized to restore communication when the vehicle goes from OFF to ON.
While ensuring the intelligent functions of the seats, it prevents vehicle network communication failures, improves the security and reliability of the vehicle network, and avoids high-voltage power outages caused by CAN line disconnection.
Smart Images

Figure CN116101134B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of vehicle safety, and particularly relates to a seat ECU control method for preventing high-voltage power-off of a non-gateway vehicle and a related device. BACKGROUND
[0002] Currently, in order to highlight individualization and improve intelligence, more and more functions of electric seats are developed, and the functions are increasingly associated with vehicle control functions year by year. For a vehicle, it is particularly important to ensure the safety of the vehicle while improving the intelligence and electrification of the seat and the vehicle. At present, the market has various function controls of parts, and the vehicle mainly adjusts through gateway control.
[0003] At present, there are two control modes of gateway management and non-gateway management for vehicle networks on the market. In the non-gateway management mode, each controller of the vehicle sends different control messages to the vehicle network according to the demand for communication. In the case of a fault, the controller will continuously send messages to the vehicle network at a high frequency for more than 300 ms, which will occupy the network channel and cause communication failure of the vehicle network, and then form the consequence of high-voltage power-off. SUMMARY
[0004] The purpose of the application is to provide a seat ECU control method for preventing high-voltage power-off of a non-gateway vehicle and a related device to solve the problem that in the case of a fault, the controller will continuously send messages to the vehicle network at a high frequency for more than 300 ms, which will occupy the network channel and cause communication failure of the vehicle network, and then form the consequence of high-voltage power-off.
[0005] To achieve the above purpose, the application adopts the following technical solutions:
[0006] The seat ECU control method for preventing high-voltage power-off of a non-gateway vehicle comprises the following steps:
[0007] Detecting a sending state flag bit of a CAN bus message to determine whether there is a fault;
[0008] When a fault occurs, the seat ECU acquires the ECU message reception and transmission condition and the working time to determine whether the working time exceeds a set value;
[0009] When the set value is exceeded, the association between the seat ECU and the vehicle network is cut off.
[0010] Further, the sending state flag bit of the CAN bus message is detected:
[0011] The relevant register of the CAN transceiver is checked, and TRMSTS is the sending state flag bit;
[0012] When the CAN message is normally sent, the TRMSTS state is 0;
[0013] When the CAN message is in the sending or sending exception, the TRMSTS state is 1;
[0014] When the TRMSTS state lasts to reach the first set value, it is 1, that is, the CAN communication is judged to be abnormal.
[0015] Further, when the CAN communication is abnormal, the CAN transceiver is set to the Sleep mode, and the CAN abnormal flag is set to 1; when the whole vehicle is from OFF to ON, if the CAN abnormal flag is 1, the CAN is reinitialized, and the message is sent.
[0016] Further, the first set value is 50ms.
[0017] Further, the seat ECU obtains the ECU transceiving message condition and working time:
[0018] The ECU transceiving message condition and working time are accumulated to judge whether the seat ECU in continuous sending error message duration exceeds the second set value, and if so, the association of the seat ECU and the whole vehicle network is cut off.
[0019] Further, the second set value is 250ms.
[0020] Further, the seat ECU control system for preventing high-voltage power-off of a non-gateway whole vehicle comprises:
[0021] The fault detection module is used for judging whether there is a fault by detecting the sending state flag bit of the CAN bus message sending;
[0022] The judgment module is used for the seat ECU to obtain the ECU transceiving message condition and working time when the fault occurs, and judge whether the working time exceeds the set value;
[0023] The execution module is used for cutting off the association of the seat ECU and the whole vehicle network when the set value is exceeded.
[0024] Further, a computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the seat ECU control method for preventing high-voltage power-off of a non-gateway whole vehicle when executing the computer program.
[0025] Further, a computer readable storage medium stores a computer program, and the computer program implements the steps of the seat ECU control method for preventing high-voltage power-off of a non-gateway whole vehicle when executed by a processor.
[0026] Compared with the prior art, the present application has the following technical effects:
[0027] The application can ensure the realization of intelligent seat function and further ensure the safety and reliability of the whole vehicle network in the case of lacking gateway management in the whole vehicle architecture.
[0028] The application can judge whether the CAN needs to be reinitialized after the CAN network fault occurs each time OFF→ON, so it has certain CAN recovery ability. BRIEF DESCRIPTION OF DRAWINGS
[0029] Figure 1 The scheme logic flow chart.
[0030] Figure 2 The seat control box module.
[0031] Figure 3 The system structure diagram. DETAILED DESCRIPTION
[0032] The application will be further described below in combination with the drawings:
[0033] A seat ECU control method and related device for preventing high voltage power failure in a non-gateway whole vehicle architecture:
[0034] The technical scheme of the application is:
[0035] The sending state flag bit of the CAN bus message is detected to judge whether there is a fault;
[0036] When a fault occurs, the seat ECU acquires the ECU transceiving message condition and working time, and judges whether the working time exceeds the set value;
[0037] When the set value is exceeded, the association of the seat ECU and the whole vehicle network is cut off.
[0038] In the fault mode such as CAN network wire harness virtual connection short circuit, the seat ECU continuously sends error messages to the whole vehicle network, which affects the normal operation of the whole vehicle network. In this working condition, an auxiliary program is added in the seat ECU software, that is, when the seat ECU continuously sends error messages for more than 250 ms, before the normal operation of the whole vehicle network is affected, the seat ECU auxiliary program acquires the ECU transceiving message condition and working time, the auxiliary program starts to work, cuts off the association of the seat ECU and the whole vehicle network, stops sending messages to the whole vehicle network, restores the normal operation of the whole vehicle network channel, and ensures the safety of the vehicle.
[0039] In the fault detection, the relevant registers of the CAN transceiver are checked according to the RISASingle Chip Microcomputer Data Sheet, and the TRMSTS (Transmit Status Flag) is the sending state flag bit.
[0040] When the CAN message is normally sent, the TRMSTS state is 0;
[0041] When the CAN message is in the process of sending or sending abnormally, the TRMSTS state is 1;
[0042] When the TRMSTS state is 1 for 50 ms (i.e. continuously for 50 ms, the sending failure state), it is judged that the CAN communication is abnormal, at this time, the CAN transceiver is set to the Sleep mode, and the CAN abnormal Flag is set to 1;
[0043] When the whole vehicle is from OFF to ON, if the CAN abnormal Flag is 1, the CAN is reinitialized, and the message is tried to be sent.
[0044] In still another embodiment of the present application, a non-gateway vehicle high-voltage power-off prevention seat ECU control system is provided, which can be used to realize the non-gateway vehicle high-voltage power-off prevention seat ECU control method described above, and specifically, the system comprises:
[0045] A fault detection module is configured to judge whether there is a fault by detecting a sending state flag bit of a CAN bus message sending;
[0046] A judgment module is configured to, when a fault occurs, acquire a seat ECU transceiving message condition and a working time by the seat ECU, and judge whether the working time exceeds a set value;
[0047] An execution module is configured to, when the set value is exceeded, cut off the association between the seat ECU and the vehicle network.
[0048] The division of the modules in the embodiments of the present application is illustrative, and is only a logical function division, and when actually implemented, there can be another division mode, and in addition, the function modules in each embodiment of the present application can be integrated in one processor, or can be physically separated, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware, or in the form of a software function module.
[0049] In still another embodiment of the present application, a computer device is provided, which comprises a processor and a memory, the memory being configured to store a computer program, the computer program comprising program instructions, and the processor being configured to execute the program instructions stored in the computer storage medium. The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, etc., which are the computing core and control core of the terminal, and are suitable for implementing one or more instructions, and are particularly suitable for loading and executing one or more instructions in the computer storage medium to implement a corresponding method flow or a corresponding function; the processor in the embodiments of the present application can be used for the operation of the seat ECU control method for preventing high-voltage power failure of a non-gateway whole vehicle.
[0050] In still another embodiment of the present application, the present application further provides a storage medium, specifically a computer readable storage medium (Memory), which is a memory device in a computer device, and is configured to store programs and data. It can be understood that the computer readable storage medium herein can include an internal storage medium in the computer device, and of course can also include an extended storage medium supported by the computer device. The computer readable storage medium provides a storage space, which stores an operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer readable storage medium herein can be a high-speed RAM memory, or a non-volatile memory such as at least one disk memory. One or more instructions stored in the computer readable storage medium can be loaded and executed by the processor to implement the corresponding steps of the seat ECU control method for preventing high-voltage power failure of a non-gateway whole vehicle in the above embodiments.
[0051] Those skilled in the art will appreciate that embodiments of the application can be devised for a method, a system, or a computer program product. Accordingly, the present application can be embodied in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.
[0052] The present application is described in reference to the flowchart and / or block diagrams of the method, apparatus (system) and computer program product according to embodiments of the application. It will be understood that each block of the flowchart and / or block diagrams, and combinations of blocks in the flowchart and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing device or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 means for carrying out each of the one or more functions specified in the flowchart and / or block diagram block or blocks.
[0053] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 means for carrying out each of the one or more functions specified in the flowchart and / or block diagram block or blocks.
[0054] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 means for carrying out each of the one or more functions specified in the flowchart and / or block diagram block or blocks.
[0055] Finally, it should be noted that the above-mentioned embodiments are merely intended for describing and illustrating, not limiting, the technical solutions of the present application. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that the specific embodiments of the present application can be modified or replaced by equivalents without departing from the spirit and scope of the present application, and any modifications or replacements of the specific embodiments of the present application, which do not depart from the spirit and scope of the present application, should be covered within the protection scope of the claims of the present application.
Claims
1. A method for controlling a seat ECU in a non-gateway vehicle to prevent high-voltage power failure, characterized in that: include: The presence of a fault can be determined by checking the transmission status flag of the CAN bus message. When a fault occurs, the seat ECU obtains the ECU's message transmission and reception status and working time, and determines whether the working time exceeds the set value. When the set value is exceeded, the connection between the seat ECU and the vehicle network is severed; Detect the transmit status flags of CAN bus message transmission: Check the relevant registers of the CAN transceiver; TRMSTS is the transmit status flag. When the CAN message is successfully sent, the TRMSTS status is 0. When a CAN message is being transmitted or a transmission error occurs, the TRMSTS status is 1. When the TRMSTS status continuously reaches the first set value, it is 1, which indicates a CAN communication abnormality. When CAN communication fails, the CAN transceiver is set to Sleep mode and the CAN failure flag is set to 1. When the vehicle switches from OFF to ON, if the CAN failure flag is 1, the CAN is reinitialized and the message is sent again.
2. The seat ECU control method for preventing high-voltage power failure in a non-gateway vehicle according to claim 1, characterized in that, The initial setting is 50ms.
3. The seat ECU control method for preventing high-voltage power failure in a non-gateway vehicle according to claim 1, characterized in that, The seat ECU obtains information on ECU message transmission and reception and its operating time. The system accumulates information on ECU message transmission and reception and working time, and determines whether the duration of continuous erroneous message transmission by the seat ECU exceeds a second preset value. If it does, the connection between the seat ECU and the vehicle network is severed.
4. The seat ECU control method for preventing high-voltage power failure in a non-gateway vehicle according to claim 3, characterized in that, The second setting is 250ms.
5. A non-gateway vehicle-wide seat ECU control system for preventing high-voltage power failure, characterized in that: include: The fault detection module is used to determine whether there is a fault by detecting the transmission status flag bit of the CAN bus message; The judgment module is used to determine whether the working time exceeds the set value when a fault occurs, by obtaining the ECU's message transmission and reception status and working time from the ECU. The execution module is used to disconnect the seat ECU from the vehicle network when the set value is exceeded; Detect the transmit status flags of CAN bus message transmission: Check the relevant registers of the CAN transceiver; TRMSTS is the transmit status flag. When the CAN message is successfully sent, the TRMSTS status is 0. When a CAN message is being transmitted or a transmission error occurs, the TRMSTS status is 1. When the TRMSTS status continuously reaches the first set value, it is 1, which indicates a CAN communication abnormality. When CAN communication fails, the CAN transceiver is set to Sleep mode and the CAN failure flag is set to 1. When the vehicle switches from OFF to ON, if the CAN failure flag is 1, the CAN is reinitialized and the message is sent again.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the seat ECU control method for preventing high-voltage power failure in a non-gateway vehicle as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the seat ECU control method for preventing high-voltage power failure in a non-gateway vehicle as described in any one of claims 1 to 4.
Citation Information
Patent Citations
CAN communication bus system-based fault diagnosis method
CN106094798A
Vehicle network load optimization method and system
CN111935027A