Control method and control system of automobile hidden door handle and storage medium
1. A control method of a hidden door handle of an automobile is characterized by comprising the following steps:
A. detecting an ejecting command of the vehicle door handle, and driving the vehicle door handle to eject by a driving motor;
if the door controller continuously receives the pop-up in-place signal, controlling the driving motor to drive the door handle according to first preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
if the door controller continuously receives the pop-up position-missing signal, the PWM duty ratio of the driving motor is increased to 100%, and after the door handle is driven according to second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0;
B. detecting a retracting command of the vehicle door handle, and driving the vehicle door handle to retract by a driving motor;
if the vehicle door controller continuously receives the in-place retracting signal, controlling the driving motor to drive the vehicle door handle according to third preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
and if the vehicle door controller continuously receives the non-retraction position signal, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0.
2. The method for controlling the hidden door handle of the vehicle as claimed in claim 1, wherein the step A specifically comprises:
a1, detecting an ejection command of a vehicle door handle, and driving the vehicle door handle to eject by a driving motor;
a2, when the vehicle door controller receives the pop-up in-place signal, reducing the PWM duty ratio of the driving motor, and gradually reducing the duty ratio to 0 within a fifth preset time;
a3, if the door controller continuously receives the pop-up in-place signal, controlling the driving motor to drive the door handle according to a first preset time, and then controlling the driving motor to decelerate to stop;
and A4, if the door controller continuously receives the pop-up no-bit signal, increasing the PWM duty ratio of the driving motor to 100%, and controlling the driving motor to decelerate to stop after driving the door handle according to the second preset time.
3. The method for controlling the hidden door handle of the vehicle as claimed in claim 1, wherein the step B comprises:
b1, detecting a retraction command of the vehicle door handle, and driving the vehicle door handle to retract by a driving motor;
b2, when the vehicle door controller receives the retraction in-place signal, reducing the PWM duty ratio of the driving motor, and gradually reducing the duty ratio to 0 within sixth preset time;
b3, if the vehicle door controller continuously receives the retracting in-place signal, controlling the driving motor to drive the vehicle door handle according to third preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
and B4, if the vehicle door controller continuously receives the retraction failure signal, increasing the PWM duty ratio of the driving motor to a preset duty ratio, and controlling the driving motor to decelerate to the PWM duty ratio of 0 after driving the vehicle door handle according to fourth preset time.
4. The method as claimed in claim 1, wherein the ejecting and retracting of the door handle corresponds to the unlocking and locking of the entire vehicle, and the door handle is ejected when the entire vehicle is unlocked and retracted when the entire vehicle is locked.
5. The method of claim 1, wherein the predetermined duty cycle is less than 100%.
6. The method of claim 5, wherein the predetermined duty cycle is 80% to 85%.
7. The method as claimed in claim 1, wherein the door handle is ejected and retracted to the proper position by a door handle micro switch.
8. A control system for a concealed door handle, comprising:
the automobile body controller is used for sending automobile unlocking and locking commands;
the vehicle door controller is connected with the vehicle body controller and is used for receiving vehicle unlocking and locking commands sent by the vehicle body controller and controlling the vehicle door handle to pop up or retract according to the vehicle unlocking and locking commands;
the driving motor is connected with the vehicle door controller and is used for driving the vehicle door handle to pop up or retract;
the microswitch is arranged on the vehicle door, is connected with the vehicle door controller and is used for detecting the position of a vehicle door handle and feeding back a position signal to the vehicle door controller;
if the vehicle door controller continuously receives a pop-up in-place signal sent by the microswitch, the vehicle door controller drives the vehicle door handle according to first preset time and controls the driving motor to decelerate to the PWM duty ratio of 0;
if the vehicle door controller continuously receives the pop-up position-missing signal sent by the microswitch, the PWM duty ratio of the driving motor is increased to 100%, and after the vehicle door handle is driven according to second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0;
if the vehicle door controller continuously receives a retraction in-place signal sent by the microswitch, driving the vehicle door handle according to third preset time, and controlling the driving motor to decelerate to the PWM duty ratio of 0;
and if the vehicle door controller continuously receives the withdrawing no-position signal sent by the microswitch, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to decelerate to the PWM duty ratio of 0.
9. A control system for a concealed door handle, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of controlling the hidden door handle of a vehicle as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method of controlling a hidden door handle for a vehicle as claimed in any one of claims 1 to 7.
Background
With the development of intellectualization, electromotion and networking of the automobile industry, more and more automobile models begin to adopt hidden door handles. The hidden door handle can be used for reducing the wind resistance coefficient of the whole vehicle and improving the technological sense of the whole vehicle. Since the hidden door handle is in the ejected state, the internal structure is directly exposed, and the electronic components inside the door handle may malfunction. For example, microswitches used for feedback of door handle position inside a door handle are susceptible to corrosion by other substances such as dust, water, etc., and thus feed back an erroneous handle position signal. When the electronic components inside the door handle fail, it is likely that the door handle is unsuccessfully ejected or unsuccessfully retracted. In addition, in winter, the door handle may be frozen and cannot be ejected or retracted.
Therefore, it is desirable to provide a control method, a control system and a storage medium for a hidden door handle of an automobile to solve the above problems.
Disclosure of Invention
In order to solve the technical problems, the invention provides a control method, a control system and a storage medium for a hidden door handle of an automobile, which can ensure that a door handle is smoothly ejected and retracted.
The invention adopts the following technical scheme:
a control method of a hidden door handle of an automobile comprises the following steps:
A. detecting an ejecting command of the vehicle door handle, and driving the vehicle door handle to eject by a driving motor;
if the door controller continuously receives the pop-up in-place signal, controlling the driving motor to drive the door handle according to first preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
if the door controller continuously receives the pop-up position-missing signal, the PWM duty ratio of the driving motor is increased to 100%, and after the door handle is driven according to second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0;
B. detecting a retracting command of the vehicle door handle, and driving the vehicle door handle to retract by a driving motor;
if the vehicle door controller continuously receives the in-place retracting signal, controlling the driving motor to drive the vehicle door handle according to third preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
and if the vehicle door controller continuously receives the non-retraction position signal, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0.
As an alternative to the above-mentioned control method for the hidden door handle of the automobile, the step a specifically includes:
a1, detecting an ejection command of a vehicle door handle, and driving the vehicle door handle to eject by a driving motor;
a2, when the vehicle door controller receives the pop-up in-place signal, reducing the PWM duty ratio of the driving motor, and gradually reducing the duty ratio to 0 within a fifth preset time;
a3, if the door controller continuously receives the pop-up in-place signal, controlling the driving motor to drive the door handle according to a first preset time, and then controlling the driving motor to decelerate to stop;
and A4, if the door controller continuously receives the pop-up no-bit signal, increasing the PWM duty ratio of the driving motor to 100%, and controlling the driving motor to decelerate to stop after driving the door handle according to the second preset time.
As an alternative to the above-mentioned control method for the hidden door handle of the automobile, the step B specifically includes:
b1, detecting a retraction command of the vehicle door handle, and driving the vehicle door handle to retract by a driving motor;
b2, when the vehicle door controller receives the retraction in-place signal, reducing the PWM duty ratio of the driving motor, and gradually reducing the duty ratio to 0 within sixth preset time;
b3, if the vehicle door controller continuously receives the retracting in-place signal, controlling the driving motor to drive the vehicle door handle according to third preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
and B4, if the vehicle door controller continuously receives the retraction failure signal, increasing the PWM duty ratio of the driving motor to a preset duty ratio, and controlling the driving motor to decelerate to the PWM duty ratio of 0 after driving the vehicle door handle according to fourth preset time.
As an alternative of the control method of the hidden door handle of the automobile, the popping and the retracting of the door handle correspond to the unlocking and the locking of the whole automobile, when the whole automobile is unlocked, the door handle pops, and when the whole automobile is locked, the door handle retracts.
As an alternative to the above-described control method of the hidden door handle for an automobile, the predetermined duty ratio is less than 100%.
As an alternative to the above-described control method of the vehicle hidden door handle, the predetermined duty ratio is 80% to 85%.
As an alternative to the above-described control method of the vehicle hidden door handle, the pop-up in position and the recovery in position of the door handle are detected by a door handle micro switch.
A control system for a concealed door handle comprising:
the automobile body controller is used for sending automobile unlocking and locking commands;
the vehicle door controller is connected with the vehicle body controller and is used for receiving vehicle unlocking and locking commands sent by the vehicle body controller and controlling the vehicle door handle to pop up or retract according to the vehicle unlocking and locking commands;
the driving motor is connected with the vehicle door controller and is used for driving the vehicle door handle to pop up or retract;
the microswitch is arranged on the vehicle door, is connected with the vehicle door controller and is used for detecting the position of a vehicle door handle and feeding back a position signal to the vehicle door controller;
if the vehicle door controller continuously receives a pop-up in-place signal sent by the microswitch, the vehicle door controller drives the vehicle door handle according to first preset time and controls the driving motor to decelerate to the PWM duty ratio of 0;
if the vehicle door controller continuously receives the pop-up position-missing signal sent by the microswitch, the PWM duty ratio of the driving motor is increased to 100%, and after the vehicle door handle is driven according to second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0;
if the vehicle door controller continuously receives a retraction in-place signal sent by the microswitch, driving the vehicle door handle according to third preset time, and controlling the driving motor to decelerate to the PWM duty ratio of 0;
and if the vehicle door controller continuously receives the withdrawing no-position signal sent by the microswitch, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to decelerate to the PWM duty ratio of 0.
A control system for a concealed door handle comprising:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the control method of the automobile hidden door handle as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the control method of a hidden door handle for a vehicle as described above.
The invention has the advantages that: when the electronic component in the door handle breaks down or the door handle is frozen, the door handle can be ensured to be smoothly ejected and retracted.
When the door handle is popped up, if the door controller continuously receives the popping-up-in-place signal, the detection element for detecting the popping-up state is failed or the door handle is frozen, and at the moment, the driving motor is controlled to drive the door handle according to the first preset time, and then the driving motor is controlled to decelerate to the PWM duty ratio of 0. This ensures that the drive motor can drive the door handle to the ejected state and stop the drive motor.
When the door handle is ejected, if the door controller continuously receives the ejection-missing-bit signal, the detection element for detecting the ejection state is failed or the door handle is frozen, the PWM duty ratio of the driving motor is increased to 100%, and after the door handle is driven according to the second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0. This ensures that the drive motor can drive the door handle to the ejected state and stop the drive motor.
When the vehicle door handle is retracted, if the vehicle door controller continuously receives the retraction in-place signal, the detection element for detecting the ejection state is failed or the door handle is frozen, and at the moment, the driving motor is controlled to drive the vehicle door handle according to third preset time, and then the driving motor is controlled to decelerate to the PWM duty ratio of 0. This ensures that the drive motor can drive the door handle to the ejected state and stop the drive motor.
When the vehicle door handle is retracted, if the vehicle door controller continuously receives a retraction missing signal, the detection element for detecting the popup state is failed or the door handle is frozen, at the moment, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0. This ensures that the drive motor can drive the door handle to the ejected state and stop the drive motor.
Drawings
FIG. 1 is a block diagram of a control method for a hidden door handle of a vehicle according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a partial process of an embodiment of a method for controlling a hidden door handle of a vehicle according to the present invention;
FIG. 3 is a schematic view of another part of the process of the embodiment of the control method for a hidden door handle of a vehicle according to the present invention;
FIG. 4 is a block diagram of a control system of a hidden door handle of an automobile according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
Example one
The embodiment of the invention provides a control method of a hidden door handle of an automobile. As shown in fig. 1, the control method includes the steps of:
s100, detecting an ejection command of a vehicle door handle, and driving the vehicle door handle to eject by a driving motor;
if the door controller continuously receives the pop-up in-place signal, controlling the driving motor to drive the door handle according to first preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
and if the door controller continuously receives the pop-up position-missing signal, the PWM duty ratio of the driving motor is increased to 100%, and after the door handle is driven according to the second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0.
Specifically, whether a vehicle door controller (DCU for short) receives a vehicle door handle pop-up command is detected in real time, and if the vehicle door controller receives the vehicle door handle pop-up command, the vehicle door controller controls the driving motor to drive the vehicle door handle to pop-up.
Normally, the steps of door handle ejection are (see fig. 2): and when the DCU receives the pop-up command, the DCU starts to execute the pop-up action, and when the door handle microswitch feeds back a door handle pop-up in-place signal to the vehicle door controller, the DCU reduces the PWM duty ratio of the driving motor and gradually reduces the duty ratio to 0 within a certain time. The door handle microswitch feeds back the door handle popup in-place signal to the DCU, and feeds back the door handle when the door handle is not completely in place yet, namely is about to be in place, so that after the door handle popup in-place signal is fed back by the hand microswitch, the drive motor is driven for a period of time again to gradually reduce the duty ratio to 0, and the duty ratio is reduced to 0, namely the rotating speed of the motor is 0. Similarly, when receiving a retraction command, the DCU starts to execute a retraction action, and when the door handle microswitch feeds back that the handle is retracted to the proper position, the DCU reduces the PWM duty ratio driven by the motor of the door handle, and gradually reduces the duty ratio to 0 within a certain time. It should be noted that, to ensure that the door handle can be retracted in place after the time of performing deceleration, there is no surface difference with the sheet metal of the door panel, that is, the door handle is flush with the sheet metal of the door panel, so as to meet the requirement of a hidden door handle.
Based on the above, referring to fig. 3, step S100 specifically includes:
s110, detecting an ejection command of the vehicle door handle, and driving the vehicle door handle to eject by a driving motor;
s120, when the vehicle door controller receives the pop-up in-place signal, reducing the PWM duty ratio of the driving motor, and gradually reducing the duty ratio to 0 within fifth preset time;
s130, if the vehicle door controller continuously receives the pop-up in-place signal, controlling the driving motor to drive the vehicle door handle according to first preset time, and then controlling the driving motor to decelerate to stop;
and S140, if the door controller continuously receives the pop-up position-missing signal, increasing the PWM duty ratio of the driving motor to 100%, and controlling the driving motor to decelerate to stop after driving the door handle according to the second preset time.
Specifically, step S120 is a step of normally ejecting the door handle, and step S130 and step S140 are processing steps of an abnormality occurring when the door is ejected. In steps S130 and S140, the door controller continuously receives the pop-up in-place signal or the pop-up is not the signal, that is, the door handle micro switch is abnormal, so that the micro switch gives an incorrect position signal, or the door handle is frozen, so that the door handle is always in a fixed position and cannot be popped up. In the invention, if the door controller continuously receives the pop-up in-place signal, the DCU controls the driving motor to drive the door handle according to a fixed time (first preset time), and then controls the driving motor to decelerate until the driving motor stops rotating, namely the PWM duty ratio of the driving motor is 0. The door handle is driven according to a fixed time to ensure that the door handle is ejected, and then the driving motor is controlled to decelerate to stop, so that the driving motor can be prevented from being in a driving state all the time. If the door controller continuously receives the pop-up position-missing signal, the DCU immediately increases the PWM duty ratio of the driving motor to 100%, and controls the driving motor to decelerate to stop after driving the door handle according to the second preset time. Increasing the PWM duty cycle of the drive motor to 100% ensures that the drive motor drives the door handle with the maximum driving force, ensuring that the door handle can be ejected.
S200, detecting a withdrawing command of the vehicle door handle, and driving the vehicle door handle to withdraw by a driving motor;
if the vehicle door controller continuously receives the in-place retracting signal, controlling the driving motor to drive the vehicle door handle according to third preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
and if the vehicle door controller continuously receives the non-retraction position signal, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0.
As described above, the flow when the door handle is normally retracted is: and when the DCU receives the withdrawing command, the DCU starts to execute the withdrawing action, and when the door handle microswitch feeds back the handle to be withdrawn in place, the DCU reduces the PWM duty ratio driven by the motor of the door handle, and gradually reduces the duty ratio to 0 within a certain time.
Therefore, step S200 specifically includes:
s210, detecting a withdrawing command of the vehicle door handle, and driving the vehicle door handle to withdraw by a driving motor;
s220, when the vehicle door controller receives the retraction in-place signal, reducing the PWM duty ratio of the driving motor, and gradually reducing the duty ratio to 0 within sixth preset time;
s230, if the vehicle door controller continuously receives the retraction in-place signal, controlling the driving motor to drive the vehicle door handle according to third preset time, and then controlling the driving motor to decelerate to a PWM (pulse-width modulation) duty ratio of 0;
and S240, if the vehicle door controller continuously receives the signal that the vehicle door cannot retract to the preset position, increasing the PWM duty ratio of the driving motor to a preset duty ratio, and controlling the driving motor to decelerate to the PWM duty ratio of 0 after driving the vehicle door handle according to fourth preset time.
Specifically, step S220 is a step of normally retracting the door handle, and step S230 and step S240 are processing steps of an abnormality occurring when the door is retracted. In steps S230 and S240, the door controller continuously receives the retraction in-place signal or the retraction not being the signal, that is, the door handle micro switch is abnormal, which causes the micro switch to give an incorrect position signal, or the door handle is frozen, which causes the door handle to be always in a fixed position and cannot be retracted. In the invention, if the vehicle door controller continuously receives the retracting in-place signal, the driving motor is controlled to drive the vehicle door handle according to the third preset time, and then the driving motor is controlled to decelerate to the PWM duty ratio of 0, so that the vehicle door handle is ensured to be successfully retracted. And if the vehicle door controller continuously receives the non-retraction position signal, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0. In step S240, the predetermined duty ratio is less than 100%, and in step S140, if the door controller continuously receives the pop-up no-bit signal, the PWM duty ratio of the driving motor is increased to 100%. The door handle is ejected out by a large driving force provided by a driving motor when being ejected out, and a spring connected with the door handle is ejected outwards to enable the spring to be stretched and stored; in step S240, when the door handle is retracted, the door handle can be retracted under the elastic force of the spring, and the driving motor does not need to provide as large a driving force as that during the ejection. Therefore, in step S140, the PWM duty of the driving motor is increased to 100%, and in step S240, the predetermined duty is less than 100%. Preferably, the predetermined duty cycle is 80% to 85%.
In addition, in steps S110 to S140 and steps S210 to S240, the durations of the first predetermined time, the second predetermined time, the third predetermined time, the fourth predetermined time, the fifth predetermined time and the sixth predetermined time may be the same or different.
In one embodiment, the popping and withdrawing of the door handle correspond to the unlocking and locking of the whole vehicle, when the whole vehicle is unlocked, the door handle pops, and when the whole vehicle is locked, the door handle withdraws.
As mentioned above, the door handle microswitch can detect and feed back the door handle position, i.e. the door handle's pop-in-position and recovery-in-position is detected by the door handle microswitch.
Example two
Based on the control method of the automobile hidden door handle, the second embodiment of the invention also provides a control system of the automobile hidden door handle. As shown in fig. 4, the control system of the hidden door handle of the automobile includes a Body Controller (BCM)100, a Door Controller (DCU)200, a driving motor 300, a door lock motor 400, and a micro switch. The door controller is connected with the vehicle body controller, and the driving motor, the door lock motor and the microswitch are all connected with the door controller. As described in the first embodiment, the popping and withdrawing of the hidden door handle corresponds to the unlocking of the whole vehicle, and when the whole vehicle is unlocked, the DCU drives the door lock to unlock and drives the door handle to pop out; when the whole vehicle is locked, the DCU drives the door lock to be locked and drives the door handle to retract.
As shown in fig. 4, a vehicle body controller for issuing vehicle unlock and lock commands.
And the vehicle door controller is connected with the vehicle body controller and used for receiving vehicle unlocking and locking commands sent by the vehicle body controller and controlling the vehicle door handle to pop up or retract according to the vehicle unlocking and locking commands.
And the driving motor is connected with the vehicle door controller and is used for driving the vehicle door handle to pop up or retract.
And the microswitch is arranged on the vehicle door, is connected with the vehicle door controller, is used for detecting the position of the vehicle door handle and feeds back a position signal to the vehicle door controller.
If the vehicle door controller continuously receives a pop-up in-place signal sent by the microswitch, the vehicle door controller drives the vehicle door handle according to first preset time and controls the driving motor to decelerate to the PWM duty ratio of 0; the details are as described in the first embodiment.
If the vehicle door controller continuously receives the pop-up position-missing signal sent by the microswitch, the PWM duty ratio of the driving motor is increased to 100%, and after the vehicle door handle is driven according to second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0; the details are as described in the first embodiment.
If the vehicle door controller continuously receives a retraction in-place signal sent by the microswitch, driving the vehicle door handle according to third preset time, and controlling the driving motor to decelerate to the PWM duty ratio of 0; the details are as described in the first embodiment.
If the vehicle door controller continuously receives a withdrawing no-position signal sent by the microswitch, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0; the details are as described in the first embodiment.
EXAMPLE III
Based on the control method of the automobile hidden door handle, the fourth embodiment of the invention also provides a control system of the automobile hidden door handle. Control systems for automotive hidden door handles include, but are not limited to: one or more processors and memory.
The memory is used as a computer readable storage medium for storing software programs, computer executable programs and modules, such as program instructions corresponding to the control method of the hidden door handle of the automobile in the embodiment of the invention. The processor executes various functional applications and data processing of the vehicle by running software programs, instructions and modules stored in the memory, so that the control method of the automobile hidden door handle is realized.
The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
Example four
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for controlling a hidden door handle of an automobile, and the method for controlling a hidden door handle of an automobile includes the following steps:
s100, detecting an ejection command of a vehicle door handle, and driving the vehicle door handle to eject by a driving motor;
if the door controller continuously receives the pop-up in-place signal, controlling the driving motor to drive the door handle according to first preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
if the door controller continuously receives the pop-up position-missing signal, the PWM duty ratio of the driving motor is increased to 100%, and after the door handle is driven according to second preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0;
s200, detecting a withdrawing command of the vehicle door handle, and driving the vehicle door handle to withdraw by a driving motor;
if the vehicle door controller continuously receives the in-place retracting signal, controlling the driving motor to drive the vehicle door handle according to third preset time, and then controlling the driving motor to decelerate to the PWM duty ratio of 0;
and if the vehicle door controller continuously receives the non-retraction position signal, the PWM duty ratio of the driving motor is increased to a preset duty ratio, and after the vehicle door handle is driven according to fourth preset time, the driving motor is controlled to be decelerated until the PWM duty ratio is 0.
Of course, the embodiment of the present invention provides a computer-readable storage medium, and the computer-executable instructions thereof are not limited to the operations of the method described above, and can also perform the operations related to the method for controlling a hidden door handle of a vehicle provided in any embodiment of the present invention.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the invention are all or partially effected when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., Solid State Disks (SSDs)), among others.
In the above embodiment, each included unit and module is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.