Control method and control device of door lock, electronic device and vehicle
By providing a variable drive voltage to the motor, the door lock control method solves the problem of door locks not being able to fully engage in different models or even the same model of vehicle, thus achieving door lock adaptability in different vehicles and improving motor sound quality.
Patent Information
- Application Number
- CN202410547170.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-04-30
AI Technical Summary
In traditional new energy vehicle models, door locks may not fully engage due to inconsistent sealing forces in different models or even different vehicles of the same model, resulting in insufficient drive voltage.
A door lock control method is provided, which provides a variable drive voltage to the motor after the door lock has been in a half-lock state for a preset time. The voltage includes a first calibration voltage and an adjustable second calibration voltage. The duty cycle of the power supply output voltage is adjusted to ensure that the door lock enters the fully locked state from the half-lock state.
The compatibility of the door locks has been improved, enabling the door locks of different models or the same model to successfully engage, avoiding problems such as poor motor noise quality and incomplete door closure caused by insufficient or excessive drive voltage.
Smart Images

Figure CN118273594B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a door lock control method, control device, electronic device, and vehicle. Background Technology
[0002] As people's living standards improve, automobiles are playing an increasingly indispensable role in their lives. How to make cars intelligent to improve user experience is receiving increasing attention from developers. Traditionally, many new energy vehicle models use the same door lock, and the motor of this same door lock uses the same driving voltage to move the door lock from a half-locked state to a fully locked state. However, because the sealing reaction force varies between different models or even different vehicles of the same model, the driving voltage is too low for vehicles with a higher sealing reaction force, preventing the door lock from engaging properly. Summary of the Invention
[0003] This application provides a door lock control method, control device, electronic device, and vehicle, which can solve the problem of door locks failing to engage properly in related technologies. The technical solution is as follows:
[0004] Firstly, a door lock control method is provided, including:
[0005] When the door lock remains in a half-locked state for a period of time equal to a first preset duration, if the door lock has not entered a fully locked state, a variable drive voltage is supplied to the door lock motor to enable the door lock to enter the fully locked state.
[0006] The door lock control method provided in this application, after the door lock has been in a half-lock state for a first preset time, if the door lock has not entered the fully locked state, can provide a variable drive voltage to the motor to enable the door lock to enter the fully locked state. Thus, regardless of different vehicle models or different vehicles of the same model, the method provided in this application can ensure that the door lock engages properly, transitioning from a half-lock state to a fully locked state. In other words, the method provided in this application is adaptable to different vehicles, improving the door lock's compatibility.
[0007] Optionally, a variable drive voltage is provided to the motor of the door lock to enable the door lock to enter the fully locked state, including:
[0008] Provide the motor with a first calibration voltage;
[0009] If the first calibration voltage fails to cause the door lock to enter the fully locked state, the drive voltage supplied to the motor is increased.
[0010] Optionally, the driving voltage includes a second calibration voltage, wherein the second calibration voltage is greater than the first calibration voltage.
[0011] Optionally, increasing the drive voltage supplied to the motor includes:
[0012] Increase the duty cycle of the power supply output voltage to increase the drive voltage supplied to the motor.
[0013] Optionally, the method further includes:
[0014] If the door lock does not enter the fully locked state and the motor stalls after the first calibrated voltage has been supplied to the motor for a second preset duration, the driving voltage supplied to the motor is increased.
[0015] Optionally, increasing the drive voltage supplied to the motor includes:
[0016] The driving voltage supplied to the motor is gradually increased.
[0017] Optionally, the method further includes:
[0018] If the half-lock switch of the door lock is detected to be open, and the open duration of the half-lock switch reaches a third preset duration, then it is determined that the door lock has entered the half-lock state.
[0019] If the full lock switch of the door lock is detected to be open, and the open duration of the full lock switch reaches a fourth preset duration, then the door lock is determined to have entered the full lock state.
[0020] Optionally, the method further includes:
[0021] When the duration for which the first calibrated voltage is supplied to the motor is less than the second preset duration, and the duration for which the full lock switch is disconnected reaches the fourth preset duration, it is determined that the door lock has successfully engaged and enters the full lock state.
[0022] Optionally, after providing a variable drive voltage to the motor of the door lock that enables the door lock to enter the fully locked state, the method further includes:
[0023] When the duration for which the second calibrated voltage is supplied to the motor is less than the target duration, and the duration for which the full lock switch is disconnected reaches the fourth preset duration, it is determined that the door lock has successfully engaged and enters the full lock state.
[0024] The target duration is the difference between the fifth preset duration and the second preset duration.
[0025] Optionally, the method further includes:
[0026] When the duration of supplying the second calibrated voltage to the motor is greater than or equal to the target duration, and the full lock switch is not open, it is determined that the door lock has failed to engage, and an indication message is issued to indicate that the door lock has failed to engage.
[0027] The target duration is the difference between the fifth preset duration and the second preset duration.
[0028] Optionally, a variable drive voltage is provided to the motor of the door lock to enable the door lock to enter the fully locked state, including:
[0029] Adjust the duty cycle of the power supply output voltage to provide a variable drive voltage to the door lock motor that enables the door lock to enter the fully locked state.
[0030] Optionally, after determining that the door lock has entered the fully locked state, the method further includes:
[0031] Control the motor brake;
[0032] The motor is driven to reverse in order to control the motor to reset.
[0033] Optionally, after driving the motor to reverse, the method further includes:
[0034] Obtain the engagement duration of the door lock;
[0035] When the reverse rotation time of the motor is less than the engagement time, and the open time of the door lock's center switch reaches the sixth preset time, it is determined that the motor reset is successful.
[0036] When the reverse rotation duration of the motor is greater than or equal to the engagement duration, and the neutral switch is not disconnected, the motor reset is determined to have failed.
[0037] The engagement time is the time it takes for the door lock to move from the half-locked state to the fully-locked state under the drive of the motor.
[0038] Optionally, the method further includes:
[0039] When the motor reset is successful or fails, the motor is controlled to brake.
[0040] Secondly, a door lock control device is provided, comprising:
[0041] A voltage supply module is used to provide a variable drive voltage to the motor of the door lock, which enables the door lock to enter the fully locked state, if the door lock has not entered the fully locked state when the duration of the door lock in the half-lock state reaches a first preset duration.
[0042] Thirdly, an electronic device is provided, comprising:
[0043] processor;
[0044] Memory used to store the processor's executable instructions;
[0045] The processor is configured to execute the instructions to implement the door lock control method as described in any one of the first aspects.
[0046] Fourthly, a computer-readable storage medium is provided, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the door lock control method as described in any one of the first aspects.
[0047] Fifthly, a vehicle is provided, including a door lock control device as described in the second aspect.
[0048] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0049] Figure 1 This is a schematic diagram of a door lock according to an exemplary embodiment;
[0050] Figure 2 This is a flowchart of a door lock control method according to an exemplary embodiment;
[0051] Figure 3 This is a block diagram of a door lock control device according to an exemplary embodiment;
[0052] Figure 4 This is a schematic diagram of a storage medium provided according to an exemplary embodiment;
[0053] Figure 5 This is a block diagram of an electronic device provided according to an exemplary embodiment. Detailed Implementation
[0054] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0055] This application provides a vehicle door lock 100, which is disposed inside a vehicle door. See also... Figure 1 The door lock 100 includes: a controller 101, a full lock switch 102, a half lock switch 103, a neutral switch 104, a motor 105, and a bolt (…). Figure 1 (not shown in the image) and latch ( Figure 1 (Not shown in the image). From Figure 1As can be seen, the controller 101 is connected to the full lock switch 102, the half lock switch 103, the neutral switch 104, and the motor 105. Furthermore, under the control of the controller 101, the motor 105 can drive the bolt to move towards the latch, so that the bolt and latch are tightly engaged, thereby completely closing the vehicle door.
[0056] Please continue reading Figure 1 The vehicle also includes a power supply 200. The power supply 200 is connected to the controller 101 and the motor 105 respectively to provide drive signals to the controller 101 and the motor 105.
[0057] Both the full lock switch 102 and the half lock switch 103 can represent the state of the latch. In the design process, the door lock switches (such as the full lock switch 102 and the half lock switch 103) are usually disconnected under the most frequently used operating condition (i.e., when the door is closed) to minimize the static power consumption of the controller.
[0058] Based on this, when the latch and latch are tightly engaged and in a fully locked state, the door is fully closed, the full lock switch 102 is open (i.e., released), and the resistance across the full lock switch 102 approaches infinity. When the latch and latch are not tightly engaged and in a partially locked state, the door is in a half-locked or fully open state, the full lock switch 102 is activated (i.e., triggered), and the resistance across the full lock switch 102 approaches 0.
[0059] When the latch is partially locked or fully locked (i.e., the door is in a half-lock or full-lock state), the half-lock switch 103 is open, and the resistance across the half-lock switch 103 approaches infinity. When the latch is not locked (i.e., the door is fully open), the half-lock switch 103 is closed, and the resistance across the half-lock switch 103 approaches zero.
[0060] The neutral switch 104 represents the state of the door lock motor 105. When the door lock is unlocked or engaged, the motor 105 drives the transmission mechanism to perform a swinging motion. When the transmission mechanism moves away from the initial position, the neutral switch 104 is turned on, and the resistance across the neutral switch 104 approaches zero. When the motor completes its motion and returns to the neutral position (i.e., the motor resets), the neutral switch 104 is turned off, and the resistance across the neutral switch 104 approaches infinity.
[0061] The following description, with reference to the accompanying drawings, illustrates a door lock control method according to an embodiment of this application. This method is applied to a door lock controller, such as... Figure 1 The controller 101 shown. (Reference) Figure 2 The method includes the following steps:
[0062] S1. When the time the door lock is in the half-lock state reaches the first preset time, if the door lock has not entered the fully locked state, a variable drive voltage is provided to the door lock motor to enable the door lock to enter the fully locked state.
[0063] The first preset duration can be pre-stored by the controller, for example, it can be 200 milliseconds (ms). The variable drive voltage refers to a drive voltage whose magnitude can be gradually increased.
[0064] In this embodiment, occupants may forcefully push or pull the vehicle door. In this case, the significant pushing (or pulling) force from the occupants is sufficient to cause the door lock to first enter a half-lock state and then, within a short time (such as a first preset duration), enter a fully locked state. In this situation, the controller does not need to provide the variable drive voltage to the door lock motor.
[0065] Based on this, after determining that the door lock has been in a half-lock state for a first preset time, the controller can detect whether the door lock has entered a fully locked state. If the controller determines that the door lock has entered a fully locked state, it can determine that the pushing (or pulling) force on the door is sufficient to make the door lock enter a fully locked state, that is, the door lock is manually engaged, and the operation can be ended without providing a variable drive voltage to the motor. If the controller determines that the door lock has not entered a fully locked state, it can determine that the pushing (or pulling) force on the door is too small to make the door lock enter a fully locked state, and then it can provide a variable drive voltage to the motor that is sufficient to make the door lock enter a fully locked state, so as to engage the door lock and make the door completely closed.
[0066] In summary, this application provides a door lock control method. If the door lock has been in a half-lock state for a first preset time but has not yet entered a fully locked state, the method provides a variable drive voltage to the motor to enable the door lock to enter a fully locked state. Thus, regardless of different vehicle models or different vehicles of the same model, the method provided in this application can ensure the door lock engages properly, transitioning from a half-lock to a fully locked state. In other words, the method provided in this application is adaptable to different vehicles, improving the door lock's compatibility.
[0067] In this embodiment, the controller can detect the state of the half-lock switch and the full-lock switch of the door lock. If the controller detects that the half-lock switch is open (i.e., changes from on to off), and the open duration of the half-lock switch reaches a third preset duration, then the controller can determine that the door lock has entered a half-lock state. If the controller detects that the full-lock switch of the door lock is open, and the open duration of the full-lock switch reaches a fourth preset duration, then the controller can determine that the door lock has entered a full-lock state.
[0068] The third and fourth preset durations can both be empirical values pre-stored by the controller based on the door lock's settings. The third and fourth preset durations can be equal or unequal; for example, they can be equal. Furthermore, both the third and fourth preset durations can be shorter than the first preset duration mentioned above; for example, both can be 80ms.
[0069] Because a third preset duration (and a fourth preset duration) are set, errors caused by switch bounce can be prevented, thereby ensuring a high degree of reliability in determining the state of the half-locked switch (and fully-locked switch).
[0070] Understandably, for each of the half-lock and full-lock switches, the controller can determine the switch's state by measuring the resistance across its terminals. If the controller determines that the resistance across the switch is infinite, it can determine that the switch is open.
[0071] In this embodiment, the process of the controller providing a variable drive voltage to the door lock motor may include: the controller first providing a first calibration voltage to the motor. During the motor driving process, if the controller determines that the first calibration voltage is insufficient to move the door lock from a half-locked state to a fully locked state, it increases the drive voltage provided to the motor to increase the motor's driving force, thereby increasing the probability of the door lock entering a fully locked state.
[0072] The first calibration voltage can be pre-stored by the controller. This first calibration voltage is the drive voltage that enables the reference door lock of the reference vehicle to transition from a half-locked state to a fully locked state, and during this transition, ensures that the sound quality of the reference motor of the reference vehicle is higher than a quality threshold. The reference vehicle is the same model as the vehicle in question. For example, the first calibration voltage can be 6V.
[0073] Since the first calibration voltage is the driving voltage that enables the door lock of the reference vehicle to enter the fully locked state from the half-locked state, and during the process of entering the fully locked state from the half-locked state, the reference motor has a high sound quality. Therefore, using this first calibration voltage to drive the motor first can avoid the phenomenon of poor motor sound quality caused by excessive driving voltage.
[0074] Furthermore, during the motor drive process, if the initial calibrated voltage is insufficient to engage the fully locked door, this method can increase the motor's drive voltage to compensate for differences in motor load due to vehicle model, vehicle type, and environment. This increases the probability of the door lock engaging the fully locked state, thereby reducing the probability of the door failing to close completely due to insufficient drive voltage.
[0075] In summary, the method provided in this application embodiment can ensure that the driving voltage supplied to the motor is compatible with the motor, so that the driving voltage is neither too large nor too small for the motor. As a result, the motor can drive the door lock from the half-lock state to the fully locked state to a greater extent under the drive voltage, and the sound quality of the motor is good during this process.
[0076] In this embodiment, the controller can adjust the duty cycle of the output voltage of the power supply connected to the door lock to provide a variable drive voltage to the door lock's motor. Optionally, the power supply can be a battery.
[0077] Specifically, the controller can acquire the power supply voltage, calculate the target duty cycle of the power supply's output voltage when providing the first calibration voltage to the motor, and automatically adjust the power supply's output voltage duty cycle to that target duty cycle so that the power supply can provide the first calibration voltage to the motor. Subsequently, if the controller determines that using the first calibration voltage cannot cause the door lock to move from a half-locked state to a fully locked state, it can increase the target duty cycle to increase the drive voltage provided to the motor.
[0078] Optionally, the process of the controller increasing the variable drive voltage supplied to the motor may include: increasing the drive voltage once, during which the controller can directly adjust the duty cycle of the power supply output voltage to a preset duty cycle (e.g., 100% or 99%). Accordingly, the drive voltage supplied to the motor includes not only the first rated voltage but also a second rated voltage. The second rated voltage is greater than the first rated voltage.
[0079] Alternatively, the duty cycle of the power supply's output voltage can be gradually increased. In this case, the controller can gradually increase the duty cycle of the power supply's output voltage. The difference between the increased duty cycle and the original duty cycle can be pre-stored by the controller.
[0080] For example, if the current power supply voltage is 12V and the initial rated voltage is 6V, the controller can determine the target duty cycle as 50%. Assuming the controller gradually increases the duty cycle of the power supply's output voltage, and the difference between the increased and decreased duty cycles is 15%, the controller can first adjust the target duty cycle from 50% to 65%. If the motor continues to stall, the duty cycle of the power supply's output voltage can be adjusted to 80%. This process continues until the duty cycle reaches 100%.
[0081] In this embodiment, after the controller provides a first calibration voltage to the door lock motor, it can detect whether the door lock has entered a fully locked state and whether the motor is stalled. If the door lock has not entered a fully locked state and the motor is stalled, it can be determined that the current drive voltage cannot make the door lock enter a fully locked state, and then the drive voltage supplied to the motor can be increased.
[0082] Optionally, the probability of motor stalling is lower when the duration of supplying the first calibrated voltage to the motor is less than the second preset duration. Based on this, the controller can detect whether the motor is stalled even if the duration of supplying the first calibrated voltage to the motor reaches the second preset duration and the door lock is not in the fully locked state. This saves the controller's computational resources.
[0083] Correspondingly, if the door lock does not enter the fully locked state and the motor stalls after the controller has provided the variable drive voltage to the motor for a second preset time, it can be determined that the current drive voltage cannot make the door lock enter the fully locked state, and then the drive voltage provided to the motor can be increased.
[0084] The second preset duration is pre-stored by the controller. This second preset duration can be longer than the first preset duration. For example, the second preset duration can be 1.5 seconds (s).
[0085] Specifically, after providing the first calibrated voltage to the motor, the controller can start timing. When the timing duration reaches a second preset duration, it can be determined that the duration of providing the first calibrated voltage to the motor has reached the second preset duration. Subsequently, if the controller determines that the motor current is greater than the current threshold, it can be determined that the motor stalls due to excessive load and insufficient driving force. The current threshold can be pre-stored by the controller, for example, it can be 3A (amps).
[0086] It is understandable that excessive load on the motor may lead to conditions such as low temperature, high temperature, or excessive sealing reaction force.
[0087] In one exemplary embodiment, when the duration for which the first calibrated voltage is supplied to the motor is less than the second preset duration, and the duration for which the full lock switch is disconnected reaches the fourth preset duration, it can be determined that the door lock has successfully engaged and entered the full lock state.
[0088] In one exemplary embodiment, after the controller provides drive voltage to the door lock motor, it can also detect whether the duration of providing drive voltage to the motor (i.e., the energizing duration of the motor) is less than a fifth preset duration. When the duration of providing drive voltage to the motor is less than the fifth preset duration, and the open duration of the full lock switch reaches a fourth preset duration, the controller can determine that the door lock has successfully engaged and enter the full lock state.
[0089] The fifth preset duration can be the maximum power-on duration pre-stored by the controller. Furthermore, the fifth preset duration is longer than the second preset duration. For example, the fifth preset duration can be 2.5 seconds.
[0090] If the duration of supplying drive voltage to the motor is greater than or equal to the fifth preset duration and the lock switch is not open, or if the duration of supplying drive voltage to the motor is less than the fifth preset duration and the lock switch is not open for the fourth preset duration, the controller can determine that the door lock has failed to engage and issue an indication message. This indication message indicates that the door lock has failed to engage.
[0091] As described above, in the case where the first calibration voltage is increased once (i.e., the drive voltage includes the second calibration voltage), if the duration of supplying the second calibration voltage to the motor is greater than or equal to the target duration, and the full lock switch is not open, the controller can determine that the door lock engagement has failed and issue an indication message indicating the failure. If the duration of supplying the second calibration voltage to the motor is less than the target duration, and the duration of the full lock switch being open reaches the fourth preset duration, the controller can determine that the door lock engagement has been successful and enter the full lock state.
[0092] The target duration is the difference between the fifth preset duration and the second preset duration.
[0093] In one exemplary embodiment, the controller can send indication information indicating that the door lock has failed to engage to the vehicle bus.
[0094] In one example embodiment, the controller may also issue an alarm message after determining that the door lock has failed to engage. This alarm message may include an audible alarm and / or a text alarm. Accordingly, the controller may control the vehicle to display and / or play the alarm message to alert the occupants.
[0095] As described above, the controller needs to increase the duty cycle of the power supply output voltage before the duration of providing drive voltage to the motor reaches the fifth preset duration, that is, before the duration of motor power-on reaches the fifth preset duration.
[0096] In one exemplary embodiment, after determining that the door lock is in a fully locked state, the method may further include: controlling the motor brake, and then driving the motor to reverse to control the motor to reset.
[0097] Optionally, the controller can drive the motor to reverse after the braking duration reaches a seventh preset duration. This seventh preset duration can be pre-stored by the controller. This seventh preset duration can be less than or equal to the third and fourth preset durations mentioned above. For example, the seventh preset duration can be 50ms.
[0098] In one exemplary embodiment, after the drive motor reverses, the door lock control method may further include:
[0099] The door lock's engagement time is obtained. If the motor's reverse rotation time is less than the engagement time, and the neutral switch's open time reaches the sixth preset duration, then the motor reset is determined to be successful. If the motor's reverse rotation time is greater than or equal to the engagement time, and the neutral switch is not open, or if the reverse rotation time is less than the engagement time, and the neutral switch's open time does not reach the sixth preset duration, then the motor reset is determined to be unsuccessful.
[0100] The engagement time refers to the time it takes for the door lock to transition from a half-locked state to a fully locked state under the drive of the motor. The sixth preset time can be less than or equal to the seventh preset time. For example, the seventh preset time can be 20ms.
[0101] Because the load on the motor during the reset process is less than the load during the door lock's engagement process, the motor requires less torque and rotates at a higher speed during reset. Therefore, the reset time is shorter than the engagement time. Thus, using the engagement time to determine whether the motor has completed reset ensures a high degree of reliability.
[0102] It is understandable that the process by which the controller obtains the engagement duration may include: after the controller determines that the half-lock switch is open, it starts the timer to begin counting; after the controller determines that the full-lock switch is open, it controls the timer to stop counting and uses the timer's duration at this time as the door lock engagement duration.
[0103] In one exemplary embodiment, the controller can determine the state of the fully locked switch by measuring the resistance across the neutral switch. For example, if the controller determines that the resistance across the neutral switch is infinite, it can determine that the neutral switch is open.
[0104] In one exemplary embodiment, after the motor reset is successful or fails, the controller can also control the motor brake, thereby stopping the drive motor. This avoids the problem of the door unlocking due to an over-reset motor, which could lead to the door being accidentally opened.
[0105] Understandably, even if the motor resets successfully but the neutral position switch is damaged, situations may arise where the motor's reverse rotation duration is greater than or equal to the engagement duration, and the neutral position switch remains open; or, if the reverse rotation duration is less than the engagement duration, the neutral position switch's open duration does not reach the sixth preset duration. In these cases, the controller will also brake the motor. That is, as long as the motor's reverse rotation duration is greater than or equal to the engagement duration and the neutral position switch remains open, or if the reverse rotation duration is less than the engagement duration and the neutral position switch's open duration does not reach the sixth preset duration, the controller can brake the motor.
[0106] Since the time required for motor reset is less than the time required for engagement, if the neutral switch is not disconnected when the motor reverses for the duration of engagement, or if the disconnection time of the neutral switch is less than the duration of engagement and the duration of the reverse reversal is less than the duration of engagement, the controller can control the motor to brake. This can prevent the door lock from being unlocked due to over-reset caused by damage to the neutral switch, thus avoiding the problem of the door being opened accidentally, and also prevent the door lock from being locked due to over-reset.
[0107] In an exemplary embodiment, if the neutral switch is not opened after the motor's reversal time reaches the engagement time, or if the neutral switch's opening time does not reach the sixth preset time when the reversal time is less than the engagement time, the controller can issue an indication message (for ease of distinction, this indication message is referred to as the first indication message, and the indication message used to indicate engagement failure mentioned above is referred to as the second indication message).
[0108] In one exemplary embodiment, the controller can send a second instruction to the vehicle bus for maintenance.
[0109] In summary, this application provides a door lock control method. If the door lock has been in a half-lock state for a first preset time but has not yet entered a fully locked state, the method provides a variable drive voltage to the motor to enable the door lock to enter a fully locked state. Thus, regardless of different vehicle models or different vehicles of the same model, the method provided in this application can ensure the door lock engages properly, transitioning from a half-lock to a fully locked state. In other words, the method provided in this application is adaptable to different vehicles, improving the door lock's compatibility.
[0110] After introducing the door lock control method according to exemplary embodiments of this application, the following will refer to... Figure 3 The control device for a door lock according to an exemplary embodiment of this application will be described.
[0111] refer to Figure 3 As shown, the door lock control device of the exemplary embodiment of this application may include:
[0112] The voltage supply module 301 is used to provide a variable drive voltage to the door lock motor that enables the door lock to enter the fully locked state when the door lock has been in the half-lock state for a first preset time period and the door lock has not entered the fully locked state.
[0113] In one exemplary embodiment of this application, the voltage providing module 301 can be used to:
[0114] Provide the first rated voltage to the motor;
[0115] If the first rated voltage fails to bring the door lock into a fully locked state, the drive voltage supplied to the motor is increased.
[0116] In one exemplary embodiment of this application, the driving voltage includes a second calibration voltage, and the second calibration voltage is greater than the first calibration voltage.
[0117] In one exemplary embodiment of this application, the voltage providing module 301 can be used to:
[0118] Increase the duty cycle of the power supply's output voltage to increase the drive voltage supplied to the motor.
[0119] In one exemplary embodiment of this application, the voltage providing module 301 can be used to:
[0120] Adjust the duty cycle of the power supply's output voltage to 100%.
[0121] In one exemplary embodiment of this application, the device may further include:
[0122] The first judgment module is used to increase the driving voltage supplied to the motor if the door lock does not enter the fully locked state and the motor is stalled after the duration of supplying the first calibrated voltage to the motor reaches the second preset duration.
[0123] In one exemplary embodiment of this application, the voltage providing module 301 can be used to:
[0124] The driving voltage supplied to the motor is gradually increased.
[0125] In one exemplary embodiment of this application, the device may further include:
[0126] The first determining module is used to determine that the door lock has entered a half-lock state if it is detected that the half-lock switch of the door lock is open and the open time of the half-lock switch reaches a third preset time.
[0127] If the door lock's full lock switch is detected to be open, and the open duration of the full lock switch reaches the fourth preset duration, then the door lock is determined to be in the full lock state.
[0128] In one exemplary embodiment of this application, the device may further include:
[0129] The second determining module is used to determine that the door lock is successfully engaged and enters the fully locked state when the duration of supplying the first calibrated voltage to the motor is less than the second preset duration and the duration of the full lock switch being open reaches the fourth preset duration.
[0130] In one exemplary embodiment of this application, the device may further include:
[0131] The third determining module is used to determine that the door lock engagement has failed when the duration of supplying the second calibrated voltage to the motor is greater than or equal to the target duration and the full lock switch is not open, and to issue an indication message indicating that the door lock engagement has failed.
[0132] The target duration is the difference between the fifth preset duration and the second preset duration, where the fifth preset duration is longer than the second preset duration.
[0133] In one exemplary embodiment of this application, the device may further include:
[0134] The fourth determining module is used to determine that the door lock is successfully engaged and enters the fully locked state when the duration of supplying the second calibrated voltage to the motor is less than the target duration and the duration of the full lock switch being open reaches the fourth preset duration.
[0135] The target duration is the difference between the fifth preset duration and the second preset duration, where the fifth preset duration is longer than the second preset duration.
[0136] In one exemplary embodiment of this application, the voltage providing module 301 can be used to:
[0137] Adjust the duty cycle of the power supply output voltage to provide a variable drive voltage to the door lock motor that enables the door lock to enter the fully locked state.
[0138] In one exemplary embodiment of this application, the device may further include:
[0139] The reset module is used to control the motor brake after determining that the door lock is in the fully locked state; and to drive the motor to reverse so as to control the motor to reset.
[0140] In one exemplary embodiment of this application, the device may further include:
[0141] The acquisition module is used to acquire the engagement time of the door lock, where engagement time refers to the time it takes for the door lock to go from a half-locked state to a fully locked state under the drive of the motor.
[0142] The fifth determination module is used to determine that the motor reset is successful when the motor's reversal time is less than the engagement time and the neutral switch's disconnection time reaches the sixth preset time; and to determine that the motor reset fails when the motor's reversal time is greater than or equal to the engagement time and the neutral switch is not disconnected.
[0143] In one exemplary embodiment of this application, the device may further include:
[0144] The control module is used to control the motor brake.
[0145] Since the functional modules of the door lock control device in this application are the same as those in the above-described door lock control method, they will not be described again here.
[0146] In one exemplary embodiment of this application, a vehicle is also provided, including as follows: Figure 3 The control device for the door lock shown.
[0147] After introducing the door lock control method and door lock control device according to exemplary embodiments of this application, the following will refer to... Figure 4 The storage medium of an exemplary embodiment of this application will be described. (See references) Figure 4 As shown, a program product 400 for implementing the above-described method according to an embodiment of this application is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a device such as a personal computer. However, the program product of this application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0148] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0149] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0150] The program code contained on the readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, fiber optic, RF, etc., or any suitable combination thereof. The program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0151] After introducing the storage medium of exemplary embodiments of this application, the following references are made. Figure 5 An electronic device according to an exemplary embodiment of this application will be described.
[0152] Figure 5 The electronic device 50 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0153] like Figure 5 As shown, the electronic device 50 is manifested in the form of a general-purpose computing device. The components of the electronic device 50 may include, but are not limited to: at least one processing unit 510, at least one storage unit 520, a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510), and a display unit 540. The storage unit stores program code that can be executed by the processing unit 510, causing the processing unit 510 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this application. For example, the processing unit 510 can perform, as... Figure 2 Steps S1 and S2 are shown in the diagram.
[0154] Storage unit 520 may include volatile storage units, such as random access memory (RAM) 5201 and / or cache memory 5202, and may further include read-only memory (ROM) 5203. Storage unit 520 may also include a program / utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0155] Bus 530 may include a data bus, an address bus, and a control bus.
[0156] Electronic device 50 can also communicate with one or more external devices 60 (e.g., keyboard, pointing device, Bluetooth device, etc.) via input / output (I / O) interface 550. Electronic device 50 also includes a display unit 540 connected to input / output (I / O) interface 550 for display purposes. Furthermore, electronic device 50 can communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 560. As shown, network adapter 560 communicates with other modules of electronic device 50 via bus 530. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems. It should be noted that although several modules or sub-modules of the door lock control device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules for embodiment.
[0157] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0158] While the spirit and principles of this application have been described with reference to several specific embodiments, it should be understood that this application is not limited to the specific embodiments of the invention, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for convenience of expression. This application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A method for controlling a door lock, characterized in that, include: When the door lock has been in a half-lock state for a period of time that reaches a first preset time, if the door lock has not entered a fully locked state, a variable drive voltage is provided to the door lock motor to enable the door lock to enter the fully locked state. After determining that the door lock has entered the fully locked state, the method further includes: controlling the motor brake; driving the motor to reverse so as to control the motor to reset; After driving the motor to reverse, the method further includes: obtaining the engagement time of the door lock; when the reversal time of the motor is less than the engagement time, and the disconnection time of the center switch of the door lock reaches a sixth preset time, determining that the motor reset is successful; when the reversal time of the motor is greater than or equal to the engagement time, and the center switch is not disconnected, determining that the motor reset fails; wherein, the engagement time is the time taken for the door lock to enter the fully locked state from the half-locked state under the drive of the motor.
2. The method according to claim 1, characterized in that, Providing a variable drive voltage to the motor of the door lock, enabling the door lock to enter the fully locked state, includes: Provide the motor with a first calibration voltage; If the first calibration voltage fails to cause the door lock to enter the fully locked state, the drive voltage supplied to the motor is increased.
3. The method according to claim 2, characterized in that, The driving voltage includes a second calibration voltage, and the second calibration voltage is greater than the first calibration voltage.
4. The method according to claim 2, characterized in that, Increasing the drive voltage supplied to the motor includes: Increase the duty cycle of the power supply output voltage to increase the drive voltage supplied to the motor.
5. The method according to claim 2, characterized in that, The method further includes: If the door lock does not enter the fully locked state and the motor stalls after the first calibrated voltage has been supplied to the motor for a second preset duration, the driving voltage supplied to the motor is increased.
6. The method according to claim 2, characterized in that, Increasing the drive voltage supplied to the motor includes: The driving voltage supplied to the motor is gradually increased.
7. The method according to claim 3, characterized in that, The method further includes: If the half-lock switch of the door lock is detected to be open, and the open duration of the half-lock switch reaches a third preset duration, then it is determined that the door lock has entered the half-lock state. If the full lock switch of the door lock is detected to be open, and the open duration of the full lock switch reaches a fourth preset duration, then the door lock is determined to have entered the full lock state.
8. The method according to claim 7, characterized in that, The method further includes: When the duration for which the first calibrated voltage is supplied to the motor is less than the second preset duration, and the duration for which the full lock switch is disconnected reaches the fourth preset duration, it is determined that the door lock has successfully engaged and enters the full lock state.
9. The method according to claim 8, characterized in that, The method further includes: When the duration of supplying the second calibrated voltage to the motor is greater than or equal to the target duration, and the full lock switch is not open, it is determined that the door lock has failed to engage, and an indication message is issued to indicate that the door lock has failed to engage. The target duration is the difference between the fifth preset duration and the second preset duration, wherein the fifth preset duration is longer than the second preset duration.
10. The method according to claim 8, characterized in that, The method further includes: When the duration for which the second calibrated voltage is supplied to the motor is less than the target duration, and the duration for which the full lock switch is disconnected reaches the fourth preset duration, it is determined that the door lock has successfully engaged and enters the full lock state. The target duration is the difference between the fifth preset duration and the second preset duration, wherein the fifth preset duration is longer than the second preset duration.
11. The method according to any one of claims 1 to 6, characterized in that, Providing a variable drive voltage to the motor of the door lock, enabling the door lock to enter the fully locked state, includes: Adjust the duty cycle of the power supply output voltage to provide a variable drive voltage to the door lock motor that enables the door lock to enter the fully locked state.
12. The method according to claim 1, characterized in that, The method further includes: When the motor reset is successful or fails, the motor is controlled to brake.
13. A door lock control device, characterized in that, include: A voltage supply module is used to provide a variable drive voltage to the motor of the door lock that enables the door lock to enter the fully locked state if the door lock has not entered the fully locked state when the duration of the door lock in the half-lock state reaches a first preset duration. A reset module is used to control the motor brake after determining that the door lock has entered the fully locked state; Drive the motor to reverse, thereby controlling the motor to reset; The acquisition module is used to acquire the engagement time of the door lock, wherein the engagement time refers to the time taken for the door lock to enter the fully locked state from the half-locked state under the drive of the motor; The fifth determining module is used to determine that the motor reset is successful when the reverse rotation time of the motor is less than the engagement time and the open time of the neutral switch reaches a sixth preset time; and to determine that the motor reset fails when the reverse rotation time of the motor is greater than or equal to the engagement time and the neutral switch is not open.
14. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the door lock control method as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the door lock control method as described in any one of claims 1 to 12.
16. A vehicle, characterized in that, Includes the door lock control device as described in claim 13.
Citation Information
Patent Citations
Marking of vehicle to hinder theft and / Or unauthorized sale
JP1996002381A
Door closer unit for vehicle
JP2009235706A
