Vehicle window motor control method and device, electronic equipment and vehicle
By dynamically updating the blockage threshold, using the current value information of the window motor, accurately detecting the blockage status of the window motor, solving the overheating problem caused by the long-term blockage of the window motor, and improving the protection effect and detection accuracy.
Patent Information
- Application Number
- CN202311472576.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-06
- Publication Date
- 2025-05-06
AI Technical Summary
The window motor is blocked for a long time and may cause overheating, which will start the thermal protection, causing the window motor to fail. The prior art is difficult to accurately detect the clogged state of the window motor, which affects the protection effect.
By dynamically updating the blocking threshold, using the impact current value when the window motor is started and the current value during operation, the blocking threshold for this cycle is determined, and the reference threshold for the next cycle is updated according to the actual operation situation to dynamically adjust the blocking threshold.
It improves the accuracy of detection of the blockage and rotation state of the window motor, enhances the protection of the window motor, avoids misjudgment caused by inappropriate blockage and rotation threshold, and extends the service life of the window motor.
Smart Images

Figure CN119933484A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicles, and in particular, to a window motor control method, device, electronic equipment and vehicle. Background Art
[0002] The vehicle's windows can be adjusted up and down during use. When the window is raised to the top or lowered to the bottom, the window motor is in a stalled state, and the current of the window motor is a stalled current. If the window motor is stalled for a long time, it may cause the window motor to overheat, thereby activating the thermal protection of the window motor and causing the window motor to fail. Summary of the invention
[0003] The purpose of the present disclosure is to provide a window motor control method, device, electronic equipment and vehicle, so as to dynamically update the jam threshold value, so as to make the detection of window motor jam more accurate and improve the reliability of window motor protection.
[0004] In order to achieve the above objectives, in a first aspect, the present disclosure provides a vehicle window motor control method, the method comprising:
[0005] Determining an inrush current value when the window motor is started;
[0006] determining a current value when the window motor is in operation;
[0007] Determining a stall threshold value of this cycle according to the inrush current value and a reference threshold value of this cycle;
[0008] Controlling the operation of the window motor according to the current value of the window motor when it is running and the stall threshold value of the current cycle;
[0009] According to the current value of the window motor when it is running and the stall threshold of the current cycle, the reference threshold of the current cycle is updated, and the updated reference threshold is used as the reference threshold of the next cycle.
[0010] Optionally, controlling the operation of the window motor according to the current value of the window motor when it is running and the stall threshold value of the current cycle includes:
[0011] When the window motor is running for a period of less than the first period, if the current value of the window motor is greater than the stall threshold value of the current cycle for a period of more than the second period, the window motor is controlled to stop running;
[0012] When the current value of the window motor when running is not greater than the stall threshold value of the current cycle and the running time of the window motor has reached the first time length, the window motor is controlled to stop running.
[0013] Optionally, updating the reference threshold of the current cycle according to the current value of the window motor when it is running and the stall threshold of the current cycle includes:
[0014] When the window motor is running for a period of less than the first period, if the duration of the current value when the window motor is running being greater than the stall threshold value of the current cycle is greater than the second period, updating the reference threshold value of the current cycle to the current value when the window motor is running being greater than the stall threshold value of the current cycle;
[0015] When the current value of the window motor when running is not greater than the stall threshold of the current cycle and the running time of the window motor has reached the first time, the reference threshold of the current cycle is updated to the current value when the running time of the window motor reaches the first time.
[0016] Optionally, determining the stall threshold of the current cycle according to the inrush current value and a reference threshold of the current cycle includes:
[0017] The larger one of the impact current value and the reference threshold value of this cycle is determined as the stall threshold value of this cycle;
[0018] Alternatively, the product of the larger one and a coefficient less than 1 is determined as the stall threshold of the current cycle.
[0019] Optionally, determining the impact current value when the window motor is started includes:
[0020] The maximum current value within the third time period of the start timing of the window motor start is determined as the impact current value when the window motor is started.
[0021] Optionally, determining the current value of the window motor when it is running includes:
[0022] The current value after the third time period after the start of timing of the window motor is determined as the current value when the window motor is in operation.
[0023] In a third aspect, the present disclosure provides a vehicle window motor control device, comprising:
[0024] A first determination module is configured to determine an impact current value when the window motor is started;
[0025] A second determination module is configured to determine a current value when the window motor is running;
[0026] A third determination module is configured to determine a stall threshold value of this cycle according to the impact current value and a reference threshold value of this cycle;
[0027] A control module configured to control the operation of the window motor according to the current value of the window motor when it is running and the stall threshold value of this cycle;
[0028] The updating module is configured to update the reference threshold of the current cycle according to the current value of the window motor when it is running and the stall threshold of the current cycle, and use the updated reference threshold as the reference threshold of the next cycle.
[0029] Optionally, the control module includes:
[0030] A first control submodule is configured to control the window motor to stop running if the current value of the window motor when running is greater than the stall threshold of the current cycle for a duration greater than a second duration when the window motor is running does not reach the first duration;
[0031] The second control submodule is configured to control the window motor to stop running when the current value of the window motor when running is not greater than the stall threshold of the current cycle and the running time of the window motor has reached the first time.
[0032] In a third aspect, the present disclosure provides an electronic device, including:
[0033] a memory having a computer program stored thereon;
[0034] A processor is used to execute the computer program in the memory to implement the steps of any one of the methods described in the first aspect of the present disclosure.
[0035] In a fourth aspect, the present disclosure provides a vehicle, comprising the electronic device described in the third aspect of the present disclosure.
[0036] Through the above technical scheme, the operation of the window motor is controlled according to the current value when the window motor is running and the blocking threshold of this cycle, and the window motor can be closed in time to protect the window motor and avoid failure of the window motor. In addition, since the magnitude of the impact current value and the current value when the window motor is blocked are relatively close during each startup and operation of the window motor, the magnitude of the impact current value can reflect the magnitude of the current value when the window motor is blocked to a certain extent. According to the current value when the window motor is running and the blocking threshold of this cycle, the reference threshold of the next cycle is determined in this scheme, and the blocking threshold of the next cycle is dynamically determined by the reference threshold of the next cycle and the impact current value of the next cycle. The blocking threshold is used to determine whether the window motor is blocked. In this way, the misjudgment of the operating state of the window motor due to the inappropriate blocking threshold can be avoided, and the accuracy of determining the blocking of the window motor is improved. Not only does it not need to calibrate the reference threshold of the actual vehicle, but it is also adaptive to different windows, and the accuracy of detecting the blocking of the window motor is higher, thereby improving the reliability of protecting the window motor.
[0037] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0039] Figure 1 The schematic diagram of a vehicle window motor driving circuit is shown according to an exemplary embodiment.
[0040] Figure 2 is a schematic diagram of a vehicle window motor driving circuit according to another exemplary embodiment.
[0041] Figure 3 The figure is a flow chart of a vehicle window motor control method according to an exemplary embodiment.
[0042] Figure 4 is a flow chart showing a method for controlling a vehicle window motor according to another exemplary embodiment.
[0043] Figure 5 The figure is a structural block diagram of a vehicle window motor control device according to an exemplary embodiment.
[0044] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0045] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0046] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0047] First, the driving circuit of the window motor of the present disclosure is described. The window motor mentioned in the present disclosure can be driven by a relay. For example, a double relay can be used to drive the window to achieve the effect of controlling the window to rise or fall.
[0048] Figure 1 FIG. 1 is a schematic diagram of a window motor driving circuit according to an exemplary embodiment. Figure 1As shown, the drive circuit may include a power module, a first relay, a second relay, a window motor, a current detection resistor, and a current detection amplifier circuit. The first relay includes a first moving contact 1a, a second moving contact 2a, and a first static contact 1b. The second relay includes a third moving contact 3a, a fourth moving contact 4a, and a second static contact 2b.
[0049] The positive electrode of the power module is connected to the first moving contact and the third moving contact respectively. The second moving contact is connected to the fourth moving contact. The first static contact is connected to the second static contact through the window motor. One end of the current detection resistor is connected to the fourth moving contact, and the other end of the current detection resistor is connected to the negative electrode of the power module. The current detection amplifier circuit is connected in parallel with the current detection resistor.
[0050] like Figure 1 As shown, if the first relay and the second relay are controlled to act, the first relay and the second relay are Figure 1 In the state shown (the first static contact is connected to the second moving contact, and the second static contact is connected to the third moving contact), the circuit channel between the power module and the window motor is connected. In this channel, the current flows from the positive electrode of the power module, through the second relay, the window motor, the first relay, the current detection resistor to the negative electrode of the power module. The direction of the current passing through the window motor is as follows Figure 1 The direction from bottom to top as shown by the arrow in the middle makes the window motor rotate forward. In this way, the window can be driven up.
[0051] Figure 2 is a schematic diagram of a vehicle window motor driving circuit according to another exemplary embodiment.
[0052] like Figure 2 As shown, if the first relay and the second relay are controlled to act, the first relay and the second relay are Figure 2 The state shown (the first static contact is connected to the first moving contact, and the second static contact is connected to the fourth moving contact) can also conduct the circuit channel between the power module and the window motor. In this channel, the current flows from the positive electrode of the power module, through the first relay, the window motor, the second relay, the current detection resistor to the negative electrode of the power module. The direction of the current passing through the window motor is as follows Figure 2 The window motor is reversed from top to bottom as shown by the arrow in the figure. In this way, the window can be driven down.
[0053] In this way, by controlling the first relay and the second relay, the forward and reverse rotations of the window motor can be controlled, thereby driving the window to rise and fall.
[0054] The current detection resistor is connected in series with the window motor to detect the current of the window motor. The current of the current detection resistor and the current of the window motor may have a fixed operation relationship.
[0055] The current detection amplifier circuit is connected in parallel with the current detection resistor and is used to amplify the current flowing through the current detection resistor so as to more accurately detect the current of the window motor.
[0056] Figure 3 FIG. 1 is a flow chart of a vehicle window motor control method according to an exemplary embodiment. Figure 3 As shown, the method may include the following steps:
[0057] In step S101 , the inrush current value when the window motor is started is determined.
[0058] When the window motor is started, an impact current is generated. The impact current value when the window motor is started can be determined by using the method in the related art.
[0059] In step S102, the current value when the window motor is operating is determined.
[0060] In the present disclosure, the current value after the window motor generates an inrush current and before it stops can be referred to as the current value during operation. The inrush current value and the current value during operation can be obtained using a current sensor.
[0061] In step S103, the stall threshold of the current cycle is determined according to the inrush current value and the reference threshold of the current cycle.
[0062] The reference threshold value of this cycle may be predetermined or stored after being updated in the previous cycle. For example, when the window motor is operated for the first time or the user clears the previously stored data, the reference threshold value of this cycle may be a fixed value. When the reference threshold value of the previous cycle is stored, the reference threshold value of this cycle may be a value determined based on the previous reference threshold value.
[0063] In step S104, the operation of the window motor is controlled according to the current value of the window motor during operation and the stall threshold value of the current cycle.
[0064] The stall threshold value can be used to determine whether the window motor is stalled. For example, if the current value of the window motor when running is greater than the stall threshold value, it can be considered that the running state of the window motor at this time is stalled.
[0065] If the current value of the window motor when it is running is greater than or equal to the blocking threshold of this cycle, it can be determined that the window motor is blocked, that is, the window reaches the limit, which may cause the thermal protection of the window motor to start and make the window motor fail. In order to ensure the normal operation of the window motor and to protect the window motor, when the current value of the window motor when it is running is greater than or equal to the blocking threshold of this cycle, the window motor can be controlled to stop running.
[0066] If the current value of the window motor when it is running is less than the stall threshold value of this cycle, it can be determined that the window motor is working normally. Therefore, the window motor can be controlled to continue to run.
[0067] In step S105, the reference threshold of this cycle is updated according to the current value of the window motor when it is running and the stall threshold of this cycle, and the updated reference threshold is used as the reference threshold of the next cycle.
[0068] This solution adds a new threshold parameter, namely, a reference threshold. That is, based on the stall threshold of this cycle, the reference threshold of the next cycle is determined by considering the influence of the current value of the window motor when it is running (in this cycle). The stall threshold of the next cycle is determined based on the impact current value of the next cycle and the reference threshold of the next cycle.
[0069] Through the above technical scheme, the operation of the window motor is controlled according to the current value when the window motor is running and the blocking threshold of this cycle, and the window motor can be closed in time to protect the window motor and avoid failure of the window motor. In addition, since the magnitude of the impact current value and the current value when the window motor is blocked are relatively close during each startup and operation of the window motor, the magnitude of the impact current value can reflect the magnitude of the current value when the window motor is blocked to a certain extent. According to the current value when the window motor is running and the blocking threshold of this cycle, the reference threshold of the next cycle is determined in this scheme, and the blocking threshold of the next cycle is dynamically determined by the reference threshold of the next cycle and the impact current value of the next cycle. The blocking threshold is used to determine whether the window motor is blocked. In this way, the misjudgment of the operating state of the window motor due to the inappropriate blocking threshold can be avoided, and the accuracy of determining the blocking of the window motor is improved. Not only does it not need to calibrate the reference threshold of the actual vehicle, but it is also adaptive to different windows, and the accuracy of detecting the blocking of the window motor is higher, thereby improving the reliability of protecting the window motor.
[0070] In some possible implementations, step S104 may include step 201 and step 202 .
[0071] In step 201, when the window motor operation time does not reach the first time, if the current value of the window motor when running is greater than the stall threshold value of the current cycle for a duration greater than the second time, the window motor is controlled to stop running.
[0072] The first duration can represent the maximum duration that the window motor is allowed to run. Within the first duration, the window motor can complete a rise or fall. That is, if the window motor runs for the first duration, it can be determined that the window has reached the limit and the window motor has been blocked. The second duration can be used to determine whether the state of the current value is stable. If the current value of the window motor when running is greater than the blocking threshold of this cycle for a duration greater than the second duration, it can be determined that the state of the current value is stable.
[0073] When the window motor operation time does not reach the first time, if the current value of the window motor when it is running is greater than the current cycle blocking threshold value for a duration greater than the second time, it can be determined that the current value of the window motor when it is running is stable and the window motor is blocked, and the window motor can be controlled to stop running. The first time can be set to 8s, and the second time can be set to 200ms.
[0074] In some possible implementations, when the window motor has not run for a first time, if the current value of the window motor when running is greater than the stall threshold of this cycle for a duration not greater than a second time, it can be determined that the current value state of the window motor when running is unstable, and it may be that current interference causes the current value during operation to accidentally exceed the stall threshold of this cycle. It can be determined that the window has not reached the limit, that is, the operating state of the window motor is normal, and therefore, the window motor can be controlled to continue running.
[0075] In step S202, when the current value of the window motor during operation is not greater than the stall threshold value of the current cycle and the operation time of the window motor has reached a first time length, the window motor is controlled to stop operating.
[0076] When the current value of the window motor when running is not greater than the blocking threshold of this cycle, and the running time of the window motor has reached the first time, it can be determined that the window motor is blocked. This situation may be due to the fact that the blocking threshold value of this cycle is too large, resulting in the current value failing to reach the blocking threshold of this cycle when the window motor is actually blocked. The running time of the window motor has reached the first time, which can indicate that the window has reached the limit, that is, the window motor has been blocked. Therefore, the window motor can be controlled to stop running.
[0077] In some possible implementations, when the current value of the window motor during operation is not greater than the current cycle blocking threshold and the operation duration of the window motor does not reach the first duration, it can be determined that the window motor is operating normally. Therefore, the window motor can be controlled to continue operating.
[0078] In some possible implementations, step S105 may include step S301 and step S302.
[0079] In step S301, when the window motor operation duration has not reached the first duration, if the current value when the window motor is running is greater than the stall threshold of this cycle for a duration greater than the second duration, the reference threshold of this cycle is updated to the current value when the window motor is running that is greater than the stall threshold of this cycle.
[0080] When the window motor operation duration does not reach the first duration, if the duration of the current value when the window motor is running being greater than the stall threshold value of the current cycle is greater than the second duration, it can be considered that the current value when the window motor is running is stably greater than the stall threshold value of the current cycle, and the reference threshold value can be considered to be increased in the next cycle. The updated reference threshold value can be the current value when the window motor is running that is greater than the stall threshold value of the current cycle and lasts for more than the second duration.
[0081] In some possible implementations, when the window motor has not run for the first time, if the duration of the current value of the window motor being greater than the blocking threshold of the current cycle is not greater than the second time, it can be determined that the current value of the window motor is unstable, and it may be that the current interference causes the current value of the window motor to accidentally exceed the blocking threshold of the current cycle. It can be determined that the window has not reached the limit, that is, the running state of the window motor is normal, and therefore, the window motor can continue to be controlled.
[0082] In step S302, when the current value of the window motor when running is not greater than the stall threshold of this cycle and the running time of the window motor has reached a first time, the reference threshold of this cycle is updated to the current value when the running time of the window motor reaches the first time.
[0083] For example, when the current value of the window motor is running is not greater than the stall threshold value of this cycle, that is, the window motor stall is not detected according to the stall threshold value. When the window motor has been running for a first time, it is considered that the window has reached the limit and the window motor has been stalled, and it is considered that the stall threshold value of this cycle is too large. Therefore, the reference threshold value of this cycle can be updated to the current value when the window motor has been running for the first time, so that the reference threshold value of the next cycle is reduced on the basis of the reference threshold value of this cycle, which helps to obtain a lower stall threshold value in the next cycle.
[0084] In some possible implementations, after the window motor has been running for a first period of time, the window motor may be controlled to stop working, and the reference threshold may be updated to the current value when the window motor was last running.
[0085] In some possible implementations, when the current value of the window motor during operation is not greater than the current cycle blocking threshold and the window motor operation duration does not reach the first duration, it can be determined that the window motor is operating normally. Therefore, the window motor operation can continue to be controlled.
[0086] The increase in the number of window motor operation times and the aging of the rubber strip may cause the current value of the same window motor to increase or decrease with the increase in the number of operations. Correspondingly, the stall current value when the window motor is stalled may also increase or decrease. At this time, if the stall threshold value corresponding to the previous current value is still used to determine whether the window motor is stalled, it may lead to misjudgment of the window stall. Therefore, in order to accurately control the window motor, the reference threshold can be dynamically updated according to the change in the current value during actual operation. In this way, there is no need for actual vehicle calibration, and it can adapt to different windows, thereby improving the accuracy of controlling the window motor.
[0087] In some possible implementations, step S103 may include: determining the larger of the impact current value and the reference threshold of the current cycle as the stall threshold of the current cycle; or, determining the product of the larger of the impact current value and a coefficient less than 1 as the stall threshold of the current cycle.
[0088] If the impact current value is greater than or equal to the reference threshold value of this cycle, the impact current value can be determined as the stall threshold value of this cycle. If the impact current value is less than the reference threshold value of this cycle, the reference threshold value of this cycle can be determined as the stall threshold value of this cycle.
[0089] The product of the larger of the inrush current value and the reference threshold value of the current cycle and a coefficient less than 1 can be determined as the stall threshold of the current cycle. The coefficient less than 1 can be set to 0.95. Setting the product of the larger of the inrush current value and the reference threshold value of the current cycle and the coefficient less than 1 can appropriately reduce the stall threshold and avoid the stall threshold being too large.
[0090] In a possible embodiment, determining the impact current value when the window motor is started (step S101) may include: determining the maximum current value within a third time period from the start of the window motor start as the impact current value when the window motor is started.
[0091] If, according to experiments or experience, the surge current is generated within a predetermined time (e.g., 100 ms) after the window motor starts, the maximum current value within the predetermined time after the window motor starts can be determined as the surge current value when the window motor starts.
[0092] In this embodiment, the impact current value is determined by detecting the maximum current value within a period of time. The method is simple and the processing speed is fast.
[0093] In a possible embodiment, determining the current value of the window motor when it is running (step S102) includes: determining the current value after the third time period from the start of the window motor as the current value of the window motor when it is running.
[0094] After the third time period from when the window motor starts to start timing, it can be considered that the window motor is running stably, and the detected current value can be used to determine whether the motor is stalled. In this embodiment, the current detected after a period of time from when the window motor starts to start timing is used as the current value when the window motor is running, thereby avoiding misjudging the impact current value as the current value during normal operation, thereby improving the accuracy of determining whether the window motor is stalled.
[0095] Figure 4 FIG. 1 is a flow chart of a window motor control method according to another exemplary embodiment. Figure 4 As shown, the method may include the following steps:
[0096] 1) Start the window motor.
[0097] 2) Determine the inrush current value when the window motor starts and the current value when it is running.
[0098] 3) The product of the larger one of the impact current value and the reference threshold value of this cycle and a coefficient less than 1 is determined as the stall threshold value of this cycle.
[0099] 4) Determine whether the window motor operation time reaches a first time time.
[0100] 5) If the running time of the window motor reaches the first time, the window motor is controlled to stop running, and the reference threshold of this cycle is updated to the current value when the window motor stops.
[0101] 6) If the window motor operation time does not reach the first time length, further determine whether the current value of the window motor when it is running is greater than the stall threshold value of this cycle, and whether the duration is greater than the second time length.
[0102] 7) If the current value of the window motor when running is greater than the stall threshold value of this cycle and lasts longer than the second duration, the window motor is controlled to stop running, and the reference threshold of this cycle is updated to the current value when the window motor stops.
[0103] 8) If the current value when the window motor is running is not greater than the blocking threshold of this cycle, or the duration of the current value when the window motor is running being greater than the blocking threshold of this cycle is not greater than the second duration, the window motor can be controlled to continue running and the current value when the window motor is running can continue to be detected.
[0104] Figure 5 is a structural block diagram of a vehicle window motor control device 500 according to an exemplary embodiment. Figure 5 As shown, the vehicle window motor control device 500 may include a first determination module 501 , a second determination module 502 , a third determination module 503 , a control module 504 and an update module 505 .
[0105] The first determining module 501 is configured to determine an inrush current value when the window motor is started.
[0106] The second determination module 502 is configured to determine a current value when the window motor is in operation.
[0107] The third determination module 503 is configured to determine the stall threshold of the current cycle according to the inrush current value and the reference threshold of the current cycle.
[0108] The control module 504 is configured to control the operation of the window motor according to the current value of the window motor when it is running and the stall threshold value of this cycle.
[0109] The updating module 505 is configured to update the reference threshold of the current cycle according to the current value of the window motor when it is running and the stall threshold of the current cycle, and use the updated reference threshold as the reference threshold of the next cycle.
[0110] Optionally, the control module 504 includes a first control submodule and a second control submodule.
[0111] The first control submodule is configured to control the window motor to stop running if the current value of the window motor when running is greater than the stall threshold of the current cycle for a duration greater than a second duration when the window motor is running does not reach the first duration;
[0112] The second control submodule is configured to control the window motor to stop running if the current value of the window motor when running is not greater than the stall threshold of the current cycle and the running time of the window motor has reached the first time.
[0113] Optionally, the updating module 505 includes a first updating submodule and a second updating submodule.
[0114] The first update submodule is configured to update the reference threshold of the current cycle to a current value greater than the stall threshold of the current cycle when the window motor is running, if the duration of the operation of the window motor has not reached the first duration and the duration of the current value when the window motor is running being greater than the stall threshold of the current cycle is greater than the second duration.
[0115] The second updating submodule is configured to update the reference threshold of the current cycle to the current value when the running time of the window motor reaches the first time length, if the current value when the window motor is running is not greater than the stall threshold of the current cycle and the running time of the window motor has reached the first time length.
[0116] Optionally, the third determination module 503 is configured to: determine the larger of the impact current value and the reference threshold of this cycle as the stall threshold of this cycle; or determine the product of the larger one and a coefficient less than 1 as the stall threshold of this cycle.
[0117] Optionally, the first determining module 501 is configured to: determine the maximum current value within a third time period from the start of the window motor start as the impact current value when the window motor is started.
[0118] Optionally, the second determining module 502 is configured to: determine the current value after a third time period from the start of timing of the window motor being started as the current value when the window motor is running.
[0119] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0120] Through the above technical scheme, the operation of the window motor is controlled according to the current value when the window motor is running and the blocking threshold of this cycle, and the window motor can be closed in time to protect the window motor and avoid failure of the window motor. In addition, since the magnitude of the impact current value and the current value when the window motor is blocked are relatively close during each startup and operation of the window motor, the magnitude of the impact current value can reflect the magnitude of the current value when the window motor is blocked to a certain extent. According to the current value when the window motor is running and the blocking threshold of this cycle, the reference threshold of the next cycle is determined in this scheme, and the blocking threshold of the next cycle is dynamically determined by the reference threshold of the next cycle and the impact current value of the next cycle. The blocking threshold is used to determine whether the window motor is blocked. In this way, the misjudgment of the operating state of the window motor due to the inappropriate blocking threshold can be avoided, and the accuracy of determining the blocking of the window motor is improved. Not only does it not need to calibrate the reference threshold of the actual vehicle, but it is also adaptive to different windows, and the accuracy of detecting the blocking of the window motor is higher, thereby improving the reliability of protecting the window motor.
[0121] The present disclosure also provides an electronic device, including a memory and a processor.
[0122] The memory stores a computer program, and the processor is used to execute the computer program in the memory to implement the steps of the above method.
[0123] Figure 6 FIG. 6 is a block diagram of an electronic device 600 according to an exemplary embodiment. Figure 6As shown, the electronic device 600 may include: a processor 601 and a memory 602. The electronic device 600 may also include one or more of a multimedia component 603, an input / output (I / O) interface 604, and a communication component 605.
[0124] The processor 601 is used to control the overall operation of the electronic device 600 to complete all or part of the steps in the above-mentioned window motor control method. The memory 602 is used to store various types of data to support the operation of the electronic device 600, and these data may include, for example, instructions for any application or method used to operate on the electronic device 600, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 602 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 603 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 602 or sent through the communication component 605. The audio component also includes at least one speaker for outputting audio signals. The input / output (I / O) interface 604 provides an interface between the processor 601 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 605 is used for wired or wireless communication between the electronic device 600 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 605 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0125] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned window motor control method.
[0126] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above-mentioned vehicle window motor control method when executed by the programmable device.
[0127] The present disclosure also provides a vehicle, comprising the electronic device 600 provided by the present disclosure.
[0128] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0129] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0130] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A vehicle window motor control method, characterized in that: The method comprises: Determining an inrush current value when the window motor is started; determining a current value when the window motor is in operation; Determining a stall threshold value of this cycle according to the inrush current value and a reference threshold value of this cycle; Controlling the operation of the window motor according to the current value of the window motor when it is running and the stall threshold value of the current cycle; According to the current value of the window motor when it is running and the stall threshold of the current cycle, the reference threshold of the current cycle is updated, and the updated reference threshold is used as the reference threshold of the next cycle.
2. The window motor control method according to claim 1, characterized in that: The controlling the operation of the window motor according to the current value of the window motor when it is running and the stall threshold value of the current cycle includes: When the window motor is running for a period of less than the first period, if the current value of the window motor is greater than the stall threshold value of the current cycle for a period of more than the second period, the window motor is controlled to stop running; When the current value of the window motor when running is not greater than the stall threshold value of the current cycle and the running time of the window motor has reached the first time length, the window motor is controlled to stop running.
3. The window motor control method according to claim 1, characterized in that: The updating of the reference threshold of the current cycle according to the current value of the window motor when it is running and the stall threshold of the current cycle includes: When the window motor is running for a period of less than the first period, if the duration of the current value when the window motor is running being greater than the stall threshold value of the current cycle is greater than the second period, updating the reference threshold value of the current cycle to the current value when the window motor is running being greater than the stall threshold value of the current cycle; When the current value of the window motor when running is not greater than the stall threshold of the current cycle and the running time of the window motor has reached the first time, the reference threshold of the current cycle is updated to the current value when the running time of the window motor reaches the first time.
4. The window motor control method according to claim 1, characterized in that: Determining the stall threshold of the current cycle according to the impact current value and the reference threshold of the current cycle includes: The larger one of the impact current value and the reference threshold value of this cycle is determined as the stall threshold value of this cycle; or, The product of the larger one and the coefficient less than 1 is determined as the stall threshold value of the current cycle.
5. The vehicle window motor control method according to any one of claims 1 to 4, characterized in that: The step of determining the impact current value when the window motor is started includes: The maximum current value within the third time period of the start timing of the window motor start is determined as the impact current value when the window motor is started.
6. The vehicle window motor control method according to any one of claims 1 to 4, characterized in that: The determining of the current value of the window motor when it is running includes: The current value after the third time period after the start of timing of the window motor is determined as the current value when the window motor is in operation.
7. A vehicle window motor control device, characterized in that: include: A first determination module is configured to determine an impact current value when the window motor is started; A second determination module is configured to determine a current value when the window motor is running; A third determination module is configured to determine a stall threshold value of this cycle according to the impact current value and a reference threshold value of this cycle; A control module configured to control the operation of the window motor according to the current value of the window motor when it is running and the stall threshold value of this cycle; The updating module is configured to update the reference threshold of the current cycle according to the current value of the window motor when it is running and the stall threshold of the current cycle, and use the updated reference threshold as the reference threshold of the next cycle.
8. The vehicle window motor control device according to claim 7, characterized in that: The control module comprises: A first control submodule is configured to control the window motor to stop running if the current value of the window motor when running is greater than the stall threshold of the current cycle for a duration greater than a second duration when the window motor is running does not reach the first duration; The second control submodule is configured to control the window motor to stop running when the current value of the window motor when running is not greater than the stall threshold of the current cycle and the running time of the window motor has reached the first time.
9. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 6.
10. A vehicle, characterized in that: An electronic device comprising the electronic device described in claim 9.