Vehicle-mounted controller wake-up mode determination method and system
By monitoring the vehicle power switch and CAN transceiver level values, combined with GPIO port level values and a combination code table, the problem of difficulty in distinguishing abnormal vehicle wake-up methods was solved, achieving efficient wake-up method identification and fault location.
Patent Information
- Application Number
- CN202310844977.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2043-07-11
AI Technical Summary
Existing technologies have difficulty distinguishing the wake-up method when a vehicle wakes up abnormally, making it difficult to pinpoint the problem.
By monitoring the status of the battery constant power switch and ignition switch, as well as the pin level values of the CAN transceiver circuit, the GPIO port level values of the vehicle controller are set. The wake-up method is determined by combining the combination code table, and the corresponding signal values are set in the network management message.
It enables accurate identification of DUT power-on, local wake-up and remote wake-up methods, improving the accuracy of fault location and the robustness of the system.
Smart Images

Figure CN116896486B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to sleep / wake-up technology for vehicle controller network management, and more particularly to a method and system for determining the wake-up mode of a vehicle controller. Background Technology
[0002] The vehicle is powered by a battery, which is connected to two switches: a constant-voltage switch K30 and an ignition switch K15. Only when both switches are closed simultaneously can the battery form a circuit to supply power to the vehicle. The constant-voltage switch K30 remains closed as a constant-voltage switch after the vehicle enters the market. When the ignition switch K15 is closed, the vehicle system powers on and operates via local wake-up; when the ignition switch K15 is opened, the vehicle system enters sleep mode and powers off.
[0003] After the K15 vehicle is disconnected and enters sleep mode, some vehicle controllers equipped with sensors can still be triggered by their sensors. The controller will power on and send a network management message to the bus. Other vehicle controllers in the same field will also power on and send a network management message to the bus after detecting the network management message on the bus, thus joining the bus network management.
[0004] Currently, the main wake-up methods are as follows:
[0005] 1. Remote wake-up: The process of being woken up by a bus network management message when the constant power switch K30 is closed and the ignition switch K15 is open is called remote wake-up.
[0006] 2. Local wake-up: The process of the vehicle controller being powered on and sending network management messages after the constant power switch K30 is closed first and the ignition switch K15 is closed later is called local wake-up.
[0007] 3. Powering on the DUT (Device Under Test): The process of the vehicle controller being powered on and sending network management messages after the constant power switch K30 and ignition switch K15 are closed simultaneously is called powering on the DUT.
[0008] When a vehicle wakes up abnormally, it is necessary to locate the wake-up source. However, the existing three wake-up methods are difficult to distinguish, making it difficult to find the problem. Summary of the Invention
[0009] The purpose of this invention is to provide a method and system for determining the wake-up mode of an in-vehicle controller, which can identify different wake-up modes, making it easier to locate the wake-up source and troubleshoot the problem when the vehicle wakes up abnormally.
[0010] The following provides a brief overview of one or more aspects to offer a basic understanding of them. This overview is not an exhaustive summary of all conceived aspects, nor is it intended to identify key or decisive elements of all aspects, nor to define the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form to prepare for the more detailed descriptions that follow.
[0011] According to a first aspect of the present invention, a method for determining the wake-up mode of an in-vehicle controller is provided, comprising:
[0012] Step 1: Monitor the conduction status of the battery constant power switch K30, the conduction status of the ignition switch K15, and the circuit pin level values of the CAN transceiver, and set the level values of the general input / output ports of the vehicle controller.
[0013] Step 2: Detect the voltage levels of the general-purpose input / output ports of the vehicle controller and determine the wake-up method based on the voltage levels;
[0014] Step 3: According to the wake-up method, set the corresponding signal value to the wake-up byte of the network management message.
[0015] In one embodiment, in step 1, different combinations of level values for general-purpose input / output ports are set to represent different wake-up methods; in step 2, the wake-up method is determined by querying the combination code corresponding to the level value.
[0016] In one embodiment, when it is detected that the GPIO0 port of the vehicle controller is in a high-impedance state and the GPIO1 port is in a low-pass state, the wake-up mode is determined to be DUT power-on, and the corresponding first signal value is set to the wake-up byte of the network management message.
[0017] In one embodiment, when it is detected that the GPIO0 port of the vehicle controller is in a low-pass state and the GPIO1 port is in a high-impedance state, the wake-up mode is determined to be local wake-up, and the corresponding second signal value is set to the wake-up byte of the network management message.
[0018] In one embodiment, when it is detected that the GPIO0 port and GPIO1 port of the vehicle controller are in a low state, the wake-up method is determined to be remote wake-up, and the corresponding third signal value is set to the wake-up byte of the network management message.
[0019] According to a second aspect of the present invention, a vehicle control system is provided, which uses the vehicle controller wake-up mode determination method as described in the first aspect to determine the wake-up mode, including:
[0020] The vehicle controller includes general purpose input / output (GPIO) ports;
[0021] The battery is connected to the vehicle controller via the vehicle's constant power switch and ignition switch to supply power to the vehicle and the vehicle controller.
[0022] The controller local area network bus is communicatively connected to the vehicle controller and is used to receive and send vehicle CAN messages.
[0023] In one embodiment, the vehicle constant power switch is hardwired to the power supply line of the vehicle controller BAT.
[0024] In one embodiment, the ignition switch is hardwired to the ACC power supply line of the vehicle controller.
[0025] In one embodiment, the controller local area network bus is connected to the vehicle controller CAN line via a twisted-pair shielded CAN cable.
[0026] The beneficial effects of this invention are as follows: After the on-board controller circuit system detects the wake-up method, different GPIO combination codes are set, and the on-board controller is powered on and started. After the on-board controller is powered on, the wake-up method is confirmed by detecting the GPIO level value and querying the combination code, and the corresponding signal value is set to the wake-up source byte position in the network management message. This method uses a circuit system to monitor the wake-up source, and software to query the wake-up source and set the corresponding wake-up message value. The overall system structure is simple, and it can distinguish between three wake-up methods: DUT power-on, local wake-up, and remote wake-up. It has high reliability and good robustness. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0028] The above-described features and advantages of the present invention will be better understood after reading the following detailed description of embodiments of the present disclosure in conjunction with the accompanying drawings. In the drawings, components are not necessarily drawn to scale, and components having similar related characteristics or features may have the same or similar reference numerals.
[0029] Figure 1 This is a flowchart of an embodiment of the method of this application;
[0030] Figure 2 This is a schematic diagram of the connection relationship in an embodiment of the system of this application;
[0031] Figure 3 This is a schematic diagram of the signal transmission of the system in this application. Detailed Implementation
[0032] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. It should be noted that the aspects described below with reference to the accompanying drawings and specific embodiments are merely exemplary and should not be construed as limiting the scope of protection of the present invention in any way.
[0033] like Figure 1 As shown in the figure, this application provides a method for determining the wake-up mode of an in-vehicle controller, including:
[0034] Step 1: Monitor the conduction status of the battery constant power switch K30, the conduction status of the ignition switch K15, and the circuit pin level of the CAN transceiver, and set the level of the general-purpose input / output port (GPIO) of the vehicle controller (MCU).
[0035] Step 1 is executed by the vehicle controller circuit system in conjunction with the software. When it is detected that the constant power switch K30 and the ignition switch K15 are both closed (corresponding to the DUT power-on scenario), the circuit system powers on the vehicle controller and sets GPIO0 to high impedance and GPIO1 to low on.
[0036] When the system detects that the constant power switch K30 closes first and the ignition switch K15 closes later (corresponding to the local wake-up scenario), the circuit system powers on the vehicle controller and sets GPIO0 to low on state and GPIO1 to high impedance state.
[0037] When the circuit detects that the constant power switch K30 is closed, the ignition switch K15 is open, and the CAN BUS sends a CAN message (corresponding to the remote wake-up scenario), the circuit system powers on the vehicle controller and sets GPIO0 and GPIO1 to low state.
[0038] Step 2: Detect the level value of the general input / output port of the vehicle controller, and determine the wake-up method based on the level value.
[0039] This step is executed by the software in the vehicle controller. When GPIO0 is detected to be in a high-impedance state and GPIO1 to be in a low-impedance state, the corresponding wake-up method is determined to be DUT power-on. When GPIO0 is detected to be in a low-impedance state and GPIO1 to be in a high-impedance state, the corresponding wake-up method is determined to be local wake-up. When GPIO0 is detected to be in a low-impedance state and GPIO1 to be in a low-impedance state, the corresponding wake-up method is determined to be remote wake-up.
[0040] In this embodiment, the vehicle controller determines the wake-up method by querying a combination code table. One possible combination code table is shown below:
[0041]
[0042]
[0043] Step 3: According to the wake-up method, set the corresponding signal value to the wake-up byte of the network management message.
[0044] When the vehicle controller determines that the wake-up method is DUT power-on, it sets the corresponding first signal value 0 to the wake-up byte of the network management message. When the vehicle controller determines that the wake-up method is local wake-up, it sets the corresponding second signal value 1 to the wake-up byte of the network management message. When the vehicle controller determines that the wake-up method is remote wake-up, it sets the corresponding third signal value 2 to the wake-up byte of the network management message.
[0045] When a vehicle experiences a malfunction and is woken up, and it is necessary to determine the wake-up method, simply observe the wake-up byte corresponding to the network management message sent by the MCU on the bus to confirm the wake-up method, thereby enabling a more accurate location of the problem.
[0046] like Figure 2 As shown, this embodiment also provides a vehicle control system, which uses the vehicle controller wake-up method as described in the first aspect to determine the wake-up mode. It includes an on-board controller (MCU) 20, a battery 10, and a controller area network bus (CAN BUS) 30. The on-board controller 20 includes general purpose input / output ports (GPIO) 21. The battery 10 is connected to the on-board controller 20 via a vehicle constant power switch K30 and an ignition switch K15, for supplying power to the vehicle and the on-board controller 20. The controller area network bus 30 is communicatively connected to the on-board controller 20 for receiving and sending vehicle CAN messages.
[0047] In terms of connectivity, the vehicle's constant power switch K30 is hardwired to the vehicle controller's BAT power supply line. The ignition switch K15 is hardwired to the vehicle controller's ACC power supply line. The controller's local area network bus 30 is connected to the vehicle controller's CAN line via a twisted-pair shielded CAN cable.
[0048] Figure 3 This illustrates the signal transmission relationships between the various components, such as... Figure 3 As shown, the vehicle controller circuit system monitors the constant power switch K30, ignition switch K15, and CAN transceiver. Based on the monitored status, it sets a combination code to the vehicle controller's GPIO and powers on the vehicle controller. The vehicle controller reads the combination code from the GPIO port and sets the corresponding signal value to the wake-up byte of the network management message.
[0049] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0050] The prior description of this disclosure is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to this disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not intended to be limited to the examples and designs described herein, but should be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0051] The above description is merely a preferred example of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A method for determining the wake-up mode of an in-vehicle controller, characterized in that, include: Step 1: The vehicle controller circuit system, in conjunction with the software, monitors the conduction status of the battery constant power switch K30, the ignition switch K15, and the circuit pin level values of the CAN transceiver, and sets the level values of the vehicle controller's general-purpose input / output ports. In Step 1, different combinations of general-purpose input / output port level values represent different wake-up methods. When the constant power switch K30 and the ignition switch K15 are detected to be closed simultaneously, corresponding to the DUT power-on scenario, the circuit system powers on the vehicle controller and sets GPIO0 to high impedance and GPIO1 to low on. When it is detected that the constant power switch K30 closes first and the ignition switch K15 closes later, the circuit system powers on the vehicle controller in the corresponding local wake-up scenario and sets GPIO0 to low on state and GPIO1 to high impedance state. When the circuit detects that the constant power switch K30 is closed, the ignition switch K15 is open, and the CAN BUS sends a CAN message, corresponding to the remote wake-up scenario, the circuit system powers on the vehicle controller and sets GPIO0 and GPIO1 to low state. Step 2: After the vehicle controller is powered on, the level value of the general input / output port of the vehicle controller is detected, and the wake-up method is determined based on the level value; in Step 2, the wake-up method is determined by querying the combination code corresponding to the level value; the wake-up method includes DUT power-on, local wake-up, or remote wake-up; Step 3: According to the wake-up method, set the corresponding signal value to the wake-up byte of the network management message. When it is detected that the GPIO0 port of the vehicle controller is in a high impedance state and the GPIO1 port is in a low pass state, determine that the wake-up method is DUT power-on, and set the corresponding first signal value to the wake-up byte of the network management message. When the GPIO0 port of the vehicle controller is detected to be in a low-pass state and the GPIO1 port is in a high-impedance state, the wake-up mode is determined to be local wake-up, and the corresponding second signal value is set to the wake-up byte of the network management message. When the GPIO0 port and GPIO1 port of the vehicle controller are detected to be in a low state, the wake-up method is determined to be remote wake-up, and the corresponding third signal value is set to the wake-up byte of the network management message.
2. A vehicle control system, comprising determining the wake-up method of the on-board controller as described in claim 1, characterized in that, include: The vehicle controller includes general purpose input / output (GPIO) ports; The battery is connected to the vehicle controller via the vehicle's constant power switch and ignition switch to supply power to the vehicle and the vehicle controller. The controller local area network bus is communicatively connected to the vehicle controller and is used to receive and send vehicle CAN messages.
3. The vehicle control system according to claim 2, characterized in that, The vehicle's constant power switch is connected to the BAT power supply line of the on-board controller via a hard wire.
4. The vehicle control system according to claim 2, characterized in that, The ignition switch is connected to the ACC power supply line of the vehicle controller via a hard wire.
5. The vehicle control system according to claim 2, characterized in that, The controller local area network bus is connected to the vehicle controller CAN line via a twisted-pair shielded CAN cable.
Citation Information
Patent Citations
Awakening system of vehicle control unit and vehicle
CN219192121U
