Control method of automobile skylight motor, vehicle, electronic equipment and medium
By obtaining and utilizing the movement end point position information of the sunroof in the automotive sunroof motor control system, the motor is controlled to stop working at the preset position, which solves the problem of frequent triggering of motor blockage and increasing costs, extends the service life of the motor and maintains low costs .
Patent Information
- Application Number
- CN202310950173.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2043-07-28
AI Technical Summary
Existing automotive sunroof motor control methods frequently trigger motor blockage, affecting the service life of the motor, or need to add additional micro switches to increase cost and structural complexity.
By responding to the trigger event, the motor of the car sunroof is controlled to obtain the movement end point position information of the sunroof, and when the preset part of the sunroof moves to the movement end point position, the motor is controlled to stop working, reducing the dependence on the motor blockage.
The sunroof movement end point judgment based on position comparison is realized, reducing the impact of motor service life without the need for additional hardware, maintaining the existing structure and low cost.
Smart Images

Figure CN119434786A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a control method for an automobile sunroof motor, a vehicle, an electronic device and a medium. Background Art
[0002] For the comfort of automobile use, automobiles are usually equipped with sunroofs, which can be opened and closed by controlling the movement of the sunroof motor through a motor.
[0003] In one method, the motor stalling principle can be utilized to set the motor stalling to be triggered when the car sunroof moves to the initial position or the end position of the sunroof movement trajectory. When the motor stalling is detected, it can be known that the car sunroof has reached the initial position or the end position, and the car sunroof motor can be controlled to stop working. However, frequently triggering the motor stalling will affect the service life of the motor.
[0004] In another way, micro switches can be installed at the initial position and end position of the car sunroof. When the car sunroof moves to the position of the micro switch, the micro switch is triggered, and then it can be known that the car sunroof has reached the initial position or the end position, and the car sunroof motor is controlled to stop working. However, at least two micro switches need to be added, which increases the cost and complicates the structure. Summary of the invention
[0005] In view of the above problems, a control method for a vehicle sunroof motor, a vehicle, an electronic device and a medium are proposed to overcome the above problems or at least partially solve the above problems, including:
[0006] A method for controlling a sunroof motor of an automobile, the method comprising:
[0007] In response to a triggering event, controlling the sunroof motor of the vehicle to drive the sunroof to move;
[0008] Obtaining the movement end position information of the skylight;
[0009] When the preset position of the sunroof moves to the position indicated by the movement end position information, the automobile sunroof motor is controlled to stop working.
[0010] Optionally, the movement end point position information includes first movement end point position information and second movement end point position information;
[0011] The first movement terminal position information is used to indicate the position information of the terminal point of the sunroof moving along a first direction, and the second movement terminal position information is used to indicate the position information of the terminal point of the sunroof moving along a second direction, and the second direction is a direction opposite to the first direction.
[0012] Optionally, when the preset position of the sunroof moves to the position indicated by the movement end position information, before controlling the sunroof motor to stop working, the method further includes:
[0013] Determine whether the motion end position information is in an available state; if the motion end position information is in an available state, control the automobile sunroof motor to stop working when the preset position of the sunroof moves to the position indicated by the motion end position information.
[0014] Optionally, it also includes:
[0015] In the case that the movement end point position information is in an unavailable state, it is detected whether the automobile sunroof motor is blocked, and when blocked, the automobile sunroof motor is controlled to stop working.
[0016] Optionally, when the movement endpoint position information is in an unavailable state, the method further includes:
[0017] Determine first position information of a motor stall when the sunroof moves in a first direction;
[0018] Determine second position information of a motor stall when the sunroof moves in a second direction;
[0019] The movement end point position information is updated according to the first position information and the second position information, and the updated movement end point position information is set to an available state.
[0020] Optionally, before updating the movement end point position information according to the first position information and the second position information, the method further includes:
[0021] Determine a current sunroof displacement according to the first position information and the second position information; and update the movement endpoint position information according to the first position information and the second position information when the current sunroof displacement is greater than or equal to the target sunroof displacement.
[0022] Optionally, it also includes:
[0023] When the current sunroof displacement is less than the target sunroof displacement, an anti-pinch function for the vehicle sunroof motor is triggered.
[0024] Optionally, the determining whether the movement endpoint position information is in an available state includes:
[0025] Determining the number of times the vehicle sunroof motor has been closed since the last update of the motion endpoint position information;
[0026] When the closing number is greater than the preset closing number, determining that the movement end point position information is in an unavailable state;
[0027] When the closing number is less than or equal to the preset closing number, it is determined that the movement endpoint position information is in an available state.
[0028] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned control method for a car sunroof motor when executed by the processor.
[0029] A vehicle comprises a sunroof, a sunroof motor, a transmission structure between the sunroof motor and the sunroof, and a controller, wherein the controller is used to implement the control method of the automobile sunroof motor as described above.
[0030] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the automobile sunroof motor as described above is implemented.
[0031] The embodiments of the present invention have the following advantages:
[0032] In an embodiment of the present invention, by responding to a trigger event, the vehicle sunroof motor is controlled to drive the sunroof to move, and the movement end position information of the sunroof is obtained. When a preset part of the sunroof moves to the position indicated by the movement end position information, the vehicle sunroof motor is controlled to stop working, thereby realizing the determination of whether the vehicle sunroof has reached the end point of the sunroof movement trajectory based on position comparison, reducing the reliance on the trigger motor stalling, and further reducing the impact on the service life of the motor. No additional hardware is required, and the existing structure can be maintained at a low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0034] Figure 1 is a flowchart of a method for controlling a sunroof motor of an automobile provided by an embodiment of the present invention;
[0035] Figure 2 is a flowchart of another method for controlling a sunroof motor of an automobile provided by an embodiment of the present invention;
[0036] Figure 3 It is a schematic diagram of a control example of a car sunroof motor provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] Reference Figure 1 , shows a flowchart of a method for controlling a sunroof motor of an automobile provided by an embodiment of the present invention, which may specifically include the following steps:
[0039] Step 101, in response to a triggering event, controlling the sunroof motor of the vehicle to operate to drive the sunroof to move.
[0040] Among them, the car sunroof is a car sunroof motor controlled by a motor, that is, the car sunroof motor can be controlled by the motor to automatically open and close. For example, the car sunroof can be an outward sliding type, an inward hidden type, an inward hidden outward flipping type, a panoramic type, a curtain type. Of course, the car sunroof can also be other forms of sunroofs.
[0041] When a user needs to open or close the car sunroof, the user can trigger an event, such as pressing a physical button used to control the opening or closing of the car sunroof to perform a triggering operation, or the user can trigger an operation through a virtual button in the interactive interface provided by the on-board display screen or the mobile terminal, or the user can trigger an event through voice interaction.
[0042] After detecting a user trigger event, the controller can control the car sunroof motor to start working, and then drive the sunroof to move, including controlling the car sunroof to move in the direction of opening the car sunroof, or controlling the car sunroof to move in the direction of closing the car sunroof.
[0043] It should be noted that the movement of the car sunroof can be controlled by a motor to open or close the car sunroof, but it is not necessarily the movement of the motor itself. The motor itself can only control the rotation of the rotor, and the rotation of the rotor drives the car sunroof to move along the movement trajectory of the sunroof.
[0044] Step 102, obtaining the movement end position information of the sunroof.
[0045] In practical applications, the movement end position information of the sunroof may be stored, and the movement end position information is used to indicate the end position of the movement of the sunroof, such as the initial position and the end position of the movement trajectory of the sunroof.
[0046] In one embodiment of the present invention, the movement end point position information includes first movement end point position information and second movement end point position information, the first movement end point position information is used to indicate the position information of the end point of the sunroof moving along the first direction, and the second movement end point position information is used to indicate the position information of the end point of the sunroof moving along the second direction, the second direction being a direction opposite to the first direction.
[0047] For example, the first direction is the direction of opening the sunroof, the first movement end point position information is the initial position of the sunroof motion trajectory, the second direction is the direction of closing the sunroof, and the second movement end point position information is the end position of the sunroof motion trajectory. Of course, the first direction can also be the direction of closing the sunroof, the first movement end point position information is the end position of the sunroof motion trajectory, the second direction is the direction of opening the sunroof, and the second movement end point position information is the initial position of the sunroof motion trajectory.
[0048] In one example, due to different skylight structures, the movement end point position information is also different. The movement end point position information can be a calibrated initial value or a value updated based on a self-learning function.
[0049] It should be noted that in the movement trajectory of the car sunroof, there are some positions that will trigger the motor stall. When the sunroof moves to this position, the sunroof stops moving due to the triggering of the motor stall. The position indicated by the movement end position information may be before the position that triggers the motor stall, that is, the motor stall is not triggered when moving to the position indicated by the movement end position information.
[0050] Step 103, when the preset position of the sunroof moves to the position indicated by the movement end position information, the sunroof motor is controlled to stop working.
[0051] During the movement of the car sunroof, it can be detected whether the car sunroof moves to the position indicated by the movement end position information. When it is detected that the car sunroof moves to the position indicated by the movement end position information, the car sunroof motor can be controlled to stop working, completing the opening or closing operation of the car sunroof.
[0052] For example, in the scenario of opening the car sunroof, the car sunroof is controlled to move in the direction of opening the sunroof. When it is detected that the car sunroof has moved to the position indicated by the end position information of the movement, the car sunroof motor is controlled to stop working, and the car sunroof is in or close to being in a fully open state.
[0053] For another example, in the scenario of closing the car sunroof, the car sunroof is controlled to move in the direction of closing the sunroof. When it is detected that the car sunroof has moved to the position indicated by the end position information of the movement, the car sunroof motor is controlled to stop working, and the car sunroof is in or close to being in a completely closed state.
[0054] In a specific implementation, the real-time motion position information of the automobile sunroof may be detected, and then it may be determined whether the position indicated by the real-time motion position information matches the position indicated by the motion endpoint position information.
[0055] In one example, the position matching may be that the position indicated by the real-time motion position information is the same as the position indicated by the motion endpoint position information, or the position deviation is within a deviation range, such as 0 mm to 2 mm.
[0056] When the position indicated by the real-time motion position information does not match the position indicated by the motion endpoint position information, the vehicle sunroof continues to be controlled to move; when the position indicated by the real-time motion position information matches the position indicated by the motion endpoint position information, the vehicle sunroof is controlled to stop moving.
[0057] In one example, the real-time movement position of a car sunroof can be represented by the number of revolutions of the motor rotor, that is, the movement position of the car sunroof can be known by calculating the number of revolutions of the motor rotor. Of course, the stored movement end position information can also be represented by the number of revolutions of the electronic rotor, and whether the position matches can be determined by comparing the number of revolutions of the electronic rotor.
[0058] In one embodiment of the present invention, before controlling the automobile sunroof motor to stop working when the preset part of the sunroof moves to the position indicated by the movement end position information, it also includes: judging whether the movement end position information is in an available state; if the movement end position information is in an available state, controlling the automobile sunroof motor to stop working when the preset part of the sunroof moves to the position indicated by the movement end position information.
[0059] As the car sunroof motor is used, the hardware structure will change, which may cause the end position of the movement to change. The end position can be self-learned, thereby reducing the control error.
[0060] In a specific implementation, a status information can be set for the stored motion end position information. After the motor controller is powered on, it can be determined whether the currently stored motion end position information is in an available state. When the motion end position information is in an available state, the stored motion end position information can be written to the motor. Then, when the car sunroof moves to the position indicated by the motion end position information, the car sunroof motor can be controlled to stop working.
[0061] In one embodiment of the present invention, the method further includes: when the movement endpoint position information is in an unavailable state, detecting whether the automobile sunroof motor is blocked, and controlling the automobile sunroof motor to stop working when a blockage occurs.
[0062] When the motion end position information is unavailable, the motion end position information is not used to control the movement of the car sunroof motor, that is, the currently stored motion end position information is not written to the motor. Since there is no control of the motion end position information, the car sunroof motor can move to the position that triggers the motor to stall and stop moving.
[0063] In one embodiment of the present invention, when the motion end position information is in an unavailable state, it also includes: determining first position information in which the motor is blocked during the movement of the sunroof along a first direction; determining second position information in which the motor is blocked during the movement of the sunroof along a second direction; updating the motion end position information based on the first position information and the second position information, and setting the updated motion end position information to an available state.
[0064] When the end position information of the movement is unavailable, the car sunroof motor will stop working when a motor jam occurs. When a motor jam is detected in the car sunroof motor, the sunroof is characterized to have moved to the end position, and the first position information of the motor jam occurring during the movement of the sunroof in the first direction is determined, and the second position information of the motor jam occurring during the movement of the sunroof in the second direction can be determined.
[0065] It should be noted that when the end point position information of the movement is unavailable, the first position information and the second position information do not need to be determined by specifically controlling the sunroof to open and close. Instead, the position information is obtained during the user's normal control of the sunroof to open and close, thereby avoiding affecting the normal operation of the sunroof.
[0066] Since the stored motion end point position information may contain errors, after obtaining the first position information and the second position information, these position information are the most recently collected position information and have a higher accuracy. The first position information and the second position information can be used to update the stored motion end point position, that is, the first position information is used to replace the first motion end point position information, and the second position information is used to replace the second motion end point position information, thereby reducing the use error of the motor and achieving the purpose of self-learning.
[0067] After updating the motion end position information, that is, the motion end position is the latest position information, which is adapted to the current situation of the automobile sunroof motor, motor and other hardware mechanisms, the stored motion end position can be reset to an available state and can be used the next time the automobile sunroof motor moves, that is, the next time it moves to the position indicated by the motion end position, it stops moving.
[0068] In one embodiment of the present invention, before updating the movement endpoint position information according to the first position information and the second position information, it also includes: determining a current sunroof displacement according to the first position information and the second position information; and updating the movement endpoint position information according to the first position information and the second position information when the current sunroof displacement is greater than or equal to the target sunroof displacement.
[0069] In a specific implementation, the current sunroof displacement, that is, the distance from the first position information to the second position information, can be determined according to the first position information and the second position information.
[0070] Since the previously stored movement endpoint position information may include two position information, the target sunroof displacement, ie, the previous sunroof displacement, may be calculated based on the two positions in the movement endpoint position information.
[0071] After obtaining the current sunroof displacement and the target sunroof displacement, the current sunroof displacement can be compared with the target sunroof displacement. When the real-time sunroof displacement is greater than or equal to the target sunroof displacement, it can be determined that the current movement of the car sunroof is normal, and the first position information and the second position information can be used to update the movement endpoint position information.
[0072] In one example, a displacement threshold value, such as 1 cm, can be set. When the current sunroof displacement is greater than the target sunroof displacement, and the difference is less than or equal to the displacement threshold value, it can be determined that the current movement of the car sunroof is normal, and the first position information and the second position information can be used to update the movement end position information. When the current sunroof displacement is greater than the target sunroof displacement, and the difference is greater than the displacement threshold value, it can be determined that the car sunroof motor is faulty, and then a fault alarm of the car sunroof motor can be issued, and these information are not used to update the movement end position information.
[0073] In an embodiment of the present invention, the method further includes: triggering an anti-pinch function for the automobile sunroof motor when the current sunroof displacement is less than the target sunroof displacement.
[0074] When the current sunroof displacement is less than the target sunroof displacement, it may be due to other objects blocking the movement of the sunroof. In this case, the anti-pinch function for the sunroof motor can be turned on to ensure user safety. After the anti-pinch function is turned on, the sunroof can move in the opposite direction of the current movement direction for a preset distance, such as 2 cm, and then stop moving.
[0075] When the trigger event is detected again, the automobile sunroof motor may move again from the stopped position, and stop moving when it moves to the position where the trigger motor is blocked.
[0076] In one embodiment of the present invention, the determination of whether the motion endpoint position information is in an available state includes: determining the number of times the vehicle sunroof motor is closed after the motion endpoint position information is last updated; if the number of closing times is greater than a preset number of closing times, determining that the motion endpoint position information is in an unavailable state; if the number of closing times is less than or equal to a preset number of closing times, determining that the motion endpoint position information is in an available state.
[0077] In practical applications, a preset closing number can be set, such as between 20 and 30 times. Of course, it can also be set to other times, and the closing number of the car sunroof motor after the last update of the movement end position information can be calculated.
[0078] After obtaining the number of closing times, it can be determined whether the number of closing times is greater than the preset number of closing times. When the number of closing times is greater than the preset number of closing times, it is determined that the motion end point position information is in an unavailable state, and the motion end point position information needs to be updated, and the motion end point position information is set to an available state after updating the motion end point position information. When the number of closing times is less than or equal to the preset number of closing times, it is determined that the motion end point position information is in an available state, and the motion end point position information can be used to control the movement of the car sunroof motor.
[0079] In an embodiment of the present invention, the movement end position information is updated according to the number of closing times, and the motor needs to be triggered to stall to update the information only when the movement end position information is updated. Compared with the prior art in which stalling needs to be triggered every time, the service life of the motor can be improved.
[0080] In one example, when a power outage occurs during the movement of a car sunroof motor, such as when the entire vehicle loses power, the stored movement end position information may be lost. In this case, when a power outage occurs during the movement of the car sunroof motor, the stored movement end position information may be set to an unavailable state.
[0081] In an embodiment of the present invention, by responding to a trigger event, the vehicle sunroof motor is controlled to drive the sunroof to move, and the movement end position information of the sunroof is obtained. When a preset part of the sunroof moves to the position indicated by the movement end position information, the vehicle sunroof motor is controlled to stop working, thereby realizing the determination of whether the vehicle sunroof has reached the end point of the sunroof movement trajectory based on position comparison, reducing the reliance on the trigger motor stalling, and further reducing the impact on the service life of the motor. No additional hardware is required, and the existing structure can be maintained at a low cost.
[0082] Reference Figure 2 , shows a flowchart of another method for controlling a sunroof motor of an automobile provided by an embodiment of the present invention, which may specifically include the following steps:
[0083] Step 201, in response to a triggering event, controlling the sunroof motor of the vehicle to operate to drive the sunroof to move.
[0084] Step 202, obtaining the movement end position information of the sunroof.
[0085] Step 203: determine whether the movement end point position information is in an available state.
[0086] Step 204 , when the movement end position information is in an available state, when the preset part of the sunroof moves to the position indicated by the movement end position information, control the sunroof motor to stop working.
[0087] Step 205, when the movement end position information is in an unavailable state, detecting whether the automobile sunroof motor is blocked, and controlling the automobile sunroof motor to stop working when a blockage occurs.
[0088] Step 206, when the motion end position information is in an unavailable state, determine the first position information of the motor stalling during the movement of the sunroof along the first direction, determine the second position information of the motor stalling during the movement of the sunroof along the second direction, update the motion end position information based on the first position information and the second position information, and set the updated motion end position information to an available state.
[0089] The following combination Figure 3 The present invention is exemplified as follows:
[0090] The motor for controlling the sunroof of the car is powered on, and then it is determined whether the currently stored sunroof motor position state is valid, that is, whether the stored motion end position information is in a valid state.
[0091] In the event that the currently stored sunroof motor position status fails, execute:
[0092] a1. Control the motor to move in the direction of the initial position (i.e., the direction in which the sunroof is opened), trigger the stall, and then record the initial position information (i.e., the first position information);
[0093] a2. Control the motor to move in the direction of the end position (i.e., the direction of closing the sunroof), trigger the stall, and then record the end position information (i.e., the second position information);
[0094] a3. Determine whether the difference between the motor end position and the initial position (i.e., the current sunroof displacement) is less than the sunroof displacement calibration value (i.e., the target sunroof displacement corresponding to the currently stored motion end position information).
[0095] When it is less than, the sunroof motor anti-pinch function is triggered. When it is greater than or equal to, the initial position and end position of the sunroof motor are stored (i.e., the motion end position information is updated), and the state is changed from invalid to valid.
[0096] When the currently stored sunroof motor position status is valid, execute:
[0097] b1. Determine whether the sunroof motor is closed for more than N times, for example, N is 20 times;
[0098] b2. When the number of times the sunroof motor is closed is less than or equal to N times, the initial position and terminal position storage information of the sunroof motor (i.e., the position information in the currently stored motion terminal position information) is retrieved, and then the sunroof motor operation can be controlled by using this information;
[0099] b3. When the sunroof motor is closed more than N times, execute the above steps a1 to a3 to update the stored movement end position information.
[0100] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0101] An embodiment of the present invention further provides a vehicle, comprising a sunroof, a sunroof motor, a transmission structure between the sunroof motor and the sunroof, and a controller, wherein the controller is used to implement the above-mentioned control method of the automobile sunroof motor, the method comprising:
[0102] In response to a triggering event, controlling the sunroof motor of the vehicle to drive the sunroof to move;
[0103] Obtaining the movement end position information of the skylight;
[0104] When the preset position of the sunroof moves to the position indicated by the movement end position information, the automobile sunroof motor is controlled to stop working.
[0105] Optionally, the movement end point position information includes first movement end point position information and second movement end point position information;
[0106] The first movement terminal position information is used to indicate the position information of the terminal point of the sunroof moving along a first direction, and the second movement terminal position information is used to indicate the position information of the terminal point of the sunroof moving along a second direction, and the second direction is a direction opposite to the first direction.
[0107] Optionally, when the preset position of the sunroof moves to the position indicated by the movement end position information, before controlling the sunroof motor to stop working, the method further includes:
[0108] Determine whether the motion end position information is in an available state; if the motion end position information is in an available state, control the automobile sunroof motor to stop working when the preset position of the sunroof moves to the position indicated by the motion end position information.
[0109] Optionally, it also includes:
[0110] In the case that the movement end point position information is in an unavailable state, it is detected whether the automobile sunroof motor is blocked, and when blocked, the automobile sunroof motor is controlled to stop working.
[0111] Optionally, when the movement endpoint position information is in an unavailable state, the method further includes:
[0112] Determine first position information of a motor stall when the sunroof moves in a first direction;
[0113] Determine second position information of a motor stall when the sunroof moves in a second direction;
[0114] The movement end point position information is updated according to the first position information and the second position information, and the updated movement end point position information is set to an available state.
[0115] Optionally, before updating the movement end point position information according to the first position information and the second position information, the method further includes:
[0116] Determine a current sunroof displacement according to the first position information and the second position information; and update the movement endpoint position information according to the first position information and the second position information when the current sunroof displacement is greater than or equal to the target sunroof displacement.
[0117] Optionally, it also includes:
[0118] When the current sunroof displacement is less than the target sunroof displacement, an anti-pinch function for the vehicle sunroof motor is triggered.
[0119] Optionally, the determining whether the movement endpoint position information is in an available state includes:
[0120] Determining the number of times the vehicle sunroof motor has been closed since the last update of the motion endpoint position information;
[0121] When the closing number is greater than the preset closing number, determining that the movement end point position information is in an unavailable state;
[0122] When the closing number is less than or equal to the preset closing number, it is determined that the movement endpoint position information is in an available state.
[0123] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the control method of the automobile sunroof motor as described above is implemented.
[0124] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the control method of the automobile sunroof motor as described above is implemented.
[0125] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0126] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0127] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0128] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0129] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0130] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0132] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0133] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.
[0134] The control method, vehicle, electronic device and medium of a car sunroof motor provided by the invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the invention. The description of the above embodiments is only used to help understand the method of the invention and its core idea. At the same time, for those skilled in the art, according to the idea of the invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the invention.
Claims
1. A control method for a car sunroof motor, characterized in that: The method comprises: In response to a triggering event, controlling the sunroof motor of the vehicle to drive the sunroof to move; Obtaining the movement end position information of the skylight; When the preset position of the sunroof moves to the position indicated by the movement end position information, the automobile sunroof motor is controlled to stop working.
2. The method according to claim 1, characterized in that The movement end point position information includes first movement end point position information and second movement end point position information; The first movement terminal position information is used to indicate the position information of the terminal point of the sunroof moving along a first direction, and the second movement terminal position information is used to indicate the position information of the terminal point of the sunroof moving along a second direction, and the second direction is a direction opposite to the first direction.
3. The method according to claim 1, characterized in that When the preset position of the sunroof moves to the position indicated by the movement end position information, before controlling the sunroof motor to stop working, the method further includes: Determine whether the motion end position information is in an available state; if the motion end position information is in an available state, control the automobile sunroof motor to stop working when the preset position of the sunroof moves to the position indicated by the motion end position information.
4. The method according to claim 3, characterized in that Also includes: In the case that the movement end point position information is in an unavailable state, it is detected whether the automobile sunroof motor is blocked, and when blocked, the automobile sunroof motor is controlled to stop working.
5. The method according to claim 4, characterized in that In the case where the movement end point position information is in an unavailable state, the method further includes: Determine first position information of a motor stall when the sunroof moves in a first direction; Determine second position information of a motor stall when the sunroof moves in a second direction; The movement end point position information is updated according to the first position information and the second position information, and the updated movement end point position information is set to an available state.
6. The method according to claim 5, characterized in that Before updating the movement end point position information according to the first position information and the second position information, the method further includes: Determine a current sunroof displacement according to the first position information and the second position information; and update the movement endpoint position information according to the first position information and the second position information when the current sunroof displacement is greater than or equal to the target sunroof displacement.
7. The method according to claim 6, characterized in that Also includes: When the current sunroof displacement is less than the target sunroof displacement, an anti-pinch function for the vehicle sunroof motor is triggered.
8. The method according to any one of claims 3 to 7, characterized in that: The determining whether the movement endpoint position information is in an available state includes: Determining the number of times the vehicle sunroof motor has been closed since the last update of the motion endpoint position information; When the closing number is greater than the preset closing number, determining that the movement end point position information is in an unavailable state; When the closing number is less than or equal to the preset closing number, it is determined that the movement endpoint position information is in an available state.
9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the control method of the automobile sunroof motor according to any one of claims 1 to 8 is implemented.
10. A vehicle, characterized in that: The invention comprises a sunroof, a sunroof motor, a transmission structure between the sunroof motor and the sunroof, and a controller, wherein the controller is used to implement the control method of the automobile sunroof motor according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the automobile sunroof motor according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Reference position updating method and device for vehicle body closing system
CN111677401A
Method for self-adaptively adjusting positions of skylight and sunshade curtain of automobile
CN114801670A
Intelligent anti-pinch and anti-vibration method for automobile electric sunshade curtain
CN115416455A
Safety cut=off for servo driven vehicle sliding roof panel - has sensor beam positioned on edge of frame for detecting obstructions
DE4028584A1
Shutter apparatus
JP2020084644A