Vehicle sunroof anti-pinch method and device, vehicle controller and vehicle
By analyzing the relationship between the rotation speed of the sunroof motor and the working voltage, sunroof area and vehicle acceleration, the speed difference threshold is calculated to determine the activation of the anti-pinch function, which solves the problems of accidental anti-pinch and anti-pinch failure in the existing technology, and improves the efficiency of vehicle sunroofs. Anti-pinch accuracy and user experience.
Patent Information
- Application Number
- CN202111436724.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-11-29
AI Technical Summary
Existing vehicle sunroof anti-pinch technology cannot fully consider the anti-pinch triggering conditions, resulting in accidental anti-pinch or anti-pinch failure, which reduces the user experience.
By determining the relationship between the speed of the sunroof motor and the operating voltage, the sunroof area and vehicle acceleration, the speed difference threshold is calculated to determine whether to activate the anti-pinch function to ensure accurate triggering of the anti-pinch function.
It reduces the probability of accidental anti-pinch and anti-pinch failure of the vehicle sunroof, and improves the accuracy and user experience of the anti-pinch function.
Smart Images

Figure CN116176242B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle sunroof anti-pinch method, a vehicle sunroof anti-pinch device, a vehicle controller and a vehicle. Background Art
[0002] There is a risk of pinching the user when the vehicle sunroof is closing, so many car companies have now designed anti-pinch functions for the sunroof, but the factors that affect the triggering of the anti-pinch function of the sunroof are very complex.
[0003] In the related art, a dual closed-loop method of speed closed-loop and current closed-loop is usually adopted to control the sunroof. This method cannot comprehensively consider the anti-pinch triggering conditions of the vehicle sunroof, which may easily lead to the vehicle sunroof's false anti-pinch or ineffective anti-pinch, thereby greatly reducing the user experience. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, one purpose of the present invention is to provide a vehicle sunroof anti-pinch method, which can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof, improve the accuracy of triggering the vehicle sunroof anti-pinch function, and improve the user experience.
[0005] A second objective of the present invention is to provide a vehicle sunroof anti-pinch device.
[0006] A third object of the present invention is to provide a vehicle controller.
[0007] A fourth object of the present invention is to provide a vehicle.
[0008] To achieve the above-mentioned purpose, a first embodiment of the present invention proposes a vehicle sunroof anti-pinch method, which includes the following steps: when the sunroof motor is operating normally, determining a first relationship between the rotation speed of the sunroof motor and the operating voltage, sunroof area and vehicle acceleration; when the sunroof motor is suddenly operated with a set load, determining a second relationship between the rotation speed of the sunroof motor and the operating voltage, sunroof area and vehicle acceleration; determining a speed difference threshold under different operating voltages, different sunroof areas and different vehicle accelerations based on the first relationship and the second relationship; obtaining the current rotation speed of the sunroof motor, and obtaining the current working voltage of the sunroof motor. voltage, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle; determining a first rotational speed of the sunroof motor according to the current operating voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, the current acceleration of the vehicle, and the first relationship, and determining a corresponding speed difference threshold according to the current operating voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle, and calculating the speed difference between the current rotational speed of the sunroof motor and the first rotational speed; judging whether the anti-pinch function of the vehicle sunroof is activated according to the speed difference and the corresponding speed difference threshold.
[0009] The anti-pinch method for the vehicle sunroof of the embodiment of the present invention can first calibrate the first speed of the sunroof motor in normal operation and the second speed of the sunroof motor when suddenly loaded when the three factors of the sunroof motor working voltage, sunroof area and vehicle acceleration change, and calculate the speed difference threshold value according to the first speed and the second speed. During the closing process of the vehicle sunroof, the speed difference between the current speed of the sunroof motor and the first speed is compared with the speed difference threshold value, and whether to start the anti-pinch function of the vehicle sunroof is determined according to the comparison result. Therefore, the anti-pinch method for the vehicle sunroof of the embodiment of the present invention can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof, improve the accuracy of triggering the anti-pinch function of the vehicle sunroof, and improve the user experience.
[0010] In some embodiments of the present invention, determining a first relationship between the rotational speed of the sunroof motor and the operating voltage, sunroof area and vehicle acceleration includes: recording the rotational speed of the sunroof motor during normal operation under different operating voltages, different sunroof areas and different vehicle accelerations to determine the first relationship.
[0011] In some embodiments of the present invention, determining a second relationship between the rotational speed of the sunroof motor and the operating voltage, sunroof area and vehicle acceleration includes: recording the rotational speed of the sunroof motor when it is suddenly operated with a set load under different operating voltages, different sunroof areas and different vehicle accelerations to determine the second relationship.
[0012] In some embodiments of the present invention, the first relationship and the second relationship are both stored in the form of a table.
[0013] In some embodiments of the present invention, obtaining the current rotational speed of the sunroof motor includes: calculating the angular velocity of the sunroof motor through waveform signals detected by two Hall sensors with a 90° difference from each other and arranged corresponding to the sunroof motor, and calculating the current rotational speed of the sunroof motor based on the angular velocity.
[0014] In some embodiments of the present invention, when the vehicle is stationary, a regulated power supply is provided to the sunroof motor to control the closing of the vehicle sunroof, and during the closing process of the vehicle sunroof, the vehicle sunroof is divided into areas according to whether the rotation speed of the sunroof motor changes suddenly.
[0015] In some embodiments of the present invention, whether the anti-pinch function of the vehicle sunroof is activated is determined based on the rotational speed difference and the corresponding speed difference threshold, including: when the rotational speed difference is greater than the corresponding speed difference threshold, an anti-pinch flag is output to activate the anti-pinch function of the vehicle sunroof.
[0016] To achieve the above-mentioned purpose, the second aspect of the present invention proposes an anti-pinch device for a vehicle sunroof, which includes: a first determination module, used to determine a first relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area and the vehicle acceleration when the sunroof motor is operating normally; a second determination module, used to determine the second relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area and the vehicle acceleration when the sunroof motor is suddenly operated with a set load; a third determination module, used to determine a speed difference threshold under different operating voltages, different sunroof areas and different vehicle accelerations based on the first relationship and the second relationship; an acquisition module, used to acquire the current rotation speed of the sunroof motor, and acquire the The present working voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and the present acceleration of the vehicle; a control module, for determining a first rotational speed of the sunroof motor according to the present working voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, the present acceleration of the vehicle, and the first relationship, and determining a corresponding speed difference threshold according to the present working voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and the present acceleration of the vehicle, and calculating the speed difference between the present rotational speed of the sunroof motor and the first rotational speed; a judgment module, for judging whether the anti-pinch function of the vehicle sunroof is activated according to the speed difference and the corresponding speed difference threshold.
[0017] The vehicle sunroof anti-pinch device of the embodiment of the present invention comprises a first determination module, a second determination module, a third determination module, an acquisition module, a control module and a judgment module, wherein, when the three factors of the sunroof motor working voltage, the sunroof area and the vehicle acceleration change, the first determination module can be used to determine the first speed of the sunroof motor in normal operation, the second determination module can be used to determine the second speed of the sunroof motor when it is suddenly loaded, and the third determination module can be used to determine the speed difference threshold according to the first speed and the second speed. During the closing process of the vehicle sunroof, the acquisition module acquires the current speed of the sunroof motor and the current working voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed and the current acceleration of the vehicle, and then the control module is used to determine the speed difference between the current speed of the sunroof motor and the first speed, and the speed difference is compared with the speed difference threshold, and finally the judgment module is used to judge whether to start the anti-pinch function of the vehicle sunroof according to the comparison result. Therefore, the vehicle sunroof anti-pinch device of the embodiment of the present invention can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof, improve the accuracy of triggering the anti-pinch function of the vehicle sunroof, and improve the user experience.
[0018] To achieve the above-mentioned purpose, an embodiment of the third aspect of the present invention proposes a vehicle controller, which includes a memory, a processor, and a vehicle sunroof anti-pinch program stored in the memory and executable on the processor. When the processor executes the vehicle sunroof anti-pinch program, the vehicle sunroof anti-pinch method described in the above embodiment is implemented.
[0019] The vehicle controller of an embodiment of the present invention includes a memory and a controller. The controller can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof by executing the vehicle sunroof anti-pinch program stored in the memory, improve the accuracy of triggering the vehicle sunroof anti-pinch function, and improve the user experience.
[0020] To achieve the above objectives, a fourth aspect of the present invention provides a vehicle, which includes the vehicle controller described in the above embodiments.
[0021] The vehicle of the embodiment of the present invention includes the vehicle controller in the above embodiment, which can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof, improve the accuracy of triggering the anti-pinch function of the vehicle sunroof, and improve the user experience.
[0022] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flow chart of a vehicle sunroof anti-pinch method according to an embodiment of the present invention;
[0024] Figure 2 is a schematic diagram of the arrangement of a Hall sensor according to an embodiment of the present invention;
[0025] Figure 3 is a schematic diagram of dividing a vehicle sunroof area according to an embodiment of the present invention;
[0026] Figure 4 is a schematic diagram of load simulation at a skylight position according to an embodiment of the present invention;
[0027] Figure 5 yes Figure 1 A specific flow chart of the anti-pinch method for the vehicle sunroof;
[0028] Figure 6 is a structural block diagram of a vehicle sunroof anti-pinch device according to an embodiment of the present invention;
[0029] Figure 7 is a structural block diagram of a vehicle controller according to an embodiment of the present invention;
[0030] Figure 8 is a structural block diagram of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0032] The following describes a vehicle sunroof anti-pinch method and device, a vehicle controller, and a vehicle according to embodiments of the present invention with reference to the accompanying drawings.
[0033] Figure 1 is a flow chart of a vehicle sunroof anti-pinch method according to an embodiment of the present invention.
[0034] like Figure 1 As shown, the present invention proposes a vehicle sunroof anti-pinch method, the method comprising the following steps:
[0035] S10, when the sunroof motor operates normally, determining a first relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area, and the vehicle acceleration.
[0036] Specifically, it should be noted that when the sunroof motor is running, its running speed is often affected by multiple factors, and the influencing factors may mainly include the working voltage of the sunroof motor and the actual load of the sunroof motor, wherein the actual load of the sunroof motor may include the motor itself, the transmission mechanism for transmitting torque, the dissipative force of the sunroof guide rail, the inertial force of the sunroof in a non-inertial system, etc. Since the loads corresponding to the sunroof motor of the vehicle are different in different sunroof areas, the present invention can calibrate the different loads corresponding to the sunroof motor by obtaining the area of the vehicle sunroof, and can also calibrate the inertial force of the vehicle sunroof by obtaining the vehicle acceleration, because the inertial force will also affect the load of the sunroof motor.
[0037] In this embodiment, when the sunroof motor is operating normally, that is, when there is no sudden load on the sunroof motor, the working voltage of the sunroof motor, the area of the vehicle sunroof and the acceleration of the vehicle are obtained, and the current speed of the sunroof motor is also obtained. Then, the corresponding relationship between the current speed of the sunroof motor and the displacement between the above three is calibrated, and then the speed of another sunroof motor is obtained by changing one of the factors. In this way, the working voltage, sunroof area and vehicle acceleration are continuously changed to obtain multiple speeds and calibrate them, which are recorded as the first relationship.
[0038] Optionally, the operating voltage range of the sunroof motor can be the safe operating voltage range of the motor, and the step size of each modification can be set according to the user's accuracy requirements. For example, if the operating voltage range is 0 volts to 20 volts, the step size can be selected as 1 volt or 0.5 volt. The acceleration range of the vehicle and the step size of each acceleration modification can be selected according to the vehicle model, user driving habits, etc., and the sunroof area can be set in advance.
[0039] S20, when the sunroof motor is suddenly operated with a set load, determining a second relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area, and the vehicle acceleration.
[0040] Specifically, it should be noted that the method of this step can refer to the implementation steps described in the above step S10, but different from the above step, the sunroof motor in this step is in a state of sudden load operation. It can be understood that the sudden set load of the sunroof motor can be the load required to just trigger the vehicle sunroof to start the anti-pinch function, and the set load can be determined according to the type of vehicle sunroof and / or user needs.
[0041] More specifically, in this embodiment, a load is suddenly set on the sunroof motor to obtain different operating voltages of the sunroof motor, different sunroof areas and different vehicle accelerations, and simultaneously obtain the corresponding rotational speeds of the sunroof motor, and then the relationship between the rotational speed of the sunroof motor and the operating voltage, sunroof area and vehicle acceleration is recorded as a second relationship.
[0042] S30, determining speed difference thresholds under different operating voltages, different sunroof areas, and different vehicle accelerations according to the first relationship and the second relationship.
[0043] Specifically, after obtaining the first relationship and the second relationship, the motor speed in the first relationship can be subtracted from the motor speed in the second relationship to obtain the speed difference threshold. It can be understood that when the motor speed in the first relationship is subtracted from the motor speed in the second relationship, the corresponding working voltage, sunroof area and vehicle acceleration should be the same, and the calculated speed difference threshold also has a corresponding relationship with the working voltage, sunroof area and vehicle acceleration. For example, when the working voltage is 12 volts, the sunroof area is area A, and the vehicle acceleration is 0.5g (g is the acceleration of gravity), the speed of the sunroof motor in normal operation is 2000 revolutions per second, and the speed of the sunroof motor when the set load is suddenly added is 1500 revolutions per second. When the working voltage is 12 volts, the sunroof area is area A, and the vehicle acceleration is 0.5g (g is the acceleration of gravity), the speed difference threshold is 500 revolutions per second.
[0044] In some embodiments of the present invention, determining a first relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area, and the vehicle acceleration includes: recording the rotation speed of the sunroof motor during normal operation under different operating voltages, different sunroof areas, and different vehicle accelerations to determine the first relationship. Determining a second relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area, and the vehicle acceleration includes: recording the rotation speed of the sunroof motor when it is suddenly loaded with a set load under different operating voltages, different sunroof areas, and different vehicle accelerations to determine the second relationship.
[0045] Specifically, for example, when the operating voltage is 12 volts, the sunroof area is area A, and the vehicle acceleration is 0.5g (g is the acceleration of gravity), the speed of the sunroof motor during normal operation can be recorded as 2000 revolutions per second; when the operating voltage is 15 volts, the sunroof area is area A, and the vehicle acceleration is 0.5g (g is the acceleration of gravity), the speed of the sunroof motor during normal operation can be recorded as 2200 revolutions per second; it should be noted that the operating voltage can be increased from 0 volts to 20 volts in steps of 1 volt, while keeping the sunroof area and vehicle acceleration unchanged, and recording the speed of the sunroof motor corresponding to each voltage. Next, change the sunroof area and repeatedly record the speed of the sunroof motor when the working voltage increases from 0 volts to 20 volts, so as to record the speed of the sunroof motor corresponding to each sunroof area; then change the vehicle acceleration and repeatedly record the speed of the sunroof motor when the working voltage increases from 0 volts to 20 volts and the sunroof area moves from area A to area F (assuming that the sunroof area is divided into six areas from A to F) to record the speed of the sunroof motor corresponding to each vehicle acceleration.
[0046] After obtaining the speed of the sunroof motor corresponding to different working voltages, different sunroof areas and different vehicle accelerations, the corresponding relationships are recorded to determine the first relationship. In the subsequent steps, the speed of the sunroof motor under normal operation can be determined according to the working voltage, sunroof area, vehicle acceleration and the first relationship. Similarly, the speed of the sunroof motor under sudden set load can be determined according to the working voltage, sunroof area, vehicle acceleration and the second relationship.
[0047] In some embodiments, both the first relationship and the second relationship may be stored in a memory in the form of a table to facilitate timely retrieval and improve the response speed of the sunroof anti-pinch function.
[0048] S40, obtaining a current rotation speed of the sunroof motor, and obtaining a current operating voltage of the sunroof motor, a sunroof area to which the sunroof of the vehicle is currently closed, and a current acceleration of the vehicle.
[0049] After recording and storing the first relationship and the second relationship, during the use of the vehicle sunroof, it is necessary to determine at any time whether the vehicle sunroof needs to activate the anti-pinch function to prevent the vehicle sunroof from causing injury to the user or damage to the vehicle sunroof. Since the sudden set load in this embodiment is the load threshold for activating the anti-pinch function of the sunroof, and the load can be reflected by the rotational speed, the present invention can determine whether to activate the anti-pinch function by comparing the motor speed.
[0050] Specifically, the current working voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle are obtained. Then, the rotational speed of the sunroof motor during normal operation can be obtained by looking up a table using the current working voltage, sunroof area, and current acceleration of the vehicle. Then, the current rotational speed of the sunroof motor is obtained, and then it can be determined whether to start the anti-pinch function based on the current rotational speed and the rotational speed of the sunroof motor during normal operation.
[0051] In some embodiments, obtaining the current rotation speed of the sunroof motor includes: calculating the angular velocity of the sunroof motor through waveform signals detected by two Hall sensors with a 90° difference between each other and arranged corresponding to the sunroof motor, and calculating the current rotation speed of the sunroof motor according to the angular velocity.
[0052] Specifically, Figure 2 As shown, the sunroof motor is provided with a first Hall sensor HALL1 and a second Hall sensor HALL2, which are 90 degrees apart from each other. Therefore, in one electrical cycle, four Hall states are changed, wherein the Hall states can be marked as "0", "1", "2", and "3". Since one electrical cycle is 360°, one Hall state corresponds to 90°. After the motor rotates, the duration of one Hall state is the time required for the rotor to rotate 90°. A periodic function with a preset time is set to calculate the duration of one Hall state, and then the electrical angular velocity can be obtained by dividing 90° by the time.
[0053] More specifically, assume that a 100-microsecond periodic function is set to calculate the duration of a Hall state, and a flag is set to accumulate the number of times the Hall state passes through the periodic function. If a 100-microsecond periodic function is not passed, the flag is incremented by one. For example, in the Hall state, the number on the flag is 5, which means that the duration of the Hall state is 500 microseconds, then the speed obtained by dividing 90° by 500 microseconds is the electrical angular velocity, and the angular velocity of the motor can be calculated based on the number of pole pairs of the motor. For example, the motor in this embodiment has two pairs of poles, and there are eight Hall states in one mechanical cycle, so the angular velocity of the motor is (90°÷0.0005÷2) revolutions per second.
[0054] S50, determining a first rotational speed of the sunroof motor according to a current operating voltage of the sunroof motor, a sunroof area to which the vehicle sunroof is currently closed, a current acceleration of the vehicle, and a first relationship, determining a corresponding speed difference threshold according to the current operating voltage of the sunroof motor, a sunroof area to which the vehicle sunroof is currently closed, and a current acceleration of the vehicle, and calculating a speed difference between the current rotational speed of the sunroof motor and the first rotational speed.
[0055] Specifically, after obtaining the current operating voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle in step S40, the first relationship can be queried based on the current operating voltage, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle to obtain the first speed of the sunroof motor, and the corresponding speed difference threshold can also be queried based on the current operating voltage, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle. It can be understood that the first speed is the first speed when the sunroof motor is operating normally. After obtaining the current speed and the first speed of the sunroof motor, the speed difference between the two can be calculated. Specifically, the difference obtained by subtracting the first speed from the current speed of the sunroof motor can be used as the speed difference.
[0056] It should be noted that, since the anti-pinch function does not need to be activated during the opening process of the vehicle sunroof, the sunroof area during the closing process of the vehicle sunroof is detected in this embodiment to determine whether the anti-pinch function is triggered during the closing process of the vehicle sunroof.
[0057] S60: Determine whether the anti-pinch function of the vehicle sunroof is activated according to the rotation speed difference and the corresponding speed difference threshold.
[0058] Specifically, the speed difference threshold in this embodiment can be the first speed minus the second speed, wherein the second speed is the speed of the sunroof motor when it is suddenly loaded with a set load, and the working voltage, sunroof area and vehicle acceleration corresponding to the first speed and the second speed are the same, and the speed difference threshold in this state can be obtained. After obtaining the speed difference threshold and the speed difference, the size of the two can be used to determine whether to start the anti-pinch function of the vehicle sunroof.
[0059] More specifically, if the speed difference is greater than the speed difference threshold, the anti-pinch function of the vehicle sunroof during the closing process is activated. It can be understood that since the speed difference threshold is obtained by subtracting the second speed from the first speed, and the second speed is the load threshold for starting the anti-pinch function of the vehicle sunroof, when the speed difference obtained by subtracting the current speed from the first speed is greater than the speed difference threshold, it means that the current speed is less than the second speed, which means that the load received by the current vehicle sunroof is greater than the load threshold, and therefore the anti-pinch function of the vehicle sunroof needs to be activated.
[0060] In some embodiments, when the speed difference is greater than the corresponding speed difference threshold, an anti-pinch flag can be output, thereby activating the anti-pinch function of the vehicle sunroof. When the anti-pinch function of the vehicle sunroof is activated, the sunroof motor can be controlled to reverse to prevent pinching.
[0061] In some embodiments of the present invention, the division of the vehicle sunroof area may specifically include: when the vehicle is stationary, providing a regulated power supply to the sunroof motor to control the closing of the vehicle sunroof, and during the closing process of the vehicle sunroof, dividing the vehicle sunroof into areas according to whether the speed of the sunroof motor changes suddenly.
[0062] Specifically, firstly, a stable voltage source is selected, such as 20 volts, and the acceleration of the vehicle is selected to be 0, that is, the vehicle is stationary, so as to prevent the acceleration of the vehicle from affecting the division of the vehicle sunroof area. When the stabilized power supply is used to control the closing of the vehicle sunroof, the vehicle sunroof can be divided according to the rotation speed of the sunroof motor. It should be noted that the load of the sunroof motor is not the same in different areas of the vehicle sunroof, and since the working voltage of the sunroof motor and the vehicle acceleration also affect the load of the sunroof motor, this embodiment controls the vehicle to be stationary when dividing the vehicle sunroof into areas and provides a stabilized power supply to overcome the influence of the working voltage and the vehicle acceleration, so as to improve the accuracy of the vehicle sunroof area division.
[0063] More specifically, the Hall sensor can be used to detect the number of Hall jumps during the entire closing process of the sunroof, and then the voltage regulator can be controlled to supply power to the sunroof motor. The sunroof area of the vehicle can then be evenly divided according to the rotation speed of the sunroof motor, so that areas with the same rotation speed or adjacent areas with a small rotation speed difference can be divided into the same area. Specifically, adjacent Hall jumps with slow rotation speed changes can be divided into one area. Figure 3 As shown, the sunroof can be divided into six areas A to F, wherein the direction of the arrow indicates the direction in which the sunroof is opened or closed.
[0064] When detecting the influence of the working voltage on the vehicle sunroof load, the present embodiment can first divide the area of the vehicle sunroof through the simulation software, and also needs to control the acceleration estimation of the vehicle. For the convenience of detection, the vehicle acceleration is also set to 0, that is, the vehicle is controlled to be stationary. Specifically, each pulse number of the rotor can be regarded as one area, and the load corresponding to the vehicle sunroof in each area can be simulated. Figure 4 As described above, after the load of the area corresponding to each sunroof area is obtained through simulation, it can be recorded first, so as to improve the accuracy of subsequent analysis of the change of the sunroof motor load by the working voltage.
[0065] Specifically, when analyzing the influence of different voltage points on the sunroof motor speed, the following formula can be used to analyze the relationship between the sunroof motor's operating voltage and motor speed, and then record the corresponding relationship between each sunroof motor speed and operating voltage. The formula includes: E=K E *ω、T e =K T *i a , Among them, K E is the back electromotive force coefficient, K T is the torque coefficient, u a is the working voltage of the sunroof motor, i a is the working current of the sunroof motor, E is the back electromotive force, ω is the speed of the sunroof motor, T e is the electromagnetic torque of the sunroof motor, T L is the load torque of the sunroof motor, J is the moment of inertia, and the working voltage of the sunroof motor can be obtained by the resistor voltage R a i a , Inductor voltage and the back electromotive force E. From the above formula, we can know that the electromagnetic torque is related to the working current i of the sunroof motor. a Proportional relationship, working current i a With working voltage u a There is a nonlinear relationship between them. It should be noted that the anti-pinch method of this embodiment does not select the current closed-loop control system to control the sunroof motor. It is assumed that the speed closed-loop and current closed-loop dual closed-loop control of the sunroof motor is adopted. This is a rotor jam determination method in classic motor control. The anti-pinch method of this embodiment is mainly to deal with complex sunroof load problems, cost reduction problems, and anti-pinch efficiency problems. Among them, cost reduction can include no need for current detection, only setting two Hall sensors, and later canceling the H-bridge inverter circuit in the circuit, and controlling the forward and reverse rotation of the sunroof motor by controlling the IO level change and a simple drive circuit.
[0066] In this embodiment, for a vehicle that accelerates to 100 kilometers in 3.9 seconds, its acceleration can reach 0.72g (g is the acceleration of gravity). At this time, the load on the vehicle sunroof cannot be ignored. If the sunroof is closed when the vehicle is accelerating, the sunroof will be misjudged and the anti-pinch function will be activated. If the vehicle accelerates to 100 kilometers in 2 seconds, its acceleration can reach an astonishing 1.4g. Therefore, according to Newton's second law, when the vehicle is accelerating, the vehicle sunroof will be affected by the inertial force, that is, the load of the vehicle sunroof will be affected. Obviously, the impact of the vehicle acceleration on the vehicle sunroof load cannot be ignored. Therefore, it is necessary to consider the impact of acceleration on the sunroof motor, so the voltage of the sunroof motor and the window area can be kept fixed, and then the speed corresponding to the vehicle sunroof under different accelerations is tested and recorded.
[0067] It should be noted that, in this embodiment, the selection of the vehicle acceleration point and the selection of the operating voltage point can be selected according to the accuracy requirements and the safe operating range of the vehicle.
[0068] Summary, see Figure 5First, the angular velocity and the number of cumulative Hall state jumps are calculated through the waveforms fed back by the two Hall sensors with a 90° electrical angle difference. Then the normal working voltage range of the motor is determined and divided into equal parts. Under the same model sunroof, the first speed w1 of the motor during normal operation is calibrated under different working voltages, different sunroof areas, and different vehicle accelerations. Under the same model sunroof, the second speed w2 of the motor when the motor suddenly adds the set load is calibrated under different working voltages, different sunroof areas, and different vehicle accelerations. And w1-w2 is calibrated as the speed difference threshold for the next step. Determine whether the first speed w1 minus the current speed w is greater than the speed difference threshold. If yes, the anti-pinch flag is output, and the system controls the sunroof motor to reverse; otherwise, it returns to re-judge.
[0069] In summary, the vehicle sunroof anti-pinch method of the embodiment of the present invention can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof, improve the accuracy of triggering the vehicle sunroof anti-pinch function, and improve the user experience.
[0070] Figure 6 4 is a structural block diagram of a vehicle sunroof anti-pinch device according to an embodiment of the present invention.
[0071] Furthermore, if Figure 6 As shown, the present invention proposes a vehicle sunroof anti-pinch device 100 , wherein the anti-pinch device 100 includes a first determination module 101 , a second determination module 102 , a third determination module 103 , an acquisition module 104 , a control module 105 and a judgment module 106 .
[0072] Among them, the first determination module 101 is used to determine the first relationship between the rotation speed of the sunroof motor and the working voltage, the sunroof area and the vehicle acceleration when the sunroof motor is operating normally; the second determination module 102 is used to determine the second relationship between the rotation speed of the sunroof motor and the working voltage, the sunroof area and the vehicle acceleration when the sunroof motor is suddenly operated with a set load; the third determination module 103 is used to determine the speed difference threshold under different working voltages, different sunroof areas and different vehicle accelerations according to the first relationship and the second relationship; the acquisition module 104 is used to acquire the current rotation speed of the sunroof motor and acquire the current working voltage of the sunroof motor. operating voltage, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle; the control module 105 is used to determine a first speed of the sunroof motor according to the current operating voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, the current acceleration of the vehicle, and the first relationship, and to determine a corresponding speed difference threshold according to the current operating voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle, and to calculate the speed difference between the current speed of the sunroof motor and the first speed; the judgment module 106 is used to judge whether the anti-pinch function of the vehicle sunroof is activated according to the speed difference and the corresponding speed difference threshold.
[0073] In some embodiments of the present invention, the first determination module 101 is used to record the rotation speed of the sunroof motor during normal operation under different operating voltages, different sunroof areas, and different vehicle accelerations to determine the first relationship.
[0074] In some embodiments of the present invention, the second determination module 102 is used to record the rotation speed of the sunroof motor when it is suddenly operated with a set load under different operating voltages, different sunroof areas, and different vehicle accelerations to determine the second relationship.
[0075] In some embodiments of the present invention, the first relationship and the second relationship are both stored in the form of a table.
[0076] In some embodiments of the present invention, the acquisition module 104 acquires the current speed of the sunroof motor, including: calculating the angular velocity of the sunroof motor through waveform signals detected by two Hall sensors with a 90° difference between each other set corresponding to the sunroof motor, and calculating the current speed of the sunroof motor based on the angular velocity.
[0077] In some embodiments of the present invention, the vehicle sunroof anti-pinch device 100 also includes a division module, which is used to provide a regulated power supply to the sunroof motor to control the closing of the vehicle sunroof when the vehicle is stationary, and during the closing process of the vehicle sunroof, divide the vehicle sunroof into areas according to whether the speed of the sunroof motor changes suddenly.
[0078] In some embodiments of the present invention, the determination module 106 is configured to output an anti-pinch flag to activate the anti-pinch function of the vehicle sunroof when the speed difference is greater than the corresponding speed difference threshold.
[0079] It should be noted that, for other specific implementations of the vehicle sunroof anti-pinch device of the embodiment of the present invention, reference can be made to the implementation of the vehicle sunroof anti-pinch method in the above embodiment, which will not be described in detail here.
[0080] In summary, the vehicle sunroof anti-pinch device of the embodiment of the present invention can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof, improve the accuracy of triggering the vehicle sunroof anti-pinch function, and improve the user experience.
[0081] Figure 7 is a structural block diagram of a vehicle controller according to an embodiment of the present invention.
[0082] Furthermore, if Figure 7 As shown, the present invention proposes a vehicle controller 200, which includes a memory 201, a processor 202, and a vehicle sunroof anti-pinch program stored in the memory 201 and executable on the processor 202. When the processor 202 executes the vehicle sunroof anti-pinch program, the vehicle sunroof anti-pinch method according to the above embodiment is implemented.
[0083] The vehicle controller of an embodiment of the present invention includes a memory and a controller. The controller can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof by executing the vehicle sunroof anti-pinch program stored in the memory, improve the accuracy of triggering the vehicle sunroof anti-pinch function, and improve the user experience.
[0084] Figure 8 is a structural block diagram of a vehicle according to an embodiment of the present invention.
[0085] Furthermore, if Figure 8 As shown, the present invention proposes a vehicle 300 , which includes the vehicle controller 200 of the above embodiment.
[0086] The vehicle of the embodiment of the present invention can reduce the probability of false anti-pinch and anti-pinch failure of the vehicle sunroof through the vehicle controller, improve the accuracy of triggering the anti-pinch function of the vehicle sunroof, and improve the user experience.
[0087] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0088] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0089] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0090] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0091] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.
[0092] In the present invention, unless otherwise clearly specified or limited in the embodiments, the terms "installed", "connected", "connected" and "fixed" etc. in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integrated connection. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific implementation situation.
[0093] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0094] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A vehicle sunroof anti-pinch method, characterized in that: The method comprises: When the sunroof motor operates normally, determining a first relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area, and the vehicle acceleration; When the sunroof motor is suddenly operated with a set load, determining a second relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area, and the vehicle acceleration; Determining speed difference thresholds under different operating voltages, different sunroof areas, and different vehicle accelerations according to the first relationship and the second relationship; Acquire the current rotation speed of the sunroof motor, and acquire the current operating voltage of the sunroof motor, the sunroof area to which the sunroof of the vehicle is currently closed, and the current acceleration of the vehicle; Determining a first rotation speed of the sunroof motor according to a current operating voltage of the sunroof motor, a sunroof area to which the vehicle sunroof is currently closed, a current acceleration of the vehicle, and the first relationship, determining a corresponding speed difference threshold according to the current operating voltage of the sunroof motor, a sunroof area to which the vehicle sunroof is currently closed, and a current acceleration of the vehicle, and calculating a speed difference between the current rotation speed of the sunroof motor and the first rotation speed; It is determined whether the anti-pinch function of the vehicle sunroof is activated according to the rotation speed difference and the corresponding speed difference threshold.
2. The vehicle sunroof anti-pinch method according to claim 1, characterized in that: Determining a first relationship between a rotation speed of the sunroof motor and an operating voltage, a sunroof area, and a vehicle acceleration includes: Under conditions of different operating voltages, different sunroof areas, and different vehicle accelerations, the rotational speed of the sunroof motor during normal operation is recorded to determine the first relationship.
3. The vehicle sunroof anti-pinch method according to claim 2, characterized in that: Determining a second relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area, and the vehicle acceleration includes: Under conditions of different operating voltages, different sunroof areas, and different vehicle accelerations, the rotational speed of the sunroof motor when it is suddenly operated with a set load is recorded to determine the second relationship.
4. The vehicle sunroof anti-pinch method according to claim 3, characterized in that: The first relationship and the second relationship are both stored in a table format.
5. The vehicle sunroof anti-pinch method according to any one of claims 1 to 4, characterized in that: Obtaining the current speed of the sunroof motor, including: The angular velocity of the sunroof motor is calculated by using waveform signals detected by two Hall sensors which are 90° apart and arranged corresponding to the sunroof motor, and the current rotation speed of the sunroof motor is calculated according to the angular velocity.
6. The vehicle sunroof anti-pinch method according to any one of claims 1 to 4, characterized in that: When the vehicle is stationary, a regulated power supply is provided to the sunroof motor to control the closing of the vehicle sunroof, and during the closing process of the vehicle sunroof, the vehicle sunroof is divided into areas according to whether the rotation speed of the sunroof motor changes suddenly.
7. The vehicle sunroof anti-pinch method according to any one of claims 1 to 4, characterized in that: Determining whether the anti-pinch function of the vehicle sunroof is activated according to the speed difference and the corresponding speed difference threshold includes: When the rotation speed difference is greater than the corresponding speed difference threshold, an anti-pinch flag is output to activate the anti-pinch function of the vehicle sunroof.
8. A vehicle sunroof anti-pinch device, characterized in that: include: A first determination module, configured to determine a first relationship between a rotation speed of the sunroof motor and an operating voltage, a sunroof area, and a vehicle acceleration when the sunroof motor operates normally; A second determination module is used to determine a second relationship between the rotation speed of the sunroof motor and the operating voltage, the sunroof area and the vehicle acceleration when the sunroof motor is suddenly operated with a set load; a third determination module, configured to determine a speed difference threshold under different operating voltages, different sunroof areas, and different vehicle accelerations according to the first relationship and the second relationship; An acquisition module, used to acquire the current rotation speed of the sunroof motor, and acquire the current operating voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and the current acceleration of the vehicle; a control module, configured to determine a first rotation speed of the sunroof motor according to a current operating voltage of the sunroof motor, a sunroof area to which the vehicle sunroof is currently closed, a current acceleration of the vehicle, and the first relationship, determine a corresponding speed difference threshold according to the current operating voltage of the sunroof motor, the sunroof area to which the vehicle sunroof is currently closed, and a current acceleration of the vehicle, and calculate a speed difference between a current rotation speed of the sunroof motor and the first rotation speed; The judgment module is used to judge whether the anti-pinch function of the vehicle sunroof is activated according to the rotation speed difference and the corresponding speed difference threshold.
9. A vehicle controller, characterized in that: The invention comprises a memory, a processor and a vehicle sunroof anti-pinch program stored in the memory and executable on the processor. When the processor executes the vehicle sunroof anti-pinch program, the vehicle sunroof anti-pinch method according to any one of claims 1 to 7 is implemented.
10. A vehicle, characterized in that: Includes the vehicle controller as claimed in claim 9.
