Vehicle door control method, device, equipment and medium
By acquiring detection data from the vehicle body area, dynamically adjusting the detection threshold and time window, and combining the attitude angle to determine the event type, precise control of the vehicle door is achieved. This solves the problem of the limited functionality of existing vehicle control systems and improves the vehicle's intelligence and safety in handling complex scenarios.
Patent Information
- Application Number
- CN202511209565.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-27
- Publication Date
- 2025-10-17
AI Technical Summary
Existing vehicle control systems are unable to flexibly call on different vehicle actuators to perform precise and differentiated control actions based on specific event types, resulting in insufficient intelligence and overall efficiency in dealing with complex scenarios.
By acquiring detection data from the vehicle body area, the system determines the event type based on the detection data and detection thresholds, including collision events, knocking events, and squeezing events. It then dynamically adjusts the detection thresholds and combines them with time windows and attitude angles to achieve precise control of the vehicle doors.
It significantly improves the vehicle's intelligence level and overall efficiency in dealing with complex scenarios, enhances operational accuracy and safety, and avoids problems such as misoperation and accidental triggering.
Smart Images

Figure CN120798086A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle control, in particular to a vehicle door control method, device, equipment and medium. BACKGROUND
[0002] The existing vehicle control system usually only designs a response mechanism (such as a parking radar anti-collision, a theft sensor alarm) for a specific vehicle body area or a preset event type, the function is single and fragmented, and the vehicle cannot flexibly call different execution mechanisms to perform precise and differentiated control actions according to the specific event type, resulting in insufficient intelligent level and comprehensive efficiency in dealing with complex scenes. SUMMARY
[0003] In view of the above-mentioned shortcomings of the prior art, the present application provides a vehicle door control method, device, equipment and medium to solve at least one of the defects in the prior art.
[0004] The present application provides a vehicle door control method, which comprises: obtaining detection data of a vehicle body area; judging an event type based on the detection data and a detection threshold value; the event type includes a collision event, a knocking event, and a squeezing event, and the knocking event includes a single-click event, a double-click event, and a multi-click event; controlling the opening or closing of the vehicle door according to the event type.
[0005] In an embodiment of the present application, the detection threshold value includes a knocking trigger threshold value, a collision trigger threshold value, and a knocking convergence threshold value, and the judging of the event type based on the detection data comprises: if the detection data is greater than the knocking trigger threshold value and less than the collision trigger threshold value, and finally converges below the knocking convergence threshold value, then the event type is determined to be a single-click event; if the interval between two single-click events is within a first time interval, then the event type is determined to be a double-click event; if there are continuous multiple single-clicks, and the interval between the adjacent two single-clicks is within the first time interval, then the event type is determined to be a multi-click event; if the detection data exceeds the collision trigger threshold value, then the event type is determined to be a collision event; if the detection data is greater than the knocking trigger threshold value within a first time window, and does not drop below the knocking trigger threshold value within a second time window, then the event type is determined to be a squeezing event.
[0006] In an embodiment of the present application, the determination method of the detection threshold value comprises: real-time calculation of the attitude angle of the vehicle, the attitude angle including a pitch angle θ and a roll angle φ; A preset detection threshold is matched according to an angle interval of the pitch angle θ and the roll angle φ.
[0007] In one embodiment of the present invention, after acquiring the detection data of the vehicle body area, the method further includes: preprocessing the detection data, and the preprocessing includes: Initialized size is N The sliding window, N is the window length threshold; Get the latest N Detection data at each sampling moment; When new detection data is input, the average value of the existing data in the sliding window is calculated; If the absolute value of the difference between the new detection data and the average value of the existing data is greater than the preset filtering threshold, the new detection data is determined to be interference data and the window data is kept; If the absolute value of the difference between the new detection data and the average value of the existing data is less than or equal to the preset filtering threshold, the new detection data is determined to be valid data, the new detection data is added to the window and the earliest detection data in the window is removed to update the window data; In one embodiment of the present invention, if the absolute value of the difference between K consecutive detection data and the average value of existing data in the corresponding sliding window is greater than a preset filtering threshold, the K consecutive detection data are determined to be valid data.
[0008] In one embodiment of the present invention, if the event type is a tap event, the window data before the tap event occurs remains unchanged; If the event type is a collision event, the window data of the current sliding window is cleared, and the window data is rebuilt from the next sampling period.
[0009] In one embodiment of the present invention, the method further includes: Monitor the attitude angle within M consecutive sampling periods, where M is the preset counting threshold; When the posture angles collected M times in succession all jump to the angle range, the detection threshold is updated.
[0010] The present invention provides a vehicle door control device, comprising: A data acquisition module is used to obtain detection data of the vehicle body area; An event determination module, configured to determine an event type based on the detection data and a detection threshold; the event types include collision events, tap events, and squeeze events, and the tap events include single-click events, double-click events, and multi-tap events; The vehicle door control module is used to control the opening or closing of the vehicle door according to the event type.
[0011] The application provides a vehicle door control device, comprising: one or more processors; and one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the device to perform the vehicle door control method.
[0012] The application provides a machine-readable medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the vehicle door control method.
[0013] The application has the following beneficial effects: The application provides a vehicle door control method, comprising: obtaining detection data of a vehicle body region; judging an event type based on the detection data and a detection threshold; the event type comprises a collision event, a knocking event and a squeezing event, the knocking event comprises a single-click event, a double-click event and a multi-click event; and controlling a vehicle door to open or close according to the event type. The application intelligently and finely judges diversified event types (such as collision, knocking and squeezing and their subtypes) based on a detection threshold and a signal mode (such as single-click, double-click and multi-click), and accurately and differentially calls a corresponding execution mechanism of a vehicle to open or close the vehicle door according to a specific event type (such as single-click to unlock the vehicle door, double-click to open a charging port and collision to trigger emergency braking), so that the intelligent level, comprehensive performance and user experience of the vehicle in response to complex scenes are significantly improved. BRIEF DESCRIPTION OF DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and serve to explain the principles of the application. It is readily apparent to one skilled in the art that the following figures are merely some embodiments of the application, and other figures can be obtained from these figures without creative labor.
[0015] In the drawings: Figure 1 A flow chart of a vehicle door control method according to an embodiment of the application; Figure 2 A schematic diagram of corresponding acceleration value changes in a single-click event according to an embodiment of the application; Figure 3 A schematic diagram of corresponding acceleration value changes in a multi-click event according to an embodiment of the application; Figure 4 A schematic diagram of corresponding acceleration value changes in a squeezing event according to an embodiment of the application; Figure 5 A flow chart of preprocessing according to an embodiment of the application; Figure 6 A schematic diagram of a vehicle door control device according to an embodiment of the application; Figure 7 A structural diagram of a computer system suitable for implementing the memory of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0016] The present application can be further implemented or applied by other different embodiments, and the details in the specification can be modified or changed based on different views and applications without departing from the spirit of the present application. The following embodiments and features in the embodiments can be combined with each other without conflict.
[0017] It should be noted that the drawings provided in the following embodiments only schematically illustrate the basic concept of the present application, and the drawings only show the components related to the present application, not the number, shape and size of the components when actually implemented. The shape, number and ratio of each component can be randomly changed when actually implemented, and the layout form of the components can be more complex.
[0018] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application, however, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details, and in other embodiments, the known structures and devices are shown in the form of block diagrams instead of details to avoid making the embodiments of the present application difficult to understand.
[0019] Please refer to Figure 1 , Figure 1 A flowchart of a vehicle door control method according to an embodiment of the present application. In Figure 1 , the vehicle door control method comprises: Step S110, acquiring detection data of a vehicle body region; The detection data refers to physical quantity data reflecting mechanical vibration of the vehicle body, which can be realized by using a three-axis acceleration sensor to collect, and vibration characteristics are captured by measuring acceleration changes in three axial directions of the vehicle body. The vehicle body region refers to the installation region of the sensor for collecting detection data, such as the region where the three-axis acceleration sensor is installed. The three-axis acceleration sensor can be installed in the vehicle door region, the front hood region, etc.
[0020] Step S120, judging an event type based on the detection data and a detection threshold; the event type includes a collision event, a knocking event, and a squeezing event, and the knocking event includes a single-click event, a double-click event, and a multi-click event; The event type refers to an operation instruction category classified according to signal characteristics, and can be implemented by setting different trigger thresholds and time windows, for example, short vibration is classified as a knock event, and high-intensity vibration is identified as a collision event.
[0021] In step S130, the vehicle door is controlled to open or close according to the event type.
[0022] Specifically, the system continuously collects vehicle body vibration signals and stores them in a buffer, and starts an event analysis program when the signal amplitude is detected to exceed a basic threshold. The signal waveform can be segmented and processed by a sliding time window, and the signal feature points can be identified by combining a peak detection algorithm. For the signal in each time window, the duration, maximum amplitude and decay rate are calculated synchronously, and these parameters are matched with a plurality of preset event determination conditions. When the condition combination of a specific event is met, the system generates a corresponding control instruction and transmits it to the vehicle door actuator to control the vehicle door to open or close. For example, when the event type is a single-click event, the vehicle door is controlled to open; when the event type is a double-click event, the vehicle door is controlled to close; when the event type is a multi-click event, the vehicle window is controlled to drop, and the like.
[0023] The present application realizes accurate identification and classification of external events of the vehicle body, ensures that the vehicle control system can correctly respond to different operation instructions, effectively avoids the problem of misoperation caused by signal misjudgment, improves the accuracy and safety of human-vehicle interaction, and provides a reliable technical foundation for the expansion of diversified control functions.
[0024] In an embodiment, the detection threshold includes a knock trigger threshold, a collision trigger threshold, and a knock convergence threshold, and the event type is determined based on the detection data, including: If the detection data is greater than the knock trigger threshold, less than the collision trigger threshold, and finally converges below the knock convergence threshold, the event type is determined to be a single-click event. The knock trigger threshold refers to the minimum detection data amplitude that triggers a knock event, for example, the detection data range generated by a human finger knocking the surface of the vehicle body can be measured by experiment. The collision trigger threshold refers to the minimum detection data amplitude that triggers a collision event, for example, it is set to more than 10 times the knock trigger threshold to distinguish between violent collisions. The knock convergence threshold refers to the determination boundary of signal regression to a steady state.
[0025] Please refer to Figure 2 , Figure 2 The corresponding acceleration value change diagram for a single-click event of an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the horizontal axis represents time, and the vertical axis represents acceleration value. The acceleration value of the vehicle body is detected by the sensor, and the detection data is shown as a waveform. When the vehicle body is not subjected to any external force, the acceleration value is zero. When a single-click event occurs, the acceleration value increases rapidly and then decreases rapidly. When the acceleration value is greater than the knock trigger threshold and less than the collision trigger threshold, the single-click event is determined. Figure 2As shown in the figure, using acceleration as detection data as an example, a tap event occurs at time T1. At time T2, the acceleration data rises above the tap trigger threshold but does not exceed the collision trigger threshold. At time T3, the accelerometer collects this acceleration data and notifies the MCU. As the tap event ends, the acceleration value gradually converges to the static state. At time T4, the collected acceleration value begins to fall below the tap trigger threshold and eventually decreases to the static state.
[0026] If the interval between the two single-click events is within the first time interval, determining the event type as a double-click event; The first time interval refers to the time interval between two effective tapping actions. For example, the time interval may be 50-500 milliseconds, for example, set to 300 milliseconds.
[0027] If there are multiple consecutive clicks, and the interval between two adjacent clicks is within the first time interval, then the event type is determined to be a multi-click event; See also Figure 3 , Figure 3 This is a schematic diagram of the acceleration value changes corresponding to multiple tap events according to an embodiment of the present invention. A double-click event consists of two single-click events. Figure 3 Among them, T1-T3 is the collision time of the first tap event. During this time window, the acceleration value will exceed the tap threshold and gradually converge to a static state. T2-T4 is the silent time. When a tap event is detected, this time window is started. During this window, no more tap events will be generated. T4-T5 is the delay window for two tap events. The second tap event needs to be generated within the window time. T8-T9 is the delay window for the second tap event. If a tap event is detected in this window, it is considered that multiple tap events have occurred, not a double-click unlock event.
[0028] If the detection data exceeds the collision trigger threshold, the event type is determined to be a collision event; If the detection data is greater than the tap trigger threshold within the first time window and does not fall below the tap trigger threshold within the second time window, the event type is determined to be a squeeze event.
[0029] See also Figure 4 , Figure 4 FIG. 1 is a schematic diagram of the acceleration value change corresponding to a squeeze event according to an embodiment of the present invention. Figure 4 As shown in the figure, a press event occurs at time T1, and the acceleration data is greater than the tap threshold at time T2. However, the values from T2 to T4 (the first time window) all exceed the tap threshold, and do not fall below the tap threshold within the set impact window (the second time window) (the T2-T3 time period). Therefore, this event is not a tap event, but an object squeezing.
[0030] Specifically, when the acceleration sensor collects vibration data of the vehicle body area, the system first monitors whether the data exceeds the knock trigger threshold but is below the collision trigger threshold. If the data decays below the knock convergence threshold at the end of the window, it is determined to be a valid single click. When an event that meets the single click condition is detected again within a set time period (e.g., 50-500 milliseconds), it is upgraded to a double click event. For more than three consecutive single click events with intervals within the set time period, it is classified as a multi-click event. When the detected data instantaneously exceeds the collision trigger threshold, it is directly determined to be a collision event. For the judgment of the squeezing event, the system detects data that continuously exceeds the knock trigger threshold in the first time window, and confirms that the data does not fall below the threshold in the subsequent second time window, thereby distinguishing between transient knocking and continuous squeezing action.
[0031] The present application can accurately distinguish between various operation scenarios by introducing a time window layered judgment mechanism combined with dynamic convergence conditions, and realizes multi-dimensional accurate identification of vehicle body touch events. At the same time, through the time window and multi-threshold collaborative judgment mechanism, it not only avoids misjudging the squeezing operation as continuous knocking, but also prevents false collision response caused by severe vibration interference, significantly improving the operation accuracy and safety of the vehicle control system.
[0032] In an embodiment, the method for determining the detection threshold comprises: Real-time calculation of the attitude angle of the vehicle, including: pitch angle θ and roll angle φ; According to the angle interval of the pitch angle θ and the roll angle φ, match the preset detection threshold.
[0033] Wherein, the pitch angle θ refers to the inclination angle in the front-rear direction of the vehicle, which can be specifically realized by measuring the included angle between the vehicle longitudinal axis and the horizontal plane with an accelerometer or gyroscope sensor, and is used to represent that the vehicle is in a climbing, descending or horizontal state. The roll angle φ refers to the inclination angle in the left-right direction of the vehicle, which can be specifically realized by measuring the included angle between the lateral axis and the horizontal plane with a three-axis acceleration sensor, and is used to represent that the vehicle is in a roll or horizontal state. Before the vehicle is delivered, a large amount of data is calibrated and tested to test the collision trigger threshold in different pitch angle intervals, and then the calculated threshold is written into the software's power-down non-loss memory according to different interval numbers. Each time the judgment is made, different preset values are matched according to the calculated interval.
[0034] The pitch angle θ and the roll angle φ can be calculated as follows: When the object is stationary or moving slowly, the main output of the accelerometer is the gravity component, which can be used to calculate the inclination angle.
[0035] When the coordinate system of the three-axis acceleration sensor is aligned with the vehicle coordinate system: The X-axis represents the vehicle's forward direction, the Y-axis represents the left direction, and the Z-axis represents vertical upwards; Pitch angle: tilt around the Y axis (forward and backward):
[0036] Roll angle: tilt around the X-axis (left and right tilt):
[0037] Among them, a x represents the acceleration component along the X-axis, a y represents the acceleration component along the Y axis, a z Indicates the acceleration component along the Z-axis.
[0038] Angle interval refers to dividing the pitch angle and roll angle into multiple continuous or discrete value ranges. For example, the pitch angle θ is divided into ( θ ,-30°), (-30°,-5°), (-5°,5°), (5°,30°), (30°, θ ) and other intervals, the roll angle φ is divided into ( θ ,-30°), (-30°,-5°), (-5°,5°), (5°,30°), (30°, θ ) intervals, each interval corresponds to a different trigger threshold combination.
[0039] Specifically, while the vehicle is in motion, onboard sensors continuously collect pitch and roll angle data. When the pitch angle is within the range of (-5°, 5°) and the roll angle is within the range of (-5°, 5°), the basic tap trigger threshold and collision trigger threshold are used. If the pitch angle is detected to increase to the range of (5°, 30°), the first tap trigger threshold corresponding to the (5°, 30°) range is used. The increase in pitch angle indicates that the vehicle is climbing a slope, and the tap trigger threshold is increased slightly to filter out interference signals caused by body vibration. When the roll angle exceeds 5°, it is within the range of (5°, 30°), and the collision trigger threshold uses the first collision trigger threshold corresponding to the (5°, 30°) range. The increase in roll angle indicates a risk of vehicle rollover, and the collision trigger threshold is lowered to increase sensitivity to lateral impacts. Due to the lowered collision trigger threshold, impact measurements that were previously insufficient to activate the safety system will activate after the roll angle exceeds a certain angle threshold. The tap convergence threshold is dynamically adjusted according to the trigger threshold corresponding to the current posture. For example, when the pitch angle exceeds 10°, the convergence judgment time window is extended to ensure the complete characteristic waveform of the tap event.
[0040] The application eliminates the interference of the vehicle body posture on the detection accuracy through dynamic matching of the posture angle and the threshold value, enhances the event recognition robustness in different driving scenes, can automatically optimize the event detection threshold value according to the real-time vehicle posture, and effectively solves the problems of false triggering or missed detection caused by the vehicle body inclination.
[0041] Please refer to Figure 5 , Figure 5 The flowchart of the preprocessing of an embodiment of the application is shown in FIG. 1. Figure 5 As shown in FIG. 1, after obtaining the detection data of the vehicle body region, the method further comprises: preprocessing the detection data, and the preprocessing comprises: Step S510, initializing a sliding window with a size of N , wherein N is an integer value, N is a window length threshold value; The sliding window refers to a cache structure for storing continuous sampling data, and can be realized by using a ring queue or an array structure, and the window length refers to the number of sampling values in the sliding window. N N can be, for example, 3, for balancing the real-time performance and the data integrity.
[0042] Step S520, obtaining the detection data of the latest N sampling time; Step S530, calculating the average value of the existing data in the sliding window when new detection data is input; Step S540, if the absolute value of the difference between the new detection data and the average value of the existing data is greater than a preset filtering threshold value, determining that the new detection data is interference data, and maintaining the window data. The preset filtering threshold value refers to a threshold value for judging the validity of the data, which can be dynamically calculated according to the fluctuation of the current data, or can be set by using statistical variance or empirical value, for example, set to 2 times the standard deviation of the current window data, for distinguishing the sudden interference from the real event signal.
[0043] Step S550, if the absolute value of the difference between the new detection data and the average value of the existing data is less than or equal to the preset filtering threshold value, determining that the new detection data is valid data, adding the new detection data to the window and removing the earliest detection data in the window to update the window data.
[0044] Specifically, in the process of vehicle operation, the vehicle body vibration data is collected by a three-axis acceleration sensor. After initializing the sliding window with a length of N, the acceleration values of the latest N sampling points are continuously stored. When the new sampling data arrives, the arithmetic average value of the existing data in the window is calculated as a reference value. If the deviation of the new data from the reference value exceeds the preset filtering threshold value, it is determined as transient interference and is removed, and the original window data is maintained unchanged; if the threshold value is not exceeded, the window data is updated.
[0045] The application can filter transient noise and identify continuous effective signals through the dynamic sliding window and the double judgment mechanism, so as to improve the accuracy of vehicle body vibration signal processing and avoid false operation caused by single interference.
[0046] In an embodiment, if the absolute values of the differences between the continuous K detection data and the average values of the data in the corresponding sliding window are greater than a preset filtering threshold, the continuous K detection data are determined as effective data.
[0047] The continuous K detection data refer to continuous abnormal data beyond the normal fluctuation range, and the single interference misjudgment is avoided through the continuous judgment mechanism. When the continuous K sampling data all exceed the threshold, the effective event signal is determined instead of isolated interference, and the window data is updated.
[0048] In an embodiment, if the event type is a knocking event, the window data before the knocking event is unchanged; if the event type is a collision event, the window data of the current sliding window is emptied, and the window data is reconstructed from the next sampling period.
[0049] The window data refer to the detection data set stored through the sliding window mechanism, which can be implemented by using a fixed-length queue structure, and is used for filtering noise interference and retaining effective signals in real time.
[0050] Specifically, when a knocking event is detected, the historical data stored in the sliding window is retained, so as to avoid the misjudgment of subsequent events caused by the mutation of window data. For example, when a slight knocking occurs in the door area, the window data maintains the original filtering benchmark, so as to ensure the accurate identification of subsequent double-click or multi-click events. When a collision event is detected, the current window data is forcibly emptied, for example, after a side collision of the vehicle, the data is re-collected and a new filtering benchmark is constructed from the next sampling period, so as to eliminate the influence of collision residual noise on subsequent signal processing.
[0051] The application processes the window data by differentiating the event types, maintains the correlation of continuous knocking events, avoids the influence of invalid data on the real-time performance of the system after the collision, effectively solves the contradictory problem of data window update in the processing of different types of events, eliminates the data pollution caused by the collision event quickly while ensuring the integrity of the knocking event sequence, and improves the environmental adaptability and response reliability of the vehicle control system.
[0052] In an embodiment, the method further comprises: monitoring the attitude angle in the continuous M sampling periods, wherein M is a preset threshold value; updating the detection threshold value when the attitude angle in the continuous M sampling periods all jumps in the angle interval.
[0053] wherein, the continuous M times sampling period refers to the continuous number of periodic collection of vehicle attitude angle by a preset counter, which can be realized by a timer or an interrupt mechanism, for ensuring the continuity of attitude monitoring. The angle interval jump refers to the attitude angle crossing the preset angle range boundary in adjacent sampling periods, which can be realized by an angle change rate detection algorithm, for judging whether the vehicle has a dramatic attitude change. The threshold updating refers to dynamically adjusting the triggering condition of event detection according to the interval where the current attitude angle is located, which can be realized by a lookup table method or an interpolation algorithm, for adapting the event recognition sensitivity in different driving environments.
[0054] Specifically, the vehicle attitude angle may change dynamically in the driving process due to road bumps, sharp turns or sudden acceleration and the like. By periodically collecting pitch angle and roll angle data, the angle interval matching judgment is performed on the continuous M times of sampling results. When it is detected that the attitude angle crosses the preset interval boundary in the continuous M times of sampling, it is determined that the vehicle enters a new stable attitude state. At this time, according to the interval range where the current attitude angle is located, the preset threshold mapping relationship table is called to update the knock trigger threshold, the collision trigger threshold and the knock convergence threshold simultaneously. For example, in the case of vehicle climbing causing the pitch angle to increase, the knock trigger threshold is appropriately increased to avoid false triggering caused by road bumps; when the vehicle rolls causing the roll angle to change, the collision trigger threshold is dynamically adjusted to adapt to the acceleration change characteristics in the vehicle body inclination state.
[0055] The present application can dynamically optimize the sensitivity parameters of event detection according to the real-time attitude of the vehicle by real-time monitoring of the attitude angle change trend and actively updating the event detection threshold when the angle interval jump is detected continuously for multiple times, thereby avoiding the problems of false triggering or missed detection caused by sudden attitude change of the vehicle body.
[0056] In an embodiment, the detection data includes vibration data or three-axis acceleration collected by a vehicle-mounted device.
[0057] The vibration data can be a mechanical vibration signal collected by an acceleration sensor, which can be realized by a piezoelectric sensor or a capacitive accelerometer, and the data can reflect the instantaneous impact force or continuous pressure change received by the vehicle body.
[0058] The three-axis acceleration collected by the vehicle-mounted device refers to the acceleration components of the vehicle in X, Y and Z axes obtained by a three-axis acceleration sensor, which can be realized by a MEMS sensor module, and the multi-dimensional data fusion can improve the accuracy of event type judgment.
[0059] In an embodiment, the detection priority of the collision event is the highest in the threshold judgment process. If the collision event is detected in the judgment process, the collision event processing callback function needs to be immediately jumped to.
[0060] Please refer to Figure 6 , Figure 6 A schematic diagram of a vehicle door control device according to an embodiment of the present application is shown in FIG. 1. Figure 6 The vehicle door control device includes: The data acquisition module 610 is configured to acquire detection data of a vehicle body region. The event judgment module 620 is configured to judge an event type based on the detection data and a detection threshold. The event type includes a collision event, a knock event, and a crush event. The knock event includes a single knock event, a double knock event, and a multiple knock event. The vehicle door control module 630 is configured to control the opening or closing of the vehicle door according to the event type.
[0061] It should be noted that the vehicle door control device provided by the above embodiment and the vehicle door control method provided by the above embodiment belong to the same concept. The specific manner in which each module and unit performs an operation has been described in detail in the method embodiment, and will not be described here. The vehicle door control device provided by the above embodiment can be used in actual applications. The above functions can be completed by different functional modules according to needs, i.e., the internal structure of the device is divided into different functional modules to complete all or part of the above-described functions. This is not limited herein.
[0062] Embodiments of the present application also provide an electronic device, including one or more processors; and a memory for storing one or more programs, when the one or more programs are executed by the one or more processors, the memory implements the vehicle door control method or the chassis control method in the above embodiments.
[0063] Embodiments of the present application also provide one or more machine-readable media having instructions stored thereon, when executed by one or more processors, cause the processors to perform the vehicle door control method or the chassis control method in the above embodiments.
[0064] Figure 7 A structural schematic diagram of a computer system of a memory suitable for implementing embodiments of the present application is shown. It should be noted that Figure 7 The computer system of the memory shown is only an example, and should not limit the functions and use range of embodiments of the present application.
[0065] As Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701 which can perform various appropriate actions and processes in accordance with a program stored in a read-only memory (ROM) 702 or a program loaded from a storage section into a random access memory (RAM) 703, such as executing the method in the above-described embodiments. In the RAM, various programs and data required for the operation of the system are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0066] Connected to the I / O interface 705 are an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as necessary. A removable recording medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 710 as necessary, so that a computer program read therefrom is installed into the storage section 708 as necessary.
[0067] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program in accordance with embodiments of the present application. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing a computer program for executing the aforementioned vehicle door control method or chassis control method. In such embodiments, the computer program can be downloaded and installed from a network via the communication section, and / or installed from the removable recording medium 711. When the computer program is executed by the central processing unit (CPU) 701, various functions defined in the system of the present application are performed.
[0068] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may, for example, be an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM) 703, a read-only memory (ROM) 702, an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable computer programs. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit programs for use by or in connection with an instruction execution system, apparatus or device. The computer programs contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination of the above.
[0069] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions indicated in the blocks can also occur in different order from that indicated in the drawings. For example, two blocks indicated in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, or a combination of blocks in the flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0070] The units described in the embodiments of the present application can be implemented by software, or can be implemented by hardware, and the described units can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0071] Another aspect of the present application also provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor of a computer, so that the computer executes the vehicle door control method or the chassis control method as described above. The computer readable storage medium can be included in the memory described in the above embodiments, or can exist separately and not be assembled into the memory.
[0072] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the vehicle door control method or the chassis control method provided in the above embodiments.
[0073] The above embodiments only exemplarily illustrate the principles and effects of the present application, and are not used to limit the present application. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes completed by those skilled in the art without departing from the spirit and technical thought of the present application should be covered by the claims of the present application.
Claims
1. A vehicle door control method, characterized in that: The door control method comprises: Obtain detection data of the vehicle body area; Determine the event type based on the detection data and the detection threshold; the event type includes collision event, knock event, and squeeze event, and the knock event includes single-click event, double-click event, and multi-click event; The door is controlled to open or close according to the event type.
2. The vehicle door control method according to claim 1, characterized in that: The detection thresholds include a tap trigger threshold, a collision trigger threshold, and a tap convergence threshold. The determining of the event type based on the detection data includes: If the detection data is greater than the tap trigger threshold and less than the collision trigger threshold, and eventually converges below the tap convergence threshold, then the event type is determined to be a single-click event; If the interval between the two single-click events is within the first time interval, determining the event type as a double-click event; If there are multiple consecutive clicks, and the interval between two adjacent clicks is within the first time interval, then the event type is determined to be a multi-click event; If the detection data exceeds the collision trigger threshold, the event type is determined to be a collision event; If the detection data is greater than the tap trigger threshold within the first time window and does not fall below the tap trigger threshold within the second time window, the event type is determined to be a squeeze event.
3. The vehicle door control method according to claim 2, characterized in that: The method for determining the detection threshold includes: Calculate the vehicle's attitude angle in real time, where the attitude angle includes: pitch angle θ and roll angle φ; A preset detection threshold is matched according to an angle interval of the pitch angle θ and the roll angle φ.
4. The vehicle door control method according to claim 1, characterized in that: After acquiring the detection data of the vehicle body area, the method further includes: preprocessing the detection data, and the preprocessing includes: Initialized size is N The sliding window, N is the window length threshold; Get the latest N Detection data at each sampling moment; When new detection data is input, the average value of the existing data in the sliding window is calculated; If the absolute value of the difference between the new detection data and the average value of the existing data is greater than the preset filtering threshold, the new detection data is determined to be interference data and the window data is kept; If the absolute value of the difference between the new detection data and the average value of the existing data is less than or equal to the preset filtering threshold, the new detection data is determined to be valid data, the new detection data is added to the window and the earliest detection data in the window is removed to update the window data.
5. The vehicle door control method according to claim 4, characterized in that: If the absolute value of the difference between the K consecutive detection data and the average value of the existing data in the corresponding sliding window is greater than the preset filtering threshold, the K consecutive detection data are determined to be valid data.
6. The vehicle door control method according to claim 4, characterized in that: If the event type is a tap event, the window data before the tap event occurs remains unchanged; If the event type is a collision event, the window data of the current sliding window is cleared, and the window data is rebuilt from the next sampling period.
7. The vehicle door control method according to claim 3, characterized in that: The method further comprises: Monitor the attitude angle within M consecutive sampling periods, where M is the preset counting threshold; When the posture angles collected M times in succession all jump to the angle range, the detection threshold is updated.
8. A vehicle door control device, characterized in that: The vehicle door control device comprises: A data acquisition module is used to obtain detection data of the vehicle body area; An event determination module, configured to determine an event type based on the detection data and a detection threshold; the event types include collision events, tap events, and squeeze events, and the tap events include single-click events, double-click events, and multi-tap events; The vehicle door control module is used to control the opening or closing of the vehicle door according to the event type.
9. A vehicle door control device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to execute the vehicle door control method according to any one of claims 1 to 7.
10. A machine-readable medium, characterized in that Instructions are stored thereon, which, when executed by one or more processors, enable the processors to execute the vehicle door control method according to any one of claims 1 to 7.
