A state machine jump method for image fusion parking controller
By designing an image fusion parking controller with a three-level state machine, the problem of functional defects caused by complex state logic and coupling is solved, achieving higher safety and reliability, and improving the driving experience.
Patent Information
- Application Number
- CN202111207751.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-10-18
AI Technical Summary
The state logic of existing image fusion parking controllers is too complex, resulting in increased calculations and mutual coupling of states, causing functional defects or conflicts.
The design of three groups of state machines is adopted, in which the first-level state machine, the second-level state machine and the third-level state machine include each other, and the states are mutually exclusive, ensuring that only one state is executed at the same time, including initialization, work, calibration, and diagnosis. , fault and other statuses, as well as functional statuses such as automatic parking, automatic parking, transparent car bottom, and panoramic view.
Effectively decouples complex states, enhances the safety and reliability of the controller, and improves the driver's experience.
Smart Images

Figure CN113942497B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of automobile technology, and in particular to a state machine jump method of an image fusion parking controller. Background Art
[0002] With the rapid development of automobile intelligence, more and more models are equipped with ADAS systems, especially the image fusion parking function in the ADAS system has gradually become a standard feature of automobiles. The image fusion parking system uses on-board sensors (ultrasonic radar and camera) to identify effective parking spaces and control the vehicle to park through a controller. It is a driving assistance system that allows the car to park in or out of the parking space in the correct way. It greatly optimizes the driving experience of the driver and makes parking more convenient, fast, safe and reliable.
[0003] The number of image fusion parking controllers installed in vehicles has increased rapidly in recent years, and its chip platform and core algorithms have become increasingly mature. However, with the increase in the number of installations and market response, some problems have also been exposed. One of the most important problems is that the complex state logic increases the amount of calculation, and the mutual coupling of states can cause functional defects or conflicts. Summary of the invention
[0004] The technical problem to be solved by the present invention is to overcome the problems of complicated state logic and functional defects or conflicts caused by mutual coupling in the prior art, and provide a state machine jump method for an image fusion parking controller.
[0005] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions, which are described as follows in conjunction with the accompanying drawings:
[0006] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0007] A state machine jump method for an image fusion parking controller is characterized by: execution of three-level state machines; the three-level state machines include a first-level state machine, a second-level state machine, and a third-level state machine; wherein the second-level state machine is a sub-state of the first-level state machine, and the third-level state machine is a sub-state of the second-level state machine, and each state is mutually exclusive, and only one state is executed at the same time.
[0008] Furthermore, the first-level state machine includes an initialization state, a working state, a calibration state, a diagnosis state, and a fault state;
[0009] The secondary state machine includes a standby state, an automatic parking state, an automatic parking exit state, a transparent vehicle bottom shell function state, and a panoramic view function state;
[0010] The three-level state machine includes a parking space searching state, a parking in progress state, a parking pause state, a parking termination state, a parking driver intervention state, a parking completion state, a parking out state, a parking out pause state, a parking out termination state, a parking out driver intervention state, and a parking out completion state.
[0011] Furthermore, the initialization state refers to the vehicle starting, the controller entering the initialization state during the power-on process, and performing a software and hardware self-check;
[0012] After a serious fault occurs and the controller is reset, the controller will be powered on again and enter the initialization state.
[0013] Further, the working state includes a standby state, an automatic parking state and an automatic parking-out state;
[0014] The standby state refers to:
[0015] After the initialization is completed, the controller enters the standby state from the initialization state;
[0016] In the automatic parking state, after the controller receives the exit parking command, the controller state enters the standby state;
[0017] In the automatic parking state, after the controller receives the exit parking command, the controller state enters the standby state;
[0018] In the transparent underbody function state, after the controller receives the instruction to exit the transparent underbody, the controller state enters the standby state;
[0019] In the panoramic view state, after the controller receives the command to exit the panoramic view, the controller state enters the standby state;
[0020] In the calibration state, after the controller receives the calibration completion instruction, the controller state enters the standby state;
[0021] In the diagnosis state, after the controller receives the diagnosis completion instruction, the controller state enters the standby state;
[0022] After the controller recovers from a general fault, the controller state changes from the fault state to the standby state;
[0023] The automatic parking status includes the parking space search status, parking status, parking pause status, parking termination status, driver intervention status during parking, and parking completion status;
[0024] The parking space search status refers to:
[0025] In standby mode, after the controller receives the command to enter automatic parking, the controller state enters the parking space search state.
[0026] The parking state refers to:
[0027] In the parking space searching state, after the controller receives the command to start automatic parking, the controller state enters the parking state;
[0028] In the parking pause state, after the controller detects that the moving object leaves or the driver cancels the pause, the controller state enters the parking state.
[0029] The parking pause state refers to:
[0030] In the parking state, if the controller detects a moving object intruding or the driver stops the vehicle manually, the controller state enters the parking pause state.
[0031] The parking termination state refers to:
[0032] In the parking pause state, after the controller pause time times out, the controller state enters the parking termination state;
[0033] When the driver intervenes during parking, after the controller confirms the intervention, the controller state enters the parking termination state.
[0034] The parking driver intervention state refers to:
[0035] When the vehicle is in parking state, after the controller detects that the driver is operating the vehicle, the controller state enters the driver intervention state in parking.
[0036] The parking completion status refers to:
[0037] In the parking state, after the controller determines that the vehicle is parked, the controller state enters the parking completion state.
[0038] Furthermore, the automatic unparking state includes an unparking state, a parking pause state, an unparking termination state, an unparking driver intervention state, and an unparking completion state;
[0039] The parking-out state refers to:
[0040] In the standby state, after the controller receives the command to start the automatic parking, the controller state enters the parking state;
[0041] In the parking out pause state, after the controller detects that the moving target has left or the driver cancels the pause, the controller state enters the parking out state;
[0042] The parking suspension state refers to:
[0043] In the parking state, if the controller detects a moving object intruding or the driver pauses manually, the controller state enters the parking pause state;
[0044] The parking termination state refers to:
[0045] In the parking suspension state, after the controller suspension time times out, the controller state enters the parking termination state;
[0046] When the driver intervenes during parking, after the controller confirms the intervention, the controller state enters the parking termination state;
[0047] The driver intervention state during parking is:
[0048] In the parking unparking state, after the controller detects that the driver is manually operating the car, the controller state enters the parking unparking driver intervention state;
[0049] The parking completion status refers to:
[0050] In the parking unparking state, after the controller determines that the vehicle has been parked, the controller state enters the parking unparking completion state.
[0051] Furthermore, the functional state of the transparent underbody shell refers to:
[0052] In the standby state, after the controller receives the instruction to start the transparent underbody shell, the controller state enters the transparent underbody shell function state.
[0053] Furthermore, the panoramic view function state refers to:
[0054] In standby mode, after the controller receives the command to start the panoramic view, the controller state enters the panoramic view function state;
[0055] Furthermore, the calibration state refers to:
[0056] In the standby state, after the controller receives the start calibration command, the controller state enters the calibration state to realize the MCU and SOC calibration functions.
[0057] Furthermore, the diagnostic status refers to:
[0058] In the standby state, the controller starts the diagnostic function, the controller state enters the diagnostic state, and the UDS diagnostic function is realized.
[0059] Furthermore, the fault state refers to:
[0060] In the working state, after a controller failure occurs, the controller state enters the fault state;
[0061] In the diagnostic state, after a diagnostic fault occurs, the controller state enters the fault state;
[0062] In the calibration state, the controller calibration fails and the controller state enters the fault state;
[0063] In the initialization state, the controller fails to initialize and the controller state enters the fault state;
[0064] In the fault state, fault classification and fault processing are carried out, and the vehicle is controlled to sleep after braking.
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] The present invention discloses a state machine jump method for an image fusion parking controller, which completely decouples complex and changeable states and manages the states in a hierarchical manner, thereby greatly enhancing the safety and reliability of the controller and improving the user experience of the driver. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The present invention will be further described below in conjunction with the accompanying drawings:
[0068] Figure 1 It is a logic diagram of a state machine jump method of an image fusion parking controller described in the present invention. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical scheme and advantages of the implementation of the present invention clearer, the technical scheme in the embodiment of the present invention will be described in more detail below in conjunction with the drawings in the embodiment of the present invention. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of the present invention, not all of the embodiments. The embodiments described below with reference to the drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limitations on the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. The embodiments of the present invention are described in detail below in conjunction with the drawings.
[0070] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the scope of protection of the present invention.
[0071] The present invention is described in detail below in conjunction with the accompanying drawings:
[0072] The present invention provides a state machine jump method for an image fusion parking controller. The image fusion parking controller is referred to as a controller hereinafter. The state machine in this method includes:
[0073] Level 1 state machine: initialization state, working state, calibration state, diagnosis state, fault state;
[0074] Secondary state machine: standby state, automatic parking state, automatic parking exit state, transparent bottom shell function state, panoramic view function state;
[0075] Three-level state machine: parking space search state, parking in progress, parking pause state, parking termination state, driver intervention in parking, parking completion state, unparking state, unparking pause state, unparking termination state, driver intervention in parking, unparking completion state;
[0076] The present invention is composed of three groups of state machines, any states are mutually exclusive, and only one state is executed at the same time.
[0077] The technical solution of the present invention is described as follows in conjunction with the accompanying drawings:
[0078] 1. Initialization state.
[0079] When the vehicle is started, the controller enters the initialization state during power-on and performs a software and hardware self-test;
[0080] After a serious fault occurs and the controller is reset, it is powered on again and enters the initialization state.
[0081] 2. Working status.
[0082] 2.1 Standby mode
[0083] After the initialization is completed, the controller enters the standby state from the initialization state;
[0084] In the automatic parking state, after the controller receives the exit parking command, it enters the standby state;
[0085] In the automatic parking state, after the controller receives the exit parking command, it enters the standby state;
[0086] In the transparent underbody function state, after the controller receives the instruction to exit the transparent underbody, it enters the standby state;
[0087] In the panoramic view state, after the controller receives the command to exit the panoramic view, it enters the standby state;
[0088] In the calibration state, after the controller receives the calibration completion instruction, it enters the standby state;
[0089] In the diagnosis state, after the controller receives the diagnosis completion instruction, it enters the standby state;
[0090] After the controller recovers from a general fault, it enters the standby state from the fault state.
[0091] 2.2 Automatic parking status
[0092] 2.2.1 Search parking space status
[0093] In standby mode, after the controller receives the command to enter automatic parking, it enters the parking space search state.
[0094] 2.2.2 Parking status
[0095] In the parking space searching state, the controller enters the parking state after receiving the command to start automatic parking; in the parking pause state, the controller enters the parking state after detecting that the moving target leaves or the driver cancels the pause.
[0096] 2.2.3 Parking Pause Status
[0097] When the vehicle is in parking state, if the controller detects a moving object intruding or the driver stops the vehicle manually, the vehicle enters the parking pause state.
[0098] 2.2.4 Parking termination status
[0099] In the parking pause state, after the controller pause time times out, it enters the parking termination state;
[0100] When the driver intervenes during parking, the controller enters the parking termination state after confirming the intervention behavior.
[0101] 2.2.5 Driver intervention status during parking
[0102] In the parking state, after the controller detects that the driver is operating the car, it enters the parking driver intervention state.
[0103] 2.2.6 Parking completed
[0104] In the parking state, after the controller determines that the vehicle is parked, it enters the parking completion state.
[0105] 2.3 Automatic parking status
[0106] 2.3.1 Mooring out
[0107] In the standby state, after the controller receives the command to start the automatic parking, it enters the parking state; in the parking pause state, after the controller detects that the moving target leaves or the driver cancels the pause, it enters the parking state.
[0108] 2.3.2 Parking out of suspended state
[0109] In the unparking state, if the controller detects a moving object intruding or the driver pauses manually, it enters the unparking pause state.
[0110] 2.3.3 Parking out of termination status
[0111] In the parking pause state, after the controller pause time times out, it enters the parking termination state;
[0112] When the driver intervenes during parking, the controller enters the parking termination state after confirming the intervention behavior.
[0113] 2.3.4 Driver intervention status during unparking
[0114] In the parking unparking state, after the controller detects that the driver manually operates the car, it enters the parking unparking driver intervention state.
[0115] 2.3.5 Mooring completed
[0116] In the parking unparking state, after the controller determines that the vehicle has completed parking, it enters the parking unparking completion state.
[0117] 2.4 Functional status of transparent underbody
[0118] In the standby state, after the controller receives the instruction to start the transparent underbody shell, it enters the transparent underbody shell function state.
[0119] 2.5 Panoramic View Function Status
[0120] In the standby state, after the controller receives the command to start the panoramic view, it enters the panoramic view function state; 3. Calibration state In the standby state, after the controller receives the command to start the calibration, it enters the calibration state to realize the MCU and SOC calibration functions.
[0121] 4. Diagnostic status
[0122] In the standby state, the controller starts the diagnostic function, enters the diagnostic state, and implements the UDS diagnostic function.
[0123] 5. Fault status
[0124] In the working state, after a controller failure occurs, it enters the fault state;
[0125] In the diagnostic state, after a diagnostic fault occurs, it enters the fault state;
[0126] In the calibration state, the controller calibration fails and it enters the fault state;
[0127] In the initialization state, the controller fails to initialize and enters the fault state;
[0128] In the fault state, fault classification and fault processing are carried out, and the vehicle is controlled to sleep after braking.
[0129] The above is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any modification, equivalent replacement and improvement made by any person skilled in the art within the technical scope disclosed by the present invention and within the spirit and principle of the present invention shall be covered within the protection scope of the present invention. At the same time, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims
1. A state machine jump method for an image fusion parking controller, characterized in that: Execution of three-level state machines; the three-level state machines include a first-level state machine, a second-level state machine, and a third-level state machine; The second-level state machine is a sub-state of the first-level state machine, and the third-level state machine is a sub-state of the second-level state machine. Each state is mutually exclusive, and only one state is executed at the same time. The first-level state machine includes initialization state, working state, calibration state, diagnosis state, and fault state; The secondary state machine includes a standby state, an automatic parking state, an automatic parking exit state, a transparent vehicle bottom shell function state, and a panoramic view function state; The three-level state machine includes a parking space searching state, a parking in progress state, a parking pause state, a parking termination state, a parking driver intervention state, a parking completion state, a parking out state, a parking out pause state, a parking out termination state, a parking out driver intervention state, and a parking out completion state.
2. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The initialization state refers to the vehicle starting, the controller entering the initialization state during power-on, and performing software and hardware self-test; After a serious fault occurs and the controller is reset, the controller will be powered on again and enter the initialization state.
3. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The working state includes a standby state, an automatic parking state and an automatic parking exit state; The standby state refers to: After the initialization is completed, the controller enters the standby state from the initialization state; In the automatic parking state, after the controller receives the exit parking command, the controller state enters the standby state; In the automatic parking state, after the controller receives the exit parking command, the controller state enters the standby state; In the transparent underbody function state, after the controller receives the instruction to exit the transparent underbody, the controller state enters the standby state; In the panoramic view state, after the controller receives the command to exit the panoramic view, the controller state enters the standby state; In the calibration state, after the controller receives the calibration completion instruction, the controller state enters the standby state; In the diagnosis state, after the controller receives the diagnosis completion instruction, the controller state enters the standby state; After the controller recovers from a general fault, the controller state changes from the fault state to the standby state; The automatic parking status includes the parking space search status, parking status, parking pause status, parking termination status, driver intervention status during parking, and parking completion status; The parking space search status refers to: In standby mode, after the controller receives the command to enter automatic parking, the controller state enters the parking space search state; The parking state refers to: In the parking space searching state, after the controller receives the command to start automatic parking, the controller state enters the parking state; In the parking pause state, after the controller detects that the moving target has left or the driver cancels the pause, the controller state enters the parking state; The parking pause state refers to: When the vehicle is in parking state, if the controller detects a moving object intruding or the driver stops the vehicle manually, the controller state will enter the parking pause state; The parking termination state refers to: In the parking pause state, after the controller pause time times out, the controller state enters the parking termination state; When the driver intervenes during parking, the controller enters the parking termination state after confirming the intervention behavior; The parking driver intervention state refers to: When the vehicle is in parking state, after the controller detects that the driver is operating the vehicle, the controller state enters the driver intervention state in parking. The parking completion status refers to: In the parking state, after the controller determines that the vehicle is parked, the controller state enters the parking completion state.
4. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The automatic unparking state includes an unparking state, a parking pause state, an unparking termination state, an unparking driver intervention state, and an unparking completion state; The parking-out state refers to: In the standby state, after the controller receives the command to start the automatic parking, the controller state enters the parking state; In the parking out pause state, after the controller detects that the moving target has left or the driver cancels the pause, the controller state enters the parking out state; The parking suspension state refers to: In the parking state, if the controller detects a moving object intruding or the driver pauses manually, the controller state enters the parking pause state; The parking termination state refers to: In the parking suspension state, after the controller suspension time times out, the controller state enters the parking termination state; When the driver intervenes during parking, after the controller confirms the intervention, the controller state enters the parking termination state; The driver intervention state during parking is: In the parking unparking state, after the controller detects that the driver is manually operating the car, the controller state enters the parking unparking driver intervention state; The parking completion status refers to: In the parking unparking state, after the controller determines that the vehicle has been parked, the controller state enters the parking unparking completion state.
5. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The functional status of the transparent underbody refers to: In the standby state, after the controller receives the instruction to start the transparent underbody shell, the controller state enters the transparent underbody shell function state.
6. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The panoramic view function status refers to: In the standby state, after the controller receives the command to start the panoramic view, the controller state enters the panoramic view function state.
7. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The calibration status refers to: In the standby state, after the controller receives the start calibration command, the controller state enters the calibration state to realize the MCU and SOC calibration functions.
8. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The diagnostic status is: In the standby state, the controller starts the diagnostic function, the controller state enters the diagnostic state, and the UDS diagnostic function is realized.
9. The image fusion parking controller state machine jump method according to claim 1, characterized in that: The fault status is: In the working state, after a controller failure occurs, the controller state enters the fault state; In the diagnostic state, after a diagnostic fault occurs, the controller state enters the fault state; In the calibration state, the controller calibration fails and the controller state enters the fault state; In the initialization state, the controller fails to initialize and the controller state enters the fault state; In the fault state, fault classification and fault processing are carried out, and the vehicle is controlled to sleep after braking.
