A vehicle door lock control method, device, equipment and readable storage medium

By acquiring timer count values ​​to calculate frequency and determine steady-state conditions, control commands are generated to control vehicle door locks. This solves the problem of vehicle door lock control systems being susceptible to noise interference and misoperation, and achieves highly stable and real-time vehicle door lock control.

CN122446948APending Publication Date: 2026-07-24DONGFENG AUTOMOBILE ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
DONGFENG AUTOMOBILE ELECTRONICS
Filing Date
2026-04-30
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In the existing technology, vehicle door lock control systems are susceptible to noise interference, which can lead to malfunctions, affect the real-time performance and reliability of the system, and make it difficult to effectively suppress signal interference and identify outdated data in resource-constrained environments.

Method used

The system obtains the current capture count value of the timer by responding to the trigger pulse signal, calculates the frequency value and determines whether the steady-state condition is met, generates control commands to control the vehicle door locks, and combines the timeout counter clearing strategy to filter out signal noise and jitter interference, thereby reducing the probability of false triggering.

Benefits of technology

It significantly improves the stability and reliability of the vehicle door lock control system, reduces the probability of misoperation, enhances the real-time performance and robustness of the system, and meets the stringent requirements of high-security scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122446948A_ABST
    Figure CN122446948A_ABST
Patent Text Reader

Abstract

The application discloses a vehicle door lock control method, device and equipment and a readable storage medium, relates to the technical field of vehicle control, and comprises the following steps: in response to a trigger pulse signal, acquiring a current capture count value of a timer, and calculating a current capture frequency value according to a count difference between the current capture count value and a last capture count value; judging whether the current capture frequency value exceeds a preset overflow identifier value; if the preset overflow identifier value is not exceeded, judging whether the current capture frequency value meets a preset steady-state condition; if the preset steady-state condition is met, generating a control instruction according to the current capture frequency value to control an execution mechanism of a vehicle door lock. Signal noise and dithering interference can be effectively filtered out, the probability of false triggering is reduced, the calculation load of an interrupt program is reduced, long-term non-updated data can be identified and removed, the reliability, real-time performance and overall robustness of a safety-critical application of a vehicle are improved, and strict control requirements in a high-safety-level scene are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle control technology, and in particular to a vehicle door lock control method, device, equipment, and readable storage medium. Background Technology

[0002] With the evolution of automotive electronic architecture and the implementation of functional safety standards, critical vehicle safety functions such as door lock control, airbag detection, and collision detection place increasingly stringent demands on the reliability, real-time performance, and diagnostics of underlying signal processing. However, the electromagnetic environment inside vehicles is complex, signal transmission is susceptible to noise interference, and microprocessor resources are often limited. Therefore, how to achieve low-latency and highly robust signal acquisition and processing while ensuring high anti-interference capabilities has become a key focus.

[0003] However, in existing technologies, the interrupt routines of vehicle infotainment processors contain numerous computational steps and complex log recording, diagnostic formatting, communication reporting, or persistence operations, making execution time unpredictable. This compromises the system's real-time performance and determinism, which is fatal for time-critical applications like automotive control. Furthermore, vehicle infotainment systems are prone to unexpected overflow events and read errors. For example, if a door lock control system misinterprets a jittery signal as an unlock command or mistakenly accepts an expired lock signal as valid, it will lead to an excessively high false trigger rate. A high false trigger rate in vehicle door lock unlocking systems directly endangers the lives of occupants and the safety of vehicle property, causing irreparable and serious consequences.

[0004] Therefore, designing a signal processing method that can effectively suppress signal interference, ensure stable and normal data, and have anomaly diagnosis capabilities in resource-constrained embedded environments has become a pressing technical challenge in the field of automotive electronic control. Summary of the Invention

[0005] This invention provides a vehicle door lock control method, device, equipment, and readable storage medium to solve the technical problems in related technologies, such as excessive interrupt program load affecting system real-time performance, the risk of inconsistency between system timing and data, and the system's sensitivity to noise jitter and susceptibility to misuse of outdated data, which can lead to malfunctions.

[0006] Firstly, a vehicle door lock control method is provided, comprising the following steps: In response to the trigger pulse signal, the current capture count value of the timer is obtained, and the current capture frequency value is calculated based on the count difference between the current capture count value and the previous capture count value. Determine whether the current capture frequency value exceeds the preset overflow flag value; If the preset overflow flag value is not exceeded, then determine whether the current capture frequency value meets the preset steady-state condition; If the preset steady-state conditions are met, a control command is generated based on the current capture frequency value to control the actuator of the vehicle door lock.

[0007] In some embodiments, the step of responding to a trigger pulse signal, obtaining the current capture count value of the timer, and calculating the current capture frequency value based on the count difference between the current capture count value and the previous capture count value includes: The response trigger pulse signal, obtaining the current capture count value of the timer includes the timer capturing the transition state of the pulse signal from the sensor and triggering the timer's interrupt routine, then the timer interrupts and records the current capture count value; Compare the current capture count value with the previous capture count value; If the current capture count is greater than the previous capture count, the timer directly calculates the count difference; if the current capture count is less than the previous capture count, the timer performs a wraparound calculation to determine the count difference. The rewind calculation is that the count difference equals the current capture count value plus the timer count limit minus the previous capture count value; Multiply the timer's clock frequency by the preset unit conversion factor and then divide by the count difference to obtain the current capture frequency value.

[0008] In some embodiments, determining whether the current capture frequency value exceeds a preset overflow flag value includes: The preset overflow flag value is the upper limit of the current capture frequency value storage register; In some embodiments, after determining whether the current capture frequency value exceeds a preset overflow flag value, the process includes: If the preset overflow flag value is exceeded, the current capture frequency value is written to the timer channel register and an overflow event is recorded.

[0009] In some embodiments, the step of determining whether the current capture frequency value meets a preset steady-state condition if the preset overflow flag value is not exceeded includes: Calculate the difference between the current capture frequency value and the previous capture frequency value; Within a preset time period, repeatedly check whether the difference between the current capture frequency value and the previous capture frequency value is less than a preset stability judgment value: If the difference between the current capture frequency value and the previous capture frequency value is less than the preset stability judgment value, the count value of the stability judgment counter is incremented by one; If the difference between the current capture frequency value and the previous capture frequency value is greater than the preset stability judgment value, the count value of the stability judgment counter will be reset. After the preset duration ends, check whether the stability check counter's count value is greater than or equal to the preset number of stability checks: If so, then determine that the current capture frequency value meets the preset steady-state condition; If not, then determine that the current capture frequency value does not meet the preset steady-state condition; After the judgment is completed, update the current capture count value to the previous capture count value for use in the next calculation; After the judgment is completed, update the current capture frequency value to the previous capture frequency value for use in the next calculation; In some embodiments, the step of satisfying a preset steady-state condition further includes: If the current capture frequency value meets the preset steady-state condition, write the current capture frequency value into the timer channel register; In some embodiments, after writing the current capture frequency value to the timer channel register, the method further includes: After the current capture frequency value is written to the timer channel register, the timeout counter starts counting. When the timeout counter value is greater than the timeout threshold, the timer channel register is cleared.

[0010] In some embodiments, the actuator that generates control commands to control the vehicle door locks based on the current capture frequency value if a preset steady-state condition is met includes: If the current capture frequency value is greater than or equal to the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to unlock; If the current capture frequency value is less than the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to lock. If the door lock is already locked, the locked state is maintained. Before controlling the actuator of the vehicle door lock, a steady-state verification can be performed. This requires multiple judgments on the relationship between the capture frequency value and the door lock unlocking trigger threshold. When the results of multiple judgments are the same, a control command is generated based on the current capture frequency value to control the actuator of the vehicle door lock.

[0011] Secondly, a vehicle door lock control device is provided, comprising: The capture unit is used to respond to the trigger pulse signal, obtain the current capture count value of the timer, and calculate the current capture frequency value based on the count difference between the current capture count value and the previous capture count value. The judgment unit is used to determine whether the current capture frequency value exceeds the preset overflow flag value. If it does not exceed the preset overflow flag value, it determines whether the current capture frequency value meets the preset steady-state condition. An execution unit is an actuator used to generate control commands based on the current capture frequency value to control the vehicle door locks.

[0012] Thirdly, a computer device is provided, comprising: a memory and a processor, wherein the memory stores at least one instruction, the at least one instruction being loaded and executed by the processor to implement the aforementioned vehicle door lock control method.

[0013] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, which, when executed by a computer, cause the computer to perform the aforementioned vehicle door lock control method.

[0014] The beneficial effects of the technical solution provided by this invention include: This invention discloses a vehicle door lock control method, apparatus, device, and readable storage medium. By responding to a trigger pulse signal, the method acquires the current capture count value of a timer and calculates the current capture frequency value based on the difference between the current capture count value and the previous capture count value. It then determines whether the current capture frequency value exceeds a preset overflow flag value. If it does not exceed the preset overflow flag value, it determines whether the current capture frequency value meets a preset steady-state condition. If the preset steady-state condition is met, it generates a control command based on the current capture frequency value to control the vehicle door lock's actuator. This invention effectively filters out signal noise and jitter interference through a steady-state determination mechanism, significantly reducing the probability of false triggering and alleviating the computational load of interrupt service routines, thereby increasing system stability. Furthermore, by employing a timeout failure clearing strategy at the read end, it can promptly identify and clear historical data that has not been updated for a long time, fundamentally preventing decision-making errors caused by the misuse of outdated data in upper-layer business processes. Simultaneously, by explicitly diagnosing and counting intermediate computational overflows and defining clearly defined anomaly codes, it enhances the system's observability and fault location capabilities. Thus, without significantly increasing hardware resource costs, it greatly improves the reliability, real-time performance, and overall robustness of signal acquisition in vehicle safety-critical applications, meeting the stringent control requirements of high-safety-level scenarios. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart illustrating a vehicle door lock control method provided in an embodiment of the present invention.

[0017] Figure 2 Implementation provided for the embodiments of the present invention Figure 1 A flowchart illustrating steps S1-S3.

[0018] Figure 3 This is a timing diagram of a vehicle door lock control method provided in an embodiment of the present invention.

[0019] Figure 4 This is a schematic diagram of a vehicle door lock control device provided in an embodiment of the present invention.

[0020] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] This invention provides a vehicle door lock control method, device, equipment, and readable storage medium, which can solve the technical problems in the prior art such as excessive interrupt program load affecting system real-time performance, the risk of system timing and data inconsistency, and the system being sensitive to noise jitter and prone to misuse of outdated data, thereby causing malfunctions.

[0023] See Figure 1 As shown, this embodiment of the invention provides a vehicle door lock control method, including the following steps: S1. Respond to the trigger pulse signal, obtain the current capture count value of the timer, and calculate the current capture frequency value based on the count difference between the current capture count value and the previous capture count value.

[0024] In an optional embodiment, the step of responding to the trigger pulse signal, obtaining the current capture count value of the timer, and calculating the current capture frequency value based on the count difference between the current capture count value and the previous capture count value includes: The response trigger pulse signal, obtaining the current capture count value of the timer includes the timer capturing the transition state of the pulse signal from the sensor and triggering the timer's interrupt routine, then the timer interrupts and records the current capture count value; In an optional embodiment, the interrupt routine only includes the operations of obtaining the current capture count value of the timer and calculating the current capture frequency value, and does not include subsequent operations such as logging, diagnostic processing and log reporting, which can reduce the load on the interrupt routine. Compare the current capture count value with the previous capture count value; If the current capture count is greater than the previous capture count, the timer directly calculates the count difference; if the current capture count is less than the previous capture count, the timer performs a wraparound calculation to determine the count difference. The wraparound calculation is that the count difference equals the current capture count value plus the timer count limit minus the previous capture count value. For example, if the timer count register is 16 bits, then the timer count limit is 65536. Multiply the timer's clock frequency by the preset unit conversion factor and then divide by the count difference to obtain the current capture frequency value; In one specific embodiment, the clock frequency of the timer is set to 1MHz, the preset unit conversion factor is 1000, and the operation register for calculating the current capture frequency value is 32 bits to prevent overflow during the intermediate calculation stage.

[0025] S2. Determine whether the current capture frequency value exceeds the preset overflow flag value.

[0026] The preset overflow flag value is the upper limit of the current capture frequency value storage register; In an optional embodiment, after determining whether the current capture frequency value exceeds a preset overflow flag value, the process includes: If the preset overflow flag value is exceeded, the current capture frequency value is written to the timer channel register and an overflow event is recorded. In the specific embodiment described in step S1, the preset overflow flag value is 0xFFFF; If an overflow event is recorded, the timer channel register is written with 0xFFFF.

[0027] S3. If the preset overflow flag value is not exceeded, determine whether the current capture frequency value meets the preset steady-state condition.

[0028] In an optional embodiment, the step of determining whether the current capture frequency value meets the preset steady-state condition if the preset overflow flag value is not exceeded includes: Calculate the difference between the current capture frequency value and the previous capture frequency value; Within a preset time period, repeatedly check whether the difference between the current capture frequency value and the previous capture frequency value is less than a preset stability judgment value; The preset duration can be related to the frequency of the captured signal. If the frequency of the captured signal is high, the preset duration will be longer, and vice versa. It can also be set to a fixed duration. If the difference between the current capture frequency value and the previous capture frequency value is less than the preset stability judgment value, the count value of the stability judgment counter is incremented by one; If the difference between the current capture frequency value and the previous capture frequency value is greater than the preset stability judgment value, the count value of the stability judgment counter will be reset. The step of resetting the stability judgment counter includes resetting the stability judgment counter to 0 or to 1. If it is reset to 1, the speed of recovery from an unstable state to a stable state can be accelerated, but the anti-interference ability will be reduced. After the preset duration ends, check whether the stability check counter's count value is greater than or equal to the preset number of stability checks: If so, then determine that the current capture frequency value meets the preset steady-state condition; If not, then determine that the current capture frequency value does not meet the preset steady-state condition; The preset number of stable judgments is the larger of the product of the previous capture count and the stable number ratio coefficient and the minimum stable number. The minimum stable number is 1. If the product of the previous capture count and the stable number ratio coefficient is less than 1, a judgment is made to ensure that there is still a judgment result even in the case of low frequency. If the preset stability judgment count is 1, then the preset steady-state condition is determined directly by judging whether the difference between the current capture frequency value and the previous capture frequency value is less than the preset stability judgment value. After the judgment is completed, update the current capture count value to the previous capture count value for use in the next calculation; After the judgment is completed, update the current capture frequency value to the previous capture frequency value for use in the next calculation; In an optional embodiment, if the stability requirement of the judgment is high, only the current capture count value and the current capture frequency value that meet the preset steady-state conditions can be updated; if the preset steady-state conditions are not met, no update is required. In the specific embodiment described in step S1, the preset stability judgment value is 5, wherein the minimum number of stable counts is 1, the stability count ratio coefficient is 0.03, the previous capture count is 1000, the preset stability judgment count is 30, and the preset duration is 300 milliseconds.

[0029] In an optional embodiment, the step of satisfying a preset steady-state condition further includes: If the current capture frequency value meets the preset steady-state condition, write the current capture frequency value into the timer channel register; In an optional embodiment, after writing the current capture frequency value to the timer channel register, the method further includes: After the current capture frequency value is written to the timer channel register, the timeout counter starts counting. When the timeout counter value is greater than the timeout threshold, the timer channel register is cleared. Among them, when the timeout counter count value is greater than the timeout time threshold, the register is cleared to prevent the misuse of old data; In the specific embodiment described in step S1, the timeout threshold is 1000, representing 1000 milliseconds. After the register is cleared, it means that the response timeout has expired.

[0030] See Figure 2 As shown, the embodiment of the present invention provides a flowchart of steps S1-S3.

[0031] S4. If the preset steady-state conditions are met, a control command is generated based on the current capture frequency value to control the actuator of the vehicle door lock.

[0032] In an optional embodiment, the actuator that generates control commands to control the vehicle door locks based on the current capture frequency value if a preset steady-state condition is met includes: If the current capture frequency value is greater than or equal to the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to unlock; If the current capture frequency value is less than the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to lock. If the door lock is already locked, the locked state is maintained. Before controlling the actuator of the vehicle door lock, a steady-state verification can be performed. This requires multiple judgments on the relationship between the capture frequency value and the door lock unlocking trigger threshold. When the results of multiple judgments are the same, a control command is generated based on the current capture frequency value to control the actuator of the vehicle door lock.

[0033] Among them, the actuator that generates control commands to control the vehicle door locks is the application layer, which reads the current capture frequency value in a specific channel register inside the timer by calling the abstract layer input capture function; If the current capture frequency value read is 0, it means that the response timeout has expired. If the current capture frequency value read is 0xFFFF, it means that the current capture frequency value exceeds the preset overflow flag value. If the current capture frequency value read is between 1 and 0xFFFE, it means that the read value is normal. In the specific embodiment described in step S1, the door lock unlocking trigger threshold is 235, and the unlocking and locking intervals are shown in Table 1: Table 1. Locking and Unlocking Intervals

[0034] Among them, the door lock unlocking trigger threshold can effectively distinguish between the two execution states.

[0035] In the specific embodiments described in step S1, the achievable effects are shown in Table 2: Table 2 Effects of Specific Embodiments

[0036] In summary, the vehicle door lock control method in this embodiment of the invention obtains the current capture count value of a timer by responding to a trigger pulse signal, and calculates the current capture frequency value based on the count difference between the current capture count value and the previous capture count value; determines whether the current capture frequency value exceeds a preset overflow flag value; if it does not exceed the preset overflow flag value, determines whether the current capture frequency value meets a preset steady-state condition; if it meets the preset steady-state condition, generates a control command based on the current capture frequency value to control the actuator of the vehicle door lock. This invention effectively filters out signal noise and jitter interference through a steady-state determination mechanism, significantly reducing the probability of false triggering and alleviating the computational load of interrupt service routines, thereby increasing system stability. Furthermore, by employing a timeout failure clearing strategy at the read end, it can promptly identify and clear historical data that has not been updated for a long time, fundamentally preventing decision-making errors caused by the misuse of outdated data in upper-layer business processes. Simultaneously, by explicitly diagnosing and counting intermediate computational overflows and defining clearly defined anomaly codes, it enhances the system's observability and fault location capabilities. Thus, without significantly increasing hardware resource costs, it greatly improves the reliability, real-time performance, and overall robustness of signal acquisition in vehicle safety-critical applications, meeting the stringent control requirements of high-safety-level scenarios.

[0037] See Figure 3 As shown, this embodiment of the invention provides a timing diagram of a vehicle door lock control method.

[0038] See Figure 4 As shown, this embodiment of the invention also provides a vehicle door lock control device, including: The capture unit is used to respond to the trigger pulse signal, obtain the current capture count value of the timer, and calculate the current capture frequency value based on the count difference between the current capture count value and the previous capture count value. The judgment unit is used to determine whether the current capture frequency value exceeds the preset overflow flag value. If it does not exceed the preset overflow flag value, it determines whether the current capture frequency value meets the preset steady-state condition. An execution unit is an actuator used to generate control commands based on the current capture frequency value to control the vehicle door locks.

[0039] This invention also provides a computer device, including: a memory, a processor, and a network interface connected via a system bus, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement all or part of the steps of the aforementioned vehicle door lock control method.

[0040] The network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 5The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0041] A processor can be a CPU, or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor, or any conventional processor. The processor is the control center of a computer device, connecting all parts of the computer device through various interfaces and lines.

[0042] Memory can be used to store computer programs and / or modules. The processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory. Memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for at least one function (such as video playback, image playback, etc.), etc.; the data storage area can store data created based on the use of the mobile phone (such as video data, image data, etc.). In addition, memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, SmartMedia Cards (SMC), Secure Digital (SD) cards, Flash Cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.

[0043] In one embodiment of the invention, the processor is used to run a computer program stored in a memory to perform the following steps: In response to the trigger pulse signal, the current capture count value of the timer is obtained, and the current capture frequency value is calculated based on the count difference between the current capture count value and the previous capture count value. Determine whether the current capture frequency value exceeds the preset overflow flag value; If the preset overflow flag value is not exceeded, then determine whether the current capture frequency value meets the preset steady-state condition; If the preset steady-state conditions are met, a control command is generated based on the current capture frequency value to control the actuator of the vehicle door lock.

[0044] In some embodiments, the step of responding to a trigger pulse signal, obtaining the current capture count value of the timer, and calculating the current capture frequency value based on the count difference between the current capture count value and the previous capture count value includes: The response trigger pulse signal, obtaining the current capture count value of the timer includes the timer capturing the transition state of the pulse signal from the sensor and triggering the timer's interrupt routine, then the timer interrupts and records the current capture count value; Compare the current capture count value with the previous capture count value; If the current capture count is greater than the previous capture count, the timer directly calculates the count difference; if the current capture count is less than the previous capture count, the timer performs a wraparound calculation to determine the count difference. The rewind calculation is that the count difference equals the current capture count value plus the timer count limit minus the previous capture count value; Multiply the timer's clock frequency by the preset unit conversion factor and then divide by the count difference to obtain the current capture frequency value.

[0045] In some embodiments, determining whether the current capture frequency value exceeds a preset overflow flag value includes: The preset overflow flag value is the upper limit of the current capture frequency value storage register; In some embodiments, after determining whether the current capture frequency value exceeds a preset overflow flag value, the process includes: If the preset overflow flag value is exceeded, the current capture frequency value is written to the timer channel register and an overflow event is recorded.

[0046] In some embodiments, the step of determining whether the current capture frequency value meets a preset steady-state condition if the preset overflow flag value is not exceeded includes: Calculate the difference between the current capture frequency value and the previous capture frequency value; Within a preset time period, repeatedly check whether the difference between the current capture frequency value and the previous capture frequency value is less than a preset stability judgment value: If the difference between the current capture frequency value and the previous capture frequency value is less than the preset stability judgment value, the count value of the stability judgment counter is incremented by one; If the difference between the current capture frequency value and the previous capture frequency value is greater than the preset stability judgment value, the count value of the stability judgment counter will be reset. After the preset duration ends, check whether the stability check counter's count value is greater than or equal to the preset number of stability checks: If so, then determine that the current capture frequency value meets the preset steady-state condition; If not, then determine that the current capture frequency value does not meet the preset steady-state condition; After the judgment is completed, update the current capture count value to the previous capture count value for use in the next calculation; After the judgment is completed, update the current capture frequency value to the previous capture frequency value for use in the next calculation; In some embodiments, the step of satisfying a preset steady-state condition further includes: If the current capture frequency value meets the preset steady-state condition, write the current capture frequency value into the timer channel register; In some embodiments, after writing the current capture frequency value to the timer channel register, the method further includes: After the current capture frequency value is written to the timer channel register, the timeout counter starts counting. When the timeout counter value is greater than the timeout threshold, the timer channel register is cleared.

[0047] In some embodiments, the actuator that generates control commands to control the vehicle door locks based on the current capture frequency value if a preset steady-state condition is met includes: If the current capture frequency value is greater than or equal to the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to unlock; If the current capture frequency value is less than the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to lock. If the door lock is already locked, the locked state is maintained. Before controlling the actuator of the vehicle door lock, a steady-state verification can be performed. This requires multiple judgments on the relationship between the capture frequency value and the door lock unlocking trigger threshold. When the results of multiple judgments are the same, a control command is generated based on the current capture frequency value to control the actuator of the vehicle door lock.

[0048] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements all or part of the steps of the aforementioned vehicle door lock control method.

[0049] The embodiments of the present invention can implement all or part of the aforementioned processes, or they can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various methods described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0050] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, servers, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0051] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0052] The serial numbers in the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0053] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0054] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features of the invention herein.

Claims

1. A vehicle door lock control method, characterized in that, Includes the following steps: In response to the trigger pulse signal, the current capture count value of the timer is obtained, and the current capture frequency value is calculated based on the difference between the current capture count value and the previous capture count value. Determine whether the current capture frequency value exceeds the preset overflow flag value; If the preset overflow flag value is not exceeded, then determine whether the current capture frequency value meets the preset steady-state condition; If the preset steady-state conditions are met, a control command is generated based on the current capture frequency value to control the actuator of the vehicle door lock.

2. The vehicle door lock control method according to claim 1, characterized in that, The response trigger pulse signal obtains the current capture count value of the timer, and calculates the current capture frequency value based on the count difference between the current capture count value and the previous capture count value, including: Compare the current capture count value with the previous capture count value; If the current capture count is greater than the previous capture count, the timer directly calculates the count difference; if the current capture count is less than the previous capture count, the timer performs a wraparound calculation to determine the count difference. Multiply the timer's clock frequency by the preset unit conversion factor and then divide by the count difference to obtain the current capture frequency value.

3. The vehicle door lock control method according to claim 1, characterized in that, After determining whether the current capture frequency value exceeds the preset overflow flag value, the following steps are included: If the preset overflow flag value is exceeded, the current capture frequency value is written to the timer channel register and an overflow event is recorded.

4. The vehicle door lock control method according to claim 1, characterized in that, If the preset overflow flag value is not exceeded, then determining whether the current capture frequency value meets the preset steady-state condition includes: Calculate the difference between the current capture frequency value and the previous capture frequency value; Within a preset time period, repeatedly check whether the difference between the current capture frequency value and the previous capture frequency value is less than a preset stability judgment value: If the difference between the current capture frequency value and the previous capture frequency value is less than the preset stability judgment value, the stability judgment counter is incremented by 1; If the difference between the current capture frequency value and the previous capture frequency value is greater than the preset stability judgment value, the count value of the stability judgment counter will be reset. Next, determine whether the stability check counter's count value is greater than or equal to the preset stability check count value: If so, then determine that the current capture frequency value meets the preset steady-state condition; If not, then it is determined that the current capture frequency value does not meet the preset steady-state condition.

5. A vehicle door lock control method according to claim 1, characterized in that, If the preset steady-state condition is met, the following is also included: Write the current capture frequency value to the timer channel register.

6. A vehicle door lock control method according to claim 3 or 5, characterized in that, After writing the current capture frequency value to the timer channel register, the method further includes: The timeout counter starts counting. When the timeout counter count value is greater than the timeout threshold, the timer channel register is cleared.

7. A vehicle door lock control method according to claim 1, characterized in that, If the preset steady-state condition is met, the actuator that generates a control command based on the current capture frequency value to control the vehicle door lock includes: If the current capture frequency value is greater than or equal to the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to unlock; If the current capture frequency value is less than the door lock unlocking trigger threshold, a control command is generated to control the actuator of the vehicle door lock to lock. If the door lock is already locked, the locked state remains unchanged.

8. A vehicle door lock control device, characterized in that, include: The capture unit is used to respond to the trigger pulse signal, obtain the current capture count value of the timer, and calculate the current capture frequency value based on the count difference between the current capture count value and the previous capture count value. The judgment unit is used to determine whether the current capture frequency value exceeds the preset overflow flag value. If it does not exceed the preset overflow flag value, it determines whether the current capture frequency value meets the preset steady-state condition. An execution unit is an actuator used to generate control commands based on the current capture frequency value to control the vehicle door locks.

9. A computer device, characterized in that, include: A memory and a processor, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement a vehicle door lock control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions that, when executed by a computer, cause the computer to perform a vehicle door lock control method according to any one of claims 1 to 7.