An automatic parking function test system, method, electronic device and storage medium
By introducing virtual parking spaces and error masking functions into the vehicle controller, and combining this with test equipment to simulate vehicle actuator interactions, the problem of automatic parking function testing being constrained by external factors was solved, achieving a low-cost and efficient testing solution.
Patent Information
- Application Number
- CN202311615879.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-11-29
AI Technical Summary
In existing technologies, the testing of automatic parking functions is constrained by external factors such as the test site and the vehicle, resulting in a complex and costly testing process.
An automatic parking function testing system is provided, including a vehicle controller and testing equipment. The vehicle controller has virtual parking space function, error shielding function and automatic parking function. The testing equipment simulates the interaction between the vehicle actuator and the vehicle controller, and determines whether the automatic parking function is abnormal through a state machine.
Testing can be conducted without relying on actual vehicles, avoiding external constraints, improving testing convenience and efficiency, and reducing testing costs.
Smart Images

Figure CN117928965B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automated testing technology, and in particular to an automatic parking function testing system, method, electronic device and storage medium. Background Technology
[0002] Automatic parking can automatically park a vehicle without manual control. However, if the automatic parking function malfunctions, it can lead to damage to the vehicle body or even threaten user safety. Therefore, automatic parking testing is very important.
[0003] In related technologies, automatic parking tests mainly rely on actual vehicles. However, the above testing process is often constrained by external factors such as test sites and vehicles, making the testing process relatively complex and costly.
[0004] Therefore, how to avoid the constraints of external factors on the testing process of automatic parking function and improve the convenience of testing are technical problems that need to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide an automatic parking function testing system, method, electronic device, and storage medium that can avoid the constraints of external factors on the automatic parking function testing process and improve testing convenience.
[0006] To address the aforementioned technical problems, this application provides an automatic parking function testing system, which includes a vehicle controller and testing equipment.
[0007] The vehicle controller has a virtual parking space function, an error message blocking function, and an automatic parking function. The virtual parking space function generates virtual parking spaces in the area where the vehicle controller is located. The error message blocking function blocks error messages that prevent the generation of the virtual parking spaces. The automatic parking function enables automatic parking based on the virtual parking spaces. The process of implementing the automatic parking function includes multiple parking sub-stages. The vehicle controller is equipped with a state machine, and the current state of the state machine describes the current parking sub-stage in which the vehicle controller is located.
[0008] The testing equipment is connected to the vehicle controller and is used to simulate the interaction between the vehicle actuator and the vehicle controller so that the vehicle controller can implement the automatic parking function; the testing equipment is also used to determine whether there is an abnormality in the automatic parking function based on the current state of the state machine.
[0009] Optionally, the automatic parking function testing system may also include an intermediate device;
[0010] The intermediate device is connected to the vehicle controller and the test equipment respectively, and the intermediate device is used to transmit the screen display output by the vehicle controller to the test equipment;
[0011] The screen display includes any one or a combination of any of the following: virtual parking space display, parking simulation display, and pop-up information.
[0012] This application also provides an automatic parking function testing method, applied to the testing equipment of the above-mentioned automatic parking function testing system, the automatic parking function testing method comprising:
[0013] Activate the virtual parking space function, error blocking function, and automatic parking function of the vehicle controller;
[0014] Determine whether the virtual parking space generated by the vehicle controller has been marked as available for parking;
[0015] If so, a vehicle speed signal and a brake pedal signal are sent to the vehicle controller to simulate vehicle braking and stop movement;
[0016] The system receives a handshake request from the vehicle controller and simulates both the electronic stability control system and the electric power steering system to send handshake response signals to the vehicle controller, so that the vehicle controller can initiate an automatic parking control process based on the virtual parking space.
[0017] Optional, also includes:
[0018] Obtain the current state of the state machine of the vehicle controller so as to determine whether the automatic parking function is abnormal based on the current state of the state machine;
[0019] The states of the state machine include: standby state, parking space search state, parking space confirmation state, handshake preparation state, activation state, parking interruption state, and parking completion state.
[0020] The standby state is the current state updated when the vehicle controller is powered on but has not generated the virtual parking space; the parking space search state is the current state updated when the vehicle controller has generated the virtual parking space and the vehicle has not stopped moving; the parking space confirmation state is the current state updated when the virtual parking space has been marked as available and the vehicle has stopped moving; the handshake preparation state is the current state updated when the vehicle controller has sent the handshake request but has not received the handshake response signal; the activation state is the current state updated when the vehicle controller has received the handshake response signal and started the automatic parking control process; the parking interruption state is the state updated when the automatic parking control process is interrupted; and the parking completion state is the state updated when the automatic parking control process is completed.
[0021] Optional, also includes:
[0022] If the state machine is not started, an engine start signal and / or ignition signal are sent to the vehicle controller to determine whether the current state of the state machine has been updated to the standby state.
[0023] Optional, also includes:
[0024] If the current state of the state machine is the parking space search state, then a door opening signal and / or hood opening signal are sent to the vehicle controller to determine whether the current state of the state machine has been updated to the standby state.
[0025] Optional, also includes:
[0026] If the current state of the state machine is the handshake preparation state, an intervention signal is sent to the vehicle controller to determine whether the current state of the state machine is updated to the standby state or the parking space search state.
[0027] The intervention signal includes any one or a combination of any of the following: steering wheel intervention signal, gear position intervention signal, and electronic parking brake system intervention signal.
[0028] Optional, also includes:
[0029] If the current state of the state machine is the active state, then a door opening signal and / or a hood opening signal are sent to the vehicle controller to determine whether the current state of the state machine remains the active state.
[0030] And / or, if the current state of the state machine is the active state, an unexpected signal is sent to the vehicle controller to determine whether the current state of the state machine has been updated to the standby state.
[0031] The unexpected signal is a feedback signal that does not correspond to the control command issued by the vehicle controller during the execution of the automatic parking control process.
[0032] This application also provides a storage medium storing a computer program thereon, which, when executed, implements the steps of the above-described automatic parking function test method.
[0033] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor, when calling the computer program in the memory, implements the steps of the above-described automatic parking function test method.
[0034] This application provides an automatic parking function testing system, which includes a vehicle controller and testing equipment. The vehicle controller has a virtual parking space function, an error blocking function, and an automatic parking function. The virtual parking space function generates virtual parking spaces in the area where the vehicle controller is located. The error blocking function blocks error messages that prevent the generation of the virtual parking spaces. The automatic parking function implements automatic parking based on the virtual parking spaces. The process of implementing the automatic parking function includes multiple parking sub-stages. The vehicle controller has a state machine, and the current state of the state machine describes the current parking sub-stage of the vehicle controller. The testing equipment is connected to the vehicle controller and simulates the interaction between the vehicle actuator and the vehicle controller to enable the vehicle controller to implement the automatic parking function. The testing equipment is also used to determine whether there are any abnormalities in the automatic parking function based on the current state of the state machine.
[0035] The automatic parking function testing system provided in this application includes a vehicle controller and testing equipment. The vehicle controller has a virtual parking space function, an error suppression function, and an automatic parking function. The testing equipment can simulate the interaction between the vehicle actuator and the vehicle controller, enabling the vehicle controller to implement the automatic parking function. The virtual parking space function of the vehicle controller can generate virtual parking spaces in the current location, so that automatic parking can be performed based on the virtual parking spaces after the automatic parking function is activated. The error suppression function of the vehicle controller can suppress error information that prevents the generation of the virtual parking space, ensuring that the vehicle controller can normally implement the automatic parking function. The testing equipment can also determine whether there is an anomaly in the automatic parking function based on the current state of the state machine, thereby completing the test of the automatic parking function. Therefore, this application does not require actual vehicle testing, avoiding the constraints of external factors on the automatic parking function testing process and improving testing convenience. This application also provides an automatic parking function testing method, a storage medium, and an electronic device, which have the above-mentioned beneficial effects, and will not be elaborated further here. Attached Figure Description
[0036] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a schematic diagram of the structure of an automatic parking function testing system provided in an embodiment of this application;
[0038] Figure 2This is a flowchart of an automatic parking function testing method provided in an embodiment of this application. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of 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, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0040] Please see below. Figure 1 , Figure 1 This is a schematic diagram of the structure of an automatic parking function testing system provided in an embodiment of this application. Figure 1 The automatic parking function test system shown includes: a power supply 101, a vehicle controller 102, a test device (such as a computer) 103, and an intermediate device (such as a drawing output device) 104. The power supply 101 supplies power to the vehicle controller 102, which can interact with the test device 103 via CAN (Controller Area Network) tools. The intermediate device 104 can transmit the screen display output by the vehicle controller 102 to the test device 103. Figure 1 The automatic parking function test system shown is a bench test environment that can simulate automatic parking function testing. A bench test environment refers to an environment in which a product under development is tested with the help of software and hardware tools. In this embodiment, the virtual parking space is a non-existent parking space automatically generated around the vehicle, which can assist in completing the bench parking test. Automatic parking refers to the behavior of a vehicle automatically parking into a parking space without human intervention.
[0041] The vehicle controller in this embodiment may have a virtual parking space function, an error message blocking function, and an automatic parking function. The virtual parking space function generates virtual parking spaces in the area where the vehicle controller is located, and the error message blocking function blocks error messages that prevent the generation of the virtual parking spaces. In this embodiment, the vehicle controller can ensure that the virtual parking space function generates virtual parking spaces normally by activating the virtual parking space function and the error message blocking function.
[0042] As a feasible implementation method, the configuration of the virtual parking space function can be directly compiled into the Bin file of the parking module in the vehicle controller. When the virtual parking space function needs to be enabled, only an empty file with the corresponding filename needs to be created. When the vehicle controller software finds a filename that matches the virtual parking space function, it can activate the virtual parking space function. When the virtual parking space is not needed, the corresponding file is removed, and no matching filename will be found, so the function will not be enabled. Similarly, the error masking function (used to mask error information from radar and cameras) can also be implemented using the above method. The virtual parking space function combined with the error masking function can simulate the test environment as an unobstructed, open, flat scene, avoiding situations where parking spaces cannot be parked due to the surrounding environment, thus constructing a relatively ideal parking environment. Real parking spaces, on the other hand, must take into account the influence of the surrounding environment, such as camera images and obstacles detected by radar, which is not conducive to functional testing. It can be seen that this embodiment can avoid the constraints of external factors on the automatic parking function testing process.
[0043] Based on the generated virtual parking spaces, the vehicle controller can activate the automatic parking function, thereby achieving automatic parking according to the virtual parking spaces. The process of the vehicle controller implementing the automatic parking function includes multiple parking sub-stages, such as a standby stage, a parking space search stage, a parking space confirmation stage, a handshake preparation stage, an activation stage, a parking interruption stage, and a parking completion stage. The vehicle controller provided in this embodiment is equipped with a state machine, and the current state of the state machine is used to describe the parking sub-stage that the vehicle controller is currently in.
[0044] The automatic parking function testing system provided in this embodiment includes testing equipment connected to the vehicle controller. The process of the vehicle controller implementing the automatic parking function requires interaction with vehicle controllers such as the Electronic Stability Program (ESP) and Electric Power Steering (EPS) to accurately control the state transitions during automatic parking testing. In this embodiment, the testing equipment simulates the interaction between vehicle actuators and the vehicle controller, enabling the vehicle controller to implement the automatic parking function.
[0045] During the implementation of the automatic parking function by the vehicle controller, the testing equipment can read the current state of the state machine in the vehicle controller to determine whether the automatic parking function is abnormal. Specifically, in this embodiment, state transition rules for the state machine can be preset. If the current state of the state machine read by the testing equipment does not conform to the above state transition rules, the automatic parking function is determined to be abnormal; if the current state of the state machine read by the testing equipment conforms to the above state transition rules each time during the implementation of the automatic parking function, the automatic parking function can be determined to be normal. The above state transition rules can be set according to the actual application scenario or the needs of the testers, and are not specifically limited here.
[0046] The automatic parking function testing system provided in this embodiment includes a vehicle controller and testing equipment. The vehicle controller has virtual parking space functionality, error suppression functionality, and automatic parking functionality. The testing equipment can simulate the interaction between the vehicle actuator and the vehicle controller, enabling the vehicle controller to implement the automatic parking function. The virtual parking space function of the vehicle controller can generate virtual parking spaces in the current location, so that automatic parking can be performed based on the virtual parking spaces after the automatic parking function is activated. The error suppression function of the vehicle controller can suppress error information that prevents the generation of the virtual parking space, ensuring that the vehicle controller can normally implement the automatic parking function. The testing equipment can also determine whether there is any abnormality in the automatic parking function based on the current state of the state machine, thereby completing the test of the automatic parking function. Therefore, this embodiment does not require actual vehicles for testing, avoiding the constraints of external factors on the automatic parking function testing process and improving testing convenience.
[0047] In a real vehicle, the vehicle controller transmits the displayed image to the in-vehicle screen. The aforementioned automatic parking function testing system includes an intermediate device connected to both the vehicle controller and the testing equipment. Therefore, this embodiment uses the intermediate device instead of the in-vehicle screen. The vehicle controller can transmit the displayed image to the intermediate device, and the intermediate device can transmit the displayed image output by the vehicle controller to the testing equipment. The displayed image includes any one or a combination of any of the following: a virtual parking space image, a parking simulation image, and pop-up information.
[0048] Please see below. Figure 2 , Figure 2 This is a flowchart illustrating an automatic parking function testing method provided in an embodiment of this application. This automatic parking function testing method can be applied to the testing equipment of the aforementioned automatic parking function testing system. The automatic parking function testing method includes the following steps:
[0049] S201: Activate the virtual parking space function, error blocking function, and automatic parking function of the vehicle controller;
[0050] In this embodiment, the test equipment is connected to the vehicle controller. The test equipment can send a function start command to the vehicle controller to enable the vehicle controller to start its virtual parking space function, error shielding function, and automatic parking function.
[0051] S202: Determine whether the virtual parking space generated by the vehicle controller has been marked as available for parking; if yes, proceed to S203; if no, delay for a preset time and then proceed to S202 again.
[0052] The vehicle controller can generate virtual parking spaces based on the virtual parking space function and the error masking function. The vehicle controller can also add parking available markers to the currently available virtual parking spaces.
[0053] The testing equipment can determine whether a virtual parking space has been marked as available by interacting with the vehicle controller. As a feasible implementation, if the automatic parking function testing system containing the testing equipment also includes an intermediate device, the testing equipment can determine whether a virtual parking space has been marked as available based on the screen display transmitted by the intermediate device.
[0054] S203: Send vehicle speed signal and brake pedal signal to the vehicle controller to simulate vehicle braking and stop movement;
[0055] If a virtual parking space is marked as available, the vehicle controller can perform automatic parking operations based on that virtual parking space. Before automatic parking, the vehicle controller needs to control the vehicle to park near the virtual parking space. Since no actual vehicle was used to test the automatic parking function in this embodiment, testing equipment can be used to simulate the vehicle actuator sending vehicle speed signals and brake pedal signals to the vehicle controller, thereby simulating the process of the vehicle braking and stopping.
[0056] S204: Receive the handshake request sent by the vehicle controller, and simulate the vehicle electronic stability system and electric power steering system to send handshake response signals to the vehicle controller respectively, so that the vehicle controller can start the automatic parking control process according to the virtual parking space.
[0057] After simulating the vehicle braking and stopping, the vehicle controller needs to communicate with the electronic stability control system and the electric power steering system to ensure that the devices can exchange information correctly and work together.
[0058] Upon receiving a handshake request from the vehicle controller, the test equipment can simulate the electronic stability control system sending a first handshake response signal to the vehicle controller, and it can also simulate the electric power steering system sending a second handshake response signal. After receiving the first and second handshake response signals, the vehicle controller initiates the automatic parking control process based on the virtual parking space.
[0059] As a feasible implementation method, the above embodiments can also obtain the current state of the state machine of the vehicle controller so as to determine whether the automatic parking function is abnormal based on the current state of the state machine.
[0060] The automatic parking function testing system used in this embodiment includes a vehicle controller and testing equipment. The vehicle controller has virtual parking space functionality, error suppression functionality, and automatic parking functionality. The testing equipment can simulate the interaction between the vehicle actuator and the vehicle controller, enabling the vehicle controller to implement the automatic parking function. The virtual parking space function of the vehicle controller can generate virtual parking spaces in the current location, so that automatic parking can be performed based on the virtual parking spaces after the automatic parking function is activated. The error suppression function of the vehicle controller can suppress error information that prevents the generation of the virtual parking space, ensuring that the vehicle controller can normally implement the automatic parking function. The testing equipment can also determine whether there is any abnormality in the automatic parking function based on the current state of the state machine, thereby completing the test of the automatic parking function. Therefore, this embodiment does not require actual vehicles for testing, avoiding the constraints of external factors on the automatic parking function testing process and improving testing convenience.
[0061] The states of the aforementioned state machine include: standby state, parking space search state, parking space confirmation state, handshake preparation state, activation state, parking interruption state, and parking completion state.
[0062] During the implementation of the automatic parking function, the current state can be updated according to the following rules:
[0063] (1) If the vehicle controller is powered on and the virtual parking space has not been generated, the current state of the state machine is updated to standby state.
[0064] (2) If the vehicle controller has generated the virtual parking space and the vehicle has not stopped moving, then the current state of the state machine is updated to the parking space search state.
[0065] (3) If the virtual parking space has been marked as available and the vehicle has stopped moving, then update the current state of the state machine to the parking space confirmed state.
[0066] (4) If the vehicle controller has sent the handshake request and has not received the handshake response signal, then the current state of the state machine is updated to the handshake ready state.
[0067] (5) If the vehicle controller has received the handshake response signal and started the automatic parking control process, the current state of the state machine will be updated to the active state.
[0068] (6) If the automatic parking control process is interrupted, the current state of the state machine is updated to the parking interruption state.
[0069] (7) If the automatic parking control process is completed, the current state of the state machine is updated to the parking completed state.
[0070] During the normal operation of the automatic parking function, the current state of the state machine can be updated in the following order: standby state, parking space search state, parking space confirmation state, handshake preparation state, activation state, and parking completed state.
[0071] As a feasible implementation method, during the process of the vehicle controller implementing the automatic parking function, the testing equipment can send test signals to the vehicle controller to further test the automatic parking function, so as to achieve autonomous and flexible simulation of various actual situations and thus achieve a more thorough and complete test. The specific testing process is as follows:
[0072] Test 1: If the state machine is not started, send an engine start signal and / or ignition signal to the vehicle controller to determine whether the current state of the state machine has been updated to the standby state.
[0073] Specifically, this embodiment can decouple the engine start signal and the ignition signal, and send only one of the engine start signal and the ignition signal to the vehicle controller to determine whether the state machine can enter the standby state from the off state, thereby verifying whether each signal that makes the state machine enter the standby state works.
[0074] Test 2: If the current state of the state machine is the parking space search state, then send a door opening signal and / or hood opening signal to the vehicle controller in order to determine whether the current state of the state machine has been updated to the standby state.
[0075] Specifically, Test 2 above is used to demonstrate the impact of operations such as opening car doors during the parking space search phase on the automatic parking function. In a real vehicle, under normal circumstances, operations such as opening car doors are impossible when the vehicle is moving or the function is running. However, in this embodiment, since the test signals are directly transmitted to the vehicle controller via the CAN bus, the correlation between test signals can be decoupled, allowing for independent testing of each signal. For example, given the vehicle speed and D gear signals, the state machine enters the parking space search state. At this time, the CAN signal for the car door can be directly set to open to construct a car door opening scenario. It can then be checked whether the state machine's state changes meet preset requirements (the preset requirements are: the current state of the state machine returns to the standby state or maintains the parking space search state), and it can also be determined whether the screen display correctly indicates that the car door is open. The car door opening signal in Test 2 can include any door being opened, or it can include signals indicating that the hood and / or rear cover are opened.
[0076] Test 3: If the current state of the state machine is the handshake preparation state, an intervention signal is sent to the vehicle controller to determine whether the current state of the state machine should be updated to the standby state or the parking space search state. The intervention signal includes any one or a combination of any of the following: a steering wheel intervention signal, a gear shift intervention signal, and an electronic parking brake system intervention signal.
[0077] The duration of the state machine in the handshake preparation state is generally one signal cycle. Obviously, real-vehicle testing cannot cover this stage. However, in this embodiment, by delaying the response to the handshake request while ensuring no timeout, this stage is maintained for a maximum of several hundred milliseconds, thus meeting testing requirements. During testing, when a handshake request is detected from the controller but the actuator has not yet responded, a corresponding intervention signal can be sent to the vehicle controller to construct scenarios such as steering wheel intervention, gear shifting intervention, and electronic parking brake (EPB) intervention. Since the CAN signal is sent directly, this operation can be easily achieved within several hundred milliseconds, satisfying both the handshake timeout requirement and the requirement for complex scenarios requiring manual intervention. Similarly, this embodiment can also check the state machine changes based on the CAN signal to see if the automatic parking function has exited, or if it has reached standby or parking space search states. This embodiment can also determine if the screen display has correct error messages and whether page navigation is correct.
[0078] Test 4: If the current state of the state machine is the active state, then send a door opening signal and / or a hood opening signal to the vehicle controller in order to determine whether the current state of the state machine remains the active state.
[0079] Test 5: If the current state of the state machine is the active state, an unexpected signal is sent to the vehicle controller to determine whether the current state of the state machine should be updated to the standby state. The unexpected signal is a feedback signal that does not correspond to the control command issued by the vehicle controller during the automatic parking control process.
[0080] When the state machine is currently in the active state, the evaluation screen correctly displays the animation of the vehicle parking and the gear position, steering wheel angle, and distance signals transmitted by the current controller. In the active state, there are two types of interruptions: recoverable and unrecoverable. The testing method for recoverable interruptions is similar to the testing method for exiting the parking space search phase, mainly involving signals from the four doors and two hoods, which can be decoupled for testing a single control variable. Unrecoverable interruptions in the active phase lead to the parking interruption phase, primarily involving scenarios where the vehicle actuators do not respond or send unexpected signals, such as the Electronic Parking Brake (EPB) system not engaging, the gear not being in Park (P) position, unexpected gear selection, or unexpected EPB operation. These are also pain points in real-world vehicle testing. If a vehicle actuator fails to respond to a request, simply block the relevant actuator responses in the sent simulation data. For example, when parking to the destination, the actuator would normally simulate the EPB (Electronic Parking Brake) engaging and the gear position (P). Blocking this response will prevent the EPB engagement and P gear position signals from being sent, thus creating a scenario where the actuator fails to respond. Similarly, by checking the state machine signals on the CAN bus to see if the state has returned to standby and observing the screen for error messages, this type of test can be performed. For unexpected actuator signals, i.e., the actuator not correctly executing the controller's response, in addition to blocking the actuator responses, an incorrect response is sent. For example, if the actuator receives a signal from the controller indicating P gear position, the direct execution of the controller's signal is blocked. Instead, the actuator's execution after receiving the controller signal is changed to send a signal indicating D (Drive) gear. This creates a scenario of an unexpected gear position. Since the vehicle actuator will directly set the CAN signal for the unexpected gear to 1 after recognizing an unexpected gear scenario, it is also possible to directly simulate sending the CAN signal for the unexpected gear. This method is simpler to construct scenarios. Other unexpected scenarios are constructed in a similar way. Finally, the state machine signal on the CAN bus is used to check whether the state has returned to standby, and whether there are any error messages on the screen.
[0081] The process described in the above embodiments is illustrated below through examples in practical applications.
[0082] Current testing of automatic parking functions primarily relies on real-vehicle testing. However, real-vehicle testing cannot control variables, as multiple conditions often act simultaneously. Furthermore, many handshake signals between the vehicle controller, the Electronic Stability Program (ESP), and the Electric Power Steering (EPS) system cannot be tested in real-vehicle environments. Therefore, there are certain limitations to the overall testing of automatic parking functions, and each test is constrained by factors such as the vehicle and the testing site. Building a complete simulation system to simulate road and vehicle environments would be costly.
[0083] To address the technical problems existing in the aforementioned related technologies, this embodiment provides a test scheme for automatic parking based on virtual parking spaces. This scheme can achieve automatic parking function testing that is independent of the surrounding environment, low-cost, and easy to operate. Through this scheme, each signal variable in each link of the parking process can be tested in a more comprehensive and targeted manner.
[0084] This embodiment can be used Figure 1 The automatic parking function test system shown is implemented. The intermediate device connects the vehicle controller and the test equipment. The test equipment displays the real-time screen output by the vehicle controller, allowing observation of the specific situation of the virtual parking space, the real-time dynamic picture of the simulated automatic parking, and some pop-up information. The test equipment is connected to the vehicle controller. On the one hand, it simulates the interaction between the electric power steering system (EPS) and the electronic stability program (ESP) and the vehicle controller, completing the lateral and longitudinal handshake process between the vehicle controller and the vehicle actuators during automatic parking. On the other hand, during automatic parking, the simulated vehicle actuators send vehicle information such as steering wheel angle, gear position, and vehicle speed to jointly realize the simulated automatic parking process.
[0085] After the vehicle controller is powered on, virtual parking spaces appear according to a certain pattern (specifically, after powering on and starting the engine, vehicle speed and wheel pulse signals are emitted to simulate vehicle movement; after a fixed distance, 1-3 virtual parking spaces appear sequentially). At this time, the state machine is in search mode. When a virtual parking space is marked as available, the test equipment transmits data such as vehicle speed and brake pedal position via a CAN tool, causing the simulated vehicle to depress the brake and come to a stop. At this time, the state machine is in parking space confirmation mode. After the simulated vehicle comes to a stop, the vehicle controller sends a handshake request, and the state machine is in handshake preparation mode. Upon receiving the handshake request, the test equipment simulates the Electric Power Steering (EPS) system and Electronic Stability Program (ESP) system to send handshake response signals within a specified time, ensuring a successful handshake. At this time, the state machine enters active mode. In active mode, the simulated vehicle enters parking mode. In parking mode, the vehicle controller sends signals such as steering angle and gear position. The vehicle computer, upon receiving the angle, gear position, Electronic Parking Brake (EPB) system signal, vehicle speed, and distance signals, simulates the actuators of the EPS and ESP systems to send signals to the vehicle controller for execution. During parking, the testing equipment can simulate CAN signals to interrupt the parking process, at which point the state machine enters a parking interruption state. If the vehicle is successfully parked in the designated position, the state machine enters a parking completion state. When a parking interruption or completion occurs, the vehicle controller sends an interruption or completion signal. Upon receiving the relevant signal, the computer simulates the vehicle actuators to send signals for P gear and EPB (Electronic Parking Brake) activation, thus terminating the parking. Simultaneously, it initializes the handshake signals for the Electric Power Steering (EPS) and Electronic Stability Program (ESP) systems, awaiting the next handshake. The entire process can be viewed on the computer via an intermediate device, showing the vehicle searching for a parking space → confirming the parking space → starting parking → parking in progress → parking interruption / completion.
[0086] During the test, test commands can be input from the test equipment to the vehicle controller. This embodiment can divide the entire parking process into several stages: standby stage, parking space search stage, parking space confirmation stage, handshake preparation stage, activation stage, parking interruption stage, and parking completion stage. This embodiment can finely divide the automatic parking stages and conduct effective tests for each stage.
[0087] In the aforementioned automatic parking function test, since the handshake response is simulated, a wait period can be added before each response to extend the handshake preparation phase. Unlike this phase in a real vehicle, which may only last for tens of milliseconds or even less, this phase on the bench can be extended to hundreds of milliseconds, facilitating testing during this phase. This testing method also provides convenience for situations where the actuator does not respond or responds incorrectly, such as handshake failure. This embodiment, by introducing a virtual parking space, can overcome the limitations of the venue and vehicle, reducing testing costs. For some test scenarios that are difficult to construct in reality, such as parking timeouts or inability to plan parking routes, simulating external inputs can effectively achieve the desired results.
[0088] This application also provides a storage medium on which a computer program is stored, which, when executed, can perform the steps provided in the above embodiments. The storage medium may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0089] This application also provides an electronic device that may include a memory and a processor. The memory stores a computer program, and when the processor calls the computer program in the memory, it can implement the steps provided in the above embodiments. Of course, the electronic device may also include various network interfaces, power supplies, and other components.
[0090] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0091] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. An automatic parking function testing system, characterized in that, The automatic parking function testing system includes a vehicle controller and testing equipment; The vehicle controller has a virtual parking space function, an error message blocking function, and an automatic parking function. The virtual parking space function generates virtual parking spaces in the area where the vehicle controller is located. The error message blocking function blocks error messages that prevent the generation of the virtual parking spaces. The automatic parking function enables automatic parking based on the virtual parking spaces. The process of implementing the automatic parking function includes multiple parking sub-stages. The vehicle controller is equipped with a state machine, and the current state of the state machine describes the current parking sub-stage in which the vehicle controller is located. The testing equipment is connected to the vehicle controller and is used to simulate the interaction between the vehicle actuator and the vehicle controller so that the vehicle controller can implement the automatic parking function; the testing equipment is also used to determine whether there is an abnormality in the automatic parking function based on the current state of the state machine.
2. The automatic parking function testing system according to claim 1, characterized in that, The automatic parking function testing system also includes an intermediate device; The intermediate device is connected to the vehicle controller and the test equipment respectively, and the intermediate device is used to transmit the screen display output by the vehicle controller to the test equipment; The screen display includes any one or a combination of any of the following: virtual parking space display, parking simulation display, and pop-up information.
3. A method for testing automatic parking function, characterized in that, The automatic parking function testing method, applied to the automatic parking function testing system of claim 1 or 2, includes: Activate the virtual parking space function, error blocking function, and automatic parking function of the vehicle controller; Determine whether the virtual parking space generated by the vehicle controller has been marked as available for parking; If so, a vehicle speed signal and a brake pedal signal are sent to the vehicle controller to simulate vehicle braking and stop movement; The system receives a handshake request from the vehicle controller and simulates both the electronic stability control system and the electric power steering system to send handshake response signals to the vehicle controller, so that the vehicle controller can initiate an automatic parking control process based on the virtual parking space.
4. The automatic parking function test method according to claim 3, characterized in that, Also includes: Obtain the current state of the state machine of the vehicle controller so as to determine whether the automatic parking function is abnormal based on the current state of the state machine; The states of the state machine include: standby state, parking space search state, parking space confirmation state, handshake preparation state, activation state, parking interruption state, and parking completion state. The standby state is the current state updated when the vehicle controller is powered on but has not generated the virtual parking space; the parking space search state is the current state updated when the vehicle controller has generated the virtual parking space and the vehicle has not stopped moving; the parking space confirmation state is the current state updated when the virtual parking space has been marked as available and the vehicle has stopped moving; the handshake preparation state is the current state updated when the vehicle controller has sent the handshake request but has not received the handshake response signal; the activation state is the current state updated when the vehicle controller has received the handshake response signal and started the automatic parking control process; the parking interruption state is the state updated when the automatic parking control process is interrupted; and the parking completion state is the state updated when the automatic parking control process is completed.
5. The automatic parking function test method according to claim 4, characterized in that, Also includes: If the state machine is not started, an engine start signal and / or ignition signal are sent to the vehicle controller to determine whether the current state of the state machine has been updated to the standby state.
6. The automatic parking function test method according to claim 4, characterized in that, Also includes: If the current state of the state machine is the parking space search state, then a door opening signal and / or hood opening signal are sent to the vehicle controller to determine whether the current state of the state machine has been updated to the standby state.
7. The automatic parking function test method according to claim 4, characterized in that, Also includes: If the current state of the state machine is the handshake preparation state, an intervention signal is sent to the vehicle controller to determine whether the current state of the state machine is updated to the standby state or the parking space search state. The intervention signal includes any one or a combination of any of the following: steering wheel intervention signal, gear position intervention signal, and electronic parking brake system intervention signal.
8. The automatic parking function test method according to claim 4, characterized in that, Also includes: If the current state of the state machine is the active state, then a door opening signal and / or a hood opening signal are sent to the vehicle controller to determine whether the current state of the state machine remains the active state. And / or, if the current state of the state machine is the active state, an unexpected signal is sent to the vehicle controller to determine whether the current state of the state machine has been updated to the standby state. The unexpected signal is a feedback signal that does not correspond to the control command issued by the vehicle controller during the execution of the automatic parking control process.
9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor, when calling the computer program in the memory, implements the steps of the automatic parking function test method as described in any one of claims 3 to 8.
10. A storage medium, characterized in that, The storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the automatic parking function test method as described in any one of claims 3 to 8.
Citation Information
Patent Citations
Automatic parking test method and device, electronic equipment and storage medium
CN115214623A
METHOD AND SYSTEM FOR DETERMINING COMPATIBILITY OF SYSTEM PARAMETERS
DE102021006367A1
