Method and device for entering maintenance mode of electronic parking system of unmanned vehicle, and unmanned vehicle
By using the finite state machine and multiple safety verification mechanisms of the vehicle controller, the reliability and safety issues of the electronic parking system for unmanned vehicles in maintenance mode are solved. Parallel monitoring of redundant trigger paths and multimodal state feedback are realized, improving the maintenance efficiency and safety of unmanned vehicles in commercial settings.
Patent Information
- Application Number
- CN202611635221.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-12-01
AI Technical Summary
Existing electronic parking systems for unmanned vehicles lack reliability in maintenance mode. Single trigger paths are prone to failure, there is a high risk of false triggering, poor compatibility, imperfect status feedback, and an inadequate exit mechanism, making it difficult to meet the high availability and safety requirements of commercial unmanned vehicles.
The vehicle controller maintains a finite state machine, which monitors three types of redundant trigger paths in parallel (touch screen requests from the in-vehicle infotainment system, physical button timings of the electronic parking brake system, and remote dispatch commands), performs multiple safety checks (vehicle speed, gear position, brake pedal, etc.), and sets multimodal state feedback and multiple exit conditions to ensure the reliability and safety of entering and exiting maintenance mode.
This improves the availability and reliability of unmanned vehicles entering maintenance mode, reduces the risk of accidental triggering, enhances multi-vehicle compatibility and status observability, and ensures the timeliness and safety of the exit process.
Smart Images

Figure CN123190861A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic parking control technology for unmanned vehicles, and in particular to a method, device and unmanned vehicle for an electronic parking system to enter maintenance mode. Background Technology
[0002] During commercial operation, unmanned vehicles (autonomous vehicles) face maintenance scenarios involving mechanical or electrical intervention, such as on-site repairs, parts replacement, four-wheel alignment, brake disc and pad replacement, and sensor calibration. Since there is no driver on board and some maintenance actions require direct control of the brakes, the industry has generally introduced a maintenance mode for vehicle control. In this mode, the vehicle controller relaxes restrictions on some actuators, allowing maintenance personnel to directly operate the parking mechanism via physical buttons or external diagnostic tools. At the same time, the vehicle enters a low-risk state, prohibiting driving, limiting speed, and disabling some non-essential functions. As one of the core actuators frequently operated in maintenance mode, the reliability, safety, and compatibility of the maintenance mode entry strategy directly determine the efficiency of vehicle maintenance and on-site safety.
[0003] The existing EPB maintenance mode entry solution has the following problems:
[0004] Firstly, the reliability of a single trigger path is insufficient, with excessive reliance on OBD diagnostic tools, single physical buttons, or single touch screen channels. A single point of failure would prevent the vehicle from entering maintenance mode, making it difficult to meet the high availability requirements of commercial unmanned vehicles.
[0005] Secondly, the risk of accidental triggering is high, as there is a lack of comprehensive verification of key vehicle states such as vehicle speed, gear position, and brake pedal, which poses a safety hazard of accidental triggering while driving.
[0006] Third, there is poor compatibility across multiple vehicle models. Different generations of vehicles have different semantics in the operation of the physical buttons on the EPB. Parameters such as the duration of long press, release interval, and duration of re-press are different, making it difficult for traditional solutions to be compatible with a single software.
[0007] Fourth, the status feedback is incomplete; after entering maintenance mode, there is a lack of unified and visible feedback to external personnel, the dispatch platform, and maintenance personnel.
[0008] Fifth, the exit mechanism is inadequate, lacking clear exit conditions and a complete vehicle safety restoration process after exit, which poses a risk of prolonged residual maintenance patterns and failure to restore the vehicle after maintenance is completed;
[0009] Therefore, a method, device, and unmanned vehicle for entering maintenance mode using an electronic parking system for unmanned vehicles are proposed to solve the aforementioned problems.
[0010] Application content
[0011] The purpose of this application is to address the shortcomings of the prior art described above, and to propose a method, apparatus, and unmanned vehicle for an electronic parking system to enter maintenance mode.
[0012] To address the problems existing in the prior art, this application adopts the following technical solution:
[0013] A method for an unmanned vehicle's electronic parking system to enter maintenance mode involves using a vehicle controller to maintain a finite state machine containing seven states: a normal mode before maintenance activation, trigger path detection, safety verification, pre-maintenance transition, maintenance activation, safe exit judgment, and restoration after maintenance cancellation. The method includes the following steps:
[0014] Trigger path detection: The vehicle controller detects the touch screen request path of the in-vehicle infotainment system, the long press-release-re-press timing path of the physical button of the electronic parking brake system, and the remote dispatch command path. If any one of the paths is effective and stable for several milliseconds, it enters the security verification.
[0015] Safety verification: Verification is performed in the following order: vehicle speed, gear status, initial status of electronic parking brake system, high-pressure system status, brake pedal status, accelerator pedal status, and legality of remote command. After all verifications pass, the vehicle proceeds through the pre-maintenance transition to maintenance activation. If the verification fails, the vehicle proceeds to the safety exit judgment.
[0016] Maintenance activation: The vehicle controller synchronously outputs multiple control signals, enabling the vehicle to perform actions that have entered maintenance mode in various ways;
[0017] Safe Exit Judgment: Determine whether it meets any one of the following criteria: active exit, timeout exit, abnormal exit, or power-off exit. If it does, proceed to the maintenance cancellation step and then resume.
[0018] Restoration after maintenance cancellation: The electronic parking brake system is in the released state and the vehicle controller has cancelled the maintenance mode signal;
[0019] After the maintenance is cancelled and the recovery is completed, the system enters the normal mode.
[0020] Preferably, in the trigger path detection, the vehicle controller monitors in parallel the touch screen request path of the in-vehicle infotainment system, the long press-release-re-press timing path of the physical button of the electronic parking brake system, and the remote dispatch command path in the normal mode. The three types of trigger paths are related by OR logic. Any path that meets the trigger condition can start the safety verification process, and each path is independent of each other and does not block each other.
[0021] In the touch screen request path of the in-vehicle infotainment system, the in-vehicle infotainment system sends a request to enter maintenance mode to the vehicle controller through the controller local area network message. If the vehicle controller does not receive the message for five consecutive frames, it determines that the in-vehicle infotainment system is offline, and the corresponding path automatically becomes invalid. The request signal is triggered by the rising edge and needs to remain stable for two frames before the path is determined to be effective.
[0022] In the physical button press-release-press-again timing path of the electronic parking brake system, the electronic parking controller hardwires to collect the edge of the button and reports the button status and duration through the controller local area network message periodically. The vehicle controller establishes a timing start point based on the message jump frame reception time, and automatically selects the corresponding timing recognition rule according to the vehicle configuration word to determine the press-release-again timing. After successful determination, the corresponding path is triggered.
[0023] Preferably, the recognition of the timing path of the physical button press-release-press again in the electronic parking brake system specifically includes:
[0024] During the power-on initialization phase of the vehicle controller, the current vehicle model is identified through controller LAN messages or in-vehicle configuration words. When the first vehicle model is identified, the timing rule is to determine the first stage by pressing for 10 to 30 seconds, the second stage by releasing for less than 2 seconds, and the third stage by pressing again for 10 to 30 seconds.
[0025] When the second vehicle model is identified, the vehicle controller uses a timing rule of pressing for 10 to 15 seconds in the first stage, releasing for less than 1 second in the second stage, and pressing again immediately after releasing in the third stage. The two timing rules share the same recognition logic, and only the vehicle configuration word is used as the branch basis.
[0026] The duration of each stage is determined with the controller LAN message period as the timing accuracy and a tolerance of ±20ms. The release duration is the upper limit of the open interval. If any duration exceeds the preset range, the vehicle controller will immediately terminate the recognition and reset the timer, waiting for the next button event to start the recognition again.
[0027] Preferably, the verification of the remote scheduling command path specifically includes:
[0028] The cloud / remote dispatch platform sends a remote maintenance mode command to the vehicle controller via the vehicle network communication terminal (T-Box) through the controller local area network extended message. The command includes a remote enable flag, command type, remote operator identity, remote command validity time window and command signature. After receiving the command, the vehicle controller performs multi-level verification in sequence.
[0029] The vehicle controller verifies that the remote enable flag is valid, and verifies that the instruction signature is consistent with the result calculated locally based on the operator identity, time window, instruction type and key. It then verifies that the operator identity is in the preset authorized list, and further verifies that the current time is within the valid time window.
[0030] After all verifications pass, the vehicle controller will use the maintenance mode command as a remote trigger source. If any verification fails, the maintenance mode command will be ignored and a safety event log will be recorded. The maintenance mode command will be stored in the vehicle controller's random access memory until the time window expires or the state machine enters the maintenance activation state, at which point it will be cleared.
[0031] Preferably, in the safety verification, the vehicle controller enters the safety verification after any trigger path takes effect and stabilizes and de-shakes. The seven verifications are executed sequentially in the order of vehicle speed, gear status, initial state of electronic parking brake system, high-pressure system status, brake pedal status, accelerator pedal status and legality of remote command. The timeout time for a single verification is 200ms, and the total timeout for all verifications does not exceed 1.5 seconds.
[0032] The vehicle speed verification takes the sliding average value of the vehicle speed for 20 consecutive frames and filters it, and determines that the absolute value is less than 0.5km / h and lasts for 200ms. The gear position verification requires 3 consecutive frames to be stable in the parking gear or unknown state. The electronic parking brake system initial state verification requires 3 consecutive frames to be stable in the released state. The high voltage verification requires 2 consecutive frames to be within the safe voltage range and without level 3 or above faults.
[0033] The brake pedal verification calculates the average opening of 5 consecutive frames and filters it to determine if the average opening is less than 5%, and verifies the signal validity. The accelerator pedal verification calculates the average opening of 10 consecutive frames and filters it to determine if the average opening is less than 5%, and verifies the consistency of the two channels. The remote command validity verification is only performed when the remote scheduling command path is triggered. If any verification fails, the subsequent verification is terminated and the reason for the failure is reported.
[0034] Preferably, the step of proceeding to the secure exit judgment if the verification fails specifically includes:
[0035] If any verification fails, the vehicle controller immediately terminates the subsequent verification and sends the failure reason field through the controller local area network message. At the same time, the state machine automatically resets to the normal mode, allowing maintenance personnel to re-trigger any trigger path. After the reset, all timers and recognition logic are restored to their initial state.
[0036] If the verification fails three times in a row for the same reason, the vehicle controller will enter a 5-minute lockout period. During the lockout period, the trigger request for that path will be ignored. After the lockout period ends, the lockout will be automatically released and re-triggering will be allowed.
[0037] During the locking period, the vehicle controller continuously records the cause of failure, the number of failures, and the start and end times of the locking to the diagnostic fault code storage area. The locking state is not maintained across the power-off cycle. After the vehicle is powered off, the locking timer is cleared and monitoring of each trigger path restarts from the normal mode after the next power-on.
[0038] Preferably, after all the verifications pass, the process proceeds through the pre-maintenance transition to maintenance activation, specifically including:
[0039] After all safety checks are passed, the state machine transitions from safety checks to pre-maintenance transition and lasts for 200ms. During the transition state, the vehicle controller sends a hazard light control command to the body controller via the controller LAN message. The body controller then drives the left and right turn signals to flash at a frequency of 1.5 Hz as a transition prompt.
[0040] After the transition state ends, the state machine enters maintenance activation. The vehicle controller sets the control mode field to maintenance mode through the controller area network message and notifies the electric power steering system, motor controller and brake controller. At the same time, the electronic parking controller is allowed to respond to the physical button short press release operation and no longer automatically clamps.
[0041] When in maintenance activation mode, the vehicle controller is prohibited from sending torque requests to the motor controller. If the vehicle is unexpectedly displaced and the speed exceeds 3km / h, a maximum braking request is sent to the brake controller, and the maintenance mode icon and text are displayed on the instrument cluster or head-up display. You can choose whether to trigger a short beep to indicate this.
[0042] Preferably, the safe exit judgment and the recovery after the maintenance cancellation specifically include:
[0043] In the maintenance activation state, the vehicle controller continuously monitors four types of conditions: active exit, timeout exit, abnormal exit, and power-off exit. Active exit uses the same long press-release-press sequence as entry, or a touch screen exit request or remote exit command. The timeout exit threshold is 30 minutes by default and can be configured to 5 to 120 minutes. Abnormal exit occurs when a level 3 or higher fault is detected.
[0044] After any exit condition is met, the state machine enters the exit waiting state. After the electronic parking controller reports that the electronic parking brake system is in the released state and the vehicle controller has canceled the maintenance mode signal, it enters the recovery state. The recovery state lasts for 1 second and suppresses the drive command, turns off the hazard lights, restores the electronic parking automatic clamping logic and normal lights.
[0045] When power is off, the vehicle controller persists the state machine to non-volatile memory during the recovery phase. When power is on again, it starts from normal mode to avoid erroneously continuing in maintenance mode. Each time the maintenance mode is successfully entered or exited, the timestamp, trigger path, vehicle model and exit reason are written to the diagnostic fault code storage area.
[0046] To address the aforementioned problems, this application also provides a device for an unmanned vehicle's electronic parking system to enter a maintenance mode, used to implement the method, comprising:
[0047] The vehicle controller is used to maintain a finite state machine that includes the following seven states: normal mode before maintenance activation, trigger path detection, safety verification, pre-maintenance transition, maintenance activation, safety exit judgment, and restoration after maintenance cancellation.
[0048] The in-vehicle infotainment system is connected to the vehicle controller via a controller area network and is used to generate a maintenance mode entry request message via the touch screen.
[0049] The electronic parking brake controller is used to hardwire the pressing and releasing edges of the electronic parking brake physical buttons, time the duration of the button status, and periodically report the button status and duration through controller local area network messages.
[0050] The vehicle-to-everything (V2X) communication terminal is used to receive remote maintenance mode commands issued by the cloud / remote dispatch platform and forward them to the vehicle controller via extended messages through the controller area network.
[0051] The vehicle controller includes a touch screen request monitoring module, a key timing recognition module, and a remote command verification module that operate in parallel. Each of the three modules independently receives and judges the corresponding message. The judgment results are combined with OR logic and then sent to the trigger path detection.
[0052] The button timing recognition module selects the timing parameter set of the first or second model based on the vehicle configuration word, and determines the sequence and duration of the three stages of long press-release-press again;
[0053] The vehicle controller is serially verified in the following order for safety checks: vehicle speed, gear status, electronic parking initial status, high-voltage system status, brake pedal status, accelerator pedal status, and the legality of remote commands. After all checks are passed, it enters maintenance activation after a pre-maintenance transition.
[0054] When the vehicle controller is activated for maintenance, it sets the control mode field to maintenance mode via controller area network messages and performs torque suppression, speed limit control, hazard light control and instrument display control.
[0055] When the vehicle controller meets any of the exit conditions of active exit, timeout exit, abnormal exit, or power-down exit in the safety exit judgment, it will return to the normal mode after maintenance cancellation.
[0056] To address the aforementioned issues, this application also provides an unmanned vehicle, including a device for the unmanned vehicle electronic parking system to enter a maintenance mode, the device being configured to execute the method for the unmanned vehicle electronic parking system to enter a maintenance mode.
[0057] Compared with the prior art, the beneficial effects of this application are:
[0058] 1. This application sets up three types of independent and non-blocking redundant trigger paths and uses OR logic merging at the judgment level, so that the entry into the maintenance mode no longer depends on a single operation channel or a single signal source. When any channel experiences communication abnormality, message loss or operation restriction, the other channels can still monitor and judge normally according to their respective cycles, avoiding the inability to enter the maintenance mode due to single point failure, and improving the availability and reliability of entry in the commercial maintenance scenario of unmanned vehicles.
[0059] 2. This application performs multiple serial safety checks before entering the maintenance mode, and terminates the subsequent process, provides feedback on the reason for the failure, and resets the state machine when the checks fail. This ensures that the entry into the maintenance mode is based on the fact that the vehicle's condition truly meets the low-risk conditions. This effectively suppresses the risk of triggering the maintenance mode due to misoperation or signal jitter during driving, and ensures that the maintenance mode can only be activated when the vehicle is in a safe and stationary state, thereby improving the safety of the entry process.
[0060] 3. This application enables adaptive recognition of different generations of vehicles by switching the timing parameter set based on vehicle configuration information within the same recognition logic framework. This allows for the same software to achieve adaptive recognition even when there are differences in the semantics of physical button operations. It eliminates the need to maintain a separate software branch for each vehicle, reducing software maintenance costs and version management complexity, and improving multi-vehicle compatibility and software reusability.
[0061] 4. This application sets up multimodal status feedback during the entry and activation of maintenance mode, so that maintenance personnel, on-site dispatchers and remote platforms can simultaneously know the current status of the vehicle and the specific reasons for the failure to enter, thereby improving the observability and traceability of maintenance mode, making it easier for on-site personnel to accurately judge the vehicle status and take corresponding actions, and reducing misoperations caused by unclear status.
[0062] 5. This application sets multiple exit conditions and performs status confirmation and safety recovery during the exit process, enabling the maintenance mode to exit in a timely manner under circumstances such as active exit, timeout exit, abnormal exit, or power-down exit. After exiting, it restores normal driving functions and automatic parking clamping logic. At the same time, through persistent recording and diagnostic storage mechanisms, it avoids the maintenance mode from being mistakenly held across power-on cycles, thereby improving the timeliness, safety, and traceability of the exit process. Attached Figure Description
[0063] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0064] Figure 1 A schematic diagram of three types of redundant trigger paths provided in an embodiment of this application (IVI 0x511 / EPB timing / remote 0x512).
[0065] Figure 2 A flowchart of multiple security checks provided for an embodiment of this application (7 checks are chained together / termination occurs if any one fails).
[0066] Figure 3 A state transition diagram of a seven-state finite state machine (FSM) for maintenance mode provided in one embodiment of this application;
[0067] Figure 4 A schematic diagram of four types of exit conditions provided in an embodiment of this application (active exit / timeout exit / abnormal exit / power-down exit);
[0068] Figure 5 This is a schematic diagram of multi-model timing adaptive design provided in one embodiment of this application (25 models vs. 24 models are automatically selected via configuration words). Detailed Implementation
[0069] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0070] The following is a description of the abbreviations and key terms used in this application.
[0071] abbreviation Full English name Chinese definition EPB Electronic Parking Brake Electronic parking brake system VCU Vehicle Control Unit Vehicle controller (TC397 is used as an example in this article) IVI In-Vehicle Infotainment In-vehicle infotainment system (including touchscreen) CAN Controller Area Network Controller Area Network HU Head Unit Car infotainment system host EPS Electric Power Steering Electric power steering system MCU Motor Control Unit motor controller BCU Brake Control Unit Brake controller HMI Human Machine Interface Human-computer interaction interface OTA Over The Air Over-the-air upgrade OEM Original Equipment Manufacturer Vehicle manufacturers FSM Finite State Machine Finite state machine OBD On-Board Diagnostics Onboard Automatic Diagnostic System UDS Unified Diagnostic Services Unified diagnostic services DTC Diagnostic Trouble Code Diagnostic fault codes T-Box Telematics Box Vehicle-to-everything (V2X) communication terminal
[0072] Example: This example provides a method for an unmanned vehicle's electronic parking system to enter maintenance mode. See [link to example]. Figures 1 to 5 Specifically, the application of the vehicle controller maintains a finite state machine containing seven states: normal mode before maintenance activation, trigger path detection, safety verification, pre-maintenance transition, maintenance activation, safe exit judgment, and restoration after maintenance cancellation. The method includes the following steps:
[0073] The vehicle controller monitors three types of redundant trigger paths in parallel. These three types of redundant trigger paths include the touch screen request path of the in-vehicle infotainment system, the long press-release-re-press timing path of the physical button of the electronic parking brake system, and the remote dispatch command path.
[0074] Furthermore, the vehicle controller monitors three types of redundant trigger paths in parallel. Specifically, the vehicle controller (VCU) simultaneously monitors the in-vehicle infotainment system (IVI) touchscreen request path, the electronic parking brake system physical button long-press-release-re-press timing path, and the remote dispatch command path under normal conditions. These three redundant trigger paths are connected by an OR logic relationship; any path meeting the trigger condition can initiate a safety verification process, and each path is independent and does not block others. Specifically, under normal conditions, the vehicle controller continuously runs the monitoring logic of the three trigger paths in parallel. Each path corresponds to an independent signal acquisition channel, message receiving port, and decision timer. The decision result of any trigger path is set as an independent event and sent to the state machine's touchscreen. The system detects the status of a trigger path without relying on the status or results of other paths. When one trigger path is executing or has completed its judgment, the monitoring and judgment of the remaining trigger paths are not affected by their resource usage or intermediate status. They still receive messages, update timers, and independently provide judgment conclusions according to their respective cycles. The vehicle controller merges the judgment results of the three types of trigger paths using OR logic. As long as any one path meets the trigger condition, the subsequent safety verification process is initiated without waiting for the judgment of other paths to be completed or for other paths to meet the trigger condition simultaneously. Thus, the three types of trigger paths are independent of each other in terms of monitoring, judgment, and triggering, and do not block each other, avoiding the inability to enter the maintenance mode due to a single channel abnormality or a single operation mode limitation.
[0075] In the touchscreen request path of the in-vehicle infotainment system, the in-vehicle infotainment system sends a request to enter maintenance mode to the vehicle controller via Controller Area Network (CAN) messages. If the vehicle controller does not receive messages for five consecutive frames, it determines that the in-vehicle infotainment system is offline, and the corresponding path automatically becomes invalid. Moreover, the request signal is triggered by the rising edge and needs to remain stable for two frames before the path is considered valid. Specifically, when the in-vehicle infotainment system completes its power-on self-test and is in normal operating condition, it sends a message containing the request to enter maintenance mode field to the vehicle controller via CAN at a preset cycle, and carries a heartbeat counter in the message. The vehicle controller receives the message in the same cycle and monitors the continuous changes of the heartbeat counter. When the message is not received for five consecutive frames, the in-vehicle infotainment system is determined to be offline, and the touch screen request path is set to an invalid state. Triggering determination based on the path is stopped. For the request signal itself, the vehicle controller adopts a rising edge triggering method. Stable counting is started only when the request field for entering maintenance mode changes from an invalid state to an valid state. When the valid state is maintained for two consecutive message cycles, the path is determined to be effective. If the request field falls back or the message is lost during the stable counting period, the determination is reset and the path is not triggered.
[0076] In the electronic parking brake physical button press-release-press-again timing path, the electronic parking brake controller hardwires the button edge and periodically reports the button status and duration via controller area network (LAN) messages. The vehicle controller establishes a timing start point based on the message transition frame reception time, automatically selects the corresponding timing recognition rule according to the vehicle model configuration, and performs press-release-again timing determination. Upon successful determination, the corresponding path is triggered. Specifically, the electronic parking brake controller directly hardwires the pressed and released edges of the electronic parking brake physical button and locally times the button state duration. Subsequently, it reports the current button status and duration to the vehicle controller via LAN messages at a preset period. The device does not directly collect the button signal via hardwired acquisition. Instead, it uses the message reception time as the time reference for timing determination. When a button state change is detected in the message, the timing start point of the corresponding stage is established based on the reception time of the change frame. The duration of each subsequent stage is accumulated and determined using the message period as the timing precision. During the power-on initialization stage, the vehicle controller identifies the current vehicle model through the controller area network message or in-vehicle configuration word. Based on the vehicle model identification result, it automatically selects the corresponding timing recognition rule to determine the duration and sequence relationship of the three stages: long press, release, and re-press. When all three stages meet the selected timing recognition rule, the path is determined to be triggered, and the trigger result is sent to the state machine.
[0077] It should be noted that the parallel monitoring and OR logic merging of the three types of trigger paths satisfies the following conditions:
[0078] The message receiving ports of each path are independent of each other: Path 1 corresponds to the reception and timeout determination of Controller Area Network (CAN) message 0x511; Path 2 corresponds to the reception of CAN message 0x510, key status edge extraction, and duration timing; Path 3 corresponds to the reception of CAN extended message 0x512, signature verification, authorized list verification, and time window verification. If the message reception of any path is abnormal, times out, or verification fails, it will only set that path itself to invalid or ignore the current instruction, without affecting the normal monitoring and determination of other paths.
[0079] The decision timers for each path are independent of each other: Path 1 uses a heartbeat counter and a five-frame timeout mechanism, with a rising edge stable counting window of two-frame message period; Path 2 uses a three-stage timing timer with the receiving time of the 0x510 message transition frame as the timing start point, a timing accuracy of 20ms message period, and a tolerance of ±20ms; Path 3 uses an instruction validity period timer constrained by an effective time window and held in random access memory until the time window expires or is cleared after maintenance activation; the reset, timeout, or overflow of the timer in any path does not change the current count value and decision status of the timers in other paths;
[0080] The determination results of each path are set as independent events: Path 1 is set as "Path 1 Trigger Event" after the rising edge of the request field and two consecutive frames of stability; Path 2 is set as "Path 2 Trigger Event" after all three stages of timing meet the selected vehicle model rules; Path 3 is set as "Path 3 Trigger Event" after all enable flags, signatures, authorized lists, and time windows have passed verification; the three trigger events are sent to the trigger path detection state entry of the state machine in parallel, and the vehicle controller executes or merges the logic of the three trigger events. If any trigger event is valid, the transition condition from normal mode to trigger path detection is met.
[0081] After the trigger path takes effect, the stabilization and safety verification start-up does not depend on other paths: After any trigger path takes effect, the state machine enters the trigger path detection from the normal mode, and after the trigger path is stable for 100ms and the time interval between the last exit from the maintenance mode is ≥5s, it enters the safety verification state; in the safety verification state, the vehicle controller performs seven checks in sequence according to the order of vehicle speed, gear position, electronic parking initial state, high-pressure system, brake pedal, accelerator pedal, and remote command validity; among them, the remote command validity check is only performed when path 3 is triggered. If the current trigger comes from path 1 or path 2, the check is skipped, but it does not affect the execution of the other six checks; if the current trigger comes from path 3, the remote command validity check is performed as the seventh check, and the other six checks are still performed in the same order;
[0082] Once any path is triggered, the monitoring logic of the remaining paths continues to run without changing the security verification process that has already been started: that is, when path 1 is triggered and enters security verification, path 2 and path 3 can still receive messages, update timers and give independent judgments according to their respective cycles, but these subsequent judgments will not be interrupted, overwritten, or used to start the second set of security verification processes in parallel; if the security verification fails, after the state machine is reset to normal mode, the timers and identification logic of each path will be restored to their initial state, allowing maintenance personnel to re-trigger any triggered path;
[0083] Therefore, the three types of triggering paths run continuously in parallel under normal conditions. Each path corresponds to an independent signal acquisition channel, message receiving port, and judgment timer. The judgment result of any path is set as an independent event and sent to the triggering path detection state of the state machine. The vehicle controller merges the judgment results of the three types of triggering paths using OR logic. As long as any path meets the triggering condition, the subsequent safety verification process is started without waiting for the judgment of other paths to be completed or for other paths to meet the triggering condition at the same time.
[0084] Furthermore, the identification of the long-press-release-re-press timing path of the physical button in the electronic parking brake system specifically includes: during the power-on initialization phase of the vehicle controller, the current vehicle model is identified through controller area network messages or in-vehicle configuration words. When the first vehicle model is identified, a timing rule is adopted for determination: the first stage is a press duration of 10 to 30 seconds, the second stage is a release duration of less than 2 seconds, and the third stage is a re-press duration of 10 to 30 seconds. Specifically, during the power-on initialization phase, the vehicle controller obtains the current vehicle model configuration information through controller area network messages or in-vehicle configuration words, and uses this configuration information as the branch basis for the long-press-release-re-press timing path identification of the electronic parking brake physical button. When the vehicle model identification result is the first vehicle model, the vehicle controller loads and activates the system. The timing recognition rule corresponding to the first vehicle model is as follows: under the initial condition that the electronic parking brake is in the released state, it is determined in sequence whether the first stage press duration falls within the range of 10 to 30 seconds, whether the second stage release duration is less than 2 seconds, and whether the third stage press duration falls within the range of 10 to 30 seconds. The vehicle controller accumulates the duration of the corresponding stage using timers for each stage, and compares the actual duration of the stage with the preset range at the end of each stage. Only when all three stages occur in sequence and meet their respective preset range requirements is the path triggered, and the trigger result is sent to the trigger path detection state of the state machine. If any stage does not occur, the sequence is incorrect, or the duration is not met, the path is not triggered.
[0085] When the vehicle model is identified as the second model, the vehicle controller uses a timing rule that specifies a first-stage press duration of 10 to 15 seconds, a second-stage release duration of less than 1 second, and a third-stage re-press immediately after the release. Both timing rules share the same recognition logic, using only the vehicle model configuration word as the branch basis. Specifically, when the vehicle model is identified as the second model, the vehicle controller switches to the timing parameter set corresponding to that second model within the same recognition logic framework. That is, under the initial condition that the electronic parking brake is in the released state, it sequentially determines whether the first-stage press duration falls within the 10 to 15 second range, and whether the second-stage release duration is less than 1 second. Whether the press event is detected again immediately after the release in the third stage, the vehicle controller still accumulates the duration of the corresponding stage using the timer of each stage, and uses the receiving time of the button state transition frame as the timing start point of each stage. Only the differences between the first model and the second model in terms of stage duration threshold and stage connection conditions are replaced as branch parameters. The processing flow such as state transition detection, timing start point establishment, stage sequence determination and trigger result output are kept common. Thus, the same set of vehicle controller software binary can achieve adaptive recognition of different generations of models through the model configuration word, without the need to maintain an independent software branch for each model.
[0086] The duration of each stage is determined using the controller LAN message period as the timing precision with a ±20ms tolerance. The release duration is the upper limit of the open interval. If any duration exceeds the preset range, the vehicle controller immediately terminates the current recognition and resets the timer, waiting for the next button event to restart the recognition. Specifically, when determining the duration of each stage, the vehicle controller uses the controller LAN message period from the electronic parking brake controller reporting the button status as the timing precision. That is, the duration of each stage is accumulated based on the interval between message reception times, and a ±20ms judgment tolerance is set on this basis to accommodate message period jitter and vehicle controller reception. For timing deviations, the first stage press duration and the third stage re-press duration are determined using a closed interval, meaning that reaching either the lower or upper limit of the interval is considered satisfactory. For the second stage release duration, the upper limit of the open interval is used for determination, meaning that the release duration is strictly less than the corresponding threshold to be considered satisfactory, and if it is exactly equal to the threshold, it is considered unsatisfactory. If any duration parameter exceeds the preset range, the stage sequence does not conform to the selected timing recognition rules, or the continuous loss of messages causes the timing to stop, the vehicle controller immediately terminates the current recognition and resets all stage timers, without retaining any matching state, and waits for the next button event to restart the recognition.
[0087] In addition, the electronic parking brake system controller continuously monitors the edges of the physical buttons of the electronic parking brake system, i.e., pressing / releasing, and reports the "current button status" and "button status duration" fields in 20ms intervals via CAN message 0x510. The button duration is timed and reported locally by the electronic parking brake system controller in 10ms units, ranging from 0 to 65535, i.e., a maximum of approximately 655 seconds, after which it resets to zero and restarts counting. The VCU does not directly hardwire the button input, but performs timing identification based on the status edge and duration fields reported in 0x510. The timing start point on the VCU side is the reception time of the frame in 0x510 where the button status transition is detected, with a timing accuracy of 0x510. The message period is 20ms, meaning the duration judgment tolerance is ±20ms. Timer reset conditions include: ① If any duration parameter exceeds the preset range, such as a press duration of less than 10s or greater than 30s in the first stage, all timers are immediately reset and returned to the initial state; ② If 3 consecutive frames (60ms) of the 0x510 message are not received, communication is considered lost, and the timer is reset; ③ After successful timing recognition (path 2 trigger), the timer automatically resets; ④ The timer does not remain after the vehicle is powered off and starts from the initial state upon power-up. For the 25 vehicle models, i.e., the first model, the timing recognition rule is: In the initial state, the electronic parking brake system is in the released state; in the first stage, when the electronic parking brake system button is detected pressed and continuously pressed... The first stage, T1, satisfies 10s ≤ T1 ≤ 30s; the second stage detects the electronic parking brake system button changing from pressed to released, and the release duration T2 satisfies T2 < 2s; the third stage, before or immediately after T2, detects the electronic parking brake system button being pressed again, and the press duration T3 satisfies 10s ≤ T3 ≤ 30s; when the above three stages occur in sequence, the VCU determines it as path 2 trigger; for the 24 models, i.e., the second model, the timing recognition rule is: the initial state is that the electronic parking brake system is in the released state; the first stage detects the electronic parking brake system button being pressed, and the press duration T1′ satisfies 10s ≤ T1′ ≤ 15s; the second stage... The first stage detects the release of the electronic parking brake system button, and the release duration T2′ satisfies T2′<1s; the third stage immediately detects the electronic parking brake system button being pressed again after T2′ ends; the above T1 / T2 / T3 and T1′ / T2′ of the 24 models are all closed interval judgments, and the tolerance for all duration judgments is ±20ms; the release duration of T2 is the upper limit of the open interval, that is, T2 is strictly less than 2s, and for the 24 models it is strictly less than 1s; if any duration exceeds the range, the VCU immediately terminates the current recognition and resets the timer, without entering the partial matching hold state; the VCU identifies the current vehicle configuration through CAN messages and automatically selects the corresponding timing recognition rule, thereby achieving software compatibility with multiple generations of models;
[0088] Therefore, the timing recognition of path 2 forms the following complete processing chain on the VCU side: power-on initialization to recognize the vehicle configuration word → select the first or second vehicle timing parameter set → establish the timing start point of each stage with the 0x510 message transition frame reception time → set the timing accuracy with a 20ms message period and a ±20ms tolerance → determine the duration and connection relationship of pressing, releasing, and pressing again according to the stage sequence → if all three stages are satisfied, set the path 2 trigger event → if any stage is not satisfied or the message is lost, terminate and reset all stage timers → wait for the next key event to start recognition again; this processing chain is independent of and does not block the IVI touch screen request judgment of path 1 and the remote command judgment of path 3. The three are combined with OR logic and sent to the trigger path detection state of the state machine. After stabilizing for 100ms anti-jitter and the time interval between the last exit from maintenance mode is ≥5s, it enters the safety verification state to perform seven serial safety checks.
[0089] Furthermore, the verification of the remote dispatch command path specifically includes: the cloud / remote dispatch platform sends a remote maintenance mode entry command to the vehicle controller via the vehicle network communication terminal (T-Box) through the controller area network extended message. This command includes a remote enable flag, command type, remote operator identity, remote command validity time window, and command signature. Upon receiving the command, the vehicle controller performs multi-level verification sequentially. Specifically, after receiving the extended message, the vehicle controller confirms the message's receiving port and message identifier to determine whether the message is a remote maintenance mode command message. After confirmation, it extracts the remote enable flag and command according to preset parsing rules. The system extracts fields such as type, remote operator identification, effective time window of the remote command, and command signature. The vehicle controller stores each extracted field in its corresponding random access memory variable, and uses the message reception time as the time base for processing the remote command. After extracting the fields, the vehicle controller starts the subsequent verification process sequentially according to the preset multi-level verification order. The verification at each level is serial, meaning that the next level of verification will not be started if the previous level of verification fails. During the execution of multi-level verification, the vehicle controller continuously monitors the effective time window status of the command. If the verification has not been completed and the time window has expired, the verification is terminated and the remote command is determined to be invalid.
[0090] The vehicle controller verifies that the remote enable flag is valid and checks that the instruction signature matches the result calculated locally based on the operator identity, time window, instruction type, and key. It then verifies that the operator identity is on a pre-set authorized list and that the current time is within a valid time window. Specifically, after confirming the remote enable flag is valid, the vehicle controller reads the locally stored key and calculates the local signature result based on the extracted operator identity, time window, instruction type, and the key using a pre-set signature algorithm. The local calculation result is then compared with the instruction signature carried in the message. If they do not match, the verification fails. After the signature verification passes, the vehicle controller further reads the pre-set authorized list and determines whether the extracted operator identity is on the list. If not, the verification fails. After the operator identity verification passes, the vehicle controller obtains the current time and determines whether it is within the extracted valid time window. If the current time exceeds the time window, the verification fails. Each level of verification is based on the vehicle controller's local clock and local storage configuration, and the results of each level of verification are recorded in the corresponding verification status variables.
[0091] After all verifications pass, the vehicle controller uses the maintenance mode command as a remote trigger source. If any verification fails, the maintenance mode command is ignored and a safety event log is recorded. The maintenance mode command is retained in the vehicle controller's random access memory until the time window expires or the state machine enters the maintenance activation state, at which point it is cleared. Specifically, when the remote enable flag verification, command signature verification, operator identity verification, and valid time window verification all pass, the vehicle controller sets the maintenance mode command as a remote trigger source and sends it to the state machine's trigger path detection state as an independent event, in conjunction with the touchscreen request path of the in-vehicle infotainment system. The determination results of the timing path of the electronic parking brake physical button are combined by OR logic; if any of the above verifications fail, the vehicle controller will not set the instruction as a remote trigger source and will ignore the maintenance mode instruction. At the same time, the reason for the verification failure, the message reception time and the operator's identity will be written to the safety event log. The maintenance mode instruction is only kept in the random access memory of the vehicle controller and is not written to non-volatile memory. The retention time is based on whichever comes first, the expiration of the effective time window or the state machine entering the maintenance activation state. Once either one is met, the vehicle controller will clear the random access memory variable and trigger source flag corresponding to the instruction.
[0092] In addition, the cloud or cloud / remote dispatch platform can send a "remotely enter maintenance mode" command to the VCU via the T-Box through the CAN bus extended message 0x512; the 0x512 message is a CANFD extended frame, with a data length of 8 bytes, and the signal layout is as follows: Byte 0 contains the remote enable flag, bit 0, 1 = command valid, command type, bits 1-2, 0 = enter, 1 = exit, 2 = query status, 3 = reserved; bytes 1-2 are the remote operator ID, a 16-bit unsigned integer, 0~65535, 0 is a reserved ID; bytes 3-4 are the remote command validity time window, a 16-bit unsigned integer in seconds, with a maximum of 65535s (approximately 18 hours), 0 indicates immediate invalidation; bytes 5-8 The instruction is signed using a 32-bit CRC-32 signature, calculated based on operator ID, time window, instruction type, and key. Upon receiving 0x512, the VCU first verifies that the remote enable flag is 1, then checks if the CRC signature matches the locally calculated result, and then verifies if the operator ID is in the preset authorized list. The authorized list is stored in the configuration area of the VCU's on-chip Flash and can be updated via the diagnostic interface. Finally, it verifies if the current time is within the valid time window. If all verifications pass, the instruction is used as the trigger source for path 3. If any verification fails, the instruction is ignored and a security event log is recorded. Remote instructions are not persistently stored on the VCU side; they are only kept in RAM until the time window expires or the state machine enters maintenance activation mode and is then cleared.
[0093] Thus, the remote command processing of path 3 forms the following complete processing chain on the VCU side: receiving 0x512 extended message → confirming the receiving port and message identifier → extracting remote enable flag, command type, operator ID, valid time window, and command signature according to preset parsing rules → storing each field in RAM variables and using the message reception time as the time base → sequentially executing remote enable flag verification, signature verification, operator identity verification, and valid time window verification → continuously monitoring whether the time window has expired during verification → if all verifications pass, setting the remote trigger source and sending it to the trigger path detection state → if any verification fails, ignoring the command and writing it to the safety event log → the command is only kept in RAM, and the RAM variable and trigger source flag are cleared when the time window expires or the maintenance activation state is entered first; this processing chain is independent of and does not block each other from the IVI touch screen request judgment of path 1 and the electronic parking brake system physical button timing judgment of path 2. The three are combined with OR logic and sent to the trigger path detection state of the state machine. After stabilizing for 100ms with anti-jitter and the time interval between the last exit from maintenance mode is ≥5s, it enters the safety verification state to execute seven serial safety verifications.
[0094] Once any trigger path takes effect and stabilizes for debouncing, it enters a security verification state.
[0095] Based on the safety verification status, multiple safety verifications are performed serially in the order of vehicle speed, gear position, initial state of electronic parking brake, high-voltage system, brake pedal, accelerator pedal and legality of remote commands.
[0096] Furthermore, multiple safety checks are performed serially, specifically including: after the vehicle controller takes effect and stabilizes under anti-shake conditions in any trigger path, it enters a safety check state and sequentially performs seven checks in the following order: vehicle speed, gear position, initial state of electronic parking brake, high-voltage system, brake pedal, accelerator pedal, and the legality of remote commands. The timeout for each check is 200ms, and the total timeout for all checks does not exceed 1.5 seconds. Specifically, after entering the safety check state, the vehicle controller initiates the check process item by item in a preset fixed order. The checks are performed serially; that is, if the previous check is not completed or fails, the next check will not be initiated, thus ensuring the orderly nature of the check process. Determinism: For each verification, the vehicle controller sets a timeout period for each verification. If a verification item fails to obtain a stable and satisfactory result within its corresponding timeout period, the verification is deemed to have failed and the subsequent verification process is terminated. At the same time, the vehicle controller sets a total timeout period for all verification processes from the entry into the safety verification state. If the total timeout period is reached and the verification process is not yet fully completed, the vehicle controller also determines that the safety verification has failed and refuses to enter the maintenance mode. The judgment results of each verification item are recorded in the corresponding verification status variables, which are read by the state machine at the end of the safety verification state to determine the direction of subsequent state transitions.
[0097] The vehicle speed verification process involves filtering the speed data from 20 consecutive frames using a sliding average and determining if the absolute value is less than 0.5 km / h for at least 200 ms. Gear verification requires three consecutive frames of stable parking or an unknown state. Electronic parking initial state verification requires three consecutive frames of stable released state. High voltage verification requires two consecutive frames of voltage within a safe range and without level 3 or higher faults. Specifically, during speed verification, the vehicle controller continuously acquires vehicle speed signals according to a preset acquisition cycle and filters the 20 consecutive frames of speed values using a sliding average. The absolute value of the filtered speed is used as the criterion, and the speed verification is considered successful only if the absolute value of the filtered speed is less than 0.5 km / h and this state lasts for more than 200 ms. When performing gear position verification, the vehicle controller continuously samples the gear position signal. The gear position verification is considered successful only when the signal is stably in the parking gear or unknown state for three consecutive frames. When performing electronic parking initial state verification, the vehicle controller continuously samples the electronic parking position signal. The electronic parking initial state verification is considered successful only when the signal is stably in the released state for three consecutive frames. When performing high voltage verification, the vehicle controller continuously samples the high voltage bus voltage signal. The high voltage verification is considered successful only when the voltage is within the safe voltage range for two consecutive frames and the vehicle has no level 3 or higher faults. If any verification item fails to meet the corresponding number of stable frames or does not fall within the corresponding judgment condition, it is considered unsuccessful and subsequent verification is terminated.
[0098] Brake pedal verification involves averaging and filtering five consecutive frames to determine if the average opening is less than 5% and verifying signal validity. Accelerator pedal verification involves averaging and filtering ten consecutive frames to determine if the average opening is less than 5% and verifying dual-channel consistency. Remote command validity verification is only performed when triggered by a remote path; failure of any verification terminates subsequent verifications and provides the reason for failure. Specifically, when performing brake pedal verification, the vehicle controller continuously acquires the brake pedal opening signal according to a preset acquisition cycle, averages and filters five consecutive frames, and uses the filtered average opening as the judgment criterion. The brake pedal verification is considered successful only when the average opening is less than 5% and the brake pedal signal validity verification passes. When the vehicle controller executes the accelerator pedal... During verification, the accelerator pedal opening signal is continuously acquired according to a preset acquisition cycle. The average value of 10 consecutive frames is filtered, and the filtered average opening is used as the judgment criterion. The accelerator pedal verification is deemed to have passed only when the average opening is less than 5% and the dual-channel signal consistency verification is passed. When the vehicle controller performs remote command validity verification, the verification is initiated only when the remote path is triggered. After the verification is passed, the validity of the remote trigger source is confirmed. If any verification fails, the vehicle controller immediately terminates the subsequent verification process and feeds back the failure reason field through the controller local area network message. At the same time, the failure result of this verification is recorded in the corresponding verification status variable for use in state machine reset and subsequent safety event log recording.
[0099] It should be noted that the complete implementation method for the seven checks is as follows:
[0100] 1) Vehicle speed verification: The vehicle speed signal comes from the wheel speed conversion value reported by the MCU motor controller through the CAN message periodically. The acquisition period is 10ms. The VCU takes the sliding average value of the vehicle speed for 20 consecutive frames, i.e. 200ms, and filters it. If the absolute value of the vehicle speed after filtering is <0.5km / h and lasts for more than 200ms, it is determined to be "vehicle speed is zero".
[0101] 2) Gear position verification: The gear position signal comes from the TCU transmission controller or the gear position state machine inside the VCU. The acquisition period is 20ms. It needs to be stable in P parking gear or Unknown state for 3 consecutive frames, i.e. 60ms. It is forbidden to enter the maintenance mode in D / R / N gear.
[0102] 3) EPB Initial State Verification: The position signal of the electronic parking brake system comes from the electronic parking brake system controller reported through 0x510 or a dedicated status message. The acquisition period is 20ms, and it needs to be stable in the "released" non-clamped state for 3 consecutive frames, i.e. 60ms, to ensure that the electronic parking brake system can be operated in maintenance mode.
[0103] 4) High-voltage system status verification: The high-voltage bus voltage signal is reported by the BMS battery management system via CAN messages, with a collection period of 100ms. It needs to be stable within a safe range for two consecutive frames (200ms). In this example, it is no lower than 200V and no higher than 420V. At the same time, it is verified that the whole vehicle has no level 3 or above faults. The criteria for judging level 3 or above faults are as follows: In the VCU internal fault level definition, level 1 is a prompt fault that does not affect driving; level 2 is a warning fault that requires attention; level 3 is a serious fault that requires immediate power limitation or stopping; level 4 is a fatal fault that requires immediate power down. Level 3 and above include, but are not limited to, high-voltage system insulation faults, high-voltage interlock faults, severe over-temperature / over-voltage / under-voltage of the power battery, serious MCU faults, braking system failures, etc., which are comprehensively judged by the VCU based on the fault level signals reported by each controller.
[0104] 5) Brake pedal status verification: The brake pedal opening signal is reported by the BCU brake controller or brake pedal position sensor via CAN message. The acquisition period is 10ms. The VCU takes the average value of 5 consecutive frames (50ms) and filters it. If the average opening is <5%, it is determined that the brake pedal is not pressed or only lightly pressed. At the same time, the validity of the brake pedal signal is verified. The signal value is within the physical range and AliveCounter increases continuously. If the signal is invalid, the verification is deemed to fail.
[0105] 6) Accelerator pedal status verification: The accelerator pedal opening signal is directly acquired by the VCU from the accelerator pedal position sensor, a hard-wired analog signal with dual-channel redundancy, or obtained via CAN message. The acquisition period is 5ms. The VCU takes the average value of 10 consecutive frames (50ms) and filters it. If the average opening is <5%, it is determined that the pedal is not depressed. At the same time, the consistency of the dual-channel signal is verified. The deviation between the two channels is <10%. If the signals are inconsistent or exceed the physical range, it is determined to fail.
[0106] 7) Remote command validity verification: Executed only when triggered by path 3, verifying that the remote operator ID is in the authorized list, the remote command time window has not expired, and the remote command signature verification is successful;
[0107] If any of the above checks fail, the VCU will refuse to enter maintenance mode and will send a "Maintenance mode entry failed" message along with the reason for failure to the IVI / EPB / cloud via CAN message 0x513. The 0x513 message is sent by the VCU and received by the IVI / EPB / T-Box, with a cycle of 100ms, and includes the current state machine status, the reason for failure, the maintenance mode activation flag, and AliveCounter. The reason for failure field is 4 bits: 0 = no failure, 1 = vehicle speed not met, 2 = gear not met, 3 = electronic parking brake system status not met, 4 = high pressure not met, 5 = brake pedal not met, 6 = accelerator pedal not met, 7 = illegal remote command, 8~15 = reserved.
[0108] Thus, the safety verification state forms the following complete processing chain on the VCU side: any trigger path takes effect and stabilizes for 100ms with anti-shake and an interval of ≥5s from the last exit → enters the safety verification state → press vehicle speed → gear → initial state of electronic parking brake system → high-pressure system → brake pedal → accelerator pedal → remote command legality is started in a fixed sequence → each item is set with a timeout of 200ms → the total timeout for all verifications does not exceed 1.5s → the judgment result of each verification item is written to the corresponding verification status variable → if all pass, the state machine transitions to the pre-maintenance transition → if any fails, subsequent verification is terminated, the failure reason field 0x513 is set, the verification status variable is recorded and reset to the normal mode → if three consecutive failures are due to the same reason, a 5-minute lockout period is entered and a DTC is recorded. This safety verification processing chain works in conjunction with the three types of redundant trigger paths to ensure the availability of entering the maintenance mode while significantly improving the safety and certainty of entering the maintenance mode through serial orderly verification, single-item timeout, total timeout, status variable recording, failure reason feedback and lockout mechanism.
[0109] After all verifications pass, the system transitions from a pre-repair transition state to a repair activation state, which specifically includes:
[0110] After all safety checks pass, the state machine transitions from the safety check state to the pre-maintenance transition state for 200ms. During this transition state, the vehicle controller sends a hazard light control command to the body controller via the controller area network (CLAN). The body controller then drives the left and right turn signals to flash at a frequency of 1.5 Hz as a transitional indication. Specifically, during the pre-maintenance transition state, the vehicle controller maintains all state variables unchanged after the safety checks pass and continuously sends hazard light control commands to the body controller periodically within the 200ms window. The body controller parses these commands and drives the left and right turn signals to flash at a frequency of 1.5 Hz. The frequency flashes synchronously to form an observable transitional indication. During this transitional state, the vehicle controller does not cancel the safety verification results, change the control mode field, or send torque requests to the motor controller, thus ensuring that the transitional state exists only as an intermediate stage of state transition. The transitional state timing is based on the local clock of the vehicle controller, with the timing starting at the moment when all safety verifications are passed. The timing accuracy is the task cycle of the vehicle controller. When the timing reaches 200ms, the state machine transitions from the pre-maintenance transitional state to the maintenance activation state, and the hazard light control command continues to be maintained as a continuous external indication that the maintenance mode has been activated.
[0111] After the transition state ends, the state machine enters the maintenance activation state. The vehicle controller sets the control mode field to maintenance mode via Controller Area Network (CLAN) messages and notifies the Electric Power Steering (EPS), Motor Controller (MCU), and Brake Controller (BCU). Simultaneously, it allows the Electronic Parking Controller (EPC) to respond to short-press release operations on the physical button and stops automatically clamping. Specifically, after the state machine enters the maintenance activation state, the vehicle controller sets the control mode field to the corresponding maintenance mode setting value via CLAN messages and continuously sends this field throughout the message cycle, ensuring that the EPS, MCU, and Brake Controller are simultaneously aware that the vehicle is in maintenance mode. In this state, the vehicle controller sends a command to the EPC to allow short-press release operations on the physical button. Upon receiving a short-press signal, the EPC executes the parking release action and stops executing the automatic clamping logic, facilitating mechanical or electrical operations on the parking mechanism by on-site maintenance personnel. In this state, the vehicle controller continuously monitors the status feedback of the EPC and maintains the maintenance activation state as long as both the control mode field and the EPC status meet the maintenance mode requirements.
[0112] In maintenance activation mode, the vehicle control unit (VCU) prohibits sending torque requests to the motor controller. If the vehicle unexpectedly shifts and its speed exceeds 3 km / h, it sends a maximum braking request to the brake controller and displays a maintenance mode icon and text on the instrument cluster or head-up display, allowing the user to choose whether to trigger a short beep to indicate the status. Specifically, during maintenance activation, the VCU suppresses drive torque requests, even if it receives an accelerator pedal signal or shifts to forward or reverse gear, preventing the vehicle from being accidentally driven in maintenance mode. The VCU continuously monitors the vehicle speed signal. When the vehicle shifts due to unexpected reasons such as being towed and its speed exceeds 3 km / h, it sends a maximum braking request to the brake controller to limit the vehicle's displacement. The VCU also sends a maintenance mode display request to the instrument cluster or head-up display via Controller Area Network (CLAN) messages. The instrument cluster or head-up display then displays the maintenance mode icon and text, and the user can choose to trigger a short beep to clearly indicate the current status to maintenance personnel. The torque suppression, speed limiting control, and display feedback mentioned above continue to be executed in maintenance activation mode until the exit conditions are met.
[0113] Based on specific state machine definitions, message definitions, and vehicle behavior, the process of transitioning from the pre-maintenance transition state to the maintenance activation state after all verifications are passed can be further specified as follows:
[0114] The state machine transition rules are as follows: Safety check → Pre-maintenance transition: All checks pass; Pre-maintenance transition → Maintenance activation: The transition state lasts for 200ms and ends; During the 200ms pre-maintenance transition state, a double flashing light is output as a transition indicator; After entering the maintenance activation state, the VCU synchronously executes the following actions:
[0115] 1) Set the Ctrl_Mode field to 0x6 maintenance mode via CAN message to notify other controllers such as EPS, MCU, and BCU;
[0116] 2) Control the vehicle's lighting system to enter hazard light mode, with the left and right turn signals flashing simultaneously at a frequency of 1.5Hz, serving as an externally observable indication that "maintenance mode is in progress";
[0117] 3) Allow the electronic parking brake system controller to respond to the "short press release" operation of the electronic parking brake system physical button. That is, maintenance personnel can directly release the parking brake by short pressing the electronic parking brake system button, which is convenient for caliper maintenance, four-wheel alignment and other operations. However, in maintenance mode, the electronic parking brake system controller will no longer automatically clamp.
[0118] 4) Disable drive: Even if an accelerator pedal signal is received or the gear is switched to D / R, torque requests are prohibited from being sent to the MCU;
[0119] 5) Speed limit: If the vehicle is accidentally displaced in maintenance mode, such as being pushed by a tow truck, and the vehicle speed exceeds 3km / h, speed limit control will be triggered, and a maximum braking request will be sent to the BCU.
[0120] 6) Display feedback: Display the "Maintenance Mode" icon and text on the instrument cluster / HUD to clearly indicate the current status to maintenance personnel;
[0121] 7) Selectable sound feedback: Trigger a short beep to indicate that maintenance mode has been entered;
[0122] The lighting and instrument control methods are as follows: For the body lighting system, hazard lights and turn signals are controlled by the VCU sending lighting control commands to the BCM body controller via CAN messages, and the BCM performs the actual driving. The VCU does not directly control the lights via hardwire. For the instrument cluster / HUD, the VCU sends a "maintenance mode" display request via CAN messages, i.e., instrument display command messages, and the instrument cluster / HUD performs the display rendering.
[0123] Therefore, the pre-maintenance transition state and the maintenance activation state form the following complete processing chain on the VCU side: All safety checks pass → the state machine enters the pre-maintenance transition state → the state variables remain unchanged after the safety checks pass → continuously send hazard light control commands to the BCM within a 200ms window → the BCM drives the left and right turn signals to flash synchronously at 1.5Hz → during the transition state, the check results are not revoked, the control mode field is not changed, and no torque request is sent to the MCU → the transition state timing is based on the VCU local clock, the timing start point is the moment all safety checks pass, and the timing accuracy is the VCU task cycle → the timing reaches 200ms → the state machine transitions to maintenance activation → the VCU sets the Ctrl_Mode field to 0x6 via CAN messages and continuously sends it with the message cycle → the EPS, MCU, and BCU synchronously learn the maintenance mode → the VCU sends a short-press release command to the electronic parking brake system controller, allowing a response to the physical button → the electronic parking brake system… The controller executes parking release and stops automatic clamping → VCU continuously monitors the electronic parking brake system status feedback → if both the control mode field and the electronic parking brake system status meet the maintenance mode requirements, the maintenance activation state is maintained → during maintenance activation, drive torque requests are continuously suppressed → the vehicle speed is continuously monitored, and a maximum braking request is sent to the BCU when the speed exceeds 3 km / h → a maintenance mode display request is sent to the instrument cluster / HUD via CAN message → the maintenance mode icon and text are displayed, and a short beep can be triggered optionally → the above actions continue to be executed until the exit conditions are met; this processing chain, together with three types of redundant trigger paths, seven serial safety checks, safety check failure lockout, and four types of exit conditions, constitutes a complete maintenance mode entry and exit control method. While ensuring the availability and safety of maintenance mode entry, the observability of the status and the safety of the whole vehicle under maintenance mode are improved through transition state prompts, continuous feedback of maintenance activation, torque suppression, speed limit control and display feedback.
[0124] In the maintenance activation state, the vehicle controller sets the control mode to maintenance mode via controller area network messages and executes vehicle behavior synchronously.
[0125] When an inspection fails and any of the exit conditions—active exit, timeout exit, abnormal exit, or power-down exit—the system returns to normal mode after exiting and undergoing maintenance cancellation. Specifically, this includes:
[0126] During maintenance activation, the vehicle controller continuously monitors four types of exit conditions: active exit, timeout exit, abnormal exit, and power-down exit. Active exit uses the same long-press-release-re-press sequence as entry, or a touchscreen exit request, or a remote exit command. The timeout exit threshold is 30 minutes by default and can be configured from 5 to 120 minutes. Abnormal exit occurs when a level 3 or higher fault is detected. Specifically, during the maintenance activation period, the vehicle controller continuously monitors the four exit conditions in parallel. Each exit condition corresponds to independent judgment logic and state variables. When any condition is met, the corresponding exit request event is set. In active exit judgment, the vehicle controller identifies touchscreen exit requests from the in-vehicle infotainment system, long-press-release-re-press sequences for the electronic parking brake physical button, and remote exit commands. Touchscreen exit requests are received via controller LAN messages and determined using rising edge triggering and stable frame judgment. The physical button timing and entry timing share the same recognition logic, but the recognition result is only interpreted as an exit request in the maintenance activation state. The remote exit command is set after signature verification and authorization verification. In the timeout exit judgment, the vehicle controller takes the time of entering the maintenance activation state as the starting point, accumulates the maintenance activation state duration based on the local clock, and compares the duration with the preset timeout threshold. The timeout threshold is 30 minutes by default and can be configured to 5 to 120 minutes. In the abnormal exit judgment, the vehicle controller continuously receives the fault level signals reported by each controller and comprehensively judges whether the vehicle has a level 3 or higher fault. In the power-down exit judgment, the vehicle controller continuously monitors the vehicle for high voltage or low power events. The four types of exit conditions are related by OR logic. If any condition is met, the exit process is triggered, and the judgment of each condition does not block each other, ensuring that the maintenance activation state can be exited in a timely and safe manner.
[0127] Upon fulfilling any exit condition, the state machine enters an exit waiting state. It waits for the electronic parking controller to report that the electronic parking brake is released and the vehicle controller to have cancelled the maintenance mode signal before entering a maintenance cancellation recovery state. This recovery state lasts for 1 second and suppresses drive commands, turns off hazard lights, restores the electronic parking brake's automatic clamping logic, and resumes normal lighting. Specifically, in the exit waiting state, the vehicle controller stops performing normal driving functions other than torque suppression and speed limit control as in the maintenance activation state, and continuously receives the electronic parking status reported by the electronic parking controller. Simultaneously, the vehicle controller cancels the maintenance mode setting value in the control mode field during the exit waiting state, preventing this field from sending maintenance mode identifiers with each message cycle, and simultaneously notifying the electric power steering system, motor controller, and brake controller of the maintenance mode cancellation. The vehicle controller then determines the electronic parking status reported by the electronic parking controller, only releasing the electronic parking brake when it is in the released state. The state machine transitions from the exit waiting state to the maintenance cancellation recovery state only when both conditions are met: the electronic parking brake is in the released state and the maintenance mode signal has been cancelled. If the electronic parking brake is not in the released state or the maintenance mode signal has not been cancelled, the state machine remains in the exit waiting state and continues monitoring, without prematurely entering the maintenance cancellation recovery state. In the maintenance cancellation recovery state, the vehicle controller counts for 1 second based on the local clock. During the recovery phase, drive commands are suppressed, torque requests are not sent to the motor controller, hazard lights are turned off and normal lights are restored, and the electronic parking brake automatic clamping logic is restored, allowing the electronic parking brake controller to re-execute the automatic clamping function. After the recovery phase ends, the state machine transitions to the normal mode, the vehicle controller resumes the normal driving mode, the three types of trigger paths re-enter the parallel monitoring state, and the timers, stability counters, and message loss counters for each stage start counting from the initial state, allowing maintenance personnel to re-initiate the maintenance mode entry process.
[0128] During the power-down exit process, the vehicle controller persists the state machine to non-volatile memory during the recovery phase after maintenance cancellation. Upon the next power-up, it starts from the normal state to avoid erroneously remaining in maintenance mode. Each successful entry into or exit from maintenance mode writes the timestamp, trigger path, vehicle model, and exit reason to the diagnostic fault code storage area for later traceability. Specifically, during the power-down exit process, after the vehicle controller detects a high-voltage or low-voltage event, it writes the current state of the state machine and exit-related state variables to non-volatile memory during the recovery phase after maintenance cancellation. The written content includes the state machine state, exit condition type, and exit time, ensuring that the state machine can be initialized based on the records in the non-volatile memory upon the next power-up. The system starts from the normal state without continuing the maintenance activation state or exit waiting state of the previous power-on cycle, thus preventing the vehicle from mistakenly remaining in maintenance mode after power-on. Each time the vehicle controller successfully enters or exits maintenance mode, it writes the timestamp of this entry or exit, the trigger path, the vehicle configuration information, and the reason for exit to the diagnostic fault code storage area. The records in the diagnostic fault code storage area are not cleared when the vehicle is powered off and can be read and traced by subsequent diagnostic interfaces. Through the above persistence and recording mechanism, the process of entering and exiting maintenance mode forms a complete state transition and event recording chain, which facilitates after-sales diagnosis, fault analysis, and safety traceability, while ensuring that the maintenance mode is not mistakenly retained across power-on cycles.
[0129] It should be further explained that the state machine transition rules are as follows: Maintenance Activation → Exit Waiting: Receive any exit condition; Exit Waiting → Maintenance Cancellation and Recovery: The electronic parking brake system controller has reported "the electronic parking brake system is in the released state" and the VCU has cancelled the 0x6 maintenance mode signal; Maintenance Cancellation and Recovery → Normal Mode: The recovery phase ends and the VCU returns to normal driving mode.
[0130] While in maintenance activation mode, the VCU continuously monitors the following exit conditions; if any condition is met, the exit process will be initiated:
[0131] 1) Active Exit: An exit semantic symmetrical to the trigger path is detected; IVI path: IVI sends "Request to exit maintenance mode" at position 1 via 0x511, and VCU triggers exit after detecting the rising edge and stabilizing for 2 frames; Electronic parking brake system physical button path: adopts the same "long press-release-press again" timing sequence as entry, 25 T1 10-30s / T2 <2s / T3 10~30s, 24 T1 10~15s / T2 <1s / T3 press immediately, independently identified by VCU via 0x510, sharing the same identification logic as the entry timing sequence, and interpreting the identification result as an exit request only in the maintenance activation state; Remote path: the cloud sends a remote command of type "exit" via 0x512, and triggers exit after signature verification and authorization verification;
[0132] 2) Timeout Exit: When the maintenance activation state lasts for a preset threshold (default 30 minutes, configurable range 5-120 minutes, 5-minute increments), the VCU automatically enters the exit process to prevent prolonged maintenance mode persistence. The timeout threshold is stored in the configuration area NVM of the VCU's on-chip Flash and can be modified via the diagnostic interface or remote configuration via the cloud. A VCU restart is required for the changes to take effect. The timeout start point is the moment the maintenance activation state is entered, with a timing accuracy of 1 second. After the timeout, the VCU records a "Timeout Exit" fault code and initiates the exit process.
[0133] 3) Abnormal Exit: If the VCU detects a level 3 or higher fault, such as a high-voltage system malfunction, a critical CAN bus node disconnection, or a failure of the electronic parking brake system controller, it will forcibly enter the EXIT_PENDING state and record the fault code simultaneously.
[0134] 4) Power-off exit: When the vehicle is detected to be under high voltage or low voltage, the VCU will persist the state machine to non-volatile memory during the recovery phase after maintenance cancellation. The next time the power is turned on, it will start from the normal mode to avoid accidentally continuing in the maintenance mode.
[0135] During the exit process, the VCU simultaneously executes the following: turning off the hazard lights, canceling the Ctrl_Mode=0x6 signal, restoring the automatic clamping logic of the electronic parking brake system, and restoring drive enable; after the maintenance is canceled, the recovery phase lasts for 1 second, suppressing drive commands and restoring normal lights; each time the maintenance mode is successfully entered or exited, the VCU writes the timestamp, trigger path, vehicle model, and exit reason into the vehicle's DTC diagnostic fault code storage for easy traceability later;
[0136] Therefore, the exit process on the VCU side forms the following complete processing chain: Parallel monitoring of four conditions in the maintenance activation state: active exit, timeout exit, abnormal exit, and power-down exit → Independent judgment or logical merging of each condition → If any condition is met, an exit request event is set → The state machine enters exit waiting → The restoration of normal driving functions in the maintenance activation state is stopped, and the electronic parking brake system status is continuously received → The maintenance mode setting value of Ctrl_Mode=0x6 is cancelled → The EPS, MCU, and BCU are simultaneously notified of the maintenance mode cancellation → It is determined whether the electronic parking brake system is in the released state and whether the maintenance mode signal has been cancelled → If both are met, the process transitions to maintenance cancellation recovery; otherwise, the exit waiting continues monitoring → Maintenance cancellation recovery is timed for 1 second using the local clock → Drive commands are suppressed, and torque requests are not sent to the MCU → Hazard lights are turned off, and normal lights are restored → The automatic clamping logic of the electronic parking brake system is restored → After 1 second, the process transitions to normal mode → Normal driving mode is restored → The three trigger paths are re-monitored in parallel → Each stage The segment timer, stability counter, and message loss counter start from the initial state → upon power-down exit, during the recovery phase after maintenance cancellation, the state machine state, exit condition type, and exit time are written to the NVS → upon the next power-up, it starts from the normal mode and does not continue the maintenance activation or exit waiting state of the previous power-up cycle → each successful entry or exit from maintenance mode writes the timestamp, trigger path, vehicle configuration information, and exit reason to the DTC storage area → DTC records are not cleared by power-down and can be read and traced by the diagnostic interface; this exit processing chain, together with three types of redundant trigger paths, seven serial safety checks, safety check failure lockout, pre-maintenance transition state, and maintenance activation vehicle behavior, constitutes a complete maintenance mode entry and exit control method. While ensuring the availability and safety of maintenance mode entry, it improves the timeliness, safety, and traceability of maintenance mode exit through parallel monitoring of four types of exit conditions, double confirmation of exit waiting, safe transition of recovery state, power-down persistence, and DTC recording, and ensures that the maintenance mode is not mistakenly maintained across power-up cycles.
[0137] Furthermore, when a test fails and meets any of the exit conditions—active exit, timeout exit, abnormal exit, or power-down exit—the specific steps include: if any test fails, the vehicle controller immediately terminates subsequent tests and sends a failure reason message to the controller's local area network (LAN) field. Simultaneously, the state machine automatically resets to normal mode, allowing maintenance personnel to re-trigger any trigger path. After the reset, all timers and recognition logic return to their initial states. Specifically, in the safety test state, the vehicle controller monitors the judgment result of any test item in real time. If any test item fails to obtain a stable judgment result that meets the conditions within its corresponding single-item timeout period, the safety test is deemed to have failed, and subsequent tests that have not yet been started are immediately terminated without waiting for the remaining tests to complete. While terminating subsequent verification, the vehicle controller periodically sends maintenance mode entry failure status and corresponding failure reason fields to the in-vehicle infotainment system, electronic parking controller, and vehicle network communication terminal via controller area network messages, so that each receiving node can synchronously know the specific reason for this entry failure. After the safety verification fails, the state machine is reset from the safety verification state to the normal mode. The judgment results of all trigger paths, stage timers, stability counters, and message loss counters are all restored to their initial states. The three types of trigger paths re-enter the parallel monitoring state. Maintenance personnel can re-initiate the entry process through any path via touch screen request, physical button timing, or remote command. The vehicle controller does not retain part of the matching state or intermediate judgment results during this failure process.
[0138] If a verification fails three times consecutively for the same reason, the vehicle controller enters a 5-minute lockout period. During this period, trigger requests for that path are ignored. After the lockout period ends, the lockout is automatically lifted, allowing re-triggering to prevent malicious repeated attempts and improve the security of entering maintenance mode. Specifically, the vehicle controller records and accumulates the reason field for each security verification failure. When the same failure reason appears repeatedly in three consecutive security verifications, the vehicle controller determines that the trigger path corresponding to that failure reason has an abnormal operation or abnormal state, and starts a lockout timer for that path, entering a lockout period of a preset duration of 5 minutes. During the lockout period, the vehicle controller will not respond to the trigger request for that path, that is, it will not send the judgment result of the corresponding path to the trigger path detection state of the state machine, nor will it start the safety verification process. Other trigger paths that have not triggered the lockout will still be monitored and judged normally according to their respective cycles, and will not be affected by the lockout path. The lockout timer is accumulated based on the local clock of the vehicle controller. When the lockout duration reaches 5 minutes, the vehicle controller will automatically clear the lockout flag of that path and release the lockout, and allow the trigger request of that path to enter the subsequent judgment process again, thereby preventing malicious repeated attempts while ensuring the availability of normal maintenance operations.
[0139] During the lockout period, the vehicle controller continuously records the failure reason, number of failures, and lockout start and end timestamps to the diagnostic fault code storage area. The lockout state does not persist across power-down cycles. After the vehicle is powered off, the lockout timer is reset to zero, and upon the next power-up, monitoring of each trigger path restarts from the normal mode. Specifically, during the lockout period, the vehicle controller writes the corresponding failure reason field, consecutive failure count, lockout start timestamp, and lockout end timestamp to the diagnostic fault code storage area and maintains this record for subsequent diagnostic interface reading and tracing. The lockout state and its corresponding lockout timer only exist during the current power-up of the vehicle controller. The data is stored in the random access memory during the cycle and not written to non-volatile memory. When the vehicle controller detects that the vehicle is under high voltage or low voltage, the lock-up flag and lock-up timer are cleared. The failure cause, number of failures, and lock-up start and end timestamp records in the diagnostic fault code storage area are retained. After the vehicle controller is initialized for the next power-on, the state machine starts from the normal mode, and the three types of trigger paths re-enter the parallel monitoring state. The timers, stability counters, and message loss counters of each stage start counting from the initial state. The vehicle controller does not prohibit the trigger request of any trigger path due to the lock-up state of the previous power-on cycle.
[0140] It should be further noted that the failure handling and locking mechanism can be further specified as follows:
[0141] After a security check fails, the VCU sends maintenance mode status feedback to the IVI / EPB / T-Box every 100ms via CAN message 0x513. 0x513 includes the current state machine status, the reason for the failure, the maintenance mode activation flag, and AliveCounter. The reason for the failure field is 4 bits: 0 = no failure, 1 = vehicle speed not met, 2 = gear not met, 3 = electronic parking brake system status not met, 4 = high pressure not met, 5 = brake pedal not met, 6 = accelerator pedal not met, 7 = illegal remote command, 8~15 = reserved. Each receiving node synchronously learns the specific reason for this failure based on this information.
[0142] The state machine transition rules are as follows: Safety verification → Normal mode: If any verification fails, the state machine is reset; Safety verification → Pre-maintenance transition: All verification items pass; After a verification failure, the VCU automatically resets to the normal mode, allowing the user to re-trigger; However, if the verification fails three times consecutively for the same reason, the VCU enters a 5-minute lockout period, during which the trigger request for that path is ignored to prevent malicious repeated attempts; During the lockout period, the VCU continuously records the failure reason, the number of failures, and the lockout start and end timestamps to the diagnostic fault code storage area, and the lockout state is not maintained across power-off cycles. After the vehicle is powered off, the lockout timer is cleared, and after the next power-on, monitoring of each trigger path restarts from the normal mode;
[0143] Therefore, the security check failure handling on the VCU side forms the following complete processing chain: Real-time monitoring of each check item during security check → Failure to obtain a stable result for any single check item within a timeout → Determination of this security check failure → Immediate termination of subsequent check items that have not yet been started → Sending the failure state and failure reason field through a 0x513 cycle → Resetting the state machine to normal mode → Resetting all trigger path determination results, stage timers, stability counters, and packet loss counters to their initial values → Re-monitoring of the three types of trigger paths in parallel → Repeating the same failure reason three times consecutively → Starting a 5-minute lockout timer for that path → During the lockout period, trigger requests for that path will not be responded to, while other paths will be monitored normally → The lockout timer accumulates using the VCU local clock → Automatically clearing the lockout after 5 minutes. The process involves: marking and unlocking the device; recording the reason for failure, number of failures, and start and end timestamps of the lockout during the lockout period; maintaining the lockout status and timer only in RAM and not across power-down cycles; clearing the lockout flag and timer when the voltage or power is reduced, and retaining the DTC record; starting from the normal mode upon the next power-up, re-monitoring the three types of paths in parallel, and resetting each counter to its initial state. This processing chain, together with the three types of redundant trigger paths, seven serial safety checks, pre-maintenance transition state, vehicle activation behavior during maintenance, and four types of exit conditions, constitutes a complete maintenance mode entry and exit control method. While ensuring the availability of maintenance mode entry, it enhances the safety and traceability of maintenance mode entry through failure reason feedback, status variable recording, lockout mechanism, and power-down clearing strategy.
[0144] One embodiment of this application provides an apparatus for an unmanned vehicle electronic parking system to enter a maintenance mode, and a method for implementing the aforementioned unmanned vehicle electronic parking system to enter a maintenance mode, including:
[0145] The vehicle controller is used to maintain a finite state machine that includes the following seven states: normal mode before maintenance activation, trigger path detection, safety verification, pre-maintenance transition, maintenance activation, safety exit judgment, and restoration after maintenance cancellation.
[0146] The in-vehicle infotainment system is connected to the vehicle controller via a controller area network and is used to generate a maintenance mode entry request message via the touch screen.
[0147] The electronic parking brake controller is used to hardwire the pressing and releasing edges of the electronic parking brake physical buttons, time the duration of the button status, and periodically report the button status and duration through controller local area network messages.
[0148] The vehicle-to-everything (V2X) communication terminal is used to receive remote maintenance mode commands issued by the cloud / remote dispatch platform and forward them to the vehicle controller via extended messages through the controller area network.
[0149] The vehicle controller includes a touch screen request monitoring module, a key timing recognition module, and a remote command verification module that operate in parallel. Each of the three modules independently receives and judges the corresponding message. The judgment results are combined with OR logic and then sent to the trigger path detection state.
[0150] The button timing recognition module selects the timing parameter set of the first or second model based on the vehicle configuration word, and determines the sequence and duration of the three stages of long press-release-press again;
[0151] The vehicle controller is serially verified in the safety verification state according to the vehicle speed, gear status, electronic parking initial status, high voltage system status, brake pedal status, accelerator pedal status and the legality of remote commands. After all verifications are passed, it enters the maintenance activation state after passing the pre-maintenance transition state.
[0152] When the vehicle controller is in maintenance activation state, it sets the control mode field to maintenance mode through controller area network messages and performs torque suppression, speed limit control, hazard light control and instrument display control.
[0153] When the vehicle controller meets any of the exit conditions—active exit, timeout exit, abnormal exit, or power-down exit—it will return to normal mode after exit waiting and maintenance cancellation.
[0154] One embodiment of this application also provides an unmanned vehicle, which further includes a body controller, a combination instrument or head-up display, an electric power steering system, a motor controller, and a brake controller.
[0155] The body controller is used to receive the hazard light control command sent by the vehicle controller through the controller area network and drive the left and right turn signals;
[0156] The instrument cluster or head-up display is used to receive maintenance mode display requests sent by the vehicle controller via the controller area network and to display maintenance mode icons and text;
[0157] The electric power steering system, motor controller and brake controller are used to receive the control mode field sent by the vehicle controller through the controller area network, and simultaneously know that the vehicle is in maintenance mode when the control mode field is set to maintenance mode.
[0158] The motor controller does not receive torque requests from the vehicle controller when it is in maintenance activation mode;
[0159] When the brake controller is in maintenance activation state, it receives the maximum braking request sent by the vehicle controller when the vehicle speed exceeds 3km / h.
[0160] When in maintenance activation mode, the electronic parking brake controller receives a command from the vehicle controller to allow a short press of the physical button to release the parking brake, executes the parking release action, and stops the automatic clamping logic.
[0161] The above description is merely a preferred embodiment of this application, but the scope of protection of this application is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in this application, based on the technical solution and application concept of this application, should be included within the scope of protection of this application.
Claims
1. A method for entering a maintenance mode for an electronic parking system of an unmanned vehicle, the method comprising: The method involves maintaining a finite state machine using the vehicle controller, encompassing seven states: normal mode before maintenance activation, trigger path detection, safety verification, pre-maintenance transition, maintenance activation, safe exit judgment, and restoration after maintenance cancellation. The method includes the following steps: Trigger path detection: The vehicle controller detects the touch screen request path of the in-vehicle infotainment system, the long press-release-re-press timing path of the physical button of the electronic parking brake system, and the remote dispatch command path. If any one of the paths is effective and stable for several milliseconds, it enters the security verification. Safety verification: Verification is performed in the following order: vehicle speed, gear status, initial status of electronic parking brake system, high-pressure system status, brake pedal status, accelerator pedal status, and legality of remote command. After all verifications pass, the vehicle proceeds through the pre-maintenance transition to maintenance activation. If the verification fails, the vehicle proceeds to the safety exit judgment. Maintenance activation: The vehicle controller synchronously outputs multiple control signals, enabling the vehicle to perform actions that have entered maintenance mode in various ways; Safe Exit Judgment: Determine whether it meets any one of the following criteria: active exit, timeout exit, abnormal exit, or power-off exit. If it does, proceed to the maintenance cancellation step and then resume. Restoration after maintenance cancellation: The electronic parking brake system is in the released state and the vehicle controller has cancelled the maintenance mode signal; After the maintenance is cancelled and the recovery is completed, the system enters the normal mode.
2. The method for entering maintenance mode of an unmanned vehicle electronic parking system according to claim 1, characterized in that, In the trigger path detection, the vehicle controller monitors the touch screen request path of the in-vehicle infotainment system, the long press-release-re-press timing path of the physical button of the electronic parking brake system, and the remote dispatch command path in parallel in the normal mode. The three types of trigger paths are related by OR logic. Any path that meets the trigger condition can start the safety verification process. Each path is independent of each other and does not block each other. In the touch screen request path of the in-vehicle infotainment system, the in-vehicle infotainment system sends a request to enter maintenance mode to the vehicle controller through the controller local area network message. If the vehicle controller does not receive the message for five consecutive frames, it determines that the in-vehicle infotainment system is offline, and the corresponding path automatically becomes invalid. The request signal is triggered by the rising edge and needs to remain stable for two frames before the path is determined to be effective. In the physical button press-release-press-again timing path of the electronic parking brake system, the electronic parking controller hardwires to collect the edge of the button and reports the button status and duration through the controller local area network message periodically. The vehicle controller establishes a timing start point based on the message jump frame reception time, and automatically selects the corresponding timing recognition rule according to the vehicle configuration word to determine the press-release-again timing. After successful determination, the corresponding path is triggered.
3. The method for entering maintenance mode of an unmanned vehicle electronic parking system according to claim 1, characterized in that, The recognition of the physical button press-release-press sequence path of the electronic parking brake system specifically includes: During the power-on initialization phase of the vehicle controller, the current vehicle model is identified through controller LAN messages or in-vehicle configuration words. When the first vehicle model is identified, the timing rule is to determine the first stage by pressing for 10 to 30 seconds, the second stage by releasing for less than 2 seconds, and the third stage by pressing again for 10 to 30 seconds. When the second vehicle model is identified, the vehicle controller uses a timing rule of pressing for 10 to 15 seconds in the first stage, releasing for less than 1 second in the second stage, and pressing again immediately after releasing in the third stage. The two timing rules share the same recognition logic, and only the vehicle configuration word is used as the branch basis. The duration of each stage is determined with the controller LAN message period as the timing accuracy and a tolerance of ±20ms. The release duration is the upper limit of the open interval. If any duration exceeds the preset range, the vehicle controller will immediately terminate the recognition and reset the timer, waiting for the next button event to start the recognition again.
4. The method for entering maintenance mode of an unmanned vehicle electronic parking system according to claim 1, characterized in that, The verification of the remote scheduling command path specifically includes: The cloud / remote dispatch platform sends a remote maintenance mode command to the vehicle controller via the vehicle network communication terminal through the controller local area network extended message. The command includes a remote enable flag, command type, remote operator identity, remote command validity time window and command signature. After receiving the command, the vehicle controller performs multi-level verification in sequence. The vehicle controller verifies that the remote enable flag is valid, and verifies that the instruction signature is consistent with the result calculated locally based on the operator identity, time window, instruction type and key. It then verifies that the operator identity is in the preset authorized list, and further verifies that the current time is within the valid time window. After all verifications pass, the vehicle controller will use the maintenance mode command as a remote trigger source. If any verification fails, the maintenance mode command will be ignored and a safety event log will be recorded. The maintenance mode command will be stored in the vehicle controller's random access memory until the time window expires or the state machine enters the maintenance activation state, at which point it will be cleared.
5. A method for entering maintenance mode of an unmanned vehicle electronic parking system according to claim 1, characterized in that, During the safety verification, the vehicle controller enters the safety verification after any trigger path takes effect and stabilizes and de-shakes. It performs seven verifications in sequence according to the following order: vehicle speed, gear status, initial state of electronic parking brake system, high-pressure system status, brake pedal status, accelerator pedal status, and legality of remote command. The timeout for a single verification is 200ms, and the total timeout for all verifications does not exceed 1.5 seconds. The vehicle speed verification takes the sliding average value of the vehicle speed for 20 consecutive frames and filters it, and determines that the absolute value is less than 0.5km / h and lasts for 200ms. The gear position verification requires 3 consecutive frames to be stable in the parking gear or unknown state. The electronic parking brake system initial state verification requires 3 consecutive frames to be stable in the released state. The high voltage verification requires 2 consecutive frames to be within the safe voltage range and without level 3 or above faults. The brake pedal verification calculates the average opening of 5 consecutive frames and filters it to determine if the average opening is less than 5%, and verifies the signal validity. The accelerator pedal verification calculates the average opening of 10 consecutive frames and filters it to determine if the average opening is less than 5%, and verifies the consistency of the two channels. The remote command validity verification is only performed when the remote scheduling command path is triggered. If any verification fails, the subsequent verification is terminated and the reason for the failure is reported.
6. The method for entering maintenance mode of an unmanned vehicle electronic parking system according to claim 1, characterized in that, If the verification fails, the process proceeds to the safe exit judgment, which specifically includes: If any verification fails, the vehicle controller immediately terminates the subsequent verification and sends the failure reason field through the controller local area network message. At the same time, the state machine automatically resets to the normal mode, allowing maintenance personnel to re-trigger any trigger path. After the reset, all timers and recognition logic are restored to their initial state. If the verification fails three times in a row for the same reason, the vehicle controller will enter a 5-minute lockout period. During the lockout period, trigger requests for the path will be ignored. After the lockout period ends, the lockout will be automatically released and re-triggering will be allowed. During the locking period, the vehicle controller continuously records the cause of failure, the number of failures, and the start and end times of the locking to the diagnostic fault code storage area. The locking state is not maintained across the power-off cycle. After the vehicle is powered off, the locking timer is cleared and monitoring of each trigger path restarts from the normal mode after the next power-on.
7. A method for entering maintenance mode of an unmanned vehicle electronic parking system according to claim 1, characterized in that, After all the verifications pass, the process proceeds through the pre-repair transition to the repair activation, specifically including: After all safety checks are passed, the state machine transitions from safety checks to pre-maintenance transition and lasts for 200ms. During the transition state, the vehicle controller sends a hazard light control command to the body controller via the controller LAN message. The body controller then drives the left and right turn signals to flash at a frequency of 1.5 Hz as a transition prompt. After the transition state ends, the state machine enters maintenance activation. The vehicle controller sets the control mode field to maintenance mode through the controller area network message and notifies the electric power steering system, motor controller and brake controller. At the same time, the electronic parking controller is allowed to respond to the physical button short press release operation and no longer automatically clamps. When in maintenance activation mode, the vehicle controller is prohibited from sending torque requests to the motor controller. If the vehicle is unexpectedly displaced and the speed exceeds 3km / h, a maximum braking request is sent to the brake controller, and the maintenance mode icon and text are displayed on the instrument cluster or head-up display. You can choose whether to trigger a short beep to indicate this.
8. A method for entering maintenance mode of an unmanned vehicle electronic parking system according to claim 1, characterized in that, The safe exit judgment and the recovery after the maintenance cancellation specifically include: In the maintenance activation state, the vehicle controller continuously monitors four types of conditions: active exit, timeout exit, abnormal exit, and power-off exit. Active exit uses the same long press-release-press sequence as entry, or a touch screen exit request or remote exit command. The timeout exit threshold is 30 minutes by default and can be configured to 5 to 120 minutes. Abnormal exit occurs when a level 3 or higher fault is detected. After any exit condition is met, the state machine enters the exit waiting state. After the electronic parking controller reports that the electronic parking brake system is in the released state and the vehicle controller has canceled the maintenance mode signal, it enters the recovery state. The recovery state lasts for 1 second and suppresses the drive command, turns off the hazard lights, restores the electronic parking automatic clamping logic and normal lights. When power is off, the vehicle controller persists the state machine to non-volatile memory during the recovery phase. When power is on again, it starts from normal mode to avoid erroneously continuing in maintenance mode. Each time the maintenance mode is successfully entered or exited, the timestamp, trigger path, vehicle model and exit reason are written to the diagnostic fault code storage area.
9. A device for entering maintenance mode of an unmanned vehicle electronic parking system, used to implement the method described in any one of claims 1-8, characterized in that, include: The vehicle controller is used to maintain a finite state machine that includes the following seven states: normal mode before maintenance activation, trigger path detection, safety verification, pre-maintenance transition, maintenance activation, safety exit judgment, and restoration after maintenance cancellation. The in-vehicle infotainment system is connected to the vehicle controller via a controller area network and is used to generate a maintenance mode access request message via the touch screen. The electronic parking brake controller is used to hardwire the pressing and releasing edges of the electronic parking brake physical buttons, time the duration of the button status, and periodically report the button status and duration through controller local area network messages. The vehicle-to-everything (V2X) communication terminal is used to receive remote maintenance mode commands issued by the cloud / remote dispatch platform and forward them to the vehicle controller via extended messages through the controller area network. The vehicle controller includes a touch screen request monitoring module, a key timing recognition module, and a remote command verification module that operate in parallel. Each of the three modules independently receives and judges the corresponding message. The judgment results are combined with OR logic and then sent to the trigger path detection. The button timing recognition module selects the timing parameter set of the first or second model based on the vehicle configuration word, and determines the sequence and duration of the three stages of long press-release-press again; The vehicle controller is serially verified in the following order for safety checks: vehicle speed, gear status, electronic parking initial status, high-voltage system status, brake pedal status, accelerator pedal status, and the legality of remote commands. After all checks are passed, it enters maintenance activation after a pre-maintenance transition. When the vehicle controller is activated for maintenance, it sets the control mode field to maintenance mode via controller area network messages and performs torque suppression, speed limit control, hazard light control and instrument display control. When the vehicle controller meets any of the exit conditions of active exit, timeout exit, abnormal exit, or power-down exit in the safety exit judgment, it will return to the normal mode after maintenance cancellation.
10. An unmanned vehicle, characterized in that, The apparatus includes the means for entering a maintenance mode of an unmanned vehicle electronic parking system as described in claim 9, the means being configured to perform the method for entering a maintenance mode of an unmanned vehicle electronic parking system as described in any one of claims 1-8.
