Vehicle locking control method and device, vehicle and computer readable storage medium

By performing key detection and searching in stages during the closing process of the electric vehicle door, the problem of automatic vehicle locking failure caused by the user leaving early is solved, and the risk of accidental locking is avoided, thus improving the safety and reliability of vehicle locking.

CN121716641APending Publication Date: 2026-03-24GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511874499.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-12
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

There is a risk that the automatic locking mechanism may fail if the user leaves the vehicle before the door is closed, and there is also a risk of accidental locking if the vehicle key is still inside or near the vehicle.

Method used

When the vehicle is stationary and no one is in the cabin, a first key check is performed when the closing command of the electric door is detected, a second key check is performed when the electric door is closed, and a periodic key search is performed after all doors are closed to make a comprehensive judgment on whether to lock the vehicle.

Benefits of technology

This solution resolves the issue of automatic vehicle locking failure caused by users leaving the vehicle prematurely during the closing process, and avoids the risk of accidental locking due to the vehicle key being inside or near the vehicle, thereby improving the safety, reliability, and user experience of vehicle locking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121716641A_ABST
    Figure CN121716641A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle locking control method and device, a vehicle and a computer readable storage medium, and relates to the technical field of vehicle lock control. The method comprises the steps that when the vehicle is static and no person exists in a vehicle cabin, if a closing instruction of an electric vehicle door is detected, a vehicle key is detected to obtain a first detection result; when it is detected that any electric vehicle door is closed, a vehicle key is detected to obtain a second detection result; when all the vehicle doors are closed, periodic key searching operation is executed, and a periodic searching result is obtained; and according to the first detection result, the second detection result and the periodic search result, whether the vehicle is controlled to be locked is judged. The problem that automatic locking of the vehicle fails due to the fact that a user leaves the vehicle in advance in the closing process of the electric vehicle door is solved, and the error locking risk caused by the fact that a vehicle key is still in the vehicle or near the vehicle is effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle lock control technology, and more specifically, to a vehicle locking control method, device, vehicle, and computer-readable storage medium in the field of vehicle lock control technology. Background Technology

[0002] With the continuous improvement of automotive intelligence, keyless entry and start (EPS) systems have been widely used in vehicles. This system uses low-frequency and high-frequency wireless communication between the Body Control Module (BCM) and the smart key to automatically unlock the vehicle when the user approaches with a valid key and automatically lock the vehicle when leaving, significantly improving the convenience and technological feel of human-vehicle interaction.

[0003] The current PEPS (Power Outage Prevents and Controls) system's automatic locking logic upon leaving the vehicle works as follows: When all doors (including the tailgate) are detected to be closed, the BCM (Battery Management Center) initiates a periodic low-frequency key-finding strategy. If the key is detected moving from the unlocking zone to the locking zone, or continuously changing from a detectable state to an undetectable state, it is determined that the user has left, and the locking operation is automatically executed. However, in vehicles equipped with power doors (such as power sliding doors and power tailgates), which have a longer closing time (e.g., 3–6 seconds), users typically leave immediately after triggering the door closing operation, causing the key to be beyond the low-frequency antenna's coverage range (e.g., approximately 3.5–5 meters) when the door is fully closed. In this case, the BCM's periodic key-finding strategy fails to detect the key from the outset. Because the key is "undetectable," the BCM cannot determine whether the user has "left" or "not approached," and for safety reasons to prevent accidental locking, it will not execute the automatic locking, causing the locking function to fail. Summary of the Invention

[0004] This application provides a vehicle locking control method, device, vehicle, and computer-readable storage medium. This application not only solves the problem of automatic vehicle locking failure caused by the user leaving the vehicle in advance during the closing process of the electric vehicle door, but also effectively avoids the risk of accidental locking caused by the vehicle key still being inside or near the vehicle.

[0005] Firstly, a vehicle locking control method is provided, comprising: when the vehicle is stationary and no one is in the passenger compartment, if a closing command of an electric door is detected, detecting the vehicle key to obtain a first detection result, the first detection result including whether the vehicle key is detected or not; when any one electric door is detected to be closed, detecting the vehicle key again to obtain a second detection result, the second detection result including whether the vehicle key is detected or not; when all doors are closed, performing a periodic key search operation to obtain a periodic search result; and determining whether to control vehicle locking based on the first detection result, the second detection result, and the periodic search result.

[0006] This application employs a technical solution that, when the vehicle is stationary and unoccupied, detects a closing command for an electric door, obtaining a first detection result; upon detecting that any one electric door has been closed, the vehicle key is detected again, obtaining a second detection result; and the system checks whether all vehicle doors have been closed. If all doors are closed, a periodic key search operation is performed, obtaining a periodic search result. Based on the first detection result, the second detection result, and the periodic search result, a decision is made on whether to control the vehicle locking mechanism. This solution achieves phased key searching at multiple key time points: a first instantaneous key detection is performed when a closing command for an electric door is detected; a second instantaneous key detection is performed when any one electric door has been closed; and a periodic key search operation is performed when it is determined that all doors have been closed. By combining the results of two instantaneous detections of the vehicle key with the results of periodic searches to determine whether to control the vehicle lock, the problem of automatic locking failure caused by the user leaving the vehicle before the electric door closes is not only solved, but also the risk of accidental locking caused by the vehicle key still being inside or near the vehicle is effectively avoided. Thus, a high balance is achieved between security, reliability and user experience, significantly improving the overall performance of the intelligent keyless entry and locking system.

[0007] In one possible implementation, determining whether to control vehicle locking based on the first detection result, the second detection result, and the periodic search result includes: generating a key detection mark based on the first detection result and the second detection result, the key detection mark including a first mark indicating that a vehicle key has been detected and a second mark indicating that a vehicle key has not been detected; and determining whether to control vehicle locking based on the key detection mark and the periodic search result.

[0008] This application determines whether to lock the vehicle by combining key detection markers with periodic search results, rather than combining the first detection result, the second detection result, and the periodic search result. On one hand, the key detection markers provide a structured and standardized logical abstraction of the first two instantaneous detection results, effectively shielding noise and uncertainty that may arise from signal interference, obstruction, or communication jitter in a single instantaneous detection result, thus improving the stability and reliability of the input data used in subsequent judgments. On the other hand, generating key detection markers simplifies the locking judgment logic, making the control strategy clearer, more configurable, and easier to implement. This avoids the complex conditional branches and potential conflicts caused by directly merging multiple key detection markers, thereby significantly improving the robustness and real-time performance of vehicle locking decisions while ensuring high security.

[0009] In one possible implementation, generating a key detection mark based on the first detection result and the second detection result includes: performing a logical OR operation on the first detection result and the second detection result to obtain the operation result; and setting the key detection mark based on the operation result.

[0010] By performing a logical OR operation on the first and second detection results to obtain the calculation result, and setting a key detection mark based on the calculation result, a reliable judgment on whether the user carrying the vehicle key is near the vehicle during the closing process of the electric door is realized with simple and efficient Boolean logic. That is, as long as the vehicle key is detected at any moment when the door closing command is triggered or when any electric door is closed, it is determined that the vehicle key is near the vehicle during the closing process of the electric door. This avoids missed detections and false judgments caused by signal obstruction, electromagnetic interference, or momentary communication failure due to a single instantaneous detection. It not only significantly improves the robustness and fault tolerance of vehicle key presence recognition, but also simplifies the locking decision logic. It lays a stable and reliable state foundation for subsequent high-confidence automatic locking control based on periodic search results, effectively balancing vehicle security and user experience.

[0011] In one possible implementation, determining whether to control vehicle locking based on key detection markers and periodic search results includes: if the key detection marker is the first marker, and the periodic search result indicates that the vehicle key has moved from the unlocking area to the locking area, controlling vehicle locking; wherein, the unlocking area refers to the area centered on the vehicle with a radius of a preset distance, and the locking area includes the area in the environment other than the unlocking area.

[0012] When the key detection marker is set to the first marker and the periodic search results indicate that the vehicle key has moved from the unlocking area to the locking area outside the vehicle, the vehicle is locked. This not only confirms the presence of the vehicle key but also infers the user's intention to leave the vehicle by combining the spatial position change trend of the vehicle key. Thus, while ensuring that the vehicle key is not inside the vehicle, it accurately captures the user's true intention to leave the vehicle, significantly improving the timing rationality, security, and intelligence level of the automatic vehicle locking.

[0013] In one possible implementation, determining whether to lock the vehicle based on the key detection mark and the periodic search result includes: if the key detection mark is the first mark and the periodic search result indicates that the vehicle key has changed from a detectable state to an undetectable state, then locking the vehicle is controlled.

[0014] Based on the periodic search results indicating that the vehicle key changes from a detectable state to an undetectable state, and combined with the key detection marker as the first marker, it can be confirmed that the user is indeed near the vehicle with the vehicle key during the electric door closing process. This effectively eliminates the possibility of misjudgment that the key was forgotten inside the vehicle or that the user with the vehicle key never approached the vehicle. It can accurately indicate that the user has completed getting off the vehicle and left with the vehicle key. Therefore, controlling the vehicle lock achieves accurate capture of the user's actual departure from the vehicle while ensuring that the vehicle key is not inside the vehicle, significantly improving the timing rationality, security and intelligence level of the vehicle's automatic locking.

[0015] In one possible implementation, determining whether to lock the vehicle based on the key detection marker and the periodic search results includes: if the key detection marker is the first marker and the periodic search results indicate that no vehicle key has been detected, locking the vehicle is controlled after a preset delay.

[0016] When the key detection flag is set to the first flag and periodic search results indicate no vehicle key is detected, the vehicle locks only after a preset delay. This provides ample time for the user to temporarily return to the vehicle or for communication between the vehicle and the key to resume. This delayed vehicle locking mechanism effectively prevents communication interruptions caused by environmental interference from being mistakenly interpreted as the user having taken the key away from the vehicle. It also prevents premature vehicle locking when the user is still near the vehicle with the key, significantly improving the reliability, fault tolerance, and user experience of the keyless locking system.

[0017] In one possible implementation, determining whether to lock the vehicle based on the key detection marker and the periodic search results includes: if the key detection marker is the second marker and the periodic search results indicate that no vehicle key has been detected, the vehicle is kept unlocked, and a locking prompt message is output, asking the user to confirm whether to lock the vehicle; in response to the user's lock confirmation command, the vehicle is locked. This allows the user to decide whether to lock the vehicle when neither the key detection marker nor the periodic search results indicate that the vehicle key has been detected. This avoids the problem of prematurely locking the vehicle because the communication between the vehicle and the vehicle key is interrupted for a long time due to environmental interference, which could lead to the user mistakenly believing that the user has taken the vehicle key away from the vehicle.

[0018] Secondly, a vehicle locking control device is provided, the vehicle locking control device comprising: The first detection module is used to detect the vehicle key when the vehicle is stationary and no one is in the cabin, and if a closing command of the electric door is detected, to obtain a first detection result, which includes whether the vehicle key was detected or not. The second detection module is used to detect the vehicle key again when any electric vehicle door is detected to be closed, and to obtain a second detection result, which includes whether the vehicle key was detected or not. The third detection module is used to perform a periodic key search operation and obtain periodic search results when all doors are closed. The vehicle locking control module is used to determine whether to lock the vehicle based on the first detection result, the second detection result, and the periodic search result.

[0019] In one possible implementation, the vehicle locking control module includes: The tag generation unit is used to generate a key detection tag based on the first detection result and the second detection result. The key detection tag includes a first tag indicating that a vehicle key has been detected and a second tag indicating that a vehicle key has not been detected. The vehicle locking control unit is used to determine whether to lock the vehicle based on the key detection marker and periodic search results.

[0020] In one possible implementation, the tag generation unit is specifically used to perform a logical OR operation on the first detection result and the second detection result to obtain the operation result; and to set the key detection tag according to the operation result.

[0021] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to control the vehicle to lock based on the key detection mark and the periodic search result. This includes: if the key detection mark is the first mark, and the periodic search result indicates that the vehicle key has moved from the unlocking area outside the vehicle to the locking area outside the vehicle, the vehicle is locked. Here, the unlocking area outside the vehicle refers to the area centered on the vehicle with a radius of a preset distance, and the locking area outside the vehicle includes the area in the environment other than the unlocking area outside the vehicle.

[0022] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to lock the vehicle based on the key detection mark and the periodic search result, including: if the key detection mark is the first mark, and the periodic search result indicates that the vehicle key has changed from a detectable state to an undetectable state, then the vehicle is locked.

[0023] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to lock the vehicle based on the key detection mark and the periodic search results. This includes: if the key detection mark is the first mark and the periodic search results indicate that no vehicle key has been detected, the vehicle is locked after a preset delay.

[0024] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to lock the vehicle based on the key detection mark and the periodic search results. This includes: if the key detection mark is the second mark and the periodic search results indicate that no vehicle key has been detected, controlling the vehicle to remain unlocked and outputting a locking prompt message, which includes asking the user to confirm whether to lock the vehicle; and in response to the user's lock confirmation command, controlling the vehicle to lock.

[0025] Thirdly, a vehicle is provided, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the vehicle to perform the vehicle locking control method of the first aspect or any possible implementation thereof.

[0026] Fourthly, a computer program product is provided, comprising: computer program code, which, when executed on a computer, causes the computer to perform the vehicle locking control method of the first aspect or any possible implementation thereof.

[0027] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the vehicle locking control method of the first aspect or any possible implementation thereof. Attached Figure Description

[0028] Figure 1 A schematic flowchart of a vehicle locking control method provided in an embodiment of this application is shown; Figure 2 This illustration shows a scenario diagram of vehicle key searching provided in an embodiment of this application; Figure 3 A schematic diagram of a scenario illustrating the vehicle key detection range provided in an embodiment of this application is shown; Figure 4 This paper shows a schematic diagram of the structure of a vehicle locking control device according to an embodiment of the present application; Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of this application is shown. Detailed Implementation

[0029] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0030] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0031] With the continuous improvement of automotive intelligence, keyless entry and start systems (EPS) have been widely used in vehicles. This system uses low-frequency and high-frequency wireless communication between the body control module (BCM) and the smart key to automatically unlock the vehicle when the user approaches with a valid key and automatically lock it after leaving, significantly enhancing the convenience and technological sophistication of human-vehicle interaction.

[0032] The current PEPS (Power Outage Prevents and Controls) system's automatic locking logic upon leaving the vehicle works as follows: When all doors (including the tailgate) are detected to be closed, the BCM (Battery Management Center) initiates a periodic low-frequency key-finding strategy. If the key is detected moving from the unlocking zone to the locking zone, or continuously changing from a detectable state to an undetectable state, it is determined that the user has left, and the locking operation is automatically executed. However, in vehicles equipped with power doors (such as power sliding doors and power tailgates), which have a longer closing time (e.g., 3–6 seconds), users typically leave immediately after triggering the door closing operation, causing the key to be beyond the low-frequency antenna's coverage range (e.g., approximately 3.5–5 meters) when the door is fully closed. In this case, the BCM's periodic key-finding strategy fails to detect the key from the outset. Because the key is "undetectable," the BCM cannot determine whether the user has "left" or "not approached," and for safety reasons to prevent accidental locking, it will not execute the automatic locking, causing the locking function to fail.

[0033] To address the aforementioned issues, this application provides a vehicle locking control method, device, vehicle, and computer-readable storage medium. This application performs a key detection at the moment the electric door is triggered to close and at the moment any electric door completes closing, obtaining key detection results at two time points. After all doors are fully closed, a periodic key search operation is performed to obtain periodic search results. Finally, based on the first two key detection results and the last periodic search result, a comprehensive judgment is made on whether to control vehicle locking. This effectively improves the accuracy of identifying users leaving the vehicle with the key, ensuring that the vehicle can still reliably lock even if the user has left before the electric door automatically closes, thereby enhancing the overall vehicle security.

[0034] The following is an embodiment of a vehicle locking control method provided in this application specification.

[0035] Figure 1 A schematic flowchart of a vehicle locking control method provided in an embodiment of this application is shown. Figure 2 This illustration shows a scenario diagram of vehicle key searching provided in an embodiment of this application, where 100 represents the vehicle and 200 represents the vehicle key. Figure 1 As shown, the vehicle locking control method provided in this application embodiment is applied to the vehicle's body control module (BCM), and the vehicle's door is an electric door. The vehicle locking control method provided in this application embodiment includes the following schemes: S110: When the vehicle is stationary and no one is in the cabin, if a closing command for the electric door is detected, the vehicle key is detected, and a first detection result is obtained. The first detection result includes whether the vehicle key is detected or not.

[0036] In an exemplary embodiment, if the vehicle's speed is detected to be less than or equal to a preset speed and the vehicle is in park (P), the vehicle is determined to be stationary. When the vehicle is stationary, an image of the interior of the cabin is captured by a camera inside the cabin. If no person is detected in the image, the cabin is determined to be unoccupied. If, when the vehicle is determined to be stationary and unoccupied, a user triggers a closing command on the electric door, the vehicle key is detected (also considered an active key search operation), and a detection result is obtained, referred to as the first detection result. Simultaneously with the detection of the vehicle key, the electric door is controlled to begin closing. For example, if a closing command on the electric door is detected at time T1, the vehicle key is detected and the electric door is controlled to begin closing at that time. The first detection result includes whether the vehicle key is detected or not. If the first detection result includes that the vehicle key is detected, it indicates that the user is near the vehicle with the vehicle key when the electric door begins to close; if the first detection result includes that the vehicle key is not detected, it indicates that the user is near the vehicle with the vehicle key when the electric door begins to close. If the vehicle is stationary and unoccupied, and a user triggers a closing command on the electric door, an active key search operation is immediately performed to detect the vehicle key, and this detection result is referred to as the first detection result. Simultaneously with the key detection, the electric door is also controlled to begin closing. For example, if a closing command is detected at time T1, the vehicle key is detected and the electric door is controlled to begin closing at time T1.

[0037] The first detection result includes whether the vehicle key was detected or not. If the first detection result is that the vehicle key was detected, it means that when the electric door began to close, the user was still near the vehicle with the key (usually within effective communication range, such as 1-2 meters), and the user had most likely not yet left the vehicle. If the first detection result is that the vehicle key was not detected, it means that the user may have already left the vehicle with the key. Considering that wireless signals may be affected by environmental interference (such as metal obstructions, electromagnetic noise, etc.), a first detection result of no vehicle key detection may also indicate that the vehicle key was not detected due to environmental interference.

[0038] S120: If any electric vehicle door is detected to be closed, the vehicle key is detected again to obtain a second detection result, which may include whether the vehicle key was detected or not.

[0039] Since power doors typically require a certain time interval (e.g., 3 to 6 seconds) from the start of the closing action to complete closure, the active key search operation is performed again when any one of the vehicle's power doors has finished closing. Specifically, at the moment when any one of the vehicle's power doors has finished closing, the active key search operation is performed again to detect the vehicle key, and this detection result is referred to as the second detection result. For example, if any one power door is detected to have finished closing at time T2 (e.g., the left rear power door on the left side of the vehicle), then the vehicle key is detected at time T2. Time T2 is after time T1.

[0040] The second detection result includes whether the vehicle key was detected or not. If the second detection result is that the vehicle key was detected, it means that the user was still near the vehicle with the key during the time the electric door started closing and was fully closed, and the user did not leave the vehicle. If the second detection result is that the vehicle key was not detected, it means that the user may have left the vehicle with the key. Considering that wireless signals may be affected by environmental interference (such as metal obstructions, electromagnetic noise, etc.), a second detection result of no vehicle key detection may also indicate that the vehicle key was not detected due to environmental interference.

[0041] Since electric doors typically require a certain time interval (e.g., 3 to 6 seconds) from the start of the closing action to complete closure, the user's position may change during this period. To more accurately determine whether the user has truly left the vehicle, a second detection node is set in the door closing process. Specifically, at the moment when any electric door of the vehicle has completed closing, an active key search operation is performed again to detect the vehicle key, and this detection result is called the second detection result. Assuming that the user triggers the closing command of the electric door at time T1, the vehicle is immediately controlled to start the closing action and perform the first vehicle key detection; subsequently, at time T2 (T2>T1), it is detected that an electric door has completed closing (e.g., the left rear electric door on the left side of the vehicle), and at this time, an active key search operation is performed again to detect the vehicle key, and this detection result is called the second detection result.

[0042] The second detection result includes whether the vehicle key was detected or not. If the second detection result is that the vehicle key was detected, it means that the user was near the vehicle with the key throughout the entire process of the electric door closing, and there is a very high probability that the user did not leave the vehicle. Conversely, if the second detection result is that the vehicle key was not detected, it means that the user may have left the vehicle with the key, and the probability of the user leaving the vehicle increases significantly. Considering that wireless signals are affected by environmental interference (such as metal obstructions, electromagnetic noise, etc.), a second detection result of no vehicle key detected may also indicate that the vehicle key was not detected due to environmental interference.

[0043] By re-detecting the vehicle key after any electric door has been closed, the system effectively improves the perception of user dynamic behavior and overcomes the limitations of relying solely on the vehicle key detection result at the moment the electric door has just begun to close.

[0044] S130: With all doors closed, perform a periodic key search operation to obtain periodic search results.

[0045] Periodic key search is a continuous, timed, and repetitive key detection mechanism. Specifically, the vehicle actively transmits a low-frequency wake-up signal at fixed time intervals (e.g., every 500 milliseconds) and listens for the radio frequency response signal from the vehicle key, continuously performing multiple rounds of searches until a preset total search duration (e.g., 3 seconds) is reached. During this period, each search constitutes an independent key detection event, thus obtaining the periodic search result.

[0046] After the vehicle key is checked again, it checks whether all vehicle doors (including the left and right side doors and the rear door) are closed. If all doors are not closed, the process continues to check whether all vehicle doors are closed. If all doors are closed, it indicates that the time is right to perform a periodic key search operation, so the periodic key search operation is performed to obtain the periodic search results.

[0047] S140: Based on the first detection result, the second detection result, and the periodic search result, determine whether to control the vehicle lock.

[0048] After obtaining the first detection result, the second detection result, and the periodic search result, a comprehensive judgment is made based on these three results to determine whether to control the vehicle lock. Since the first detection result is obtained by detecting the vehicle key when a closing command for the electric door is detected, and the second detection result is obtained by detecting the vehicle key again after any electric door has been closed, and the second detection result is obtained after the first detection result is obtained, both corresponding to instantaneous vehicle key search operations. By performing a first detection on the vehicle key when a closing command for the electric door is detected, and a second detection when any electric door has been closed, the system accurately captures the change in the user's state from "near the vehicle" to "away from the vehicle" during the electric door closing process, thus resolving the problem of automatic vehicle locking failure caused by the user leaving the vehicle prematurely during the electric door closing process. Furthermore, by combining the results of two instantaneous vehicle key detections and periodic search results to make multi-condition, intelligent vehicle locking decisions, the reliability of vehicle locking is ensured, and the vehicle can be effectively prevented from being locked accidentally when the vehicle key is inside or near the vehicle.

[0049] This application employs a technical solution that, when the vehicle is stationary and unoccupied, detects a closing command for an electric door, obtaining a first detection result; upon detecting that any one electric door has been closed, the vehicle key is detected again, obtaining a second detection result; and the system checks whether all vehicle doors have been closed. If all doors are closed, a periodic key search operation is performed, obtaining a periodic search result. Based on the first detection result, the second detection result, and the periodic search result, a decision is made on whether to control the vehicle locking mechanism. This solution achieves phased key searching at multiple key time points: a first instantaneous key detection is performed when a closing command for an electric door is detected; a second instantaneous key detection is performed when any one electric door has been closed; and a periodic key search operation is performed when it is determined that all doors have been closed. By combining the results of two instantaneous detections of the vehicle key with the results of periodic searches to determine whether to control the vehicle lock, the problem of automatic locking failure caused by the user leaving the vehicle before the electric door closes is not only solved, but also the risk of accidental locking caused by the vehicle key still being inside or near the vehicle is effectively avoided. Thus, a high balance is achieved between security, reliability and user experience, significantly improving the overall performance of the intelligent keyless entry and locking system.

[0050] In one possible implementation, determining whether to lock the vehicle based on the first detection result, the second detection result, and the periodic search result includes the following steps: Based on the first and second detection results, a key detection mark is generated. The key detection mark includes a first mark indicating that a vehicle key has been detected and a second mark indicating that a vehicle key has not been detected. Based on the key detection markers and periodic search results, determine whether to lock the vehicle.

[0051] The first and second detection results may both indicate that a vehicle key was detected, or both may indicate that a vehicle key was detected and the other may indicate that a vehicle key was not detected. After obtaining the first and second detection results, they are converted into key detection markers. These markers include a first marker indicating that a vehicle key was detected and a second marker indicating that a vehicle key was not detected. For example, the first marker might be "Key_Found = 1" and the second marker might be "Key_Found = 0". The key detection markers generated based on the first and second detection results visually reflect whether the user, carrying the key, remained near the vehicle from the start of the electric door closing until any electric door was fully closed.

[0052] After obtaining the key detection marker, a decision is made on whether to lock the vehicle based on the key detection marker and the periodic search results. Specifically, this application determines whether to lock the vehicle by combining the key detection marker with the periodic search results, rather than combining the first detection result, the second detection result, and the periodic search results. On one hand, the key detection marker provides a structured and standardized logical abstraction of the first two instantaneous detection results, effectively shielding noise and uncertainty that may be caused by signal interference, obstruction, or communication jitter in a single instantaneous detection result, thus improving the stability and reliability of the input data used in subsequent decisions. On the other hand, generating the key detection marker simplifies the locking decision logic, making the control strategy clearer, more configurable, and easier to implement. This avoids the complex conditional branches and potential conflicts caused by directly merging multiple key detection markers, thereby significantly improving the robustness and real-time performance of the vehicle locking decision while ensuring high security.

[0053] In one possible implementation, generating the key detection mark based on the first and second detection results includes the following steps: Perform a logical OR operation on the first and second detection results to obtain the final result. Set the key detection mark based on the calculation results.

[0054] The specific process for generating the key detection mark is as follows: A logical OR operation is performed on the first and second detection results to obtain the result. The result includes four types, as detailed below: If the first detection result is that the vehicle key is not detected, and the second detection result is that the vehicle key is detected, the calculation result is that the vehicle key is detected, i.e., first detection result OR second detection result = vehicle key detected. In the case where the second detection result is that the vehicle key is detected, the key position of the vehicle key at this time is also acquired and saved, and the distance between the vehicle center and the vehicle key is calculated based on the key position.

[0055] If the first detection result is that the vehicle key is detected, and the second detection result is that the vehicle key is not detected, the calculation result is that the vehicle key is detected, i.e., first detection result OR second detection result = vehicle key detected. Specifically, if the first detection result is that the vehicle key is detected, and the second detection result is that the vehicle key is not detected, the key location of the vehicle key at the time the first detection result was obtained is also obtained. This key location is used as the key location of the vehicle key at the time the second detection result is obtained, or the key location is marked as unknown but exists.

[0056] If both the first and second detection results indicate that a vehicle key has been detected, the calculation result is "vehicle key detected", i.e., first detection result OR second detection result = vehicle key detected.

[0057] If both the first and second detection results indicate that the vehicle key was not detected, the calculation result is "vehicle key not detected," i.e., first detection result OR second detection result = vehicle key not detected.

[0058] After obtaining the calculation result, a key detection flag is set according to the calculation result. That is, if the calculation result is that the vehicle key is detected, the key detection flag is set as the first flag; if the calculation result is that the vehicle key is not detected, the key detection flag is set as the second flag.

[0059] The specific details of setting the key detection marker based on the calculation results can be shown in Table 1, as follows: Table 1

[0060] By performing a logical OR operation on the first and second detection results to obtain the calculation result, and setting a key detection mark based on the calculation result, a reliable judgment on whether the user carrying the vehicle key is near the vehicle during the closing process of the electric door is realized with simple and efficient Boolean logic. That is, as long as the vehicle key is detected at any moment when the door closing command is triggered or when any electric door is closed, it is determined that the vehicle key is near the vehicle during the closing process of the electric door. This avoids missed detections and false judgments caused by signal obstruction, electromagnetic interference, or momentary communication failure due to a single instantaneous detection. It not only significantly improves the robustness and fault tolerance of vehicle key presence recognition, but also simplifies the locking decision logic. It lays a stable and reliable state foundation for subsequent high-confidence automatic locking control based on periodic search results, effectively balancing vehicle security and user experience.

[0061] In one possible implementation, determining whether to lock the vehicle based on the key detection marker and periodic search results includes the following steps: If the key detection marker is the first marker, the periodic search result indicates that the vehicle key has moved from the unlocking area outside the vehicle to the locking area outside the vehicle, controlling the vehicle to lock; The external unlocking zone refers to the area centered on the vehicle with a preset radius, while the external locking zone includes the area in the environment other than the external unlocking zone. Figure 3 This application provides a schematic diagram illustrating a scenario of the vehicle key detection range according to an embodiment of the present application. Figure 3 As shown, 100 represents the vehicle, D represents the preset distance (e.g., 3 meters), Q1 represents the unlocking zone outside the vehicle, which is the area centered on the vehicle with a radius of the preset distance, and Q2 represents the locking zone outside the vehicle. Specifically, if the distance between the vehicle key and the center of the vehicle is less than or equal to the preset distance, the vehicle key is considered to be in the unlocking zone outside the vehicle; if the distance between the vehicle key and the center of the vehicle is greater than the preset distance, the vehicle key is considered to be in the locking zone outside the vehicle.

[0062] If the key detection marker is the first marker, it means that the vehicle key was detected during the closing process of the electric door. The user was near the vehicle with the key at the time, but the vehicle will not be locked immediately; instead, the system enters a follow-up observation phase. Based on this, if the periodic search results further identify that the vehicle key has moved from the unlocking area to the locking area outside the vehicle, it indicates that after all the vehicle doors are fully closed, the user has moved away from the vehicle with the key. This is considered a typical scenario of the user having finished using the vehicle and intending to return, representing a departure scenario. At this point, the automatic locking condition is determined to be met, and the vehicle is then controlled to perform the locking operation.

[0063] When the key detection marker is set to the first marker and the periodic search results indicate that the vehicle key has moved from the unlocking area to the locking area outside the vehicle, the vehicle is locked. This not only confirms the presence of the vehicle key but also infers the user's intention to leave the vehicle by combining the spatial position change trend of the vehicle key. Thus, while ensuring that the vehicle key is not inside the vehicle, it accurately captures the user's true intention to leave the vehicle, significantly improving the timing rationality, security, and intelligence level of the automatic vehicle locking.

[0064] In one possible implementation, determining whether to lock the vehicle based on the key detection marker and periodic search results includes the following steps: If the key detection marker is the first marker, the periodic search result indicates that the vehicle key has changed from a detectable state to an undetectable state, thus controlling the vehicle to lock.

[0065] If the key detection flag is the first flag, it means that the vehicle key was detected during the closing process of the electric door. The user, carrying the key, was near the vehicle at the time, but the vehicle will not be locked immediately; instead, the system will enter a follow-up observation phase. Based on this, if the periodic search results further identify a change in the vehicle key from a detectable state to an undetectable state, it indicates that the user, carrying the key, has gradually moved away from the vehicle. The vehicle key becomes undetectable because it is too far from the vehicle to receive the low-frequency wake-up signal actively transmitted by the vehicle. If the vehicle cannot detect the radio frequency response signal from the key within a certain period, it will output "Vehicle key undetectable."

[0066] Based on the periodic search results indicating that the vehicle key changes from a detectable state to an undetectable state, and combined with the key detection marker as the first marker, it can be confirmed that the user is indeed near the vehicle with the vehicle key during the electric door closing process. This effectively eliminates the possibility of misjudgment that the key was forgotten inside the vehicle or that the user with the vehicle key never approached the vehicle. It can accurately indicate that the user has completed getting off the vehicle and left with the vehicle key. Therefore, controlling the vehicle lock achieves accurate capture of the user's actual departure from the vehicle while ensuring that the vehicle key is not inside the vehicle, significantly improving the timing rationality, security and intelligence level of the vehicle's automatic locking.

[0067] In one possible implementation, determining whether to lock the vehicle based on the key detection marker and periodic search results includes the following steps: If the key detection flag is the first flag, the periodic search result indicates that no vehicle key has been detected. After a preset delay, the vehicle is locked.

[0068] If the key detection marker is the first marker, it means that the vehicle key was detected during the closing process of the electric door. The user was near the vehicle with the key at that time, and the vehicle will not be locked immediately; instead, it will enter a subsequent observation phase. If, based on the periodic search results, the vehicle key is not detected, it means that the user may have quickly moved away from the vehicle with the key when the periodic key search operation began, or environmental interference may have affected the communication between the vehicle and the key, resulting in the inability to detect the key. Because the key detection marker being the first marker already indicates that the user was near the vehicle with the key during the entire closing process (the key is detectable), and the periodic search result indicates that the key was not detected, to avoid the situation where the user is still near the vehicle with the key but the vehicle is not detected due to environmental interference, the vehicle will not be locked immediately. Instead, it will be locked after a preset time (e.g., 6 seconds).

[0069] When the key detection flag is set to the first flag and periodic search results indicate no vehicle key is detected, the vehicle locks only after a preset delay. This provides ample time for the user to temporarily return to the vehicle or for communication between the vehicle and the key to resume. This delayed vehicle locking mechanism effectively prevents communication interruptions caused by environmental interference from being mistakenly interpreted as the user having taken the key away from the vehicle. It also prevents premature vehicle locking when the user is still near the vehicle with the key, significantly improving the reliability, fault tolerance, and user experience of the keyless locking system.

[0070] In one possible implementation, determining whether to lock the vehicle based on the key detection marker and periodic search results includes the following steps: If the key detection marker is the second marker, the periodic search results indicate that no vehicle key has been detected. The vehicle will remain unlocked, and a locking prompt message will be output, which includes a request for the user to confirm whether to lock the vehicle. In response to the user's confirmation command to lock the vehicle, the system controls the vehicle to lock.

[0071] If the key detection marker is the second marker, it means that the vehicle key was not detected from the start of closing the electric doors until any electric door was fully closed. This indicates that the vehicle key was never present. This could be because the vehicle key was taken away from the vehicle by someone else after parking but before the user triggered the door closing command, or it could be that communication between the vehicle and the vehicle key was interrupted due to environmental interference during the entire closing process. Therefore, the vehicle key was not detected, and further observation is required. If, based on periodic search results, the vehicle key is still not detected, the possibility of interrupted communication due to environmental interference cannot be ruled out. Therefore, the vehicle will not be immediately locked; instead, a locking prompt message will be output, asking the user to confirm whether the vehicle is locked. This locking prompt message can be output via external voice prompts, such as "Your car is not locked; please confirm whether to lock it," or it can be sent to the vehicle's application software, which will then prompt the user to trigger the lock confirmation command. If a user triggers a lock confirmation command via voice or by operating the vehicle's application software, the vehicle responds to the command and locks itself. This allows the user to decide whether to lock the vehicle even when the key cannot be detected by the key detection marker or periodic search results. This avoids the problem of the user prematurely locking the vehicle while still near it, due to communication interruptions caused by environmental interference, which could lead to the vehicle and key being mistakenly identified as the user having taken the key away from the vehicle.

[0072] It is worth noting that after the vehicle is locked, the previously obtained first detection result, second detection result, and periodic search result will be cleared, and the key detection mark will be set to empty. The next time the user uses the vehicle, the vehicle will re-execute the vehicle locking control method to avoid the vehicle continuously using the previous first detection result, second detection result, periodic search result, and key detection mark to lock the vehicle, thereby avoiding the risk of accidental locking or missed locking.

[0073] The vehicle interlocking control method provided in this application, which enables decision-making and control of vehicle interlocking, has the following advantages: 1. This application performs an instantaneous active key search operation when the closing command of the electric door is triggered and when any electric door is closed, effectively capturing the dynamic state change of the user carrying the vehicle key from "near the vehicle" to "leaving the vehicle", thus solving the problem of the automatic locking function of the vehicle failing due to the user leaving in advance during the closing process of the electric door.

[0074] 2. This application constructs a multi-stage, multi-condition intelligent locking decision mechanism by combining the results of two instantaneous key detections and periodic search results. This mechanism ensures reliable locking after the user actually leaves the vehicle, while effectively avoiding the risk of accidental locking caused by the key still being inside or near the vehicle.

[0075] 3. This application only adds one instantaneous active key search operation at the moment the closing command of the electric vehicle door is triggered and at the moment when any electric vehicle door is closed. It does not introduce continuous high-frequency detection or extend the wireless communication time, has minimal impact on the power consumption of the whole vehicle, and does not require the addition of new hardware sensors or communication modules. It can be deployed only through software logic upgrades, and has good engineering feasibility and cost advantages.

[0076] 4. Without changing any user operating habits, whether the user is standing next to the car waiting for the door to close or immediately leaving after triggering the closing command of the electric door, the vehicle can intelligently recognize the user's intention and accurately execute the locking action, providing a seamless yet reliable automated security experience and enhancing the user's sense of security and product satisfaction.

[0077] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0078] Figure 4 This application provides a schematic diagram of the structure of a vehicle locking control device according to an embodiment of the present application. Figure 4 As shown, the vehicle locking control device 400 includes: The first detection module 410 is used to detect the vehicle key when the vehicle is stationary and no one is in the cabin, and if a closing command of the electric door is detected, to obtain a first detection result, which includes whether the vehicle key is detected or not. The second detection module 420 is used to detect the vehicle key again when any electric vehicle door is detected to be closed, and to obtain a second detection result, which includes whether the vehicle key was detected or not. The third detection module 430 is used to perform a periodic key search operation and obtain periodic search results when all doors are closed. The vehicle locking control module 440 is used to determine whether to lock the vehicle based on the first detection result, the second detection result, and the periodic search result.

[0079] In one possible implementation, the vehicle locking control module 440 includes: The tag generation unit is used to generate a key detection tag based on the first detection result and the second detection result. The key detection tag includes a first tag indicating that a vehicle key has been detected and a second tag indicating that a vehicle key has not been detected. The vehicle locking control unit is used to determine whether to lock the vehicle based on the key detection marker and periodic search results.

[0080] In one possible implementation, the tag generation unit is specifically used to perform a logical OR operation on the first detection result and the second detection result to obtain the operation result; and to set the key detection tag according to the operation result.

[0081] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to control the vehicle to lock based on the key detection mark and the periodic search result. This includes: if the key detection mark is the first mark, and the periodic search result indicates that the vehicle key has moved from the unlocking area outside the vehicle to the locking area outside the vehicle, the vehicle is locked. Here, the unlocking area outside the vehicle refers to the area centered on the vehicle with a radius of a preset distance, and the locking area outside the vehicle includes the area in the environment other than the unlocking area outside the vehicle.

[0082] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to lock the vehicle based on the key detection mark and the periodic search result, including: if the key detection mark is the first mark, and the periodic search result indicates that the vehicle key has changed from a detectable state to an undetectable state, then the vehicle is locked.

[0083] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to lock the vehicle based on the key detection mark and the periodic search results. This includes: if the key detection mark is the first mark and the periodic search results indicate that no vehicle key has been detected, the vehicle is locked after a preset delay.

[0084] In one possible implementation, the vehicle locking control unit is specifically used to determine whether to lock the vehicle based on the key detection mark and the periodic search results. This includes: if the key detection mark is the second mark and the periodic search results indicate that no vehicle key has been detected, controlling the vehicle to remain unlocked and outputting a locking prompt message, which includes asking the user to confirm whether to lock the vehicle; and in response to the user's lock confirmation command, controlling the vehicle to lock.

[0085] It should be noted that the vehicle locking control device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the vehicle locking control method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the vehicle locking control device and the vehicle locking control method embodiments provided in the above embodiments belong to the same concept. Therefore, for details not disclosed in the device embodiments of this application, please refer to the embodiments of the vehicle locking control method described above in this application, which will not be repeated here.

[0086] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0087] Figure 5 This application provides a schematic diagram of the structure of a vehicle according to an embodiment of the present application. Figure 5 As shown, the vehicle 500 includes a memory 501 and a processor 502. The memory 501 stores executable program code 5011, and the processor 502 is used to call and execute the executable program code 5011 to perform a vehicle locking control method.

[0088] This embodiment can divide the vehicle into functional modules according to the above method example. For example, each function can be assigned to a separate module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0089] When each functional module is divided according to its corresponding function, the vehicle may include: a first detection module, a second detection module, a third detection module, a vehicle locking control module, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0090] The vehicle provided in this embodiment is used to execute the vehicle locking control method described above, and thus can achieve the same effect as the above implementation method.

[0091] When using integrated units, the vehicle may include a processing module and a storage module. The processing module is used to control and manage the vehicle's movements. The storage module is used to support the vehicle in executing relevant program code and data.

[0092] The processing module may be a processor or a controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0093] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement a vehicle locking control method in the above embodiment.

[0094] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a vehicle locking control method as described in the above embodiment.

[0095] In addition, the vehicle provided in the embodiments of this application may specifically be a chip, component or module. The vehicle may include a connected processor and a memory. The memory is used to store instructions. When the vehicle is running, the processor may call and execute the instructions to make the chip execute a vehicle locking control method in the above embodiments.

[0096] In this embodiment, the vehicle, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding vehicle locking control method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding vehicle locking control method provided above, and will not be repeated here.

[0097] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0098] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0099] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A vehicle interlocking control method, characterized in that, The vehicle locking control method includes: When the vehicle is stationary and no one is in the cabin, if a closing command for the electric door is detected, the vehicle key is detected to obtain a first detection result, which includes whether the vehicle key is detected or not. If any electric vehicle door is detected to be closed, the vehicle key is detected again to obtain a second detection result, which includes whether the vehicle key was detected or not. With all doors closed, perform a periodic key search operation to obtain periodic search results; Based on the first detection result, the second detection result, and the periodic search result, determine whether to control the vehicle to lock.

2. The vehicle interlocking control method according to claim 1, characterized in that, The step of determining whether to control the vehicle lock based on the first detection result, the second detection result, and the periodic search result includes: Based on the first detection result and the second detection result, a key detection mark is generated, the key detection mark including a first mark for indicating that the vehicle key has been detected and a second mark for indicating that the vehicle key has not been detected; Based on the key detection marker and the periodic search results, determine whether to lock the vehicle.

3. The vehicle interlocking control method according to claim 2, characterized in that, The step of generating a key detection marker based on the first detection result and the second detection result includes: Perform a logical OR operation on the first detection result and the second detection result to obtain the operation result; The key detection mark is set according to the calculation result.

4. The vehicle interlocking control method according to claim 2, characterized in that, The step of determining whether to lock the vehicle based on the key detection mark and the periodic search result includes: If the key detection marker is the first marker, the periodic search result indicates that the vehicle key has moved from the unlocking area outside the vehicle to the locking area outside the vehicle, thereby controlling the vehicle to lock. The external unlocking zone refers to the area centered on the vehicle with a radius of a preset distance, while the external locking zone includes the area in the environment other than the external unlocking zone.

5. The vehicle interlocking control method according to claim 2, characterized in that, The step of determining whether to lock the vehicle based on the key detection mark and the periodic search result includes: If the key detection marker is the first marker, the periodic search result indicates that the vehicle key has changed from a detectable state to an undetectable state, thereby controlling the vehicle to lock.

6. The vehicle interlocking control method according to claim 2, characterized in that, The step of determining whether to lock the vehicle based on the key detection mark and the periodic search result includes: If the key detection marker is the first marker, the periodic search result indicates that the vehicle key has not been detected, and after a preset delay, the vehicle is locked.

7. The vehicle interlocking control method according to claim 2, characterized in that, The step of determining whether to lock the vehicle based on the key detection mark and the periodic search result includes: If the key detection marker is the second marker, the periodic search result indicates that the vehicle key has not been detected, the vehicle is kept unlocked, and a locking prompt message is output, which includes asking the user to confirm whether to lock the vehicle. In response to the user's confirmation command to lock the vehicle, the system controls the vehicle to lock.

8. A vehicle locking control device, characterized in that, The vehicle locking control device includes: The first detection module is used to detect the vehicle key when the vehicle is stationary and no one is in the cabin, and if a closing command of the electric door is detected, to obtain a first detection result. The first detection result includes whether the vehicle key is detected or not. The second detection module is used to detect the vehicle key again when any electric vehicle door is detected to be closed, and to obtain a second detection result, which includes whether the vehicle key was detected or not. The third detection module is used to perform a periodic key search operation and obtain periodic search results when all doors are closed. The vehicle locking control module is used to determine whether to lock the vehicle based on the first detection result, the second detection result, and the periodic search result.

9. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the vehicle to perform the vehicle locking control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the vehicle locking control method as described in any one of claims 1 to 7.