Seat control method, seat controller and computer readable storage medium
By detecting the spacing between the seat tooth plate and the sliding rail tooth window and controlling the operating mode of the sliding rail motor according to the spacing size, the problem of low seat adjustment efficiency is solved, and the effect of the tooth plate falling into the tooth window is achieved.
Patent Information
- Application Number
- CN202310033708.6
- 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
After adjusting the seat to the appropriate position, if the seat's tooth plate does not snap into the tooth window of the slide rail smoothly, it is necessary to continue to adjust the position of the seat's tooth plate, resulting in the tooth plate falling into the tooth window for a long time, affecting the seat's adjustment efficiency.
By detecting the distance between the tooth plate of the seat and the sliding rail, when the distance is greater than the preset distance, the sliding rail motor is controlled to operate according to the first duty cycle; when the distance is less than or equal to the preset distance, the sliding rail motor is controlled to operate at the preset rate for a preset time period to ensure that the tooth plate can quickly fall into the tooth window.
It improves the seat adjustment efficiency, shortens the time when the tooth plate falls into the tooth window, and reduces the need for manual adjustment.
Smart Images

Figure CN115991127B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of vehicle seat control, and in particular, relates to a seat control method, a seat controller and a computer-readable storage medium. Background Art
[0002] In order to meet the seat adjustment requirements of longer vehicles, a long slide rail seat can be used. By installing a tooth plate of the slide rail under the seat, a tooth window for locking is set on the slide rail. By controlling the slide rail motor of the seat, the second or third row of seats in the vehicle can be adjusted on the long slide rail. When the slide rail motor stops driving, the upper slide rail tooth plate of the seat is locked into the tooth window of the slide rail, controlling the seat to stop sliding.
[0003] However, after the seat is adjusted to a suitable position, if the tooth plate of the seat does not fit smoothly into the tooth window of the slide rail, the position of the tooth plate of the seat needs to be further adjusted, which causes the tooth plate to take a long time to fall into the tooth window, thus affecting the adjustment efficiency of the seat. Summary of the invention
[0004] The embodiments of the present application provide a seat control method, a seat controller and a computer-readable storage medium, which drive the slide rail motor so that the tooth plate of the seat can quickly fall into the tooth window of the slide rail, thereby improving the adjustment efficiency of the seat.
[0005] In a first aspect, an embodiment of the present application provides a seat control method, the method comprising:
[0006] When the seat slides on the slide rail, a stop command is detected, and a distance between the tooth plate of the seat and the tooth window of the slide rail is obtained;
[0007] If the distance is greater than the preset distance, controlling the slide rail motor to operate according to the first duty cycle;
[0008] If the spacing is less than or equal to a preset distance, controlling the slide rail motor of the seat to run at a preset speed for a preset time period;
[0009] The slide rail motor of the seat is stopped so that the tooth plate of the seat falls into the tooth window of the slide rail.
[0010] In a possible implementation manner of the first aspect, obtaining the distance between the tooth plate of the seat and the tooth window of the slide rail includes:
[0011] determining a sliding direction of the seat;
[0012] Obtaining a sliding distance of the seat in the sliding direction;
[0013] Determine the remaining distance between the seat and each tooth window according to the initial distance between the seat and each tooth window and the sliding distance, wherein the initial distance between the seat and each tooth window is the distance between the locking tooth plate of the seat and each tooth window when the seat is at the extreme position, when the extreme position is the front end of the slide rail, the locking tooth plate is the last tooth plate of the seat, and when the extreme position is the rear end of the slide rail, the locking tooth plate is the first tooth plate of the seat;
[0014] The minimum distance among the remaining distances between the seat and each of the tooth windows is used as the spacing between the tooth plate of the seat and the tooth window of the slide rail.
[0015] In a possible implementation manner of the first aspect, obtaining a sliding distance of the seat in the sliding direction includes:
[0016] Determining an operation signal of the slide rail motor in the sliding direction;
[0017] The sliding distance is obtained according to the operating signal and the preset unit distance, wherein the operating signal is the accumulated Hall signal value when the slide rail motor operates in the sliding direction, and the preset unit distance is the sliding distance of the seat when the slide rail motor operates a Hall signal.
[0018] In a possible implementation manner of the first aspect, the first duty cycle is a duty cycle of the slide rail motor when the stop command is detected.
[0019] In a possible implementation manner of the first aspect, controlling the slide rail motor of the seat to run at a preset speed for a preset time period includes:
[0020] Reducing the duty cycle of the slide rail motor according to a preset ratio, wherein the preset ratio is a percentage of reduction of the duty cycle per unit time;
[0021] When the duty cycle of the slide rail motor is reduced to a second duty cycle, the slide rail motor is controlled to operate according to the second duty cycle within a preset time period, wherein the second duty cycle corresponds to the preset rate.
[0022] In a possible implementation of the first aspect, the seat further includes a locking motor;
[0023] Correspondingly, after stopping the slide rail motor of the seat so that the tooth plate of the seat falls into the tooth window of the slide rail, the method further includes:
[0024] Controlling the locking motor according to the first Hall value so that the locking mechanism of the slide rail reaches a semi-locked state;
[0025] The locking motor is controlled according to the second Hall value, so that the locking mechanism of the slide rail is changed from the semi-locked state to the fully locked state.
[0026] In a possible implementation manner of the first aspect, after the locking mechanism of the slide rail is brought from the semi-locked state to the fully locked state, the method further includes:
[0027] Controlling the slide rail motor to run a preset retraction distance in the opposite direction of the sliding direction;
[0028] The remaining distance between the seat and each of the tooth windows is obtained, and the position information of the seat is determined according to the maximum distance among the remaining distances corresponding to each of the tooth windows.
[0029] In a possible implementation manner of the first aspect, the method further includes:
[0030] When it is detected that the current of the slide rail motor is greater than or equal to the preset current, the operation of the slide rail motor is stopped;
[0031] or,
[0032] When it is determined that the seat slides to the limit position, the slide rail motor is stopped, wherein the limit position is the front end and the rear end of the slide rail;
[0033] The locking motor is controlled to lock so that the locking mechanism of the slide rail reaches a fully locked state.
[0034] In a second aspect, an embodiment of the present application provides a seat controller, comprising:
[0035] A detection module, used for detecting a stop instruction when the seat slides on the slide rail, and obtaining a distance between the tooth plate of the seat and the tooth window of the slide rail;
[0036] A first control module, configured to control the slide rail motor to operate according to a first duty cycle if the interval is greater than a preset distance;
[0037] A second control module, configured to control the slide rail motor of the seat to run at a preset speed for a preset time period if the spacing is less than or equal to a preset distance;
[0038] The locking module is used to stop the slide rail motor of the seat so that the tooth plate of the seat falls into the tooth window of the slide rail.
[0039] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a seat control method as described in any one of the first aspects is implemented.
[0040] 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.
[0041] The beneficial effect of the embodiments of the present application compared with the prior art is: in the process of driving the slide rail motor to adjust the seat position, when the slide rail motor stops sliding, if the minimum distance between the tooth plate and the tooth window is greater than the preset distance, the slide rail motor is controlled to operate according to the set duty cycle, so that the tooth plate of the seat can be quickly adjusted to the nearest tooth window position, thereby improving the adjustment efficiency of the seat. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative labor.
[0043] Figure 1 is a schematic diagram of a vehicle seat control mechanism provided in an embodiment of the present application;
[0044] Figure 2 This is a flowchart of the seat control method provided in the embodiment of the present application. Figure 1 ;
[0045] Figure 3 A schematic diagram of a seat structure provided in an embodiment of the present application;
[0046] Figure 4 The seat control method provided in the embodiment of the present application is shown in FIG. Figure 2 ;
[0047] Figure 5 The seat control method provided in the embodiment of the present application is shown in FIG. Figure 3 ;
[0048] Figure 6 is a structural block diagram of a seat controller provided in an embodiment of the present application;
[0049] Figure 7 It is a schematic diagram of the structure of the controller provided in the embodiment of the present application. DETAILED DESCRIPTION
[0050] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also 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 prevent unnecessary details from obstructing the description of the present application.
[0051] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0052] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0053] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" 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 "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0054] 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.
[0055] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0056] See also Figure 1 , is a schematic diagram of a vehicle seat control mechanism provided in an embodiment of the present application. Figure 1As shown, the vehicle seat control mechanism provided in the embodiment of the present application includes a seat controller 101, a slide rail motor 103 and a locking motor 102. The seat controller 101 controls the slide rail motor 103 to drive the seat to run on the slide rail, and when receiving a stop sliding instruction sent by the vehicle control unit 104, 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 the seat controller 101 and the slide rail motor 103 and the locking motor 102 are used to transmit data through the vehicle bus.
[0057] Figure 2 The seat control method provided in the embodiment of the present application is shown in FIG. Figure 1 As an example but not a limitation, the execution subject of this embodiment is Figure 1 The seat controller in this embodiment is not particularly limited here.
[0058] S201: When the seat slides on the slide rail, a stop command is detected, and a distance between the tooth plate of the seat and the tooth window of the slide rail is obtained.
[0059] Figure 3 A schematic diagram of the seat structure provided in the embodiment of the present application, such as Figure 3 As shown, there are 5 tooth plates under the seat, and a plurality of tooth windows are arranged on the slide rail. The two ends of the slide rail are the front end of the slide rail and the rear end of the slide rail, respectively. The seat controller adjusts the position of the seat by controlling the operation of the slide rail motor.
[0060] For example, in the process of controlling the operation of the slide rail motor to adjust the seat position, when a stop command is received from the vehicle-mounted control unit, it is necessary to determine the position of the tooth plate of the seat in the slide rail, and drive the slide rail motor to continue sliding according to the current positional relationship between the tooth plate and the tooth window, so that the tooth plate can fall into the tooth window.
[0061] In an embodiment of the present application, when a command to stop controlling the slide motor to adjust the seat position is received, the sliding direction of the seat is determined, and the distance between the tooth plate and the tooth window is determined according to the sliding direction of the seat. Exemplarily, the sliding direction of the seat is determined according to the operating parameters of the slide motor before the stop command is received. After determining the sliding direction, the sliding distance of the seat in the sliding direction is obtained according to the Hall information of the operation of the slide motor.
[0062] Exemplarily, the specific process of obtaining the sliding distance of the seat in the sliding direction according to the Hall information of the operation of the slide motor is: determine the operation signal of the slide motor in the sliding direction; obtain the sliding distance according to the operation signal and the preset unit distance, wherein the operation signal is the accumulated Hall signal value when the slide motor runs in the sliding direction, and the preset unit distance is the sliding distance of the seat when the slide motor runs one Hall signal. It should be noted that the slide motor is a brushless DC motor, and the accumulated Hall signal values of different sliding directions, that is, the rotation data of the rotor, are stored inside the slide motor. Specifically, the sliding distance of the seat when the slide motor runs one Hall signal and the accumulated Hall signal value can determine the sliding distance in the current sliding direction.
[0063] It should be noted that according to Figure 3 The positional relationship between the seat and the slide rail shown in the figure sets the initial distance between the seat and each tooth window as the distance between the seat's locking tooth plate and each tooth window when the seat is in the extreme position. Figure 3 As shown in the figure, when the limit position is the front end of the slide rail, the locking tooth plate is the last tooth plate of the seat. Figure 3 When the limit position is at the rear end of the slide rail, the locking tooth plate is the first tooth plate of the seat. Figure 3 Tooth plate 5. When the seat slides on the slide rail, the minimum distance in the remaining distance between the seat and each tooth window is used as the spacing between the tooth plate of the seat and the tooth window of the slide rail.
[0064] S202: If the distance is greater than the preset distance, control the slide rail motor to operate according to the first duty cycle until the distance is less than or equal to the preset distance.
[0065] Exemplarily, the first duty cycle is set to be the driving duty cycle of the current slide rail motor when a stop command is received.
[0066] In the embodiment of the present application, when the spacing is greater than the preset distance, it can be determined that the distance between the tooth plate of the seat and the nearest tooth window cannot meet the distance for the tooth plate to directly fall into the tooth window. Exemplarily, in order to improve the adjustment efficiency of the seat, when the spacing is greater than the preset distance, the slide rail continues to run for a distance according to the current running speed, so that the tooth plate of the seat can quickly reach the nearest tooth window position.
[0067] S203: If the distance is less than or equal to the preset distance, control the slide rail motor to run at a preset speed for a preset time period.
[0068] In the embodiment of the present application, when the determined minimum distance between the tooth plate and the tooth window is less than or equal to the preset distance, it is considered that the distance between the tooth plate and the tooth window is close enough, and there is no need to manually adjust the position of the seat. By driving the slide rail motor to run at a preset speed and a preset time period, the tooth plate of the seat can be dropped into the tooth window to achieve the purpose of limiting the seat position. For example, the preset distance is set to 7.5 mm.
[0069] Exemplarily, by reducing the speed of the slide motor, the tooth plate can fall into the tooth window more smoothly. Specifically, the duty cycle of the slide motor can be reduced according to a preset ratio to achieve the purpose of reducing the speed of the slide motor. The preset ratio is the percentage of reduction of the duty cycle per unit time. Specifically, the preset ratio is reduced by 10% every 100ms.
[0070] Exemplarily, when the duty cycle of the slide rail motor is reduced to the second duty cycle, the slide rail motor is controlled to operate at the second duty cycle within a preset time period, wherein the second duty cycle corresponds to a preset rate. Specifically, the second duty cycle is 30%, and the preset time period is 200ms. In the actual operation of the slide rail motor, the duty cycle of the slide rail motor is reduced according to the preset ratio. When the duty cycle of the slide rail motor is reduced to 30%, the slide rail motor is driven to continue to operate at a speed corresponding to the 30% duty cycle for 200ms.
[0071] It should be noted that in S202, the first duty cycle can also be set to be fixed, that is, the first duty cycle is set to be greater than the second duty cycle set in the step of executing the preset time period at a preset rate, so that the slide rail motor can adjust the distance at a faster speed according to the first duty cycle, and then drive the slide rail motor with a relatively small second duty cycle, so that the rate at which the tooth plate of the seat falls into the tooth window is smaller, thereby reducing the impact.
[0072] S204: Stop running the slide rail motor so that the tooth plate of the seat falls into the tooth window of the slide rail.
[0073] In an embodiment of the present application, after the slide rail motor that controls the seat runs at a preset speed for a preset time period, when the slide rail motor has adjusted the position of the tooth plate of the seat to the corresponding position of the tooth window, the drive of the slide rail motor is stopped and the tooth plate of the seat can fall into the tooth window of the slide rail.
[0074] The seat control method provided in this embodiment, when the slide rail motor stops sliding, if the minimum spacing between the tooth plate and the tooth window is greater than a preset distance, the slide rail motor is set to operate according to a first duty cycle, so that the tooth plate of the seat can be quickly adjusted to the nearest tooth window position, and when the spacing is less than or equal to the preset distance, the slide rail motor of the seat is controlled to operate at a preset speed for a preset time period, so that the tooth plate of the seat can fall into the tooth window of the slide rail, thereby improving the adjustment efficiency of the seat.
[0075] Figure 4 The seat control method provided in the embodiment of the present application is shown in FIG. Figure 2 .exist Figure 2 The seat control method provided in the embodiment is based on Figure 4 As shown, in S202, if the distance is greater than the preset distance, the seat control process provided by the embodiment of the present application is as follows:
[0076] S401: When the seat slides on the slide rail, a stop command is detected, and a distance between the tooth plate of the seat and the tooth window of the slide rail is obtained.
[0077] This step and Figure 2 The effect and method implemented by S201 in the embodiment are consistent and will not be described in detail here.
[0078] S402: If the distance is greater than the preset distance, control the slide rail motor to operate according to the first duty cycle until the distance is less than or equal to the preset distance.
[0079] S403: If the distance is less than or equal to the preset distance, control the slide rail motor to run at a preset speed for a preset time period.
[0080] S404: Stop running the slide rail motor so that the tooth plate of the seat falls into the tooth window of the slide rail.
[0081] Embodiments S401 to S404 of the present application are Figure 2 The effects and methods achieved by S201 to S204 in the embodiment are consistent and will not be described in detail here.
[0082] S405: Controlling the locking motor according to the first Hall value so that the locking mechanism of the slide rail reaches a semi-locked state.
[0083] S406: Controlling the locking motor according to the second Hall value so that the locking mechanism of the slide rail changes from a half-locked state to a fully locked state.
[0084] In an embodiment of the present application, when the driving slide rail motor stops, the tooth plate of the seat has fallen into the tooth window. In order to fix the position of the seat and ensure the safety of the passengers, it is necessary to control the locking device to a fully locked state so that the tooth plate can be fixed in the tooth window.
[0085] Exemplarily, the locking motor is controlled according to the first Hall value so that the locking mechanism of the slide rail reaches a semi-locked state, and then the locking motor is controlled according to the second Hall value so that the locking mechanism of the slide rail reaches a fully locked state from the semi-locked state. Specifically, the first Hall value is set to 30 and the second Hall value is set to 20. It should be noted that the first Hall value is determined by the locking device changing from a fully unlocked state to a semi-locked state, and the second Hall value is determined by the locking device changing from a semi-locked state to a fully locked state.
[0086] S407: Control the slide rail motor to run a preset retract distance in the opposite direction of the sliding direction.
[0087] In an embodiment of the present application, when the locking device of the slide rail is in a fully locked state, the slide rail motor is controlled to run a preset retraction distance in the opposite direction of the sliding direction, so that the tooth plate can completely fall into the tooth window, and the tooth plate and the tooth window can be prevented from being squeezed by force for a long time.
[0088] Exemplarily, the set back distance is the distance that the slide rail motor runs in the direction opposite to the sliding direction. The back distance can be determined according to the set back time and the back percentage of the drive slide rail motor. Specifically, the back distance is the running distance of the slide rail motor corresponding to the running of the drive slide rail motor when the slide rail motor runs 200m at a back percentage of 30%.
[0089] S408: Obtain the remaining distance between the seat and each tooth window, and determine the position information of the seat according to the maximum distance among the remaining distances corresponding to each tooth window.
[0090] In the embodiment of the present application, the remaining distance between the seat and each tooth window is stored, that is, the current position information of the seat is recorded, so that when the seat position is adjusted next time, the seat position information can be determined by the maximum distance of the remaining distances corresponding to each tooth window, and the distance and direction to be adjusted can be determined according to the position information in the position adjustment instruction.
[0091] The seat control method provided in this embodiment, on the one hand, when the minimum spacing between the tooth plate and the tooth window is greater than the preset distance, controls the slide rail motor to continue running so that the tooth plate can quickly reach the position of falling into the tooth window; on the other hand, after stopping driving the slide rail motor, not only controls the driving locking motor to timely convert the locking device into a full-lock state, but also controls the slide rail motor to retreat in the opposite direction of the sliding direction so that the tooth plate completely falls into the tooth window, but also can prevent the tooth plate and the tooth window from being squeezed for a long time, thereby improving the stability of the seat.
[0092] Figure 5 The seat control method provided in the embodiment of the present application is shown in FIG. Figure 3 .exist Figure 4 The embodiment provides the basis for the whole process of seat control, such as Figure 5 As shown, the embodiment of the present application provides corresponding processing steps when the seat control is abnormal, which are as follows:
[0093] S501: When it is determined that the seat slides to the limit position, the slide rail motor is stopped, and the limit position is the front end and the rear end of the slide rail.
[0094] In an embodiment of the present application, when it is detected that the seat has slid to the extreme position, i.e., the front end position of the slide rail or the front end position of the slide rail, the drive of the slide rail motor is stopped in time to prevent the seat from derailing.
[0095] S502: When it is detected that the current of the slide rail motor is greater than or equal to the preset current, the slide rail motor is stopped.
[0096] In the process of driving the slide rail motor, the current of the slide rail motor is detected in real time. For example, the preset current is set to the current of the slide rail motor when a stall occurs during the process of driving the slide rail motor. When it is detected that the current of the slide rail motor is greater than or equal to the preset current, it can be determined that the tooth plate falls into the tooth window, and the slide rail motor can no longer continue to run. It is necessary to stop the operation of the slide rail motor in time to avoid malfunction.
[0097] S503: Control the locking motor to lock, so that the locking mechanism of the slide rail reaches a fully locked state.
[0098] In the embodiment of the present application, when the slide rail motor stops running, the locking motor is promptly controlled to lock, so that the locking mechanism of the slide rail reaches a fully locked state. Figure 6 The methods and steps for implementing S605 to S606 in the embodiment are consistent and will not be repeated here.
[0099] The seat control method provided in this embodiment improves the safety of seat control by timely controlling the slide rail motor to stop according to the detected seat position and the current of the slide rail motor, thereby avoiding the situation where the seat derails or the stall current of the slide rail motor is too large.
[0100] 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 the present application.
[0101] Corresponding to the seat control method of the above embodiment, Figure 6 This is a structural block diagram of a seat controller provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0102] Reference Figure 6 The seat controller includes: a detection module 601, a first control module 602, a second control module 603 and a locking module 604.
[0103] A detection module 601 is used to detect a stop instruction when the seat slides on the slide rail, and obtain a distance between the tooth plate of the seat and the tooth window of the slide rail;
[0104] A first control module 602, configured to control the slide rail motor to operate according to a first duty cycle if the distance is greater than a preset distance;
[0105] The second control module 603 is used to control the slide rail motor of the seat to run at a preset speed for a preset time period if the distance is less than or equal to the preset distance;
[0106] The locking module 604 is used to stop the slide rail motor of the seat so that the tooth plate of the seat falls into the tooth window of the slide rail.
[0107] 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 the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0108] in addition, Figure 6 The seat controller shown may be a software unit, a hardware unit, or a combination of software and hardware units built into an existing terminal device, or may be integrated into the terminal device as an independent pendant, or may exist as an independent terminal device.
[0109] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be 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 in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in 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, which will not be repeated here.
[0110] Figure 7 is a schematic diagram of the structure of the controller provided in the embodiment of the present application. The controller 70 provided in the embodiment of the present application includes: at least one processor 71 ( Figure 7 Only one is shown), a memory 72 and a computer program 73 stored in the memory 72 and executable on the at least one processor 71, wherein the processor 71 implements the steps performed by the seat controller in any of the above-mentioned seat control method embodiments when executing the computer program 73.
[0111] The processor 71 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.
[0112] In some embodiments, the memory 72 may be an internal storage unit of the controller 70, such as a hard disk or memory of the controller 70. In other embodiments, the memory 72 may also be an external storage device of the controller 70, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the controller 70. Further, the controller 70 may also include both an internal storage unit of the controller 70 and an external storage device. The memory 72 is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program. The memory 72 may also be used to temporarily store data that has been output or is to be output.
[0113] 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 executed by the seat controller in any of the above-mentioned seat control method embodiments can be implemented.
[0114] 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 seat controller in any of the above-mentioned seat control method embodiments.
[0115] 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, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, 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 at least include: 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, Read-Only Memory), a random access memory (RAM, Random Access Memory), 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, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0116] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0117] Those of ordinary skill 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 to be beyond the scope of this application.
[0118] In the embodiments provided in the present 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 only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, 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.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0120] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A seat control method, characterized in that: The method comprises: When a stop command is detected while the seat is sliding on the slide rail, a distance between the tooth plate of the seat and the tooth window of the slide rail is obtained; If the distance is greater than the preset distance, controlling the slide rail motor to operate according to the first duty cycle; If the spacing is less than or equal to the preset distance, controlling the slide rail motor to run at a preset speed for a preset time period; Stopping the operation of the slide rail motor so that the tooth plate of the seat falls into the tooth window of the slide rail; Wherein, the step of controlling the slide rail motor of the seat to run at a preset speed for a preset time period comprises: Reducing the duty cycle of the slide rail motor according to a preset ratio, wherein the preset ratio is a percentage of reduction of the duty cycle per unit time; When the duty cycle of the slide rail motor is reduced to a second duty cycle, controlling the slide rail motor to operate according to the second duty cycle within a preset time period, wherein the second duty cycle corresponds to the preset rate; The seat also includes a locking motor; Correspondingly, after stopping the slide rail motor of the seat so that the tooth plate of the seat falls into the tooth window of the slide rail, the method further includes: Controlling the locking motor according to the first Hall value so that the locking mechanism of the slide rail reaches a semi-locked state; Controlling the locking motor according to the second Hall value so that the locking mechanism of the slide rail changes from the semi-locked state to the fully locked state; After the locking mechanism of the slide rail is brought from the semi-locked state to the fully locked state, the method further comprises: Controlling the slide rail motor to run a preset retraction distance in the opposite direction of the sliding direction; The remaining distance between the seat and each of the tooth windows is obtained, the position information of the seat is determined according to the maximum distance of the remaining distances corresponding to each of the tooth windows, and the distance and direction to be adjusted are determined according to the position information in the position adjustment instruction.
2. The seat control method according to claim 1, characterized in that: The step of obtaining the distance between the tooth plate of the seat and the tooth window of the slide rail comprises: determining a sliding direction of the seat; Obtaining a sliding distance of the seat in the sliding direction; Determine the remaining distance between the seat and each tooth window according to the initial distance between the seat and each tooth window and the sliding distance, wherein the initial distance between the seat and each tooth window is the distance between the locking tooth plate of the seat and each tooth window when the seat is at the extreme position, when the extreme position is the front end of the slide rail, the locking tooth plate is the last tooth plate of the seat, and when the extreme position is the rear end of the slide rail, the locking tooth plate is the first tooth plate of the seat; The minimum distance among the remaining distances between the seat and each of the tooth windows is used as the spacing between the tooth plate of the seat and the tooth window of the slide rail.
3. The seat control method according to claim 2, characterized in that: The obtaining of the sliding distance of the seat in the sliding direction comprises: Determining an operation signal of the slide rail motor in the sliding direction; The sliding distance is obtained according to the operating signal and the preset unit distance, wherein the operating signal is the accumulated Hall signal value when the slide rail motor operates in the sliding direction, and the preset unit distance is the sliding distance of the seat when the slide rail motor operates a Hall signal.
4. The seat control method according to claim 1, characterized in that: The first duty cycle is the duty cycle of the slide rail motor when the stop command is detected.
5. The seat control method according to claim 1, characterized in that: Also includes: When it is detected that the current of the slide rail motor is greater than or equal to the preset current, the operation of the slide rail motor is stopped; or, When it is determined that the seat slides to the limit position, the slide rail motor is stopped, wherein the limit position is the front end and the rear end of the slide rail; The locking motor is controlled to lock, so that the locking mechanism of the slide rail reaches a fully locked state.
6. A seat controller, characterized in that: include: A detection module, used for detecting a stop instruction when the seat slides on the slide rail, and obtaining a distance between the tooth plate of the seat and the tooth window of the slide rail; A first control module, configured to control the slide rail motor to operate according to a first duty cycle if the interval is greater than a preset distance; A second control module, configured to control the slide rail motor of the seat to run at a preset speed for a preset time period if the spacing is less than or equal to a preset distance; A locking module, used for stopping the slide rail motor of the seat so that the tooth plate of the seat falls into the tooth window of the slide rail; The step of controlling the slide rail motor of the seat to run at a preset speed for a preset time period comprises: Reducing the duty cycle of the slide rail motor according to a preset ratio, wherein the preset ratio is a percentage of reduction of the duty cycle per unit time; When the duty cycle of the slide rail motor is reduced to a second duty cycle, controlling the slide rail motor to operate according to the second duty cycle within a preset time period, wherein the second duty cycle corresponds to the preset rate; The seat also includes a locking motor; Correspondingly, after stopping the slide rail motor of the seat so that the tooth plate of the seat falls into the tooth window of the slide rail, the method further includes: Controlling the locking motor according to the first Hall value so that the locking mechanism of the slide rail reaches a semi-locked state; Controlling the locking motor according to the second Hall value so that the locking mechanism of the slide rail changes from the semi-locked state to the fully locked state; After the locking mechanism of the slide rail is brought from the semi-locked state to the fully locked state, the method further comprises: Controlling the slide rail motor to run a preset retraction distance in the opposite direction of the sliding direction; The remaining distance between the seat and each of the tooth windows is obtained, the position information of the seat is determined according to the maximum distance of the remaining distances corresponding to each of the tooth windows, and the distance and direction to be adjusted are determined according to the position information in the position adjustment instruction.
7. 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 seat control method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Electric seat control device and method
CN110936857A