Test method, electronic device, storage medium and product for vehicle unlocking function
By simulating the collision scenario on the test bench and cutting off the main power supply to detect the new energy vehicle unlocking function, the problem of high testing costs is solved, reliability verification in multiple extreme environments is achieved, and the risk of test damage is reduced.
Patent Information
- Application Number
- CN202510743003.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2045-06-05
AI Technical Summary
In the prior art, the testing cost of the unlocking function of new energy vehicles is high, and the vehicle is damaged by real-life collision, making it impossible to effectively simulate multiple extreme environments.
By fixing the test vehicle on the test bench, determining the target impact parameters, simulating the collision scenario, and cutting off the main power supply while the test vehicle is in collision mode, detecting the vehicle unlocking results, including image recognition and motor current analysis, ensuring the reliability of the unlocking function in extreme environments.
Without damaging the test vehicle, multiple extreme environments can be simulated, reducing testing costs, ensuring the reliability of unlocking functions, and providing accurate test results.
Smart Images

Figure CN120253276B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method for testing a vehicle unlocking function, an electronic device, a storage medium, and a computer program product. Background Art
[0002] With the continuous development of the automotive industry, new energy vehicles have become the preferred means of transportation for more and more users in their daily travel. The reliability of the unlocking function of new energy vehicles has become a top priority to ensure user safety.
[0003] In order to verify the reliability of the unlocking function of new energy vehicles in extreme environments, in related technologies, technicians usually use real vehicle collisions to simulate the collision environment that the vehicle may encounter, thereby verifying the reliability of the unlocking function in extreme environments.
[0004] However, since the real car collision method requires actual damage to the test vehicle, the test vehicle can only test a single extreme environment, which leads to a significant increase in the testing cost of the unlocking function. Summary of the Invention
[0005] The main purpose of this application is to provide a vehicle unlocking function testing method, electronic equipment, storage medium and computer program product, aiming to solve the technical problem of high testing cost of vehicle unlocking function in related technologies.
[0006] To achieve the above objectives, the present application proposes a method for testing a vehicle unlocking function, the method comprising:
[0007] determining target impact parameters so that a test bench with a test vehicle fixed thereon performs a target action based on the target impact parameters;
[0008] controlling the test vehicle to enter a collision mode;
[0009] The test vehicle is controlled to enter a main power cut-off state according to a preset first power-off time point, and a vehicle unlocking result of the test vehicle in the main power cut-off state is detected.
[0010] In one embodiment, detecting a vehicle unlocking result of the test vehicle in the main power cut-off state specifically includes:
[0011] Image data of the test vehicle is collected and recognized, and when the door of the test vehicle is recognized to be in an open state, it is determined that the test vehicle is unlocked successfully; when the door of the test vehicle is recognized to be in a closed state, it is determined that the test vehicle is unlocked unsuccessfully.
[0012] In one embodiment, detecting a vehicle unlocking result of the test vehicle in the main power cut-off state specifically includes:
[0013] Detecting the door lock motor current corresponding to the test vehicle;
[0014] Determining that the test vehicle is successfully unlocked when detecting that the door lock motor current generates a first mutation window at the first power-off time point;
[0015] When it is detected that the door lock motor current does not generate a first mutation window at the first power-off time point, it is determined that the test vehicle has failed to be unlocked.
[0016] In one embodiment, controlling the test vehicle to enter the collision mode specifically includes:
[0017] A preset simulated collision message is injected into the test vehicle at a preset first signal injection time point, so that the test vehicle enters a collision mode based on the simulated collision message.
[0018] In one embodiment, after the step of controlling the test vehicle to enter the crash mode, the method further comprises:
[0019] Acquire a first test data stream of the test vehicle and search for a preset collision mode data identifier;
[0020] determining a preset time adjustment parameter when detecting that the first test data stream does not include the collision mode data identifier;
[0021] The first signal injection time point is updated to a second signal injection time point according to the time adjustment parameter, wherein the second signal injection time point is earlier than the first signal injection time point.
[0022] In one embodiment, after the step of detecting a vehicle unlocking result of the test vehicle in the main power off state, the method further includes:
[0023] When detecting that the test vehicle fails to be unlocked, obtaining a second test data stream of the test vehicle and searching for a preset response unlocking data identifier;
[0024] When it is detected that the second test data stream does not include the response unlocking data identifier, the first power-off time point is updated to a second power-off time point, wherein the second power-off time point is later than the first power-off time point.
[0025] In one embodiment, the step of updating the first power-off time point to the second power-off time point includes:
[0026] Determining the mechanism unlocking stage corresponding to the test vehicle according to the door lock motor current;
[0027] Determining each unexecuted unlocking stage based on the mechanism unlocking stage, and determining the unlocking duration corresponding to each of the unexecuted unlocking stages;
[0028] The remaining unlocking time is determined according to each of the unlocking time periods, and the first power-off time point is updated to the second power-off time point based on the remaining unlocking time period.
[0029] In one embodiment, the step of determining target impact parameters matched to the test vehicle includes:
[0030] Determine preset collision scenario parameters, collision road parameters, and vehicle model parameters;
[0031] A preset impact parameter mapping relationship is queried based on the collision scene parameters, the collision road parameters, and the vehicle type parameters to determine a target impact parameter.
[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle unlocking function testing method as described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium, and when the computer program is executed by the processor, the steps of the vehicle unlocking function testing method as described above are implemented.
[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the vehicle unlocking function testing method as described above.
[0035] The testing method for the vehicle unlocking function provided in an embodiment of the present application determines target impact parameters so that a test bench on which a test vehicle is fixed performs a target action based on the target impact parameters; controls the test vehicle to enter a collision mode; controls the test vehicle to enter a main power cut-off state according to a preset first power-off time point, and detects the vehicle unlocking result of the test vehicle in the main power cut-off state.
[0036] In this embodiment, the electronic device first determines the target impact parameters for controlling the test bench on which the test vehicle is fixed, and controls the test bench to operate according to the target impact parameters to perform the target action. Afterwards, the electronic device controls the test vehicle to enter the collision mode. Finally, the electronic device performs a power-off operation on the test vehicle at a preset first power-off time point to make the test vehicle enter the main power cut-off state. The electronic device then detects the test vehicle in the main power cut-off state to obtain the vehicle unlocking result of the test vehicle in the main power cut-off state, which is unlocking success or unlocking failure.
[0037] In this way, the present application solves the technical problem of high testing cost of vehicle unlocking function in related technologies. That is, the present application fixes the test vehicle on the test bench, controls the test bench to operate according to impact parameters to simulate the collision scenario, and cuts off the main power supply when the test vehicle is in collision mode. In this way, the present application detects whether the test vehicle can normally trigger the unlocking operation in the collision scenario, and detects whether the test vehicle can normally trigger the unlocking operation when the main power supply is cut off. Then, without causing actual damage to the test vehicle, the reliability of the unlocking function in extreme environments is verified, thereby obtaining accurate test results and enabling a single test vehicle to test multiple extreme environments, greatly reducing the testing cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] Figure 1 A flowchart illustrating a first embodiment of a method for testing a vehicle unlocking function according to the present invention;
[0041] Figure 2 This is a schematic diagram of a test scenario involved in an embodiment of a method for testing a vehicle unlocking function of the present application;
[0042] Figure 3 This is a schematic diagram of an image acquisition module involved in an embodiment of a method for testing a vehicle unlocking function of the present application;
[0043] Figure 4 This is a schematic diagram of the module structure of a test device for the vehicle unlocking function according to an embodiment of the present application;
[0044] Figure 5This is a schematic diagram of the device structure of the hardware operating environment involved in the test method of the vehicle unlocking function in the embodiment of the present application.
[0045] The purpose, features and advantages of this application will be further explained with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] In this embodiment, for ease of description, the following description will be made using an electronic device that can communicate with a preset test bench and is internally equipped with a PLC (Programmable Logic Controller), or a mobile terminal, data storage control terminal, PC (Personal Computer) and other terminals connected to an electronic control unit of the electronic device as the execution subject.
[0049] Based on the above electronic device, the overall concept of the testing method of the vehicle unlocking function of the present application is proposed here.
[0050] With the continuous development of the automotive industry, new energy vehicles have become the preferred means of transportation for an increasing number of users. The reliability of the unlocking function of new energy vehicles has become a top priority for ensuring user safety. To verify the reliability of the unlocking function of new energy vehicles in extreme environments, technicians in related technologies typically use real-car collisions to simulate the collision environment that the vehicle may experience, thereby verifying the reliability of the unlocking function in extreme environments. However, because real-car collisions require actual damage to the test vehicle, the test vehicle can only test a single extreme environment, which in turn significantly increases the testing cost of the unlocking function.
[0051] In response to the above phenomenon, the present application provides a method for testing a vehicle unlocking function, the method comprising: determining a target impact parameter so that a test bench on which a test vehicle is fixed performs a target action based on the target impact parameter; controlling the test vehicle to enter a collision mode; controlling the test vehicle to enter a main power cut-off state according to a preset first power-off time point, and detecting a vehicle unlocking result of the test vehicle in the main power cut-off state.
[0052] In this way, the present application solves the technical problem of high testing cost of vehicle unlocking function in related technologies. That is, the present application fixes the test vehicle on the test bench, controls the test bench to operate according to impact parameters to simulate the collision scenario, and cuts off the main power supply when the test vehicle is in collision mode. In this way, the present application detects whether the test vehicle can normally trigger the unlocking operation in the collision scenario, and detects whether the test vehicle can normally trigger the unlocking operation when the main power supply is cut off. Then, without causing actual damage to the test vehicle, the reliability of the unlocking function in extreme environments is verified, thereby obtaining accurate test results and enabling a single test vehicle to test multiple extreme environments, greatly reducing the testing cost.
[0053] Based on the overall concept of the vehicle unlocking function testing method of the present application, the embodiment of the present application provides a vehicle unlocking function testing method, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for testing a vehicle unlocking function of the present application. In this embodiment, the method for testing a vehicle unlocking function is applied to an electronic device, the electronic device being communicatively connected to a pre-set test bench, on which a test vehicle is fixed. The method for testing a vehicle unlocking function includes steps S10 to S30:
[0054] Step S10: determining target impact parameters so that the test bench with the test vehicle fixed thereon performs a target action based on the target impact parameters;
[0055] It should be noted that the target impact parameter is the impact waveform frequency output by the test bench when simulating a collision environment during dynamic testing. It can be understood that the target impact parameter is used to reproduce the acceleration impact environment that the vehicle is subjected to in a real collision accident.
[0056] In this embodiment, the electronic device first accesses the test bench to which it is communicatively connected, thereby determining the vehicle type parameters of the test vehicle fixed on the test bench, the collision scenario to be simulated, and the collision road to be simulated, and then determines the target impact parameters for controlling the test bench based on the vehicle type parameters, collision scenario, and collision road, so that the test bench vibrates to simulate the real collision environment. The electronic device controls the test bench to operate according to the target impact parameters to execute the corresponding target action+, thereby simulating the actual collision scenario.
[0057] For example, see Figure 2 , Figure 2 This is a schematic diagram of a test scenario involved in an embodiment of a test method for a vehicle unlocking function of the present application, such as Figure 2As shown, when the test vehicle is inspected to determine whether the unlocking function of the test vehicle is normal, the test vehicle can be first fixed on a test bench preset in the experiment. At this time, the electronic device accesses the test bench that is connected to its own communication connection to determine the vehicle model parameters of the test vehicle. At the same time, the electronic device determines the collision scene and the collision road that need to be simulated, and then determines the target impact parameters for controlling the test bench based on the vehicle model parameters, collision scene and collision road, so that the test bench vibrates to simulate the real collision environment. The electronic device then controls the test bench to make the test bench perform the target action according to the target impact parameters, simulates the actual collision scene of the vehicle, and determines the state of the test vehicle when it collides at a preset speed and under a preset road environment.
[0058] In this way, the electronic equipment can calibrate the matching target impact parameters through the collision scene that needs to be simulated, so as to accurately simulate the acceleration impact, road environment, collision mode, etc. of the test vehicle in a real collision, thereby avoiding the distortion of detection results in static testing due to the inability to simulate real collision scenes in existing technologies. At the same time, the electronic equipment can also adapt to the testing needs of new energy vehicles of different brands by calibrating the matching target impact parameters.
[0059] It should be noted that, in this embodiment and another embodiment, before the test vehicle is fixed on the test bench, the high-voltage battery pack, engine assembly, motor, gearbox, transmission system, front and rear suspension, braking system, tire system, cooling system, seat system, sunroof system, roof system, suspension system, front and rear guard assembly, front and rear anti-collision beam assembly, front-end engineering module, carpet assembly, on-board tools, lighting assembly, airbag assembly and other assembly systems of the test vehicle can be removed first to simplify the test vehicle, so that only four-door assemblies (including door locks, door handles), vehicle main controller, vehicle wiring harness, vehicle computer, vehicle low-voltage power supply system, backup power supply system, hazard warning lights, etc. are retained in the test vehicle to ensure that the test vehicle can be successfully powered on at low voltage and can perform operations such as unlocking, lighting the double flash, lighting and waking up the vehicle computer screen, thereby simplifying the accessories of the test vehicle and improving test efficiency.
[0060] Furthermore, in this embodiment and another embodiment, before securing the test vehicle to the test bench, a simulated crash message can be injected through the OBD (On-Board Diagnostics) interface configured on the test vehicle while the test vehicle is stationary, causing the test vehicle to enter crash mode. This allows the test vehicle to detect whether its hazard lights, unlocking, E-call function, and vehicle computer functions are functioning properly in crash mode. If the emergency functions are detected to be functioning properly, a pre-set PLC program can be used to disconnect the low-voltage power supply circuit within the test vehicle, thereby achieving a low-voltage power-off operation for the entire vehicle. This allows the test vehicle to be properly unlocked even when the main power supply is disconnected. In this way, the electronic equipment can secure the test vehicle to the test bench only after confirming that the test process is valid, thereby avoiding detection distortion on the test vehicle, further reducing testing costs and improving testing efficiency.
[0061] In addition, in this embodiment and another embodiment, after the simulated test signal is injected into the test vehicle, if it is detected that the model controller communication in the test vehicle is not online, or the entire vehicle network signal transmission is affected, a terminal resistor is added in the test vehicle to ensure that the communication loop is complete and unobstructed.
[0062] In a feasible implementation, the above step S10 may specifically include steps S101 to S102:
[0063] Step S101: determining preset collision scene parameters, collision road parameters, and vehicle type parameters;
[0064] Step S102: querying a preset impact parameter mapping relationship based on the collision scene parameters, the collision road parameters, and the vehicle type parameters to determine a target impact parameter.
[0065] It should be noted that the collision scene parameters are a set of collision conditions of a real traffic accident that needs to be simulated, including but not limited to: collision direction (such as frontal, side, offset, etc.), collision speed, obstacle type, collision mode (such as pole collision, head-on collision, etc.). In addition, the collision road parameters are the object conditions of the road on which the test vehicle is located that need to be simulated, including but not limited to: road slope, road friction, etc. In addition, the vehicle model parameters are data on the electrical and physical characteristics of the test vehicle, including but not limited to body mass, collision calibration acceleration threshold, door controller response time, electrical architecture topology, etc. It can be understood that this application does not limit the specific content of the collision scene parameters, collision road parameters and vehicle model parameters.
[0066] In this embodiment, the electronic device first accesses a test bench that is communicatively connected to itself, thereby determining the vehicle type parameters corresponding to the test vehicle fixed on the test bench. At the same time, the electronic device determines the collision scene parameters and collision road parameters that need to be simulated. Afterwards, the electronic device reads the above-mentioned storage module to obtain an impact parameter mapping relationship that stores a preset condition parameter group consisting of multiple preset vehicle type parameters, multiple preset collision scene parameters, and multiple preset collision road parameters, and preset impact parameters corresponding to each of the multiple preset condition parameter groups. The electronic device then queries the impact parameter mapping relationship based on the vehicle type parameters, collision scene parameters, and collision road parameters to determine the target impact parameters used to control the test bench.
[0067] Exemplarily, for example, when the electronic device is running, it first accesses the test bench that is communicatively connected to itself to determine the vehicle model parameters of the test vehicle. At the same time, the electronic device determines the collision scene that needs to be simulated to determine the collision scene parameters such as the collision direction, collision speed, obstacle type, collision mode, and the collision road parameters such as the road slope and road friction that need to be simulated. The electronic device then combines the vehicle model parameters, collision direction, collision speed, obstacle type, collision mode, road slope, road friction and other parameters to obtain a simulated collision parameter group. Afterwards, the electronic device reads the above-mentioned storage module to obtain an impact parameter mapping relationship including multiple preset collision parameter groups and preset target impact parameters corresponding to each of the multiple preset collision parameter groups. The electronic device queries the impact parameter mapping relationship based on the simulated collision parameter group to determine the target impact parameters that match the vehicle model parameters, collision direction, collision speed, obstacle type, collision mode, road slope, and road friction in the simulated collision parameter group.
[0068] It is understood that the impact parameter mapping relationship can be pre-configured by a technician based on the desired simulated collision scenario, collision road, and test vehicle model. This application does not limit the specific content of the impact parameter mapping relationship. Similarly, the impact parameter mapping relationship can be pre-configured by a technician and stored in a storage module of an electronic device, so that the electronic device can read the storage module to obtain the impact parameter mapping relationship when needed.
[0069] In addition, in this embodiment and another embodiment, in addition to determining the target impact parameters based on the above-mentioned impact parameter mapping relationship and simulated collision parameter group, the electronic device can also receive the target impact parameters directly input by the technician through a preset operation interface, and then control the test bench according to the target impact parameters.
[0070] In this way, the electronic equipment can calibrate the matching target impact parameters through the collision scene that needs to be simulated, so as to accurately simulate the acceleration impact, road environment, collision mode, etc. of the test vehicle in a real collision, thereby avoiding the distortion of detection results in static testing due to the inability to simulate real collision scenes in existing technologies. At the same time, the electronic equipment can also adapt to the testing needs of new energy vehicles of different brands by calibrating the matching target impact parameters.
[0071] Step S20: controlling the test vehicle to enter a collision mode;
[0072] In this embodiment, after the electronic device controls the test bench to execute the target action, it determines a preset first signal injection time point, and controls the test vehicle to enter the collision mode at the first signal injection time point.
[0073] In this way, the electronic device can control the test vehicle to switch to the collision mode to detect whether the test vehicle can normally trigger the unlocking operation in the collision mode.
[0074] In a feasible implementation manner, the step of “controlling the test vehicle to enter the collision mode” in the above step S20 may specifically include step S201:
[0075] Step S201: injecting a preset simulated collision message into the test vehicle at a preset first signal injection time point, so that the test vehicle enters a collision mode based on the simulated collision message.
[0076] It should be noted that the simulated collision message is a hard-wired PWM (Pulse Width Modulation) signal or CAN (Controller Area Network) signal generated by a universal trigger device within the electronic device, which is used to trigger the test vehicle to enter the collision mode.
[0077] In this embodiment, while controlling the test bench to vibrate according to the target impact parameters, the electronic device determines a preset first delay interval, and calculates a first signal injection time point based on the start-up time of the test bench and the first delay interval. At the first signal injection time point, the electronic device sends a preset simulated collision message to the test measurement, so that the test vehicle switches to the collision mode after receiving the simulated collision message.
[0078] For example, the electronic device obtains a preset first delay interval Xms, and calculates the first injection time point T1 based on the first delay interval Xms and the start time point T0 of the test bench:
[0079] T1=T0+X;
[0080] The electronic device thus sends the generated PWM signal to the test vehicle through its own configured communication device at the first injection time point T1, so that the test vehicle switches to the collision mode at the first response time point T2 which is separated from the slide start time point T0 by the second delay interval Yms after receiving the simulated collision message at the first injection time point T1.
[0081] In this way, the electronic equipment can control the vibration of the test bench through preset target impact parameters to simulate the actual collision environment encountered by the test vehicle. At the same time, the electronic equipment can also control the test vehicle to switch to collision mode to detect whether the test vehicle can trigger the unlocking operation normally in collision mode.
[0082] Step S30: controlling the test vehicle to enter a main power cut-off state according to a preset first power-off time point, and detecting a vehicle unlocking result of the test vehicle in the main power cut-off state;
[0083] It should be noted that the main power cut-off state is that after the low-voltage main power supply circuit in the test vehicle is disconnected, only the backup power supply is retained, thereby ensuring that the hidden door handle is unlocked through the backup power supply.
[0084] In this embodiment, when the electronic device injects a simulated collision message into the test vehicle to make the test vehicle enter the collision mode at the above-mentioned first response time point, it further determines a preset redundant delay and calculates the first power-off time point based on the redundant delay and the first response time point. When the first power-off time point is reached, the electronic device controls the low-voltage power supply of the test vehicle to be disconnected through its own configured communication device to make the test vehicle enter the main power cut-off state at the preset power-off time point. The electronic device then detects the test vehicle to determine whether the vehicle unlocking result of the test vehicle in the main power cut-off state is unlocking success or unlocking failure.
[0085] For example, after controlling the test vehicle to switch to the crash mode at the first response time point T2, the electronic device further determines the unlocking response time t corresponding to the vehicle model parameters of the test vehicle. Based on the first response time point T2, the unlocking response time t, and the preset redundancy time Δt, the electronic device determines the first power-off time point T3 corresponding to the test vehicle:
[0086] T3=T2+t+△t;
[0087] The electronic device then controls the PLC configured therein to send a disconnection command to the low-voltage relay of the test vehicle at the first power-off time point T3 to cut off the main power supply circuit of the test vehicle, thereby starting the backup power supply in the test vehicle and entering the main power cut-off state in which the main power is cut off. Finally, the electronic device detects the test vehicle after controlling the test vehicle to enter the main power cut-off state to determine whether the vehicle unlocking result of the test vehicle is unlocking success or unlocking failure based on the detection result.
[0088] In this way, the electronic equipment can simulate the complex working conditions of "main power interruption + backup power supply takeover" in a real accident, thereby further verifying the reliability of the vehicle's unlocking function.
[0089] In a feasible embodiment, the electronic device includes an image acquisition module, and the step of "detecting the vehicle unlocking result of the test vehicle in the main power cut-off state" in the above step S30 may specifically include step S301:
[0090] Step S301: collecting and identifying image data of the test vehicle, and when the door of the test vehicle is identified as being in an open state, determining that the test vehicle is unlocked successfully; when the door of the test vehicle is identified as being in a closed state, determining that the test vehicle is unlocked unsuccessfully.
[0091] It should be noted that the image data is the collected image information containing the side door area of the test vehicle, which may include static image data and dynamic image data, wherein the static image data is a single-frame independent image collected by the image acquisition module configured on the electronic device, and the dynamic image data is a time-series image sequence (such as a video stream) collected by the image acquisition module.
[0092] In this embodiment, after controlling the test vehicle to enter the main power cut-off state, the electronic device first calls multiple image acquisition modules configured by itself to shoot the test vehicle to capture image data including the doors of the test vehicle. The electronic device then inputs the image data into the image processing module configured by itself. The image processing module identifies whether the doors of the test vehicle are in an open state based on the image data, and then determines that the vehicle unlocking result is unlocking success when it is identified that the doors are in an open state. Similarly, when the image processing module identifies that the doors are in a closed state, it determines that the vehicle unlocking result is unlocking failure.
[0093] For example, see Figure 3 , Figure 3 This is a schematic diagram of an image acquisition module involved in an embodiment of a method for testing a vehicle unlocking function of the present application. Figure 3As shown, after the electronic device controls the test vehicle to enter the main power cut-off state, it calls the cameras configured by itself around the test bench and positions 1-11 to shoot the test vehicle to capture multiple static image data containing the doors of the vehicle to be tested, and inputs each static image data into the image processing module configured by itself. The image processing module locates the door area contained in each static image data. After that, the image processing module reads the above-mentioned storage module to obtain the preset standard image data of the door in the closed state, and compares each static image data with the preset standard image data respectively. When it is detected that each static image data is consistent with the preset standard image data, it is determined that the door is in the closed state, and then it is determined that the test vehicle has failed to be unlocked. Similarly, when it is detected that each static image data is inconsistent with the preset standard image data, the image processing module determines that the door is in the open state, and then it is determined that the test vehicle has been successfully unlocked.
[0094] Similarly, in this embodiment and another embodiment, the electronic device can also shoot the test vehicle through the cameras at camera positions 1-11 to capture multiple dynamic image data containing the doors of the vehicle to be tested, and extract each image feature within the door area contained in each dynamic image data, so as to use the optical flow method to calculate each image feature to determine whether the door gap width of the door has changed. The image processing module then determines that the vehicle unlocking result of the test vehicle is unlocked successfully when it recognizes that the door gap width has changed. Similarly, the image processing module further determines that the vehicle unlocking result of the test vehicle is unlocked failed when it recognizes that the door gap width has not changed.
[0095] In addition, in this embodiment and another embodiment, the image processing module can also detect whether the hidden door handle configured on the vehicle door has been displaced through various dynamic image data, and then, when the displacement change of the hidden door handle is detected, determine that the hidden door handle is completely popped out, thereby determining that the vehicle unlocking result of the test vehicle is successful. Similarly, when the image processing module identifies that the hidden door handle has not been displaced, determine that the hidden door handle has not been popped out, and thereby determine that the vehicle unlocking result of the test vehicle is failed.
[0096] In this way, the electronic equipment can simulate the complex working conditions of "main power interruption + backup power supply takeover" in a real accident, thereby further verifying the reliability of the vehicle's unlocking function.
[0097] In a feasible implementation, the above step S30 may further include steps S302 to S304:
[0098] Step S302: detecting the door lock motor current corresponding to the test vehicle;
[0099] Step S303: determining that the test vehicle is unlocked successfully when detecting that the door lock motor current generates a first mutation window at the first power-off time point;
[0100] Step S304: when it is detected that the door lock motor current does not generate a first mutation window at the first power-off time point, it is determined that the test vehicle fails to be unlocked.
[0101] In this embodiment, after controlling the test vehicle to enter the main power cut-off state, the electronic device can also collect the door lock motor current in the test vehicle for controlling the hidden door handle. Afterwards, the electronic device interprets the door lock motor current and detects whether the door lock motor current generates a mutation window at the above-mentioned first power-off time point. The electronic device then determines that the vehicle unlocking result is a successful unlocking when it detects that the door lock motor current generates a mutation window at the first power-off time point. Similarly, when the electronic device detects that the door lock motor current does not generate a mutation window at the first power-off time point, it determines that the vehicle unlocking result is a failed unlocking.
[0102] For example, after controlling the test vehicle to enter the main power cut-off state, the electronic device can also call its own configured current sensor to collect in real time the motor current signal of the door lock motor configured on the test vehicle for controlling the hidden door handle. Afterwards, the electronic device determines whether there is a mutation window in the motor current signal at the above-mentioned first power-off time point T3, and then, when the mutation window is identified at the first power-off time point T3, it determines that the vehicle door can respond normally to the unlocking command, and then determines that the unlocking result of the vehicle is a successful unlocking; similarly, when the electronic device identifies that there is no mutation window at the first power-off time point T3, it determines that the vehicle door cannot respond normally to the unlocking command, and then determines that the unlocking result of the vehicle is a failed unlocking.
[0103] In this way, the electronic equipment can simulate the complex working conditions of "main power interruption + backup power supply takeover" in a real accident, thereby further verifying the reliability of the vehicle's unlocking function.
[0104] In this embodiment, the electronic device first accesses a test bench with which it is communicatively connected, thereby determining the vehicle model parameters of a test vehicle mounted on the test bench, the collision scenario to be simulated, and the collision road to be simulated. Based on the vehicle model parameters, the collision scenario, and the collision road, the electronic device then determines target impact parameters for controlling the test bench to vibrate and simulate a real-world collision environment. The electronic device controls the test bench to operate according to the target impact parameters to execute corresponding target actions, thereby simulating the actual collision scenario. The electronic device then determines a preset first signal injection time point and controls the test vehicle to enter a collision mode at the first signal injection time point. Finally, the electronic device determines a preset redundant delay and calculates a first power-off time point based on the redundant delay and the first response time point. Upon reaching the first power-off time point, the electronic device controls the low-voltage power supply of the test vehicle via its configured communication device to disconnect the test vehicle, causing the test vehicle to enter a main power-off state at the preset power-off time point. The electronic device then detects the test vehicle to determine whether the vehicle unlocking result of the test vehicle in the main power-off state is successful or unsuccessful.
[0105] In this way, the present application solves the technical problem of high testing cost of vehicle unlocking function in related technologies. That is, the present application fixes the test vehicle on the test bench, controls the test bench to operate according to impact parameters to simulate the collision scenario, and cuts off the main power supply when the test vehicle is in collision mode. In this way, the present application detects whether the test vehicle can normally trigger the unlocking operation in the collision scenario, and detects whether the test vehicle can normally trigger the unlocking operation when the main power supply is cut off. Then, without causing actual damage to the test vehicle, the reliability of the unlocking function in extreme environments is verified, thereby obtaining accurate test results and enabling a single test vehicle to test multiple extreme environments, greatly reducing the testing cost.
[0106] Based on the first embodiment of the present application, a second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those of the above embodiments can be referred to above and will not be described in detail. On this basis, after the above step S20, the vehicle unlocking function testing method of the present application may further include steps A10 to A30:
[0107] Step A10: obtaining a first test data stream of the test vehicle and searching for a preset collision mode data identifier;
[0108] Step A20: determining a preset time adjustment parameter when it is detected that the first test data stream does not include the collision mode data identifier;
[0109] Step A30: updating the first signal injection time point to a second signal injection time point according to the time adjustment parameter, wherein the second signal injection time point is earlier than the first signal injection time point.
[0110] It should be noted that the test data stream is a sequence of messages obtained by the electronic device through the CAN bus on the test vehicle, which includes key information nodes such as controller response information and power supply turntable and corresponding timestamp information. It can be understood that the timestamp starting point of the first test data stream is the time point when the test bench starts to operate according to the above-mentioned target impact parameters, and the timestamp end point of the first test data stream is the preset first response time point T2. It can be understood that the first response time point T2 should be later than the above-mentioned first signal injection time point T1.
[0111] In this embodiment, after controlling the test vehicle to enter the collision mode, the electronic device can also read and access the data bus in the test vehicle to obtain a first test data stream. At the same time, the electronic device reads the storage module configured by itself to obtain a preset collision mode data identifier that can indicate that the test vehicle has entered the collision mode. Afterwards, the electronic device filters the first test data stream according to the collision mode data identifier, and thus determines a preset time adjustment parameter when it is detected that the first test data stream contains test data carrying the collision mode data identifier. Finally, the electronic device modifies the above-mentioned first signal injection time point based on the time adjustment parameter to adjust the first signal injection time point to an earlier second injection time point.
[0112] Exemplarily, for example, after controlling the test vehicle to enter the collision mode, the electronic device accesses the CAN bus in the test vehicle at a preset first response time point T2 to obtain the first CAN bus data stream generated between the start of the test bench executing the target action and the first response time point. At the same time, the electronic device reads the above-mentioned storage module to obtain the preset mode switching data ID that can characterize the test vehicle entering the collision mode. Afterwards, the electronic device filters the first CAN bus data stream based on the preset mode switching data ID, and thus, when it detects that the first CAN data bus data stream does not contain CAN data carrying the preset mode switching data ID, it determines that the test vehicle has switched to the collision mode due to information transmission delay and cannot perform the unlocking operation in the collision mode. The electronic device then calculates and obtains the preset time adjustment parameter, and adjusts the first injection time point T1 according to the time adjustment parameter, and advances the first injection time point T1 to the second injection time point T1_new.
[0113] In addition, in this embodiment and another embodiment, in addition to detecting whether the test vehicle enters the collision mode through the first CAN bus data stream, the electronic device can also collect the current signal generated in the test vehicle through the sensor configured by itself, and detect whether there is a sudden change in the current signal at the first injection time point T1. Then, when it is detected that the current signal does not undergo a sudden change at the first injection time point T1, it is determined that the test vehicle has switched to the collision mode due to information transmission delay and cannot perform the unlocking operation in the collision mode. The electronic device then adjusts the first injection time point T1 according to the above-mentioned time adjustment parameters, and advances the first injection time point T1 to the second injection time point T1_new.
[0114] In this way, the electronic device can enable the test vehicle to enter the crash mode earlier, thereby avoiding the situation where the test vehicle cannot enter the crash mode due to signal transmission delay.
[0115] Based on the first and / or second embodiments of the present application, a third embodiment of the present application is proposed. In the third embodiment of the present application, the same or similar contents as those of the above embodiments can be referred to above and will not be described in detail. On this basis, after the above step S30, the vehicle unlocking function testing method of the present application may further include steps B10 to B20:
[0116] Step B10: When it is detected that the test vehicle fails to be unlocked, a second test data stream of the test vehicle is obtained, and a preset response unlocking data identifier is searched;
[0117] Step B20: when it is detected that the second test data stream does not include the unlock response data identifier, the first power-off time point is updated to a second power-off time point, wherein the second power-off time point is later than the first power-off time point.
[0118] It should be noted that the timestamp starting point of the second test data stream is the time point when the test bench starts to operate according to the above-mentioned target impact parameters, and the timestamp end point of the second test data stream is later than the above-mentioned first power-off time point T3. This application does not impose any restrictions on the timestamp end point of the second test data stream.
[0119] In this embodiment, after determining the vehicle unlocking result, the electronic device further accesses the data bus configured in the test vehicle to obtain a second test data stream generated by the test vehicle during the dynamic test process. At the same time, the electronic device reads the above-mentioned storage module to obtain a preset response unlocking data identifier that can indicate that the test vehicle performs an unlocking operation. Afterwards, the electronic device analyzes the second test data stream to identify whether the second test data stream contains test data carrying the response unlocking data identifier. When the electronic device detects that the test data in the second test data stream does not carry the response unlocking data identifier, the electronic device postpones the first power-off time point to a later second power-off time point based on the preset.
[0120] Exemplarily, for example, after determining the vehicle unlocking result, the electronic device further accesses the CAN bus configured in the test vehicle at a preset second response time point T4 to obtain a second CAN bus data stream generated between the start of the test bench executing the target action and the second detection time point. At the same time, the electronic device reads the above-mentioned storage module to obtain a response unlocking data ID that can characterize the test vehicle performing the unlocking operation. Afterwards, the electronic device filters the second CAN bus data stream based on the response unlocking data ID, and thus, when it is detected that the second CAN data bus data stream does not contain CAN data carrying the response unlocking data ID, it is determined that the test vehicle did not perform the unlocking operation at the first power-off time point T3 at this time, that is, the electronic device determines that the main power supply is cut off too early, and thus it is impossible to determine whether the unlocking operation can be triggered in the case of power outage. At this time, the electronic device updates the first power-off time point T3 to delay the first power-off time point T3 to the second power-off time point T5.
[0121] In addition, in this embodiment and another embodiment, in addition to determining whether the test vehicle responds to the unlocking operation through the second CAN bus data stream, the electronic device can also collect the motor current signal of the door lock motor in the test vehicle for controlling the door handle through the sensor configured by itself. Afterwards, the electronic device determines whether there is a sudden change in the motor current information at the first power-off time point T3. If the electronic device detects that there is no sudden change in the motor current information at the first power-off time point T3, it determines that the test vehicle did not perform the unlocking operation at the first power-off time point T3, that is, the electronic device determines that the main power supply is cut off too early, and thus cannot determine whether the unlocking operation can be triggered in the case of a power outage. At this time, the electronic device updates the first power-off time point T3 to delay the first power-off time point T3 to the second power-off time point T5.
[0122] In this way, the electronic device can determine whether the vehicle can trigger the unlocking operation when the power is off, and postpone the first power-off duration to ensure the accuracy of the detection result.
[0123] In addition, in this embodiment and another embodiment, the electronic device can also simultaneously obtain the third CAN bus data stream and motor current information in the test vehicle, so that when it is detected that the third CAN bus data stream contains CAN data of the response unlocking data ID that can characterize the test vehicle's response to the unlocking operation, the electronic device can determine the actual unlocking time point corresponding to the CAN data stream and the mutation time window corresponding to the motor current information, and compare the actual unlocking time point with the mutation time window, and then determine that the unlocking result of the vehicle is successful when the comparison result is that the actual unlocking time point and the actual mutation time point with the mutation window are consistent; in this way, the electronic device can obtain more accurate detection results by using CAN data and current signals for dual detection.
[0124] In a feasible implementation manner, the step of “updating the first power-off time point to the second power-off time point” in the above step B20 may specifically include steps B201 to B203:
[0125] Step B201: determining the mechanism unlocking stage corresponding to the test vehicle according to the door lock motor current;
[0126] Step B202: determining each unexecuted unlocking stage based on the mechanism unlocking stage, and determining the unlocking duration corresponding to each of the unexecuted unlocking stages;
[0127] Step B203: determining a remaining unlocking time based on each of the unlocking time periods, and updating the first power-off time point to a second power-off time point based on the remaining unlocking time period.
[0128] In this embodiment, when the electronic device determines that the test vehicle has not performed the unlocking operation at the first power-off time point, it first determines the mechanism unlocking stage of the test vehicle at the first power-off time point based on the test data stream. Thereafter, the electronic device determines the various unexecuted unlocking stages that the door handle needs to execute to complete the unlocking operation based on the mechanism unlocking stage, and determines the unlocking duration corresponding to each unexecuted unlocking stage. Finally, the electronic device adds up the various unlocking durations to obtain the remaining unlocking duration required to complete the door unlocking, and delays the first power-off time point based on the remaining unlocking duration to obtain the second power-off time point.
[0129] Exemplarily, for example, when the electronic device detects that there is no sudden change in the motor current information at the first power-off time point T3, the electronic device accesses the CAN test data to determine the mechanism unlocking stage of the hidden door handle at the first power-off time point T3. Afterwards, the electronic device reads the storage module to determine all the unlocking stages required for the hidden door handle based on the vehicle model parameters of the test vehicle, and determines the unexecuted unlocking stages that the hidden door handle has not yet executed based on the current mechanism unlocking stage and all the unlocking stages, and determines the unlocking time required for each unexecuted unlocking stage. Finally, the electronic device adds up the unlocking time to determine the remaining unlocking time required for the hidden door handle to complete the unlocking operation. The electronic device updates the first power-off time point T2 according to the remaining unlocking time to delay the power-off to the later second power-off time point T5.
[0130] In this way, the electronic device can determine whether the vehicle can trigger the unlocking operation when the power is off, and postpone the first power-off duration to ensure the accuracy of the detection result.
[0131] The present application also provides a vehicle unlocking function testing device, the device comprising:
[0132] a test bench control module 10 for determining target impact parameters so that the test bench on which the test vehicle is fixed performs a target action based on the target impact parameters;
[0133] A collision simulation module 20 is used to control the test vehicle to enter a collision mode;
[0134] The function detection module 30 is used to control the test vehicle to enter a main power cut-off state according to a preset first power-off time point, and detect a vehicle unlocking result of the test vehicle in the main power cut-off state.
[0135] In one embodiment, the function detection module 30 is further configured to:
[0136] Image data of the test vehicle is collected and recognized, and when the door of the test vehicle is recognized to be in an open state, it is determined that the test vehicle is unlocked successfully; when the door of the test vehicle is recognized to be in a closed state, it is determined that the test vehicle is unlocked unsuccessfully.
[0137] In one embodiment, the function detection module 30 is further configured to:
[0138] Detecting the door lock motor current corresponding to the test vehicle;
[0139] Determining that the test vehicle is successfully unlocked when detecting that the door lock motor current generates a first mutation window at the first power-off time point;
[0140] When it is detected that the door lock motor current does not generate a first mutation window at the first power-off time point, it is determined that the test vehicle has failed to be unlocked.
[0141] In one embodiment, the collision simulation module 20 is further configured to:
[0142] A preset simulated collision message is injected into the test vehicle at a preset first signal injection time point, so that the test vehicle enters a collision mode based on the simulated collision message.
[0143] In one embodiment, the collision simulation module 20 is further configured to:
[0144] Acquire a first test data stream of the test vehicle and search for a preset collision mode data identifier;
[0145] determining a preset time adjustment parameter when detecting that the first test data stream does not include the collision mode data identifier;
[0146] The first signal injection time point is updated to a second signal injection time point according to the time adjustment parameter, wherein the second signal injection time point is earlier than the first signal injection time point.
[0147] In one embodiment, the function detection module 30 is further configured to:
[0148] When detecting that the test vehicle fails to be unlocked, obtaining a second test data stream of the test vehicle and searching for a preset response unlocking data identifier;
[0149] When it is detected that the second test data stream does not include the response unlocking data identifier, the first power-off time point is updated to a second power-off time point, wherein the second power-off time point is later than the first power-off time point.
[0150] In one embodiment, the function detection module 30 is further configured to:
[0151] Determining the mechanism unlocking stage corresponding to the test vehicle according to the door lock motor current;
[0152] Determining each unexecuted unlocking stage based on the mechanism unlocking stage, and determining the unlocking duration corresponding to each of the unexecuted unlocking stages;
[0153] The remaining unlocking time is determined according to each of the unlocking time periods, and the first power-off time point is updated to the second power-off time point based on the remaining unlocking time period.
[0154] In one embodiment, the test bench control module 10 is further configured to:
[0155] Determine preset collision scenario parameters, collision road parameters, and vehicle model parameters;
[0156] A preset impact parameter mapping relationship is queried based on the collision scene parameters, the collision road parameters, and the vehicle type parameters to determine a target impact parameter.
[0157] The vehicle unlocking function testing device provided in this application utilizes the vehicle unlocking function testing method described in the aforementioned embodiment, thereby resolving the high cost of testing the vehicle unlocking function in related technologies. Compared to the prior art, the vehicle unlocking function testing device provided in this application achieves the same beneficial effects as the vehicle unlocking function testing method described in the aforementioned embodiment. Other technical features of the vehicle unlocking function testing device are the same as those disclosed in the aforementioned embodiment and are not further detailed here.
[0158] The present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the test method for the vehicle unlocking function in the above-mentioned embodiment one.
[0159] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include, but is not limited to, an electronic device capable of communicating with a preset test bench and internally configured with a PLC (Programmable Logic Controller), or a mobile terminal, data storage control terminal, PC (Personal Computer), or other terminal connected to an electronic control unit of the electronic device. Figure 5 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0160] like Figure 5As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory 1002 or programs loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the electronic device. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems may be connected to the input / output interface 1006: an input device 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 1003 including, for example, a magnetic tape or hard disk; and a communication device 1009. The communication device 1009 may allow the electronic device to communicate with other devices wirelessly or wired to exchange data. Although the figures show electronic devices with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0161] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are performed.
[0162] The electronic device provided in this application utilizes the vehicle unlocking function testing method described in the aforementioned embodiment, thereby resolving the high cost of testing the vehicle unlocking function in related technologies. Compared to the prior art, the electronic device provided in this application achieves the same beneficial effects as the vehicle unlocking function testing method described in the aforementioned embodiment. Other technical features of this electronic device are the same as those disclosed in the aforementioned embodiment and are not further detailed here.
[0163] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0164] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0165] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, the computer-readable program instructions being used to execute the vehicle unlocking function testing method in the above-mentioned embodiment.
[0166] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0167] The computer-readable storage medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0168] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: determines a target impact parameter so that a test bench with a test vehicle fixed thereon performs a target action based on the target impact parameter; controls the test vehicle to enter a collision mode; controls the test vehicle to enter a main power cut-off state according to a preset first power-off time point, and detects a vehicle unlocking result of the test vehicle in the main power cut-off state.
[0169] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0170] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0171] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0172] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned vehicle unlocking function testing method. This computer-readable storage medium can address the high cost of testing vehicle unlocking functions in related technologies. Compared to existing technologies, the computer-readable storage medium provided in this application offers the same benefits as the vehicle unlocking function testing method provided in the aforementioned embodiments, and will not be further elaborated upon here.
[0173] The present application also provides a computer program product, including a computer program, which implements the steps of the vehicle unlocking function testing method as described above when the computer program is executed by a processor.
[0174] The computer program product provided in this application can address the high cost of testing the vehicle unlocking function in related technologies. Compared to the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the vehicle unlocking function testing method provided in the above-mentioned embodiments, and will not be further elaborated here.
[0175] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for testing a vehicle unlocking function, characterized in that: The method comprises: Determining target impact parameters so that a test bench with the test vehicle fixed thereon performs a target action based on the target impact parameters, vibrating to simulate an actual collision scenario; controlling the test vehicle to enter a collision mode; Controlling the test vehicle to enter a main power cut-off state according to a preset first power-off time point, and detecting a vehicle unlocking result of the test vehicle in the main power cut-off state; The controlling the test vehicle to enter the collision mode specifically includes: injecting a preset simulated collision message into the test vehicle at a preset first signal injection time point, so that the test vehicle enters the collision mode based on the simulated collision message.
2. The vehicle unlocking function testing method according to claim 1, characterized in that: Detecting a vehicle unlocking result of the test vehicle in the main power cut-off state specifically includes: Image data of the test vehicle is collected and recognized, and when the door of the test vehicle is recognized to be in an open state, it is determined that the test vehicle is unlocked successfully; when the door of the test vehicle is recognized to be in a closed state, it is determined that the test vehicle is unlocked unsuccessfully.
3. The vehicle unlocking function testing method according to any one of claims 1 or 2, characterized in that: Detecting a vehicle unlocking result of the test vehicle in the main power cut-off state specifically includes: Detecting the door lock motor current corresponding to the test vehicle; Determining that the test vehicle is successfully unlocked when detecting that the door lock motor current generates a first mutation window at the first power-off time point; When it is detected that the door lock motor current does not generate a first mutation window at the first power-off time point, it is determined that the test vehicle has failed to be unlocked.
4. The method for testing the vehicle unlocking function according to claim 1, wherein: After the step of controlling the test vehicle to enter the crash mode, the method further includes: Acquire a first test data stream of the test vehicle and search for a preset collision mode data identifier; determining a preset time adjustment parameter when detecting that the first test data stream does not include the collision mode data identifier; The first signal injection time point is updated to a second signal injection time point according to the time adjustment parameter, wherein the second signal injection time point is earlier than the first signal injection time point.
5. The vehicle unlocking function testing method according to claim 1, wherein: After the step of detecting a vehicle unlocking result of the test vehicle in the main power cut-off state, the method further includes: When detecting that the test vehicle fails to be unlocked, obtaining a second test data stream of the test vehicle and searching for a preset response unlocking data identifier; When it is detected that the second test data stream does not include the response unlocking data identifier, the first power-off time point is updated to a second power-off time point, wherein the second power-off time point is later than the first power-off time point.
6. The method for testing the vehicle unlocking function according to claim 5, wherein: The step of updating the first power-off time point to the second power-off time point includes: Determining the mechanism unlocking stage corresponding to the test vehicle according to the door lock motor current; Determining each unexecuted unlocking stage based on the mechanism unlocking stage, and determining the unlocking duration corresponding to each of the unexecuted unlocking stages; The remaining unlocking time is determined according to each of the unlocking time periods, and the first power-off time point is updated to the second power-off time point based on the remaining unlocking time period.
7. The vehicle unlocking function testing method according to claim 1, wherein: The step of determining the target impact parameter includes: Determine preset collision scenario parameters, collision road parameters, and vehicle model parameters; A preset impact parameter mapping relationship is queried based on the collision scene parameters, the collision road parameters, and the vehicle type parameters to determine a target impact parameter.
8. An electronic device, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle unlocking function testing method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle unlocking function testing method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method for testing the vehicle unlocking function according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Vehicle collision simulation test method and device
CN109001576A
Collision simulation test method and device, electronic equipment and storage medium
CN119738116A