Control method, seat controller and computer readable storage medium
By adopting a small rotation speed and gradually reduced duty cycle strategy during the locking motor control process, the noise and service life problems caused by mechanical collision during the unlocking or locking of the locking motor are solved, and the effect of lower noise and longer service life is achieved.
Patent Information
- Application Number
- CN202310033600.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-10
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2043-01-10
AI Technical Summary
During the unlocking or locking of the drive locking motor control locking device, there is a mechanical collision, which causes severe noise and affects the service life of the locking motor.
By setting the locking motor at a relatively small rotation speed, and determining the duty cycle of the drive locking motor according to preset rules, it decreases with time, thereby reducing the speed and pressure of mechanical collisions.
It effectively reduces the noise generated by mechanical collision process, and extends the service life of the locking motor by reducing mechanical collision pressure.
Smart Images

Figure CN115891780B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle seat control technology, and in particular relates to a control method, a seat controller, and a computer-readable storage medium. Background Art
[0002] To accommodate the seat adjustment requirements of longer vehicles, long rail seats can be used. A rail tooth plate is installed beneath the seat, and a locking tooth window is provided on the rail. By controlling the seat rail motor, both the second and third rows of seats can be adjusted on the long rail. When the rail motor is deactivated, the seat's upper rail tooth plate engages the rail tooth window. To prevent the seat from sliding and impacting passenger safety, the locking motor is driven to lock the seat after the seat stops sliding, securing the seat tooth plate in the tooth window.
[0003] When the slide motor is started, the locking motor must be driven to control the locking device to unlock and switch to the fully unlocked state before the seat slide motor can drive the seat forward and backward adjustment mechanism to operate; when the slide motor is stopped, the locking motor must be driven to control the locking device to lock and switch to the fully locked state before the seat tooth plate can be fixed in the tooth window.
[0004] However, in the process of driving the locking motor to control the locking device to unlock or drive the locking motor to control the locking device to lock, there is a mechanical collision in the internal structure of the locking device, which causes serious noise in the process of the locking motor controlling the locking device and also affects the service life of the locking device. Summary of the Invention
[0005] The embodiments of the present application provide a control method, a seat controller, and a computer-readable storage medium, which extend the service life of the locking motor by setting the locking motor to control the locking device at a relatively low rotation speed.
[0006] In a first aspect, an embodiment of the present application provides a control method, the method comprising:
[0007] receiving a driving signal, wherein the driving signal is used to drive a locking motor to control a state of a locking device;
[0008] In response to the driving signal, determining at least one duty cycle for driving the locking motor according to a preset rule, wherein the preset rule is that the duty cycle decreases with increasing time;
[0009] The locking motor is driven according to the at least one duty cycle to enable the locking device to reach a preset state, wherein the preset state of the locking device corresponds to the driving signal.
[0010] In a possible implementation of the first aspect, determining at least one duty cycle for driving the locking motor according to a preset rule includes:
[0011] determining a first driving time and a second driving time, wherein the first driving time is less than the second driving time;
[0012] A first duty cycle corresponding to the first driving time and a second duty cycle corresponding to the second driving time are determined according to the preset rule, wherein the first duty cycle is greater than the second duty cycle.
[0013] In a possible implementation of the first aspect, driving the locking motor according to the at least one duty cycle includes:
[0014] determining a driving distance corresponding to the locking motor;
[0015] Determining a driving time period based on a driving distance, wherein the driving distance is a motor rotation distance corresponding to when the locking motor controls the locking device to switch from a fully unlocked state to a fully locked state, or a motor rotation distance corresponding to when the fully locked state switches from a fully unlocked state to a fully locked state;
[0016] The locking motor is driven according to the at least one duty cycle during the driving time period, wherein the driving time period is a time period corresponding to driving the locking motor to rotate a driving distance.
[0017] In a possible implementation of the first aspect, determining the driving time period according to the driving distance includes:
[0018] determining a driving speed of the locking motor corresponding to each time interval;
[0019] The driving time period is determined according to the driving distance and the driving speed of the locking motor corresponding to each time interval.
[0020] In a possible implementation of the first aspect, driving the locking motor according to the at least one duty cycle during the driving time period includes:
[0021] During the driving time period, if it is detected that the number of rotations of the rotor of the locking motor is equal to the driving number, the driving of the locking motor is stopped. The driving number is the number of motor rotations corresponding to the locking motor controlling the locking device to change from a fully unlocked state to a fully locked state, or the number of motor rotations corresponding to the fully locked state to a fully unlocked state.
[0022] In a possible implementation of the first aspect, driving the locking motor according to the at least one duty cycle during the driving time period includes:
[0023] During the driving time period, if it is detected that the driving current of the locking motor is equal to the stall current, driving the locking motor is stopped. The stall current is the current corresponding to when the duty cycle of the locking motor is not zero and the rotor speed is zero.
[0024] In a possible implementation of the first aspect, when the drive signal is an unlocking signal, the preset state of the locking device is a fully unlocked state; when the drive signal is a locking signal, the preset state of the locking device is a fully locked state.
[0025] In a possible implementation of the first aspect, the method further includes:
[0026] obtaining a state of the locking device in response to the detected activation signal;
[0027] If it is determined that the locking device is not in the fully locked state, driving the locking motor according to the at least one duty cycle to bring the locking device into the fully locked state;
[0028] When the locking device is in a fully locked state, driving of the locking motor is stopped.
[0029] In a second aspect, an embodiment of the present application provides a seat controller, comprising:
[0030] A receiving module, configured to receive a driving signal, wherein the driving signal is used to drive a locking motor to control a state of the locking device;
[0031] a determining module, configured to determine, in response to the driving signal, at least one duty cycle for driving the locking motor according to a preset rule, wherein the preset rule is that the duty cycle decreases with increasing time;
[0032] A driving module is used to drive the locking motor according to the at least one duty cycle so that the locking device reaches a preset state, wherein the preset state of the locking device corresponds to the driving signal.
[0033] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the control method as described in any one of the first aspects is implemented.
[0034] It can be understood that the beneficial effects of the second to third aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0035] The beneficial effects of the embodiments of the present application compared with the prior art are: by determining the duty cycle of driving the locking motor at each moment according to the rule that the duty cycle decreases with time in the process of driving the locking motor to control the locking device, the locking motor can control the mechanical action of locking or unlocking the locking device at a relatively low speed, reduce the noise generated during the mechanical collision process, and extend the service life of the locking motor by reducing the mechanical collision pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] Figure 1 is a schematic diagram of a vehicle seat control mechanism provided in an embodiment of the present application;
[0038] Figure 2 This is a flow chart of the control method provided in the embodiment of the present application. Figure 1 ;
[0039] Figure 3 This is a flow chart of the control method provided in the embodiment of the present application. Figure 2 ;
[0040] Figure 4 This is a flow chart of the control method provided in the embodiment of the present application. Figure 3 ;
[0041] Figure 5 This is a structural block diagram of a seat controller provided in an embodiment of the present application;
[0042] Figure 6 It is a schematic diagram of the structure of the controller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0044] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0045] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0046] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0047] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0048] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized.
[0049] See also Figure 1 , is a schematic diagram of the vehicle seat control mechanism provided by the embodiment of the present application. Figure 1 As shown, the vehicle seat control mechanism provided in the embodiment of the present application includes a seat controller 101, a slide motor 103, and a locking motor 102. The seat controller 101 controls the slide motor 103 to drive the seat on the slide rail. When it receives a stop sliding instruction sent by the vehicle control unit 104, it controls the locking motor 102 to lock. It should be noted that the seat controller 101 receives a time synchronization signal sent by the vehicle multimedia control host 105, and data is transmitted between the seat controller 101 and the slide motor 103 and the locking motor 102 via the vehicle bus.
[0050] During the seat adjustment process, the locking motor 102 is unlocked according to the unlocking command sent by the seat controller 101, and the slide rail motor 103 drives the seat to slide on the slide rail according to the command sent by the seat controller 101, so that the tooth plate of the seat can slide into the tooth window of the slide rail. At this time, the locking motor 102 locks the seat and stops it from sliding according to the locking command sent by the seat controller 101. The seat is fixed to the slide rail by a locking device. When starting or stopping the operation of the slide rail motor 103, the locking motor 102 must first be used to unlock or lock the locking device, so that the seat can adjust its position on the slide rail after unlocking, or be fixed to the slide rail after the tooth plate of the seat can slide into the tooth window of the slide rail. However, there is a mechanical collision process during the unlocking or locking process of the locking motor 102, which not only causes serious noise but also affects the service life of the locking motor 102.
[0051] In order to solve the above problems, the present application proposes a method for controlling the locking and unlocking process of the locking motor, so that the locking motor can control the mechanical action of locking or unlocking the locking device at a relatively low speed, reduce the noise generated by the mechanical collision process, and extend the service life of the locking motor by reducing the mechanical collision pressure.
[0052] Figure 2 This is a flow chart of the control method provided in the embodiment of the present application. Figure 1 As an example and not a limitation, the execution entity of this embodiment is Figure 1 The seat controller in this embodiment is not particularly limited here.
[0053] S201: Receive a driving signal, where the driving signal is used to drive a locking motor to control a state of a locking device.
[0054] In an embodiment of the present application, the seat controller receives a seat adjustment signal from the vehicle-mounted electronic control unit and, before adjusting the seat position or starting or stopping the slide motor, first unlocks or locks the locking device using the locking motor. For example, the seat controller receives a drive signal from the vehicle-mounted electronic control unit to control the locking motor and controls the state of the locking motor.
[0055] For example, when the drive signal is an unlocking signal, the preset state of the locking device is a fully unlocked state; alternatively, when the drive signal is a locking signal, the preset state of the locking device is a fully locked state. Specifically, when the drive signal is an unlocking signal, the locking motor is driven to change the locking device of the slide rail from a fully locked state to a fully unlocked state. On the other hand, when the drive signal is a locking signal, the locking motor is driven to change the locking device of the slide rail from a fully unlocked state to a fully locked state.
[0056] S202 : In response to the driving signal, determining at least one duty cycle for driving the locking motor according to a preset rule, wherein the preset rule is that the duty cycle decreases with increasing time.
[0057] For example, the locking motor is a locking device using a brushless DC motor. The motor speed can be controlled by adjusting the PWM duty cycle of the current applied to the motor. It should be understood that for the locking motor, the actual output voltage can be controlled by controlling the duty cycle of each pulse. Different duty cycles correspond to different motor speeds, meaning that controlling the duty cycle can control the motor speed.
[0058] Exemplarily, the process of determining at least one duty cycle for driving the locking motor according to a preset rule includes determining a first driving time and a second driving time, wherein the first driving time is less than the second driving time; and determining a first duty cycle corresponding to the first driving time and a second duty cycle corresponding to the second driving time according to the preset rule, wherein the first duty cycle is greater than the second duty cycle. It should be noted that by gradually reducing the duty cycle of the locking motor, the operating speed of the locking motor is reduced, thereby reducing the collision speed of the locking device.
[0059] For example, a duty cycle mapping table can be used to determine the duty cycles corresponding to different driving times, thereby reducing the duty cycle over time according to a preset rule. Specifically, the duty cycle mapping table includes at least one time interval and the duty cycle corresponding to each time interval. The duty cycle corresponding to a first time interval is greater than the duty cycle corresponding to a second time interval, and the end time of the first time interval is less than the end time of the second time interval.
[0060] As shown in Table 2, for example, duty cycle P1 is 1, indicating that when the locking motor is initially driven, it is driven at a maximum duty cycle of 100%. The order of P1, P2, P3, P4, and P5 is gradually decreasing, meaning that the duty cycle of the locking motor is gradually reduced in chronological order according to a preset rule. It should be noted that the examples of time intervals and corresponding duty cycles included in the duty cycle mapping table are not limited here.
[0061] For example, Table 2 is a duty cycle mapping table provided in an embodiment of the present application.
[0062] Table 2
[0063] time [0,T1) [T1,T2) [T2,T3) [T3,T4) [T4,T5) Duty cycle P1 P2 P3 P4 P5
[0064] S203: driving the locking motor according to at least one duty cycle to enable the locking device to reach a preset state, wherein the preset state of the locking device corresponds to the driving signal.
[0065] Specifically, the specific process of driving the locking motor according to at least one duty cycle is as follows: determining a driving time period according to the driving distance, and driving the locking motor according to at least one duty cycle within the driving time period. It should be understood that the driving time period is the time required for the locking motor to control the locking device to complete a state change after the preset rule is adopted to set the duty cycle of the driving locking motor. The driving distance is the running distance of the locking motor when the locking motor controls the locking device to complete a state change. Specifically, the driving distance is the motor rotation distance corresponding to the locking motor controlling the locking device to change from a fully unlocked state to a fully locked state, or the motor rotation distance corresponding to the fully locked state to a fully unlocked state. It should be noted that the driving time period is the time period corresponding to the driving distance of the driving locking motor.
[0066] For example, a duty cycle corresponding to each time interval is determined, and the locking motor is driven according to the duty cycle. Alternatively, a duty cycle corresponding to each moment is determined, and the locking motor is driven according to the corresponding duty cycle at each moment. For example, at the end of the driving time period, the corresponding duty cycle should be greater than zero.
[0067] When the driving time period ends, the locking device's preset state should be switched to the state corresponding to the driving signal. For example, when the driving signal is an unlocking signal, the locking device's preset state is a fully unlocked state; when the driving signal is a locking signal, the locking device's preset state is a fully locked state.
[0068] It should be noted that different types of locking motors have different corresponding driving time periods and driving distances. Moreover, even for the same locking motor, if the preset rules for determining the duty cycle are different, the driving time period and driving distance will also be different. For example, after determining the driving distance, the driving time period can be determined based on the driving distance. The driving speed corresponding to the locking motor at each time interval is determined; the driving time period is determined based on the driving distance and the driving speed corresponding to the locking motor at each time interval. It should be understood that after determining the duty cycle corresponding to each moment according to the preset rules, time can be used as a variable and integrated according to the duty cycle corresponding to each moment. The integral obtained within the driving time period should be the driving distance.
[0069] The control method provided in this embodiment determines the duty cycle of driving the locking motor at each moment in the process of driving the locking motor to control the locking device according to the rule that the duty cycle decreases with increasing time, so that the locking motor can control the mechanical action of locking or unlocking the locking device at a relatively low speed, reduce the noise generated during the mechanical collision process, and extend the service life of the locking motor by reducing the mechanical collision pressure.
[0070] Figure 3 This is a flow chart of the control method provided in the embodiment of the present application. Figure 2.exist Figure 2 The control method provided in the embodiment is based on Figure 3 As shown, in the process of driving the locking motor according to at least one duty cycle to make the locking device reach a preset state in S203, the specific process implemented for the abnormal situation is as follows:
[0071] S301: Receive a driving signal, where the driving signal is used to drive a locking motor to control a state of a locking device.
[0072] S302 : In response to the driving signal, determining at least one duty cycle for driving the locking motor according to a preset rule, wherein the preset rule is that the duty cycle decreases with increasing time.
[0073] Examples S301 to S302 of the present application Figure 2 The effects and methods achieved by S201 to S202 in the embodiment are consistent and will not be repeated here.
[0074] S303: During the driving time period, if it is detected that the number of rotations of the rotor of the locking motor is equal to the driving number, the driving of the locking motor is stopped. The driving number is the number of motor rotations corresponding to the locking motor controlling the locking device to change from a fully unlocked state to a fully locked state, or the motor rotation value corresponding to driving from a fully locked state to a fully unlocked state.
[0075] While driving the slide motor, the number of rotations of the locking motor's rotor is measured in real time. For example, the drive number is set to the number of motor rotations required for the locking motor to control the locking device from a fully unlocked state to a fully locked state, or the number of motor rotations required for the locking device to be driven from a fully locked state to a fully unlocked state. When the number of rotations of the locking motor's rotor equals the drive number, it is determined that the locking motor has completed the state change of the locking device, and the locking motor needs to be stopped immediately to avoid malfunction.
[0076] S304: During the driving time period, if it is detected that the driving current of the locking motor is equal to the stall current, the driving of the locking motor is stopped. The stall current is the current size corresponding to when the duty cycle of the locking motor is not zero and the rotor speed is zero.
[0077] In the process of driving the slide rail motor, the current of the locking motor is detected in real time. For example, the preset current is set to the current of the locking motor when a stall occurs during the driving of the locking motor. When it is detected that the current of the locking motor is greater than or equal to the stall current, it can be determined that the tooth plate has fallen into the tooth window, and the locking motor can no longer continue to run. It is necessary to stop the locking motor in time to avoid malfunction. It should be noted that the stall current is the current size corresponding to when the duty cycle of the locking motor is not zero and the rotor speed is zero.
[0078] The control method provided in this embodiment promptly determines that the locking motor has completed the process of setting the locking device based on the driving current of the locking motor and the number of rotations of the rotor of the locking motor, and stops running the locking motor, thereby improving the safety of seat control.
[0079] Figure 4 This is a flow chart of the control method provided in the embodiment of the present application. Figure 3 .exist Figure 2 On the basis of the control method provided in the embodiment, in order to prevent the seat controller from being abnormally powered off and causing the seat rail to not be locked in place, the control process of the locking motor provided by the present application is as follows:
[0080] S401 : In response to the detected start signal, obtain the state of the locking device.
[0081] It should be understood that if the seat controller unexpectedly loses power during the unlocking or locking process, the locking device may not be locked in place, leaving the seat unsecured and posing a safety hazard. Therefore, every time the seat controller is powered back on, it is necessary to check whether the slide rail locking device is locked in place. Exemplarily, the activation signal is the seat controller's power-on activation signal, and the current state of the locking device is obtained when the seat controller is powered on.
[0082] S402: If it is determined that the locking device is not in the fully locked state, driving the locking motor according to at least one duty cycle to bring the locking device into the fully locked state.
[0083] S403: When the locking device is in the fully locked state, the locking motor is stopped.
[0084] In an embodiment of the present application, when it is confirmed that the locking device is not in a fully locked state, the locking motor is driven according to a set duty cycle, so that the state of the locking device is converted to a fully locked state. Exemplarily, the locking motor is driven for 200ms at a duty cycle of 30%. Exemplarily, in the process of driving the locking motor, if the seat controller detects that the Hall sensor signal emitted by the locking motor is normal, or detects that the current of the locking motor is less than the stall current, the seat controller continues to drive the locking motor. When the seat controller detects that the Hall sensor signal of the locking motor no longer changes, or detects that the current of the locking motor is equal to the stall current, the seat controller stops driving the locking motor, and the locking device can be ensured to be in a fully locked state.
[0085] The control method provided in this embodiment, in the process of driving the locking motor, in order to avoid the situation where the locking device fails to lock into place due to an abnormal power failure of the seat controller, confirms the status of the locking device when the seat controller is started, and when it is determined that the locking device is not in a fully locked state, drives the locking motor according to at least one duty cycle to ensure that the locking device reaches a fully locked state, thereby improving the safety of the seat.
[0086] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0087] Corresponding to the control method described in the above embodiment, Figure 5 This is a structural block diagram of the seat controller provided in an embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown.
[0088] Reference Figure 5 The seat controller includes: a receiving module 501, a determining module 502 and a driving module 503.
[0089] The receiving module 501 is used to receive a driving signal, and the driving signal is used to drive the locking motor to control the state of the locking device;
[0090] The determining module 502 is configured to determine at least one duty cycle for driving the locking motor in response to the driving signal according to a preset rule, wherein the preset rule is that the duty cycle decreases with increasing time;
[0091] The driving module 503 is configured to drive the locking motor according to the at least one duty cycle so that the locking device reaches a preset state, wherein the preset state of the locking device corresponds to the driving signal.
[0092] It should be noted that the information interaction, execution process, etc. between the above-mentioned modules / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0093] in addition, Figure 5 The seat controller shown can be a software unit, a hardware unit, or a combination of software and hardware units built into an existing terminal device, or can be integrated into the terminal device as an independent pendant, or can exist as an independent terminal device.
[0094] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0095] Figure 6 Schematic diagram of the controller provided in the embodiment of the present application. The controller 60 provided in the embodiment of the present application includes: at least one processor 61 ( Figure 6 Only one is shown), a memory 62 and a computer program 63 stored in the memory 62 and executable on the at least one processor 61, wherein the processor 61 implements the steps executed by the seat controller in any of the above-mentioned control method embodiments when executing the computer program 63.
[0096] The processor 61 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0097] In some embodiments, the memory 62 may be an internal storage unit of the controller 60, such as a hard disk or memory of the controller 60. In other embodiments, the memory 62 may also be an external storage device of the controller 60, such as a plug-in hard disk equipped on the controller 60, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, etc. Furthermore, the controller 60 may include both an internal storage unit of the controller 60 and an external storage device. The memory 62 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program. The memory 62 may also be used to temporarily store data that has been output or is about to be output.
[0098] An embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the steps performed by the seat controller in any of the above-mentioned control method embodiments can be implemented.
[0099] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device implements the steps performed by the baseboard management controller in any of the above-mentioned control method embodiments.
[0100] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable medium cannot be an electric carrier signal or a telecommunication signal.
[0101] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0102] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0103] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0104] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0105] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A control method, characterized in that: The method comprises: receiving a driving signal, wherein the driving signal is used to drive a locking motor to control a state of a locking device; In response to the driving signal, determining at least one duty cycle for driving the locking motor according to a preset rule, wherein the preset rule is that the duty cycle decreases with increasing time; setting a duty cycle mapping table to determine the duty cycles corresponding to different driving times; driving the locking motor according to the at least one duty cycle so that the locking device reaches a preset state, wherein the preset state of the locking device corresponds to the driving signal; The step of driving the locking motor according to the at least one duty cycle comprises: Determining a driving distance corresponding to the locking motor; Determine the driving time period according to the driving distance, wherein the driving distance is the motor rotation distance corresponding to the locking motor controlling the locking device to change from the fully unlocked state to the fully locked state, or the motor rotation distance corresponding to the fully locked state to the fully unlocked state; In the driving time period, the locking motor is driven according to the at least one duty cycle, wherein the driving time period is a time period corresponding to driving the locking motor to rotate a driving distance; When the driving signal is a locking signal, the preset state of the locking device is a fully locked state; The control method further includes: In response to the detected start signal, obtaining a state of the locking device; If it is determined that the locking device is not in a fully locked state, driving the locking motor according to the at least one duty cycle to make the locking device reach a fully locked state; When the locking device is in a fully locked state, the locking motor is stopped from being driven.
2. The control method according to claim 1, characterized in that: The determining at least one duty cycle of driving the locking motor according to a preset rule comprises: Determining a first driving time and a second driving time, wherein the first driving time is less than the second driving time; A first duty cycle corresponding to the first driving time and a second duty cycle corresponding to the second driving time are determined according to the preset rule, wherein the first duty cycle is greater than the second duty cycle.
3. The control method according to claim 1, characterized in that: The step of determining the driving time period according to the driving distance includes: Determine the driving speed of the locking motor corresponding to each time interval; The driving time period is determined according to the driving distance and the driving speed of the locking motor corresponding to each time interval.
4. The control method according to claim 1, characterized in that: The step of driving the locking motor according to the at least one duty cycle during the driving time period includes: During the driving time period, if it is detected that the number of rotations of the rotor of the locking motor is equal to the driving number, the driving of the locking motor is stopped. The driving number is the number of motor rotations corresponding to the locking motor controlling the locking device to change from a fully unlocked state to a fully locked state, or the number of motor rotations corresponding to the change from a fully locked state to a fully unlocked state.
5. The control method according to claim 1, characterized in that: The step of driving the locking motor according to the at least one duty cycle during the driving time period includes: During the driving time period, if it is detected that the driving current of the locking motor is equal to the stall current, the driving of the locking motor is stopped, and the stall current is the current corresponding to when the duty cycle of the locking motor is not zero and the rotor speed is zero.
6. The control method according to any one of claims 1 to 5, characterized in that: When the driving signal is an unlocking signal, the preset state of the locking device is a fully unlocked state.
7. A seat controller, characterized in that: include: A receiving module, used for receiving a driving signal, wherein the driving signal is used for driving a locking motor to control a state of a locking device; A determination module, configured to determine at least one duty cycle of driving the locking motor in response to the driving signal according to a preset rule, wherein the preset rule is that the duty cycle decreases with increasing time; and to set a duty cycle mapping table to determine the duty cycles corresponding to different driving times; a driving module, configured to drive the locking motor according to the at least one duty cycle so that the locking device reaches a preset state, wherein the preset state of the locking device corresponds to the driving signal; The step of driving the locking motor according to the at least one duty cycle comprises: Determining a driving distance corresponding to the locking motor; Determine the driving time period according to the driving distance, wherein the driving distance is the motor rotation distance corresponding to the locking motor controlling the locking device to change from the fully unlocked state to the fully locked state, or the motor rotation distance corresponding to the fully locked state to the fully unlocked state; In the driving time period, the locking motor is driven according to the at least one duty cycle, wherein the driving time period is a time period corresponding to driving the locking motor to rotate a driving distance; When the driving signal is a locking signal, the preset state of the locking device is a fully locked state; The seat controller is also used for: In response to the detected start signal, obtaining a state of the locking device; If it is determined that the locking device is not in a fully locked state, driving the locking motor according to the at least one duty cycle to make the locking device reach a fully locked state; When the locking device is in a fully locked state, the locking motor is stopped from being driven.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the control method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and system for controlling double door locks
CN106285303A