Automobile seat control method, system and device, storage medium and equipment
By adding sensors to the seat motion mechanism and combining Hall signal learning to effectively adjust the travel and reference Hall number, the output power of the seat motor is controlled, which solves the problem of motor damage caused by seat impact points and improves motor life and adjustment accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-09
- Publication Date
- 2026-03-31
AI Technical Summary
Existing car seat control methods are prone to damaging the internal mechanical structure of the motor, reducing its lifespan.
By adding sensors to the seat motion mechanism and combining the sensors with Hall signals, the system can learn to effectively adjust the Hall number range corresponding to the travel distance and the reference Hall number of the sensor position, thereby controlling the output power of the seat motor and preventing the seat from hitting the stop point.
It extends the lifespan of the motor, avoids mechanical damage caused by impact points, and improves the accuracy and stability of seat position adjustment.
Smart Images

Figure CN121756986A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive technology, and more specifically, to an automotive seat control method, system, device, storage medium, and equipment. Background Technology
[0002] As a crucial component of a vehicle, car seats are increasingly demanding in terms of comfort from passengers. To enhance passenger comfort, many cars are equipped with power seats. Power seats use electric motors to adjust various seat positions via transmission and actuators. To eliminate motor errors or positional shifts after long-term use, the seat controller needs to self-calibrate its position to ensure accurate positioning with each adjustment. Currently, seat controllers primarily use a method of impacting hard points on the seat for self-calibration. However, this impact process can easily damage the internal mechanical structure of the motor, thus reducing its lifespan. Summary of the Invention
[0003] The purpose of this application is to provide an automotive seat control method, system, device, storage medium, and equipment, aiming to solve the problem that seat position control methods in related technologies are prone to causing damage to the internal mechanical structure of the motor, thereby reducing the service life of the motor.
[0004] In a first aspect, this application provides a car seat control method, comprising: learning a Hall number range corresponding to an effective adjustment stroke and a reference Hall number corresponding to a sensor position based on Hall signals generated when the car seat is driven by a seat motor to move between a forward gear point and a reverse gear point, and an activation signal generated by a sensor when the car seat is detected passing by; the effective adjustment stroke is formed by reserving a gap between two gear points on the hard gear point stroke of the seat; the sensor is disposed on the effective adjustment stroke; when a user's instruction to adjust the car seat is received, the output power of the seat motor is controlled according to the actual Hall number and the Hall number range; if the activation signal of the sensor is detected, the actual Hall number is corrected according to the reference Hall number.
[0005] In the above implementation process, a sensor is added to the seat movement mechanism. When the seat moves past the sensor, the sensor transmits an activation signal to the seat controller. Based on the Hall signal generated by the seat motor and the activation signal generated by the sensor, the controller learns the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position. When a user's instruction to adjust the car seat is received, the controller controls the output power of the seat motor according to the learned Hall number range, ensuring that the seat position can only be adjusted within the effective adjustment stroke. Furthermore, during the adjustment process, upon detecting an activation signal, the controller updates the seat position information based on the learned reference Hall number, achieving position self-calibration. This avoids damage to the internal mechanical structure of the motor caused by seat impact points, thereby extending the motor's lifespan.
[0006] Furthermore, in some examples, the step of learning the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position based on the Hall signal generated when the seat motor drives the car seat to move between the front and rear points, and the activation signal generated by the sensor when it senses the car seat passing by, includes: controlling the car seat to move to the front point; when the seat motor stalls, controlling the car seat to move backward and recounting the Hall signal generated by the seat motor using a counter; when the activation signal generated by the sensor is detected, determining the current count value of the counter as the initial sensor position Hall number; controlling the seat motor to continue driving the car seat to move backward; when the seat motor stalls, determining the current count value of the counter as the actual full stroke Hall number; learning the Hall number range corresponding to the effective adjustment stroke based on the actual full stroke Hall number; and learning the reference Hall number corresponding to the sensor position based on the actual full stroke Hall number and the initial sensor position Hall number.
[0007] In the above implementation process, a specific method is provided for learning the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position.
[0008] Furthermore, in some examples, learning the Hall number interval corresponding to the effective adjustment stroke based on the actual full-stroke Hall number includes: comparing the actual full-stroke Hall number with the theoretical full-stroke Hall number, and obtaining a compensation Hall number based on the comparison result; determining the value obtained by adding the compensation Hall number to the theoretical reserved gap Hall number as the starting Hall number, and determining the value obtained by adding the theoretical Hall number corresponding to the effective adjustment stroke to the starting Hall number as the ending Hall number; and determining the starting Hall number and the ending Hall number as the left and right endpoints of the Hall number interval corresponding to the effective adjustment stroke, respectively.
[0009] In the above implementation process, the compensation Hall number is obtained by comparing the actual full-stroke Hall number with the theoretical full-stroke Hall number, thereby determining the Hall number range corresponding to the effective adjustment stroke. In this way, the stroke error problem caused by the seat frame can be solved, thereby improving the control accuracy of the seat position stroke.
[0010] Furthermore, in some examples, the sensor is positioned at the middle of the effective adjustment stroke; the step of learning the reference Hall number corresponding to the sensor position based on the actual full-stroke Hall number and the initial sensor position Hall number includes: comparing half of the actual full-stroke Hall number with the initial sensor position Hall number, and obtaining a corrected reference Hall number based on the comparison result; determining the value obtained by adding the initial Hall number, the corrected reference Hall number, and the theoretical intermediate Hall number as the reference Hall number corresponding to the sensor position; the theoretical intermediate Hall number is half of the theoretical Hall number corresponding to the effective adjustment stroke.
[0011] In the above implementation process, a corrected reference Hall number is obtained by comparing half of the actual full-stroke Hall number with the Hall number at the initial sensor position. This is used to determine the reference Hall number corresponding to the sensor position. In this way, the problem of sensor assembly position deviation can be solved, thereby improving the accuracy of seat position self-calibration.
[0012] Furthermore, in some examples, controlling the output power of the seat motor based on the actual Hall number and the Hall number range includes: when the car seat moves from back to front, subtracting the number of detected Hall signals from the current actual Hall number to obtain an updated actual Hall number; if the difference between the updated actual Hall number and the initial Hall number equals a target Hall threshold, reducing the output power of the seat motor to stop the car seat at the position corresponding to the initial Hall number; when the car seat moves from front to back, adding the number of detected Hall signals to the current actual Hall number to obtain an updated actual Hall number; if the difference between the termination Hall number and the updated actual Hall number equals the target Hall threshold, reducing the output power of the seat motor to stop the car seat at the position corresponding to the termination Hall number.
[0013] In the above implementation process, a specific method is provided to achieve precise control of the position and travel of the seat without the driver noticing.
[0014] Furthermore, in some examples, the step of correcting the actual Hall number based on the reference Hall number includes: if the absolute value of the difference between the reference Hall number and the actual Hall number is greater than a target threshold, correcting the actual Hall number to the reference Hall number.
[0015] In the above implementation process, when an activation signal is detected, the current actual Hall number and the reference Hall number are compared. If the absolute value of the difference between the two is greater than the target threshold, it indicates that there is a large deviation in the seat position information in the current software. Then, the reference Hall number is determined as the actual Hall number corresponding to the current seat position and written into the software to achieve self-calibration.
[0016] Secondly, this application provides an automotive seat control system, comprising: a seat motor for driving the movement of an automotive seat; a sensor for transmitting an activation signal to a seat controller when the automotive seat passes by; the sensor being disposed on an effective adjustment stroke, the effective adjustment stroke being formed by reserving a gap between two stops on the seat's hard stop stroke; the seat controller for learning a Hall number range corresponding to the effective adjustment stroke and a reference Hall number corresponding to the sensor position based on the Hall signal generated when the seat motor drives the automotive seat to move between a forward stop and a rear stop, and the activation signal; when receiving a user's instruction to adjust the automotive seat, controlling the output power of the seat motor according to the actual Hall number and the Hall number range; and if the activation signal of the sensor is detected, correcting the actual Hall number according to the reference Hall number.
[0017] Thirdly, this application provides an automotive seat control device, comprising: a learning module, configured to learn a Hall number range corresponding to an effective adjustment stroke and a reference Hall number corresponding to a sensor position based on Hall signals generated when the seat motor drives the automotive seat to move between a forward and a reverse point, and an activation signal generated by a sensor when it senses the passing of the automotive seat; the effective adjustment stroke is formed by reserving a gap between two stops on the seat's hard stop stroke; the sensor is disposed on the effective adjustment stroke; a control module, configured to control the output power of the seat motor according to the actual Hall number and the Hall number range when a user's instruction to adjust the automotive seat is received; and a correction module, configured to correct the actual Hall number according to the reference Hall number if the activation signal of the sensor is detected.
[0018] Fourthly, this application provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method described in any of the first aspects.
[0019] Fifthly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method as described in any of the first aspects.
[0020] Sixthly, this application provides a computer program product that, when run on a computer, causes the computer to perform the method described in any of the first aspects.
[0021] Other features and advantages disclosed in this application will be set forth in the following description, or some features and advantages may be inferred from the description or determined without doubt, or may be learned by practicing the above-described technology disclosed in this application.
[0022] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 A flowchart of an automotive seat control method provided in this application embodiment; Figure 2 A schematic diagram illustrating the travel design of seat adjustment in an automotive seat control system provided in this application embodiment; Figure 3 A schematic diagram illustrating the initial position reference establishment process of the seat controller in a scheme for determining the position of a car seat provided in an embodiment of this application; Figure 4 A schematic diagram of an automotive seat control system provided in an embodiment of this application; Figure 5 A block diagram of an automotive seat control device provided in an embodiment of this application; Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0026] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0027] Car seat comfort is a key concern for many consumers. Mid-to-high-end models on the market are generally equipped with power seats. Power seats use an electric motor to adjust the seat's fore-and-aft position, height, and backrest angle through a transmission and actuator, providing a comfortable seating experience for the driver or passenger. Precise control is required for car seat adjustments. Seat controllers, through self-calibration, can eliminate wear and tear on mechanical parts, motor errors, or positional shifts due to long-term use, ensuring accurate positioning with each adjustment. Currently, seat controllers primarily use a method of impacting a hard stop point on the seat for self-calibration. During self-calibration, the controller drives the motor to continuously move the seat in a certain direction until the seat mechanically collides with the hard stop point. At this point, the motor stalls due to the sudden increase in load. The controller identifies the impact event by monitoring changes in the motor's current signal. Upon detection, the controller marks the current position as an absolute reference point and updates the seat position information accordingly. However, because the motor output shaft is connected to the seat, the impact with the stop point can easily damage the internal mechanical structure of the motor, reducing its lifespan.
[0028] To address the aforementioned issues, this application provides an automotive seat control solution. A sensor is added to the seat's motion mechanism. When the seat moves past the sensor, the sensor transmits an activation signal to the seat controller. During seat position learning, based on the Hall effect signals generated by the seat motor and the activation signal from the sensor, the system learns the Hall effect range corresponding to the effective adjustment travel and the reference Hall effect value corresponding to the sensor position. In practical applications, the output power of the seat motor is controlled according to the learned Hall effect range, ensuring that the user can only adjust within the effective adjustment range. Furthermore, during adjustment, upon detecting the activation signal, the seat position information is updated based on the learned reference Hall effect value, achieving position self-calibration. This avoids damage to the internal mechanical structure of the motor caused by seat impact points, thereby extending the motor's lifespan.
[0029] The embodiments of this application will be described below: like Figure 1 As shown, Figure 1 This is a flowchart illustrating an automotive seat control method provided in an embodiment of this application. The method can be applied to a seat controller.
[0030] The method includes: Step 101: Based on the Hall signal generated when the seat motor drives the car seat to move between the forward and reverse points, and the activation signal generated by the sensor when it senses the car seat passing by, learn the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position; the effective adjustment stroke is formed by reserving two gaps between the two points on the hard point stroke of the seat; the sensor is set on the effective adjustment stroke. The car seat mentioned in this step is an electric seat. The seat motor is the core power component of the car seat, and its function is to convert electrical energy into mechanical energy to drive the seat to achieve multi-dimensional adjustment. This seat motor can be a Hall motor. Based on the Hall effect, the seat motor generates Hall signals during rotation. Each rotation of the motor's external shaft outputs a fixed number of Hall signals, while the seat moves a fixed distance. Therefore, the seat controller can deduce the seat position by counting the detected Hall signals and combining them with the initial position reference. The forward and rear stops mentioned in this step are two hard stops in one direction of seat movement. When the seat is adjusted to its limit position, the hard stops prevent further movement. In this embodiment, in addition to the hard stops, a sensor is also provided on the seat movement mechanism. The sensor is connected to the seat controller via a signal line. When the seat moves past the sensor, the sensor sends an activation signal to the seat controller. This sensor can be a Hall effect-based magnetic induction device or other types of sensors; this application does not limit its use.
[0031] This step is the initial position reference established by the seat controller, which can be triggered when the seat controller detects a learning command. In this embodiment, the travel design for seat adjustment in the automotive seat control system is as follows: Figure 2 As shown, during the learning process, the seat motor drives the car seat to move between the forward shift point 21 and the rear shift point 22. The seat controller learns the Hall number range corresponding to the effective adjustment travel and the reference Hall number corresponding to the sensor position based on the Hall signal generated by the seat motor and the activation signal generated by the sensor 23. In related technologies, the seat moves on the seat hard shift point travel 24, where the seat hard shift point is formed by the forward shift point 21 and the rear shift point 22 as endpoints. The effective adjustment travel 25 mentioned in this step is formed by reserving two shift point gaps on the seat hard shift point travel 24, namely the forward shift point gap 26 and the rear shift point gap 27. In this way, when the seat moves only on the effective adjustment travel, the seat will not hit the seat hard shift point. In the setting, the two shift point gaps can be the same distance.
[0032] In some embodiments, this step may include: controlling the car seat to move to the front gear position; when the seat motor stalls, controlling the car seat to move backward and recounting the Hall signals generated by the seat motor using a counter; when an activation signal generated by a sensor is detected, determining the current count value of the counter as the initial sensor position Hall count; controlling the seat motor to continue driving the car seat to move backward; when the seat motor stalls, determining the current count value of the counter as the actual full-stroke Hall count; learning the Hall count range corresponding to the effective adjustment stroke based on the actual full-stroke Hall count; and learning the reference Hall count corresponding to the sensor position based on the actual full-stroke Hall count and the initial sensor position Hall count. In other words, during the learning process, the seat first moves to the forward position. The seat controller collects the motor's current value. When the current value reaches a threshold, it initiates a forward position motor rotation check. If the motor does not rotate, it is marked as the forward position, and the motor drive is stopped. Then, the seat controller resets the counter used to count the Hall signals generated by the motor, starts moving backward, and starts counting again. When an activation signal is detected, the seat controller determines the current count value as the initial sensor position Hall count. The seat continues to move backward. When the motor's current value reaches a threshold, it initiates a rear position motor rotation check. If the motor does not rotate, it is marked as the rear position, and the current count value is determined as the actual full-stroke Hall count. In this way, the seat controller determines the Hall count range corresponding to the effective adjustment stroke and the reference Hall count corresponding to the sensor position based on the recorded initial sensor position Hall count and actual full-stroke Hall count, and saves them, thus completing the establishment of the initial position reference.
[0033] Furthermore, in some embodiments, the aforementioned method of learning the Hall number range corresponding to the effective adjustment stroke based on the actual full-stroke Hall number may include: comparing the actual full-stroke Hall number with the theoretical full-stroke Hall number, and obtaining a compensation Hall number based on the comparison result; determining the value obtained by adding the compensation Hall number to the theoretical reserved gap Hall number as the starting Hall number, and determining the value obtained by adding the theoretical Hall number corresponding to the effective adjustment stroke to the starting Hall number as the ending Hall number; and determining the starting Hall number and the ending Hall number as the left and right endpoints of the Hall number range corresponding to the effective adjustment stroke, respectively.
[0034] In other words, when establishing the Hall number range corresponding to the effective adjustment travel, since the effective adjustment travel is formed by reserving two stop gaps on the seat's hard stop travel, the total number of Hall signals generated by the seat motor driving the seat to move the distance corresponding to the front stop gap from the front stop can be obtained through experimental calibration or theoretical calculation. This is the theoretical reserved gap Hall number, and the theoretical Hall number corresponding to the effective adjustment travel can also be obtained. This allows us to determine the left and right endpoints of the Hall number range. Considering that there may be a deviation between the theoretical reserved gap Hall number and the actual Hall number corresponding to the stop gap, it can be corrected by compensating for the Hall number. In implementation, the learned actual full-travel Hall... The actual full-stroke Hall count is compared with the theoretical full-stroke Hall count. When the actual full-stroke Hall count is not equal to the theoretical full-stroke Hall count, it indicates that the theoretical reserved gap Hall count is inconsistent with the actual Hall count corresponding to the stop gap. In this case, the difference between the actual full-stroke Hall count and the theoretical full-stroke Hall count can be calculated, and half of this difference is determined as the compensation Hall count. When the actual full-stroke Hall count is equal to the theoretical full-stroke Hall count, it indicates that the theoretical reserved gap Hall count is consistent with the actual value, and the compensation Hall count is determined to be zero. Thus, the value obtained by adding the compensation Hall count to the theoretical reserved gap Hall count is determined as the starting Hall count, and the value obtained by adding the theoretical Hall count corresponding to the effective adjustment stroke to the starting Hall count is determined as the ending Hall count. For example, assuming the theoretical full-stroke Hall count is 800, the theoretical reserved gap Hall count is 50, and the theoretical Hall count corresponding to the effective adjustment stroke is 700, when the learned actual full-stroke Hall count is 804, the compensation Hall count is 2, the starting Hall count is 52, and the ending Hall count is 752, thus determining the Hall count range corresponding to the effective adjustment stroke. When the learned actual full-stroke Hall number is 796, the compensation Hall number is -2, the initial Hall number is 48, and the final Hall number is 748, thus determining the Hall number range corresponding to the effective adjustment stroke. Therefore, accurately learning the Hall number range corresponding to the effective adjustment travel helps improve the precision of seat position travel control.
[0035] Furthermore, in some embodiments, the sensor may be positioned at the middle of the effective adjustment stroke; accordingly, the aforementioned method of learning the reference Hall number corresponding to the sensor position based on the actual full-stroke Hall number and the initial sensor position Hall number may include: comparing half of the actual full-stroke Hall number with the initial sensor position Hall number, and obtaining a corrected reference Hall number based on the comparison result; determining the value obtained by adding the initial Hall number, the corrected reference Hall number, and the theoretical middle Hall number as the reference Hall number corresponding to the sensor position; the theoretical middle Hall number is half of the theoretical Hall number corresponding to the effective adjustment stroke.
[0036] In other words, when establishing the reference Hall number corresponding to the sensor position, half of the learned actual full-stroke Hall number can be compared with the initial sensor position Hall number. When the initial sensor position Hall number is greater than half of the actual full-stroke Hall number, it indicates that the sensor assembly is offset backward and the initial sensor position Hall number needs to be corrected forward. When the initial sensor position Hall number is less than half of the actual full-stroke Hall number, it indicates that the sensor assembly is offset forward and the initial sensor position Hall number needs to be corrected backward. When the initial sensor position Hall number is equal to half of the actual full-stroke Hall number, it indicates that the sensor assembly is centered and no correction is needed. Therefore, the difference between half of the actual full-stroke Hall number and the initial sensor position Hall number can be determined as the correction reference Hall number. In this way, by adding the initial Hall number, the correction reference Hall number, and half of the theoretical Hall number corresponding to the effective adjustment stroke, the reference Hall number corresponding to the sensor position can be obtained. For example, when the actual full-stroke Hall effect count is 796, the theoretical Hall effect count corresponding to the effective adjustment stroke is 700, the initial Hall effect count is 48, and the initial sensor position Hall effect count is 410, since half of the actual full-stroke Hall effect count is less than the initial sensor position Hall effect count, it indicates that the sensor assembly is offset backward. Therefore, the calculated correction reference Hall effect count is -12, thus determining the reference Hall effect count corresponding to the sensor position as 386. Accurately learning the reference Hall effect count corresponding to the sensor position helps improve the accuracy of seat position self-calibration.
[0037] Step 102: When a user's instruction to adjust the car seat is received, the output power of the seat motor is controlled according to the actual Hall effect count and the Hall effect count range; The actual Hall effect count mentioned in this step refers to the information used in the seat controller software to represent the seat position. After completing the initial position reference learning, when the system receives a user's instruction to adjust the car seat, the seat controller controls the output power of the seat motor based on the Hall effect count range corresponding to the learned effective adjustment travel, combined with the actual Hall effect count. This ensures that the user can only adjust within the Hall effect count range corresponding to the effective adjustment travel, preventing the seat from hitting the stop point. This extends the motor's lifespan and avoids seat vibration and noise caused by the seat hitting the stop point.
[0038] In some embodiments, controlling the output power of the seat motor based on the actual Hall number and the Hall number range mentioned in this step may include: when the car seat moves from back to front, subtracting the number of detected Hall signals from the current actual Hall number to obtain an updated actual Hall number; if the difference between the updated actual Hall number and the initial Hall number equals a target Hall threshold, reducing the output power of the seat motor to stop the car seat at the position corresponding to the initial Hall number; when the car seat moves from front to back, adding the number of detected Hall signals to the current actual Hall number to obtain an updated actual Hall number; if the difference between the termination Hall number and the updated actual Hall number equals a target Hall threshold, reducing the output power of the seat motor to stop the car seat at the position corresponding to the termination Hall number.
[0039] In other words, when the seat moves from back to front, the seat controller decrements the actual Hall count by 1 each time it detects a Hall signal. When the difference between the actual Hall count and the initial Hall count equals the target Hall threshold, it indicates that the seat position is approaching the position corresponding to the initial Hall count. At this point, the seat controller reduces the motor's output power, decelerates in advance, and finally stops forward at the position corresponding to the initial Hall count. Conversely, when the seat moves from front to back, the seat controller increments the actual Hall count by 1 each time it detects a Hall signal. When the difference between the final Hall count and the actual Hall count equals the target Hall threshold, it indicates that the seat position is approaching the position corresponding to the final Hall count. At this point, the seat controller reduces the motor's output power, decelerates in advance, and finally stops backward at the position corresponding to the final Hall count. This achieves precise position and travel control of the seat without the user noticing. The target Hall threshold can be the same as the theoretically reserved gap Hall count, such as 50, or it can be set differently according to the specific needs of the scenario; this application does not impose any restrictions on this.
[0040] Step 103: If the activation signal of the sensor is detected, the actual Hall number is corrected according to the reference Hall number.
[0041] In related technologies, seat controllers use seat impact with hard points to achieve position self-calibration, with each self-calibration equivalent to a seat learning process. However, in this embodiment, the seat controller only needs to perform one learning cycle. After learning, whenever an activation signal from a sensor is detected, the learned reference Hall effect value is used to update the seat position information in the software, achieving position self-calibration. This improves motor lifespan and effectively reduces the risk of position deviation.
[0042] In some embodiments, the step of correcting the actual Hall number based on the reference Hall number may include: if the absolute value of the difference between the reference Hall number and the actual Hall number is greater than a target threshold, the actual Hall number is corrected to the reference Hall number. That is, when the seat controller detects an activation signal, it compares the current actual Hall number with the reference Hall number. If the absolute value of the difference between the reference Hall number and the actual Hall number is greater than the target threshold, it indicates a significant deviation in the seat position information in the current software. The seat controller then determines the reference Hall number as the actual Hall number corresponding to the current seat position and writes it into the software, thereby achieving self-calibration. The target threshold can be 10, or it can be set differently according to the specific needs of the scenario; this application does not limit this.
[0043] In this embodiment, a sensor is added to the seat movement mechanism. When the seat moves past the sensor, the sensor transmits an activation signal to the seat controller. Based on the Hall signal generated by the seat motor and the activation signal generated by the sensor, the controller learns the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position. When a user's instruction to adjust the car seat is received, the controller controls the output power of the seat motor according to the learned Hall number range, ensuring that the seat position can only be adjusted within the effective adjustment stroke. Furthermore, during the adjustment process, upon detecting the activation signal, the controller updates the seat position information according to the learned reference Hall number, achieving position self-calibration. This avoids damage to the internal mechanical structure of the motor caused by seat impact points, thereby extending the motor's service life.
[0044] To provide a more detailed explanation of the solution in this application, a specific embodiment is described below: This embodiment provides a solution for determining the position of a car seat, which is applied to a seat controller. In this solution, a sensor is added to the seat movement mechanism. When the seat moves past the sensor, the sensor transmits an activation signal to the seat controller. After detecting the signal, the seat controller updates the seat position information in its software, thereby achieving precise position calibration and travel control of the seat without sensor input.
[0045] Specifically, the initial position reference establishment process for the seat controller is as follows: Figure 3 As shown, it includes: S301, Received seat diagnostic learning instruction; S302, Control the seat motor to drive the seat to the forward position; S303, Collect the motor current value; S304. Determine whether the current value has reached the threshold. If yes, execute S305; otherwise, return to S303. S305. Determine if the motor is rotating. If yes, execute S306; otherwise, return to S304. S306, calibrated to the forward position, stop the motor drive, wait 500ms, clear the stroke Hall count to zero, start the backward movement, and recount the Hall signals generated by the motor; S307. When an activation signal is detected, the current count value is determined as the initial sensor position Hall number; S308, Continue to control the seat motor to drive the seat to the rear position; S309. Collect the motor current value; S310. Determine whether the current value has reached the threshold. If yes, execute S311; otherwise, return to S309. S311. Determine if the motor is rotating. If yes, execute S312; otherwise, return to S310. S312, Calibrate to the rear gear point, and determine the current count value as the actual full-stroke Hall count; S313. Make a judgment based on the Hall number range of effective adjustment stroke and the Hall number of sensor intermediate reference position, and save the Hall number of effective adjustment start, Hall number of effective adjustment end and Hall number of sensor intermediate reference position. Specifically, the logic for establishing the effective adjustment stroke Hall number range of the seat controller is as follows: compare the actual full stroke Hall number and the theoretical full stroke Hall number in S312. If the two are not equal, then half of the difference between the actual full stroke Hall number and the theoretical full stroke Hall number is determined as the compensation Hall number. If the two are equal, then the compensation Hall number is determined to be 0. After that, the effective adjustment start Hall number = theoretical reserved gap Hall number + compensation Hall number is obtained, and the effective adjustment end Hall number = effective adjustment start Hall number + theoretical effective stroke Hall number. The logic for establishing the sensor intermediate reference position Hall number of the seat controller is as follows: compare half of the actual full travel Hall number in S312 with the initial sensor position Hall number in S307. If the two are not equal, the difference obtained by subtracting the initial sensor position Hall number from half of the actual full travel Hall number is determined as the correction reference Hall number. If the two are equal, the correction reference Hall number is determined to be 0. Then, the sensor intermediate reference position Hall number is obtained as: effective adjustment start Hall number + theoretical intermediate Hall number + correction reference Hall number, where the theoretical intermediate Hall number is half of the theoretical effective travel Hall number. S314, Control the motor to drive the seat forward, stop at the position corresponding to the effective adjustment termination Hall value, and report the current last signal.
[0046] After completing the learning process, when the system receives a user's instruction to adjust the seat, if the seat moves from back to front, the seat controller decrements the current actual Hall count by 1 for each Hall signal it recognizes. When the actual Hall count equals the effective adjustment start Hall count plus the target Hall threshold, the seat controller reduces the motor's output power, slows down and stops the motor in advance, so that the seat eventually stops forward at the position corresponding to the effective adjustment start Hall count. If the seat moves from front to back, the seat controller increments the current actual Hall count by 1 for each Hall signal it recognizes. When the actual Hall count equals the effective adjustment end Hall count minus the target Hall threshold, the seat controller reduces the motor's output power, slows down and stops the motor in advance, so that the seat eventually stops backward at the position corresponding to the effective adjustment end Hall count.
[0047] In addition, during seat movement, when an activation signal is detected, the seat controller compares the current actual Hall effect count with the Hall effect count at the sensor's intermediate reference position. When the absolute value of the difference between the two is greater than the target threshold, the actual sensor count is corrected to the Hall effect count at the sensor's intermediate reference position, thereby completing the position self-calibration.
[0048] This embodiment has at least the following advantages: the user can only adjust the seat position within the effective adjustment range, so the seat will not hit the stop point, thus avoiding the problem of the seat getting stuck after hitting the stop point, and eliminating vibration and noise issues, thereby improving the user experience and extending the lifespan of the motor; since the sensor position is fixed at the middle of the travel and the judgment is made by sensing, it will not be misjudged by foreign objects at the front and rear stop points, and the number of self-calibration triggers is increased, thereby reducing the risk of position deviation; furthermore, through the judgment logic, the travel error caused by the seat frame and the sensor assembly position deviation problem can be solved, improving control accuracy.
[0049] Corresponding to the embodiments of the aforementioned methods, this application also provides embodiments of an automotive seat control system, an automotive seat control device, and a terminal for the application thereof: like Figure 4 As shown, Figure 4 This is a schematic diagram of an automotive seat control system provided in an embodiment of this application. The system includes: Seat motor 41, used to drive the movement of the car seat; Sensor 42 is used to transmit an activation signal to seat controller 43 when the car seat passes by; the sensor 42 is disposed on the effective adjustment travel, which is formed by reserving a gap between two stops on the seat hard stop travel; The seat controller 43 is used to learn the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position based on the Hall signal generated when the seat motor 41 drives the car seat to move between the forward and reverse points, and the activation signal; when receiving a user's instruction to adjust the car seat, it controls the output power of the seat motor 41 according to the actual Hall number and the Hall number range; if the activation signal of the sensor 42 is detected, it corrects the actual Hall number according to the reference Hall number.
[0050] The implementation process of the above system is detailed in the corresponding steps of the above method, and will not be repeated here.
[0051] like Figure 5 As shown, Figure 5 This is a block diagram of an automotive seat control device provided in an embodiment of this application. The device includes: The learning module 51 is used to learn the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position based on the Hall signal generated when the seat motor drives the car seat to move between the forward and rear points, and the activation signal generated by the sensor when it senses the car seat passing by; the effective adjustment stroke is formed by reserving a gap between two points on the hard point stroke of the seat; the sensor is set on the effective adjustment stroke. Control module 52 is used to control the output power of the seat motor according to the actual Hall effect count and the Hall effect count range when it receives a user's instruction to adjust the car seat; The correction module 53 is used to correct the actual Hall number based on the reference Hall number if the activation signal of the sensor is detected.
[0052] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0053] This application also provides an electronic device, please refer to [link to application]. Figure 6 , Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of this application. The electronic device may include a processor 610, a communication interface 620, a memory 630, and at least one communication bus 640. The communication bus 640 is used to enable direct communication between these components. In this embodiment, the communication interface 620 of the electronic device is used for signaling or data communication with other node devices. The processor 610 may be an integrated circuit chip with signal processing capabilities.
[0054] The processor 610 described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor, or the processor 610 can be any conventional processor.
[0055] The memory 630 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc. The memory 630 stores computer-readable instructions. When these computer-readable instructions are executed by the processor 610, the electronic device can perform the aforementioned operations. Figure 1 The various steps involved in the method implementation examples.
[0056] Alternatively, the electronic device may also include a storage controller and an input / output unit.
[0057] The memory 630, storage controller, processor 610, peripheral interface, and input / output unit are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses 640. The processor 610 is used to execute executable modules stored in the memory 630, such as software function modules or computer programs included in electronic devices.
[0058] The input / output unit is used to provide users with the ability to create tasks and to set optional start periods or preset execution times for those tasks, thereby enabling user-server interaction. The input / output unit may be, but is not limited to, a mouse and keyboard.
[0059] Understandable. Figure 6 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown. Figure 6 The components shown can be implemented using hardware, software, or a combination thereof.
[0060] This application also provides a storage medium storing instructions. When the instructions are run on a computer, the computer program is executed by a processor to implement the method described in the method embodiment. To avoid repetition, the method will not be described again here.
[0061] This application also provides a computer program product that, when run on a computer, causes the computer to perform the method described in the method embodiment.
[0062] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0063] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0064] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0065] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0066] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0067] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for controlling a car seat, characterized in that, include: Based on the Hall signal generated when the seat motor drives the car seat to move between the forward and reverse points, and the activation signal generated by the sensor when it senses the car seat passing by, the system learns the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position; the effective adjustment stroke is formed by reserving a gap between two points on the hard point travel of the seat; the sensor is set on the effective adjustment stroke; When a user's instruction to adjust the car seat is received, the output power of the seat motor is controlled according to the actual Hall effect count and the Hall effect count range; If the activation signal of the sensor is detected, the actual Hall number is corrected according to the reference Hall number.
2. The method according to claim 1, characterized in that, The method of learning to effectively adjust the Hall number range corresponding to the travel distance and the reference Hall number corresponding to the sensor position based on the Hall signal generated when the seat motor drives the car seat to move between the forward and reverse points, and the activation signal generated by the sensor when it senses the car seat passing by, includes: The system controls the car seat to move to the forward position. When the seat motor stalls, the system controls the car seat to move backward and uses a counter to recount the Hall signals generated by the seat motor. When the activation signal generated by the sensor is detected, the current count value of the counter is determined as the initial sensor position Hall number; The seat motor is controlled to continue driving the car seat to move backward. When the seat motor stalls, the current count value of the counter is determined as the actual full-stroke Hall effect count. Based on the actual full-stroke Hall number, learn the Hall number range corresponding to the effective adjustment stroke; based on the actual full-stroke Hall number and the initial sensor position Hall number, learn the reference Hall number corresponding to the sensor position.
3. The method according to claim 2, characterized in that, The step of learning the effective adjustment range of the Hall number corresponding to the actual full stroke based on the Hall number includes: By comparing the actual full-stroke Hall number with the theoretical full-stroke Hall number, the compensation Hall number is obtained based on the comparison results. The value obtained by adding the theoretical reserved gap Hall number to the compensation Hall number is determined as the starting Hall number, and the value obtained by adding the starting Hall number to the theoretical Hall number corresponding to the effective adjustment stroke is determined as the ending Hall number; The starting Hall number and the ending Hall number are respectively determined as the left and right endpoints of the Hall number interval corresponding to the effective adjustment stroke.
4. The method according to claim 3, characterized in that, The sensor is positioned at the middle of the effective adjustment stroke; the step of learning the reference Hall number corresponding to the sensor position based on the actual full stroke Hall number and the initial sensor position Hall number includes: By comparing half of the actual full-stroke Hall number with the Hall number at the initial sensor position, a corrected reference Hall number is obtained based on the comparison result; The value obtained by adding the initial Hall number, the corrected reference Hall number, and the theoretical intermediate Hall number is determined as the reference Hall number corresponding to the sensor position; the theoretical intermediate Hall number is half of the theoretical Hall number corresponding to the effective adjustment stroke.
5. The method according to claim 3, characterized in that, The method of controlling the output power of the seat motor based on the actual Hall effect count and the Hall effect count range includes: When the car seat moves from back to front, the number of detected Hall signals is subtracted from the current actual Hall number to obtain the updated actual Hall number. If the difference between the updated actual Hall number and the initial Hall number is equal to the target Hall threshold, the output power of the seat motor is reduced so that the car seat stops at the position corresponding to the initial Hall number. When the car seat moves from front to back, the number of identified Hall signals is added to the current actual Hall number to obtain an updated actual Hall number. If the difference between the termination Hall number and the updated actual Hall number equals the target Hall threshold, the output power of the seat motor is reduced so that the car seat stops at the position corresponding to the termination Hall number.
6. The method according to claim 4, characterized in that, The step of correcting the actual Hall number based on the reference Hall number includes: If the absolute value of the difference between the reference Hall number and the actual Hall number is greater than the target threshold, the actual Hall number is corrected to the reference Hall number.
7. A car seat control system, characterized in that, include: Seat motor, used to drive the movement of car seats; A sensor is used to transmit an activation signal to the seat controller when the car seat passes by; The sensor is positioned on the effective adjustment travel, which is formed by reserving a gap between two stops on the seat's hard stop travel. The seat controller is used to learn the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position based on the Hall signal generated when the seat motor drives the car seat to move between the forward and reverse points, and the activation signal; when it receives a user's instruction to adjust the car seat, it controls the output power of the seat motor according to the actual Hall number and the Hall number range. If the activation signal of the sensor is detected, the actual Hall number is corrected according to the reference Hall number.
8. A car seat control device, characterized in that, include: The learning module is used to learn the Hall number range corresponding to the effective adjustment stroke and the reference Hall number corresponding to the sensor position based on the Hall signal generated when the seat motor drives the car seat to move between the forward and reverse points, and the activation signal generated by the sensor when it senses the car seat passing by; the effective adjustment stroke is formed by reserving a gap between two points on the hard point stroke of the seat; the sensor is set on the effective adjustment stroke. The control module is used to control the output power of the seat motor based on the actual Hall effect count and the Hall effect count range when it receives a user's instruction to adjust the car seat. The correction module is used to correct the actual Hall number based on the reference Hall number if an activation signal of the sensor is detected.
9. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method as described in any one of claims 1 to 7.
10. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method as described in any one of claims 1 to 7.