A control method for an automotive sunroof motor, a vehicle, electronic equipment, and a medium.

By acquiring and updating the sunroof's final position information, the sunroof motor can be controlled to stop working at the final position, thus solving the motor stall problem, extending motor life, and reducing costs.

CN119434786BActive Publication Date: 2025-10-31BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310950173.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-10-31
Estimated Expiration
2043-07-28

AI Technical Summary

Technical Problem

In existing technologies, automotive sunroof motors frequently trigger stall when reaching the initial or final position, affecting motor lifespan, and adding microswitches increases cost and structural complexity.

Method used

By acquiring the sunroof's endpoint position information, the system controls the sunroof to stop the motor when it reaches the preset endpoint position, reducing reliance on motor stall. Furthermore, the system updates the endpoint position information through self-learning to adapt to hardware changes and avoids the need for additional hardware.

Benefits of technology

It reduces reliance on motor stall, extends motor lifespan, maintains existing structure and low cost, and achieves accurate sunroof position control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119434786B_ABST
    Figure CN119434786B_ABST
Patent Text Reader

Abstract

This invention provides a control method, vehicle, electronic device, and medium for a car sunroof motor. The method includes: responding to a trigger event, controlling the car sunroof motor to operate to drive the sunroof to move; acquiring the endpoint position information of the sunroof's movement; and controlling the car sunroof motor to stop operating when a preset part of the sunroof moves to the position indicated by the endpoint position information. This invention achieves the ability to determine whether the car sunroof has reached the endpoint of its movement trajectory based on position comparison, reducing reliance on trigger motor stalling, thereby reducing the impact on motor lifespan. Furthermore, it eliminates the need for additional hardware, maintaining the existing structure and keeping costs low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive technology, and in particular to a control method for an automotive sunroof motor, a vehicle, electronic equipment, and a medium. Background Technology

[0002] For the comfort of car use, cars are usually equipped with sunroofs. The sunroof can be opened and closed by controlling the movement of the sunroof motor through an electric motor.

[0003] In one approach, the principle of motor stall can be utilized. The motor stall can be triggered when the sunroof moves to the initial or final position of its trajectory. When the stall is detected, it can be determined that the sunroof has reached the initial or final position, and the sunroof motor can be controlled to stop working. However, frequent stalling of the motor will affect its service life.

[0004] In another approach, microswitches can be installed at the initial and final positions of the sunroof. When the sunroof moves to the position of the microswitch, it is triggered, thus indicating whether the sunroof has reached the initial or final position and controlling the sunroof motor to stop working. However, this requires at least two additional microswitches, increasing costs and complicating the structure. Summary of the Invention

[0005] In view of the above problems, a control method, vehicle, electronic equipment, and medium for an automotive sunroof motor are proposed to overcome or at least partially solve the above problems, including:

[0006] A method for controlling a car sunroof motor, the method comprising:

[0007] In response to a triggering event, control the sunroof motor to operate and drive the sunroof movement;

[0008] Obtain the position information of the sunroof's movement endpoint;

[0009] When the preset part of the sunroof moves to the position indicated by the movement endpoint position information, the sunroof motor is controlled to stop working.

[0010] Optionally, the motion endpoint location information includes first motion endpoint location information and second motion endpoint location information;

[0011] The first motion endpoint position information is used to indicate the position information of the endpoint of the sunroof's movement along the first direction, and the second motion endpoint position information is used to indicate the position information of the endpoint of the sunroof's movement along the second direction, where the second direction is the direction opposite to the first direction.

[0012] Optionally, before controlling the sunroof motor to stop working when the preset part of the sunroof moves to the position indicated by the movement endpoint position information, the method further includes:

[0013] Determine whether the motion endpoint position information is available; if the motion endpoint position information is available, when the preset part of the sunroof moves to the position indicated by the motion endpoint position information, control the sunroof motor to stop working.

[0014] Optionally, it also includes:

[0015] If the endpoint position information is unavailable, the system detects whether the sunroof motor is stalled, and if stalling occurs, controls the sunroof motor to stop working.

[0016] Optionally, if the endpoint location information is unavailable, the method further includes:

[0017] Determine the first position information where the motor stalls during the movement of the sunroof in the first direction;

[0018] Determine the second position information where the motor stalls during the movement of the sunroof in the second direction;

[0019] Based on the first location information and the second location information, update the endpoint location information and set the updated endpoint location information to an available state.

[0020] Optionally, before updating the endpoint location information based on the first location information and the second location information, the method further includes:

[0021] Based on the first location information and the second location information, determine the current sunroof displacement; if the current sunroof displacement is greater than or equal to the target sunroof displacement, perform the step of updating the motion endpoint location information based on the first location information and the second location information.

[0022] Optionally, it also includes:

[0023] If the current sunroof displacement is less than the target sunroof displacement, the anti-pinch function for the car sunroof motor is triggered.

[0024] Optionally, determining whether the endpoint location information is available includes:

[0025] Determine the number of times the car sunroof motor has been closed since the most recent update of the motion endpoint position information;

[0026] If the number of times the device is closed exceeds a preset number of times it is closed, the endpoint location information is determined to be unavailable.

[0027] If the number of times the motion is closed is less than or equal to the preset number of times the motion is closed, the motion endpoint location information is determined to be available.

[0028] An electronic device includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the control method for an automotive sunroof motor as described above.

[0029] A vehicle includes a sunroof, a sunroof motor, a transmission structure between the sunroof motor and the sunroof, and a controller for implementing the control method for the automotive sunroof motor as described above.

[0030] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the control method for an automotive sunroof motor as described above.

[0031] The embodiments of the present invention have the following advantages:

[0032] In this embodiment of the invention, by responding to a trigger event, the sunroof motor is controlled to work to drive the sunroof to move, and the position information of the sunroof's movement endpoint is obtained. When the preset part of the sunroof moves to the position indicated by the position information of the movement endpoint, the sunroof motor is controlled to stop working. This realizes the determination of whether the sunroof has reached the end of the sunroof's movement trajectory based on position comparison, reduces the dependence on the trigger motor stalling, thereby reducing the impact on the motor's service life, and does not require the addition of additional hardware, thus maintaining the existing structure and keeping costs low. Attached Figure Description

[0033] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is a flowchart illustrating the steps of a control method for an automotive sunroof motor according to an embodiment of the present invention;

[0035] Figure 2 This is a flowchart of another control method for an automotive sunroof motor provided in an embodiment of the present invention;

[0036] Figure 3 This is a schematic diagram of a control example of an automotive sunroof motor provided in an embodiment of the present invention. Detailed Implementation

[0037] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0038] Reference Figure 1 The diagram illustrates a flowchart of a control method for an automotive sunroof motor according to an embodiment of the present invention, which may specifically include the following steps:

[0039] Step 101: In response to the trigger event, control the sunroof motor to operate to drive the sunroof movement.

[0040] Among them, the car sunroof is a car sunroof motor controlled by an electric motor, that is, the car sunroof motor can be controlled by an electric motor to automatically open and close. For example, the car sunroof can be an outward sliding type, an inward concealed type, an inward concealed and outward tilting type, a panoramic type, a curtain type, and of course, the car sunroof can also be other types of sunroof.

[0041] When a user needs to open or close the sunroof, the user can trigger the event, such as by pressing the physical button used to control the opening or closing of the sunroof, or by using the virtual button on the in-vehicle display screen or mobile terminal interface, or by using voice interaction.

[0042] After detecting a user's trigger event, the controller can control the sunroof motor to start working, thereby driving the sunroof to move, including controlling the sunroof to move in the direction of opening or closing.

[0043] It should be noted that the movement of a car sunroof can be controlled by a motor to open or close the sunroof, rather than by the movement of the motor itself. The motor can control only the rotation of the rotor, and the rotation of the rotor will drive the sunroof to move along the sunroof's trajectory.

[0044] Step 102: Obtain the position information of the sunroof's movement endpoint.

[0045] In practical applications, the sunroof's endpoint position information can be stored. This endpoint position information is used to indicate the endpoint position of the sunroof's movement, such as the initial position and the end position of the sunroof's movement trajectory.

[0046] In one embodiment of the present invention, the motion endpoint position information includes first motion endpoint position information and second motion endpoint position information. The first motion endpoint position information is used to indicate the position information of the endpoint of the sunroof moving along a first direction, and the second motion endpoint position information is used to indicate the position information of the endpoint of the sunroof moving along a second direction, wherein the second direction is the direction opposite to the first direction.

[0047] For example, the first direction is the direction in which the sunroof opens, the first motion endpoint position information is the initial position of the sunroof's motion trajectory, the second direction is the direction in which the sunroof closes, and the second motion endpoint position information is the end position of the sunroof's motion trajectory. Alternatively, the first direction can be the direction in which the sunroof closes, the first motion endpoint position information is the end position of the sunroof's motion trajectory, the second direction can be the direction in which the sunroof opens, and the second motion endpoint position information is the initial position of the sunroof's motion trajectory.

[0048] In one example, due to the different sunroof structures, the endpoint position information is also different. The endpoint position information can be the initial value calibrated or the value updated based on the self-learning function.

[0049] It should be noted that there are certain positions along the movement trajectory of the car sunroof that will trigger motor stall. When the sunroof moves to these positions, it will stop moving due to the motor stall. The position indicated by the end position information can be a position before the position that triggers motor stall, meaning that the motor stall is not triggered when the sunroof moves to the position indicated by the end position information.

[0050] Step 103: When the preset part of the sunroof moves to the position indicated by the movement endpoint position information, control the sunroof motor to stop working.

[0051] During the movement of the car sunroof, it can detect whether the sunroof has moved to the position indicated by the end position information. When the sunroof is detected to have moved to the position indicated by the end position information, the sunroof motor can be controlled to stop working, thus completing the opening or closing of the sunroof.

[0052] For example, in the scenario of opening a car sunroof, the sunroof is controlled to move in the direction of opening. When the sunroof is detected to have moved to the position indicated by the end position information, the sunroof motor is controlled to stop working, and the sunroof is in or close to being fully open.

[0053] For example, in the scenario of closing a car sunroof, the sunroof is controlled to move in the direction of closing. When the sunroof is detected to have moved to the position indicated by the end position information, the sunroof motor is controlled to stop working, and the sunroof is in or close to being fully closed.

[0054] In practice, the real-time movement position information of the car sunroof can be detected, and then it can be determined whether the position indicated by the real-time movement position information matches the position indicated by the movement endpoint position information.

[0055] In one example, a matching position can be the same as the position indicated by the real-time motion position information and the position indicated by the motion endpoint position information, or the position deviation can be within a range, such as 0 mm to 2 mm.

[0056] If the position indicated by the real-time motion position information does not match the position indicated by the motion endpoint position information, the sunroof will continue to move. If the position indicated by the real-time motion position information matches the position indicated by the motion endpoint position information, the sunroof will stop moving.

[0057] In one example, the real-time movement position of the 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 determined by calculating the number of revolutions of the motor rotor. Of course, the stored movement endpoint position information can also be represented by the number of revolutions of the electronic rotor. Whether the positions match can be determined by comparing the number of revolutions of the electronic rotor.

[0058] In one embodiment of the present invention, before controlling the sunroof motor to stop working when the preset part of the sunroof moves to the position indicated by the motion endpoint position information, the method further includes: determining whether the motion endpoint position information is in an available state; and if the motion endpoint position information is in an available state, controlling the sunroof motor to stop working when the preset part of the sunroof moves to the position indicated by the motion endpoint position information.

[0059] With the use of automotive sunroof motors, the hardware structure changes, which may cause the endpoint of the movement to change. Therefore, the endpoint can be self-learned, thereby reducing control errors.

[0060] In a specific implementation, a status information can be set for the stored motion endpoint position information. After the motor controller is powered on, it can be determined whether the currently stored motion endpoint position information is in an available state. If the motion endpoint position information is in an available state, the stored motion endpoint position information can be written to the motor. Then, when the car sunroof moves to the position indicated by the motion endpoint 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 motion endpoint position information is unavailable, detecting whether the car sunroof motor has stalled, and controlling the car sunroof motor to stop working when stalling occurs.

[0062] If the endpoint position information is unavailable, the sunroof motor will not be controlled by the endpoint position information. That is, the currently stored endpoint position information will not be written to the motor. Since there is no endpoint position information to control the motor, the sunroof motor can move to the position that triggers motor stall and then stop.

[0063] In one embodiment of the present invention, when the motion endpoint position information is unavailable, the method further includes: determining first position information where the motor stalls during the movement of the sunroof along a first direction; determining second position information where the motor stalls during the movement of the sunroof along a second direction; updating the motion endpoint position information according to the first position information and the second position information, and setting the updated motion endpoint position information to an available state.

[0064] When the end position information is unavailable, the sunroof motor will stop working when a stall occurs. Therefore, when a stall occurs in the sunroof motor, it indicates that the sunroof has moved to the end position. The first position information of the stall during the movement of the sunroof in the first direction can be determined, and the second position information of the stall during the movement of the sunroof in the second direction can also be determined.

[0065] It should be noted that when the endpoint location information is unavailable, the first and second location information do not need to be determined by specifically controlling the sunroof to open and close once. Instead, the location information is obtained during the user's normal control of the sunroof opening and closing, thus avoiding any impact on the normal operation of the sunroof.

[0066] Since the stored motion endpoint position information may contain errors, after obtaining the first position information and the second position information, which are the most recently collected position information and have high accuracy, the stored motion endpoint position can be updated using the first position information and the second position information. That is, the first position information is used to replace the first motion endpoint position information and the second position information is used to replace the second motion endpoint position information, thereby reducing the usage error of the motor and achieving the purpose of self-learning.

[0067] After updating the motion endpoint position information, that is, the motion endpoint position is the latest position information, which is adapted to the current situation of the car sunroof motor, motor and other hardware mechanisms, the stored motion endpoint position can be reset to an available state, and can be used when the car sunroof motor moves next time, that is, the movement stops when it reaches the position indicated by the motion endpoint position next time.

[0068] In one embodiment of the present invention, before updating the motion endpoint position information according to the first position information and the second position information, the method further includes: determining the current sunroof displacement according to the first position information and the second position information; and performing the step of updating the motion 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 practice, the current sunroof displacement, i.e., the distance from the first position information to the second position information, can be determined based on the first position information and the second position information.

[0070] Since the previously stored motion endpoint location information can include two location information, the target sunroof displacement, i.e. the previously stored sunroof displacement, can be calculated based on the two locations in the motion endpoint location 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. If 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. Then, 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, such as 1 cm, can be set. If the current sunroof displacement is greater than the target sunroof displacement, and the difference is less than or equal to the displacement threshold, the sunroof's current movement can be determined to be normal, and the first and second position information can be used to update the movement endpoint position information. If the current sunroof displacement is greater than the target sunroof displacement, and the difference is greater than the displacement threshold, the sunroof motor can be determined to be faulty, and a sunroof motor fault alarm can be issued. In this case, the movement endpoint position information is not updated using this information.

[0073] In one embodiment of the present invention, the method further includes: triggering an anti-pinch function for the car sunroof motor when the current sunroof displacement is less than the target sunroof displacement.

[0074] If the current sunroof displacement is less than the target sunroof displacement, it may be due to other objects obstructing the sunroof's movement. In this case, the anti-pinch function for the sunroof motor can be activated to ensure user safety. After the anti-pinch function is activated, the sunroof can move a preset distance, such as 2cm, in the opposite direction of the current movement, and then stop moving.

[0075] When the trigger event is detected again, the sunroof motor can move again from the stopped position, and stop moving when it reaches the position where the trigger motor stalls.

[0076] In one embodiment of the present invention, determining whether the motion endpoint location information is in an available state includes: determining the number of times the car sunroof motor has been closed since the most recent update of the motion endpoint location information; if the number of closures is greater than a preset number of closures, determining that the motion endpoint location information is in an unavailable state; if the number of closures is less than or equal to the preset number of closures, determining that the motion endpoint location information is in an available state.

[0077] In practical applications, a preset number of closing times can be set, such as between 20 and 30 times. Of course, other numbers can also be set. The number of times the car sunroof motor closes after the last update of the motion endpoint position information can also be calculated.

[0078] After obtaining the number of times the sunroof has been closed, it can be determined whether the number of times it has been closed is greater than the preset number of times it has been closed. If the number of times it has been closed is greater than the preset number of times it has been closed, it is determined that the motion endpoint position information is in an unavailable state. In this case, the motion endpoint position information needs to be updated and then set to an available state. If the number of times it has been closed is less than or equal to the preset number of times it has been closed, it is determined that the motion endpoint position information is in an available state. Then, the motion endpoint position information can be used to control the movement of the car sunroof motor.

[0079] In this embodiment of the invention, by updating the motion endpoint position information based on the number of times the motion endpoint position information is closed, the motor stall is only triggered when updating the motion endpoint position information. Compared with the prior art, which triggers stall every time, this can improve the service life of the motor.

[0080] In one example, if a power outage occurs during the operation of the sunroof motor, such as a power outage of the entire vehicle, the stored motion endpoint position information may be lost. Therefore, when a power outage occurs during the operation of the sunroof motor, the stored motion endpoint position information can be set to an unavailable state.

[0081] In this embodiment of the invention, by responding to a trigger event, the sunroof motor is controlled to work to drive the sunroof to move, and the position information of the sunroof's movement endpoint is obtained. When the preset part of the sunroof moves to the position indicated by the position information of the movement endpoint, the sunroof motor is controlled to stop working. This realizes the determination of whether the sunroof has reached the end of the sunroof's movement trajectory based on position comparison, reduces the dependence on the trigger motor stalling, thereby reducing the impact on the motor's service life, and does not require the addition of additional hardware, thus maintaining the existing structure and keeping costs low.

[0082] Reference Figure 2 The diagram illustrates a flowchart of another control method for an automotive sunroof motor according to an embodiment of the present invention, which may specifically include the following steps:

[0083] Step 201: In response to the triggering event, control the sunroof motor to operate in order to drive the sunroof movement.

[0084] Step 202: Obtain the position information of the sunroof's movement endpoint.

[0085] Step 203: Determine whether the motion endpoint location information is available.

[0086] Step 204: When the motion endpoint position information is available, when the preset part of the sunroof moves to the position indicated by the motion endpoint position information, control the sunroof motor to stop working.

[0087] Step 205: If the endpoint position information is unavailable, detect whether the sunroof motor is stalled, and if stalling occurs, control the sunroof motor to stop working.

[0088] Step 206: If the motion endpoint position information is unavailable, determine the first position information where the motor stalls during the movement of the sunroof along the first direction, determine the second position information where the motor stalls during the movement of the sunroof along the second direction, update the motion endpoint position information according to the first position information and the second position information, and set the updated motion endpoint position information to an available state.

[0089] The following combination Figure 3 The present invention will be described by way of example:

[0090] Power on the motor used to control the sunroof, and then determine whether the currently stored sunroof motor position status is valid, that is, whether the stored motion endpoint position information is in a valid state.

[0091] If the currently stored sunroof motor position status becomes invalid, execute:

[0092] a1. Control the motor to move in the direction of the initial position (i.e., the direction of the sunroof opening), trigger the stall, and then record the initial position information (i.e., the first position information);

[0093] a2. Control the motor to move towards the end position (i.e., the sunroof closing direction), 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 the position is less than the specified value, the sunroof motor anti-pinch function is triggered. When the position is greater than or equal to the specified value, the initial and final positions of the sunroof motor are stored (i.e., the motion endpoint position information is updated), and the status is changed from invalid to valid.

[0096] If the currently stored sunroof motor position status is valid, execute:

[0097] b1. Determine if the number of times the sunroof motor has closed is greater than N, such as N being 20 times;

[0098] b2. When the number of times the sunroof motor closes is less than or equal to N, retrieve the initial and final position information of the sunroof motor (i.e., the position information in the currently stored motion endpoint position information), and then use this information to control the operation of the sunroof motor.

[0099] b3. When the sunroof motor closes more than N times, execute steps a1 to a3 above to update the stored motion endpoint position information.

[0100] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0101] An embodiment of the present invention also provides a vehicle, including a sunroof, a sunroof motor, a transmission structure between the sunroof motor and the sunroof, and a controller, the controller being used to implement the control method for the automotive sunroof motor as described above, the method including:

[0102] In response to a triggering event, control the sunroof motor to operate and drive the sunroof movement;

[0103] Obtain the position information of the sunroof's movement endpoint;

[0104] When the preset part of the sunroof moves to the position indicated by the movement endpoint position information, the sunroof motor is controlled to stop working.

[0105] Optionally, the motion endpoint location information includes first motion endpoint location information and second motion endpoint location information;

[0106] The first motion endpoint position information is used to indicate the position information of the endpoint of the sunroof's movement along the first direction, and the second motion endpoint position information is used to indicate the position information of the endpoint of the sunroof's movement along the second direction, where the second direction is the direction opposite to the first direction.

[0107] Optionally, before controlling the sunroof motor to stop working when the preset part of the sunroof moves to the position indicated by the movement endpoint position information, the method further includes:

[0108] Determine whether the motion endpoint position information is available; if the motion endpoint position information is available, when the preset part of the sunroof moves to the position indicated by the motion endpoint position information, control the sunroof motor to stop working.

[0109] Optionally, it also includes:

[0110] If the endpoint position information is unavailable, the system detects whether the sunroof motor is stalled, and if stalling occurs, controls the sunroof motor to stop working.

[0111] Optionally, if the endpoint location information is unavailable, the method further includes:

[0112] Determine the first position information where the motor stalls during the movement of the sunroof in the first direction;

[0113] Determine the second position information where the motor stalls during the movement of the sunroof in the second direction;

[0114] Based on the first location information and the second location information, update the endpoint location information and set the updated endpoint location information to an available state.

[0115] Optionally, before updating the endpoint location information based on the first location information and the second location information, the method further includes:

[0116] Based on the first location information and the second location information, determine the current sunroof displacement; if the current sunroof displacement is greater than or equal to the target sunroof displacement, perform the step of updating the motion endpoint location information based on the first location information and the second location information.

[0117] Optionally, it also includes:

[0118] If the current sunroof displacement is less than the target sunroof displacement, the anti-pinch function for the car sunroof motor is triggered.

[0119] Optionally, determining whether the endpoint location information is available includes:

[0120] Determine the number of times the car sunroof motor has been closed since the most recent update of the motion endpoint position information;

[0121] If the number of times the device is closed exceeds a preset number of times it is closed, the endpoint location information is determined to be unavailable.

[0122] If the number of times the motion is closed is less than or equal to the preset number of times the motion is closed, the motion endpoint location information is determined to be available.

[0123] An embodiment of the present invention also 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, it implements the above-mentioned control method for the car sunroof motor.

[0124] An embodiment of the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned control method for a car sunroof motor.

[0125] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.

[0127] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0128] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products 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 code.

[0129] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0130] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The 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 equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0132] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0133] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes the aforementioned element.

[0134] The above provides a detailed description of the control method, vehicle, electronic equipment, and medium for an automotive sunroof motor. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the invention. At the same time, those skilled in the art will recognize that, based on the ideas of the invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the invention.

Claims

1. A control method for an automotive sunroof motor, characterized in that, The method includes: In response to a triggering event, control the sunroof motor to operate and drive the sunroof movement; Obtain the position information of the sunroof's movement endpoint; Determine whether the endpoint location information is available; When the motion endpoint position information is available, the sunroof motor is controlled to stop working when the sunroof moves to the position indicated by the motion endpoint position information; Among them, the motion endpoint location information is the stored location information of the motion endpoint of the sunroof; If the endpoint location information is unavailable, the method further includes: Based on the first position information of motor stall during the sunroof's movement along the first direction and the second position information of motor stall during the sunroof's movement along the second direction, the current sunroof displacement is determined; the second direction is the direction opposite to the first direction. The target sunroof displacement is determined based on the motion endpoint position information, and the difference between the current sunroof displacement and the target sunroof displacement is calculated. If the current sunroof displacement is greater than or equal to the target sunroof displacement, and the difference is less than or equal to the displacement threshold, the motion endpoint position information is updated according to the first position information and the second position information. If the current sunroof displacement is greater than or equal to the target sunroof displacement, and the difference is greater than the displacement threshold, the sunroof motor is determined to be faulty, and a fault alarm is issued.

2. The method according to claim 1, characterized in that, The endpoint location information includes first endpoint location information and second endpoint location information; The first motion endpoint position information is used to indicate the position information of the endpoint of the sunroof's movement along the first direction, and the second motion endpoint position information is used to indicate the position information of the endpoint of the sunroof's movement along the second direction.

3. The method according to claim 1, characterized in that, Also includes: If the endpoint position information is unavailable, the system detects whether the sunroof motor is stalled, and if stalling occurs, controls the sunroof motor to stop working.

4. The method according to claim 3, characterized in that, Also includes: Based on the first location information and the second location information, update the endpoint location information and set the updated endpoint location information to an available state.

5. The method according to claim 1, characterized in that, Also includes: If the current sunroof displacement is less than the target sunroof displacement, the anti-pinch function for the car sunroof motor is triggered.

6. The method according to any one of claims 1, 3 to 5, characterized in that, The available state is when the number of times the sunroof motor closes is less than or equal to the preset number of times it closes, and the unavailable state is when the number of times the sunroof motor closes is greater than the preset number of times it closes. The number of times the sunroof motor closes is the number of times the sunroof motor closes after the most recent update of the motion endpoint position information.

7. An electronic device, characterized in that, The system includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the control method for an automotive sunroof motor as described in any one of claims 1 to 6.

8. A vehicle, characterized in that, The invention includes a sunroof, a sunroof motor, a transmission structure between the sunroof motor and the sunroof, and a controller, the controller being used to implement the control method for the automotive sunroof motor as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the control method for an automotive sunroof motor as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • 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