Control method, control device, electronic device, and vehicle for seat
By determining the current actual position of the seat and the target rotation count, the seat motor is driven to the target rotation count, which solves the problem of inconsistent position during one-button zero-gravity posture switching of the zero-gravity seat, improving the accuracy of seat control and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREAT WALL MOTOR CO LTD
- Filing Date
- 2025-08-22
- Publication Date
- 2026-07-24
AI Technical Summary
During the one-click zero-gravity posture switching process of the vehicle's zero-gravity seat, the actual position of the seat does not match the theoretical position, resulting in a reduced user experience.
By determining the current counting position of the seat and determining the target rotation count based on the current actual position and the target end position, the seat motor is driven to rotate to the target rotation count, ensuring that the seat is accurately adjusted to the target end position.
It improves the accuracy of one-button seat control and enhances the user experience.
Smart Images

Figure CN120863429B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle seat control technology, and more particularly to a seat control method, control device, electronic device, and vehicle. Background Technology
[0002] Zero-gravity seats in vehicles are an ergonomically designed technology intended to simulate the "zero-gravity" state in space. By optimizing seat angles and support distribution, they aim to minimize passenger body pressure and improve comfort. However, in practice, during the one-button zero-gravity posture switching process, the actual position the seat reaches often differs from its theoretically expected position, significantly reducing the user experience. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide a method for controlling a seat, a control device, an electronic device, and a vehicle.
[0004] To achieve the above objectives, the first aspect of this application provides a method for controlling a seat, comprising: In response to receiving a one-button control command for the seat, determine the current counting position of the seat and determine the current actual position of the seat based on the current counting position; The target rotation count is determined based on the current actual position and the target termination position, and the target termination position corresponds to the one-button control command for the seat. Drive the seat motor to rotate until the rotation Hall effect count corresponding to the seat motor reaches the target rotation count, then stop driving the seat motor.
[0005] Optionally, determining the current count position of the seat and determining the current actual position of the seat based on the current count position includes: Obtain the current Hall count of the Hall pulses generated by the Hall sensor of the seat motor; The current Hall count is corrected to determine the actual Hall count; The current actual position of the seat is determined based on the actual Hall effect count.
[0006] Optionally, correcting the current Hall count to determine the actual Hall count includes: The current counting position of the seat is determined based on the current Hall count; In response to the current counting position being located between a preset soft stop point and a preset hard stop point, each Hall cycle of the Hall pulse generated by the Hall sensor of the seat motor within a target time range is acquired, wherein the target time range is the time range from the preset soft stop point to the current counting position of the seat. The first invalid Hall cycle is determined from all the Hall cycles in chronological order. All Hall cycles that are within the target time range and precede the first invalid Hall cycle are determined as valid Hall cycles; The actual Hall count is determined based on the effective Hall period.
[0007] Optionally, determining the actual Hall count based on the effective Hall period includes: Determine the base Hall count of the Hall pulses generated by the Hall sensor of the seat motor when the seat reaches the preset soft stop point; The total number of all effective Hall cycles is determined as the additional Hall count.
[0008] Optionally, determining the first invalid Hall cycle from all the Hall cycles in chronological order includes: Each Hall period is compared sequentially with the standard Hall period; In response to a Hall period being greater than or equal to the standard Hall period, the previous Hall period of that Hall period is determined; If the absolute value of the period difference between the current Hall period and the previous Hall period is greater than the standard period difference, the current Hall period is determined to be the first invalid Hall period.
[0009] Optionally, determining the first invalid Hall cycle from all the Hall cycles in chronological order includes: Each Hall period is compared sequentially with the standard Hall period; In response to a Hall period being less than the standard Hall period, the Hall period is determined to be the first invalid Hall period.
[0010] Optionally, the method further includes: Drive the seat motor to rotate until the motor stalls, and acquire all Hall cycles of the regular Hall pulses generated by the Hall sensor of the seat motor before stalling; Determine the maximum and minimum periods among all the stated Hall periods; The minimum period is defined as the standard Hall period, and the difference between the maximum period and the minimum period is defined as the standard period difference.
[0011] Based on the same inventive concept, a second aspect of this application provides a control device for a seat, comprising: The position determination module is configured to, in response to receiving a one-button control command for the seat, determine the current count position of the seat and determine the current actual position of the seat based on the current count position; The counting determination module is configured to determine the target rotation count based on the current actual position and the target termination position, wherein the target termination position corresponds to the one-button control command of the seat. The execution module is configured to drive the seat motor to rotate until the rotation Hall effect count corresponding to the seat motor reaches the target rotation count, and then stop driving the seat motor.
[0012] Based on the same inventive concept, a third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the method as described in any of the first aspects above.
[0013] Based on the same inventive concept, a fourth aspect of this application provides a vehicle that includes the electronic equipment described in the second aspect above.
[0014] As can be seen from the above, the seat control method, control device, electronic device, and vehicle provided in this application, when receiving a one-button control command for the seat, determine the current counting position of the seat and the current actual position of the seat based on the current counting position. Based on the current actual position and the target termination position, a target rotation count is determined, and then the seat motor is driven to rotate until the rotation Hall count corresponding to the seat motor reaches the target rotation count. At this point, driving the seat motor stops. Thus, the actual number of rotations of the seat motor is determined based on the target rotation count, that is, based on the current actual position and the target termination position of the seat. Therefore, when the rotation Hall count corresponding to the seat motor reaches the target rotation count, it ensures that the seat can be adjusted from the current actual position to the target termination position, thereby ensuring that the seat position can be adjusted to the target termination position corresponding to the one-button control command for the seat, improving the accuracy of the one-button control of the seat, and thus enhancing the user experience. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the seat in a zero-gravity posture when pressed with a single button. Figure 2 This is a schematic diagram of the seat in its reset position. Figure 3 A schematic diagram of a normal, regular Hall pulse; Figure 4 A schematic diagram of irregular Hall pulses; Figure 5 This is a flowchart illustrating the seat control method according to an embodiment of this application; Figure 6 This is an exemplary schematic diagram of the seat control method according to an embodiment of this application; Figure 7 This is a schematic diagram of the control device for the seat according to an embodiment of this application; Figure 8 This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0018] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0019] Zero-gravity seats in vehicles are an ergonomically designed seating technology that simulates the "zero-gravity" state of space. By optimizing seat angles and support distribution, it minimizes passenger body pressure and enhances seating comfort. Its core principles and features are as follows: 1. Design principle: Drawing inspiration from the natural posture of astronauts in the microgravity environment of space (such as the "neutral posture" with the legs slightly higher than the heart), reducing pressure on the spine and joints.
[0020] 2. From a scientific perspective: The seat back should usually be adjusted to 120°~130° (traditional seats are about 100°~110°), and the leg rest should be raised so that the knees are slightly higher than the heart, which promotes blood circulation.
[0021] 3. Core Functions: Multi-directional adjustment: Supports coordinated adjustment of the backrest, seat cushion, and leg rest to create a semi-reclining posture.
[0022] Pressure Dispersion: By using materials that conform to the body's curves (such as memory foam and highly elastic foam), body weight is evenly distributed, reducing pressure on the lower back and hips. Additional features: Some models integrate massage, ventilation / heating, and even link with the car audio and fragrance systems to create an immersive relaxation experience.
[0023] 4. Significant advantages: Comfort: Significantly reduces fatigue on long journeys, making it especially suitable for business or family travel.
[0024] Health benefits: Improves blood circulation and reduces pressure on the lumbar intervertebral discs (medical research shows it can reduce spinal load by 30%).
[0025] The zero-gravity seat features a "one-button zero-gravity" function. This function automatically adjusts the seat to a preset position close to "zero gravity" or returns it to its original state with a single button operation, simulating the relaxed posture of an astronaut in a zero-gravity environment to maximize the distribution of body pressure and improve seating comfort.
[0026] Therefore, zero-gravity seats typically have two postures: 1. Zero-gravity attitude (e.g.) Figure 1 (As shown) The seat uses an electric adjustment mechanism (such as a motor or air pump) to tilt the backrest backward (usually 120°~130°), raise the front of the seat cushion, and unfold the leg support (i.e., leg rest). This achieves a zero-gravity posture, allowing the occupant's knees to be slightly higher than their heart, with the body in a natural floating position. This posture reduces pressure on the spine and joints and improves blood circulation.
[0027] 2. One-click reset posture (e.g.) Figure 2 (As shown) In a zero-gravity state, the seat uses an electric adjustment mechanism (such as a motor or air pump) to move the backrest forward, press down the front of the seat cushion, and retract the leg support, thus achieving a one-button reset of the zero-gravity seat to the target initial position.
[0028] When the user controls the zero-gravity seat to switch between zero-gravity and one-button reset postures, it is necessary to control the various seat motors to work together to adjust the position of the backrest, seat cushion, and leg rest. The seat motors include at least a backrest motor, a seat cushion tilt motor, and a leg rest motor. After the user presses the control button, the seat controller drives multiple seat motors to work together according to a preset program, automatically completing the angle adjustment without the need for manual step-by-step operation.
[0029] When controlling the seat motor, the Hall sensor connected to the seat motor feeds back Hall pulses to the controller in real time. The controller counts the received Hall pulses and uses this count to determine the current position of the seat (including backrest position, seat cushion position, and leg rest position). Then, based on the determined current seat position, it judges in real time whether the seat position has reached the target termination position. If the target termination position is reached, the drive motor is stopped. Therefore, the Hall pulses fed back by the Hall sensor and the accurate counting based on the Hall pulses are essential in controlling the zero-gravity seat to switch between zero-gravity posture and one-button reset posture.
[0030] However, during the actual one-button zero-gravity posture switching process of the driving seat, the actual position reached by the seat is often inconsistent with the theoretically expected position, which greatly reduces the user experience.
[0031] The inventors discovered that the reason for this situation is that before the one-key zero-gravity attitude switching is executed, due to inertia and the non-locking nature of the seat motor, the seat controller's counting of the pulse signals generated by the Hall sensor of the seat motor is inaccurate. This leads to an inaccurate seat position being determined based on the inaccurate Hall count, and the one-key zero-gravity attitude switching is based on this inaccurate seat position, ultimately resulting in the inability to switch to the target position.
[0032] For example, before performing the one-button zero-gravity posture switch, the user may have already performed operations such as moving the seat forward, backward, or adjusting the backrest angle (hard key operations, not one-button zero-gravity operations). Taking controlling the seat to move forward as an example, after the seat controller stops driving the seat motor and thus stops driving the seat to move, the seat will continue to move forward due to inertia. At the same time, due to the continued movement of the seat and the non-self-locking nature of the motor, the seat motor will also continue to rotate. In special cases, such as when the seat encounters a hard stop point and is forcibly stopped, the seat motor will still rotate due to the non-self-locking nature of the motor. That is to say, even if the seat controller stops driving the seat motor, the seat controller will still continue to receive Hall pulses generated by the Hall sensor of the seat motor and count them based on the received Hall pulses to determine the current position of the seat.
[0033] However, the pulse signal from the Hall sensor at this time is generated by the seat motor rotating due to interference from non-locking and hard stop points, rather than by the regular rotation of the seat motor (the pulse signal generated by the regular rotation of the seat motor is as follows). Figure 3 As shown), this results in a highly irregular pulse signal (see...). Figure 4As shown in the figure, the pulse count determined by the seat controller based on the irregular pulse signal is inaccurate, which leads to an inaccurate determination of the current position of the seat based on the inaccurate pulse count, and thus a deviation between the determined current position and the actual position of the seat.
[0034] When switching to zero-gravity posture with one click, the seat controller will adjust the seat position based on the inaccurate current position, which will eventually cause the adjusted position to deviate from the target position, making it impossible to accurately switch the seat position to the target position.
[0035] Therefore, accurately determining the seat position before performing one-button zero-gravity posture switching to ensure accurate execution of one-button control is an urgent problem to be solved.
[0036] Based on this, see Figure 5 This application provides a method for controlling a seat, executed by a seat controller, the method specifically including: Step S100: In response to receiving a one-button control command for the seat, determine the current counting position of the seat and determine the current actual position of the seat based on the current counting position; Step S200: Determine the target rotation count based on the current actual position and the target termination position, wherein the target termination position corresponds to the one-button control command of the seat; Step S300: Drive the seat motor to rotate until the rotation Hall count corresponding to the seat motor reaches the target rotation count, then stop driving the seat motor.
[0037] Specifically, when a user wants to switch to a zero-gravity posture with a single touch, they will press or touch the button to issue a one-touch control command for the seat. Depending on the target termination position, the one-touch control command can be a one-touch reset command or a one-touch zero-gravity command. The one-touch reset command refers to adjusting the seat to a position such as... Figure 2 The reset posture shown is such that the target termination position corresponding to the one-key reset command is as follows. Figure 2 The reset posture shown is the current position. The one-button zero-gravity command refers to adjusting the seat to the position shown. Figure 1 The zero-gravity posture shown indicates that the target termination position corresponding to the one-click zero-gravity command is as follows. Figure 1 The position of the zero-gravity attitude shown.
[0038] Upon receiving a one-button control command for the seat from the user, the current counting position of the seat is first determined. The current counting position is the seat position determined by the current Hall count based on the Hall pulses emitted by the Hall sensor of the seat motor.
[0039] As mentioned earlier, due to seat inertia and the fact that the seat motor is not self-locking, the current Hall effect count may be inaccurate. Therefore, the current counting position of the seat determined based on the current Hall effect count is also inaccurate, and the current counting position will deviate from the current actual position of the seat.
[0040] Therefore, the current actual position of the seat is determined based on the current counting position, and the current actual position is the precise position where the seat is currently located.
[0041] Then, a target rotation count is determined based on the current actual position and the target termination position. The target termination position corresponds to the one-button control command of the seat. The target rotation count is the Hall count value of the Hall signal generated by the pulse sensor of the corresponding seat motor when the seat moves from the current actual position to the target termination position. That is, when the Hall count value of the Hall signal generated by the pulse sensor of the seat motor reaches the target rotation count, the seat motor can just move the seat from the current actual position to the target termination position.
[0042] After determining the target rotation count, the seat motor is driven to rotate until the rotation Hall count corresponding to the seat motor reaches the target rotation count. The rotation Hall count is the count value of the Hall pulse generated by the seat motor in this rotation. When the rotation Hall count corresponding to the seat motor reaches the target rotation count, the seat motor can move the seat from the current actual position to the target termination position, thereby ensuring that the seat position can be adjusted to the target termination position corresponding to the seat one-button control command.
[0043] For example, the one-button control command for the seat is a one-button reset command, and the target termination position corresponding to the one-button reset command is as follows: Figure 2 The position of the reset posture shown.
[0044] See Figure 6 As shown, when the seat controller receives the one-button control command for the seat, it determines the current counting position of the seat (e.g., A) based on the current Hall pulse count generated by the Hall sensor of the seat motor, and then determines the current actual position of the seat (e.g., B) based on the current counting position.
[0045] Then, based on the current actual position (e.g., B) and the target termination position (i.e., the position of the reset posture, e.g., C), the accurate target rotation count can be determined.
[0046] Finally, drive the seat motor to rotate until the rotation Hall count corresponding to the seat motor reaches the target rotation count, then stop driving the seat motor. This ensures that the seat can be adjusted from the current actual position (e.g., B) to the target termination position (e.g., C).
[0047] However, if the method described in this application is not used to determine the current actual position of the seat (e.g., B) based on the current counting position (e.g., A), and then to determine the target rotation count based on the current actual position, but instead the one-button control command for the seat is executed directly based on the current counting position (e.g., A), then the rotation count is determined based on the current counting position (e.g., A) and the target termination position (i.e., the position of the reset posture, e.g., C), and then the drive motor rotates until the Hall count reaches that rotation count and then stops. At this point, the seat position is presumably adjusted to the target termination position.
[0048] However, when the drive motor rotates to the Hall effect count, it adjusts the seat position from the current count position (e.g., A) to the target termination position (i.e., the position of the reset posture, e.g., C). But the actual position of the seat is not at the current count position. Therefore, the final termination position after seat adjustment can only reach... Figure 6 The position shown in C′ cannot reach the target termination position C (because the Hall count of the seat motor rotation is the rotation count, which is a fixed value).
[0049] Therefore, in this application, only by determining the current actual position of the seat, determining the target rotation count based on the current actual position and the target termination position, and rotating the seat motor until the corresponding rotation Hall count reaches the target rotation count, can it be ensured that the seat can be adjusted from the current actual position to the target termination position.
[0050] It is worth noting that, Figure 6 This is merely an illustrative example to explain the entire process, showing the current counting position A, the current actual position B, the target termination position C, and the rotation count and target rotation count. No limitations are intended for the current counting position, the current actual position, and the target termination position. In fact, the rotation count and target rotation count are specific count values obtained by counting the Hall pulses generated by the Hall sensor of the seat motor; they do not represent distance. Different Hall count values represent different numbers of rotations of the seat motor.
[0051] Furthermore, during the one-button zero-gravity posture switching process, at least one of the following needs to be adjusted: the position of the backrest, seat cushion, and leg rest, as well as the fore-and-aft position of the seat. Therefore, at least one of the following motors—the backrest motor, the seat cushion tilt motor, the leg rest motor, and the seat slide rail motor—is required to drive the seat. Thus, the drive motor in this application can be at least one of the following: the backrest motor, the seat cushion tilt motor, and the leg rest motor; it can also be a seat slide rail motor that drives the seat to move forward and backward.
[0052] In this application, when a one-button control command for the seat is received, the current counting position of the seat is determined, and the current actual position of the seat is determined based on the current counting position. A target rotation count is determined based on the current actual position and the target termination position. Then, the seat motor is driven to rotate until the rotation Hall count corresponding to the seat motor reaches the target rotation count. At this point, driving the seat motor stops. Thus, the actual number of rotations of the seat motor is determined based on the target rotation count, that is, based on the current actual position and the target termination position of the seat. In this way, when the rotation Hall count corresponding to the seat motor reaches the target rotation count, it is ensured that the seat can be adjusted from the current actual position to the target termination position, thereby ensuring that the seat position can be adjusted to the target termination position corresponding to the one-button control command for the seat, improving the accuracy of the one-button control of the seat, and thus enhancing the user experience.
[0053] In some embodiments, determining the current count position of the seat and determining the current actual position of the seat based on the current count position includes: Obtain the current Hall count of the Hall pulses generated by the Hall sensor of the seat motor; The current Hall count is corrected to determine the actual Hall count; The current actual position of the seat is determined based on the actual Hall effect count.
[0054] Specifically, the current Hall count of the Hall pulses generated by the Hall sensor of the seat motor is first obtained, and the current counting position of the seat is determined based on the current Hall count. The seat position is determined by the seat controller based on a preset counting position rule. This preset counting position rule is a set of rules for determining the Hall count and the seat position, which is related to the attributes of the seat motor, such as the transmission ratio and number of stages. For a specific seat motor, the preset counting position rule is also fixed.
[0055] After determining the current Hall count, the current Hall count is corrected to eliminate the influence of inaccurate Hall counts caused by irregular Hall pulses generated by the unnecessary rotation of the seat motor due to non-self-locking. In this way, the accurate actual Hall count is finally determined. The current actual position of the seat determined based on the actual Hall count is the accurate current actual position of the seat. The seat is adjusted based on the accurate current actual position to ensure that the seat can be adjusted to the target end position.
[0056] In this application, the current Hall count is first corrected to determine the actual Hall count, so that the determined actual Hall count eliminates the influence of irregular Hall pulses, thereby ensuring that the current actual position of the seat determined based on the actual Hall count is the accurate current actual position of the seat, thus ensuring that the seat can be adjusted to the target end position based on the accurate current actual position.
[0057] For seat controllers, when controlling seat movement, there is a preset soft stop point and a preset hard stop point. The preset hard stop point is a mechanical stop point. When the seat reaches the preset hard stop point, it will be mechanically stopped, preventing the seat from moving forward. Typically, to avoid frequent hard stops that could damage the seat, a preset soft stop point is set. When the seat reaches this soft stop point, regardless of whether the user releases the seat control button, the seat controller will automatically stop driving the seat to avoid being hard-stopped by the preset hard stop point. (Note that this applies to hard button control of the seat, not to one-button zero-gravity control, because the target termination position of one-button zero-gravity control is theoretically fixed and not controlled by the user's stop command.)
[0058] Therefore, for the current counting position of the seat, there are two possible situations: First, the current counting position is located between the preset soft stop point and the preset hard stop point; second, the current counting position is located before the preset soft stop point.
[0059] If the current counting position is before the preset soft stop point, since the current counting position has not yet reached the soft stop point, there will be no situation where the seat is hard stopped by the hard stop point and cannot continue to move, while the seat motor continues to rotate due to non-self-locking.
[0060] Therefore, the time it takes for the seat to move due to inertia after the seat controller stops driving the seat, and the continued rotation of the seat motor due to the non-self-locking mechanism, can both be calibrated through real-vehicle testing. For each vehicle, a calibration time is calibrated based on the seat's inertial movement and the seat motor's continued rotation during real-vehicle testing and stored in the seat controller. When the time it takes for the seat controller to stop driving the seat reaches this calibration time, the seat stops moving, and the seat motor also stops rotating. Therefore, in this case, the seat controller has already adjusted the current Hall effect count based on the calibration time, so that the final current count position is the actual position of the seat. Thus, there is no need to re-determine the current actual position of the seat in this situation.
[0061] For example, assume the calibration time is Hms. When the seat controller stops controlling the seat, the Hall count of the Hall pulses generated by the Hall sensor of the seat motor is X1. Then, for the Hall controller, the final determined current Hall count is X1 + H / n, where n is the standard Hall period of the Hall pulses generated by the Hall sensor of the Hall motor (the unit is consistent with the unit of the calibration time). The determination of the standard Hall period is detailed below.
[0062] Since the current Hall count is already the Hall count adjusted by the seat controller based on the calibration time, it is an accurate count. The current count position of the seat determined based on this current Hall count is also the accurate actual position of the seat. Therefore, in this case, there is no need to continue to determine the actual position of the seat.
[0063] When the current counting position is between the preset soft stop point and the preset hard stop point, the current counting position has already exceeded the soft stop point. Therefore, if the seat continues to move due to inertia, it is very likely that it will be hard stopped by the hard stop point, preventing the seat from continuing to move in the current direction. Alternatively, it may be affected by the reaction force of the hard stop point, causing the seat to move in the opposite direction. However, due to its non-locking nature and the hard obstruction of the hard stop point, the seat motor will continue to rotate in the same direction. In this case, there will be situations where the seat is stopped by the hard stop point but the seat motor continues to rotate, or situations where the seat is stopped by the hard stop point and moves in the opposite direction but the seat motor continues to rotate in the same direction. These situations are very random and not fixed. Therefore, the seat controller cannot calibrate for these situations, nor can it adjust the Hall count based on these situations. As a result, the current Hall count obtained in this case is inconsistent with the seat position, causing the current counting position of the seat to be inconsistent with the current actual position of the seat. Therefore, in this case, it is necessary to continue to determine the current actual position of the seat.
[0064] Based on this, in some embodiments, determining the actual Hall count based on the current counting position includes: The current counting position of the seat is determined based on the current Hall count; In response to the current counting position being located between a preset soft stop point and a preset hard stop point, each Hall cycle of the Hall pulse generated by the Hall sensor of the seat motor within a target time range is acquired, wherein the target time range is the time range from the preset soft stop point to the current counting position of the seat. The first invalid Hall cycle is determined from all the Hall cycles in chronological order. All Hall cycles that are within the target time range and precede the first invalid Hall cycle are determined as valid Hall cycles; The actual Hall count is determined based on the effective Hall period.
[0065] Specifically, when it is determined that the current counting position is between the preset soft stop point and the preset hard stop point, it is necessary to redetermine the current actual position of the seat, which requires redetermining the accurate actual Hall count.
[0066] Current seat motors determine Hall pulse counts based on counting the rising and falling edges of the Hall pulses; for example, one rising edge represents one count, and one falling edge also represents one count. This counting method is accurate for regular pulse waves. See also Figure 3 As shown, the rising edge refers to the transition edge of the Hall pulse from low level to high level, which is the vertical line between low level and high level in the figure. The falling edge refers to the transition edge of the Hall pulse from high level to low level, which is the vertical line between high level and low level in the figure.
[0067] However, as mentioned earlier, when the seat motor rotates due to the effects of non-self-locking and hard stop points, the Hall pulses it generates are as follows: Figure 4 The irregular pulses shown indicate that if the Hall count is determined using the existing counting method (i.e., one rising edge represents one count, and one falling edge also represents one count), it will be very inaccurate. This is why the current Hall count is inaccurate in this case.
[0068] Therefore, this application proposes a novel method for counting Hall pulses.
[0069] Acquire each Hall cycle of the Hall pulses generated by the Hall sensor of the seat motor within a target time range, where the target time range is the time range from the seat from a preset soft stop point to the current counting position. A Hall cycle refers to the duration of either a low-level or high-level signal within the Hall pulse.
[0070] When the seat reaches the preset soft stop point, the Hall pulse generated by the Hall sensor of the seat motor is used to determine the basic Hall count. Since the seat has just reached the preset soft stop point and has not been affected by the preset hard stop point, the basic Hall count at this time is consistent with the actual position of the seat, i.e., the preset soft stop point. Therefore, the basic Hall count is accurate.
[0071] After the preset soft stop point, the seat motor may continue to rotate due to non-self-locking and the influence of the preset hard stop point. Furthermore, the rotation of the seat motor may not be consistent with the actual position of the seat. Therefore, it is necessary to judge each Hall cycle after the preset soft stop point and determine the accurate actual Hall count based on the judgment of the Hall cycle.
[0072] When determining the actual Hall count, the first invalid Hall cycle is determined from all the Hall cycles in chronological order. After the first invalid Hall cycle is determined, it indicates that all the Hall cycles within the target time range and preceding the invalid Hall cycle are valid Hall cycles.
[0073] Once an invalid Hall effect period is identified, there is no need to continue judging the next Hall effect period after that invalid period; that is, all Hall effect periods after the invalid period are not counted. This is because once an invalid Hall effect period occurs, it indicates that the pulse signal is not generated based on the regular movement of the seat and the regular rotation of the seat motor, but is caused by interference from non-locking and hard stop points. Therefore, all Hall effect periods after the invalid period are not counted, improving the accuracy of Hall effect counting.
[0074] Among them, the effective Hall cycle is a Hall cycle that is normal and regular compared to the standard Hall cycle, and can be counted; the invalid Hall cycle is an abnormal and irregular Hall cycle compared to the standard Hall cycle, and cannot be counted.
[0075] Therefore, all Hall cycles within the target time range and preceding the invalid Hall cycles are identified as valid Hall cycles, and the actual Hall count is then determined based on these valid Hall cycles. Since the actual Hall count is determined based on all valid Hall cycles, the determined actual Hall count is a valid and accurate Hall count, thus improving the accuracy of the actual Hall count determination.
[0076] In this application, the Hall pulses are no longer counted based on the traditional counting method. Instead, it first determines whether each Hall cycle is a valid Hall cycle or an invalid Hall cycle, and then determines the actual Hall count based on the finally determined valid Hall cycle. In this way, by judging the validity of each Hall cycle, the final accurate actual Hall count can be obtained.
[0077] In some embodiments, determining the actual Hall count based on the effective Hall period includes: Determine the base Hall count of the Hall pulses generated by the Hall sensor of the seat motor when the seat reaches the preset soft stop point; The total number of all effective Hall cycles is determined as the additional Hall count; The sum of the additional Hall count and the basic Hall count is determined as the actual Hall count.
[0078] Specifically, when the seat reaches the preset soft stop point, the baseline Hall count of the Hall pulse generated by the Hall sensor of the seat motor is determined. Since the seat has just reached the preset soft stop point and has not been affected by the preset hard stop point, the baseline Hall count at this time is consistent with the actual position of the seat, i.e., the preset soft stop point, and the baseline Hall count is accurate.
[0079] The total number of all effective Hall cycles is determined as the additional Hall count. The sum of the additional Hall count and the basic Hall count is determined as the actual Hall count. The actual Hall count thus determined includes the accurate basic Hall count before the soft stop point and the effective Hall count that should be accurately counted after the soft stop point. The Hall counts of all Hall pulses after the invalid Hall cycles are eliminated, so that the determined actual Hall count is precisely matched with the actual position of the seat, thereby improving the accuracy of the determined actual Hall count.
[0080] In this application, each Hall cycle is sequentially determined to be either a valid Hall cycle or an invalid Hall cycle. Then, based on the total number of valid Hall cycles and the base Hall count, the actual Hall count is determined. The actual Hall count determined in this way eliminates the Hall counts of invalid Hall cycles and all subsequent Hall pulses, making the determined actual Hall count accurately match the actual position of the seat and improving the accuracy of the determined actual Hall count.
[0081] In some embodiments, determining the first invalid Hall cycle from all the Hall cycles in chronological order includes: Each described Hall period is compared with the standard Hall period in turn; In response to a Hall period being greater than or equal to the standard Hall period, the previous Hall period of that Hall period is determined; If the absolute value of the period difference between the current Hall period and the previous Hall period is greater than the standard period difference, the current Hall period is determined to be the first invalid Hall period.
[0082] Specifically, the standard Hall period is the minimum period value of a pre-calibrated, normal, and regular Hall period. By comparing the Hall period with the standard Hall period, it can be determined whether each Hall period is a normal and regular Hall period, and thus whether the Hall period is a valid Hall period or an invalid Hall period.
[0083] Therefore, by comparing each Hall cycle with the standard Hall cycle in turn, when a Hall cycle is greater than or equal to the standard Hall cycle, it is determined that the duration of the Hall cycle meets the requirements of an effective Hall cycle.
[0084] At this point, it is also necessary to determine the relationship between the period difference between the current Hall cycle and the previous Hall cycle and the standard period difference. The standard period difference is the maximum period difference between two adjacent Hall cycles according to a pre-calibrated normal pattern.
[0085] Therefore, the previous Hall cycle is determined. When the absolute value of the period difference between the current Hall cycle and the previous Hall cycle is greater than the standard period difference, it indicates that the period difference between the current Hall cycle and the previous Hall cycle is too large and does not meet the requirement of the period difference between two adjacent Hall cycles in normal law. Therefore, there must be an invalid Hall cycle between the current Hall cycle and the previous Hall cycle.
[0086] Since each Hall cycle is judged in chronological order, the previous Hall cycle must have been determined to be a valid Hall cycle; otherwise, it would not have been judged. Therefore, this Hall cycle is determined to be the first invalid Hall cycle.
[0087] In this application, when determining the first invalid Hall cycle, the determination is made not only based on the period length of the Hall cycle according to the standard Hall cycle, but also based on the period difference between the Hall cycle and the previous Hall cycle, thereby accurately determining the first invalid Hall cycle.
[0088] In some embodiments, determining the first invalid Hall cycle from all the Hall cycles in chronological order includes: Each Hall period is compared sequentially with the standard Hall period; In response to a Hall period being less than the standard Hall period, the Hall period is determined to be the first invalid Hall period.
[0089] Specifically, the standard Hall period is the minimum period value of a pre-calibrated, normal, and regular Hall period. By comparing the Hall period with the standard Hall period, it can be determined whether each Hall period is a normal and regular Hall period, and thus whether the Hall period is a valid Hall period or an invalid Hall period.
[0090] Therefore, by comparing each Hall cycle with the standard Hall cycle in turn, when a Hall cycle is shorter than the standard Hall cycle, it is determined that the duration of the Hall cycle does not meet the requirements of an effective Hall cycle, and therefore other operations are required to directly determine the Hall cycle as the first invalid Hall cycle.
[0091] In this application, when a Hall period is determined to be less than the standard Hall period, the Hall period can be directly determined to be an invalid Hall period without the need for other judgment operations. Based on the accurate determination of invalid Hall periods, the operation steps are reduced, and unnecessary operation steps are avoided, which would lead to a waste of resources.
[0092] In some embodiments, the actual Hall count can also be determined in the following ways: When the current counting position is after the preset soft stop point, due to the non-self-locking structure, the seat will move forward and then stop, or move forward and then backward, resulting in irregular Hall pulses generated by the Hall motor. Therefore, the actual Hall counting method is as follows: After entering the soft stop point, the Hall cycle is collected and compared with the previous Hall cycle and the standard Hall cycle. The Hall count at the time of entering the soft stop point is X1, the current Hall cycle is T2, and the previous valid Hall cycle is T1. ① If T2 ≥ standard Hall period, and the absolute value of T1-T2 ≤ X (calibration value), then T2 is considered a valid Hall period, and the Hall count is incremented by 1. ②If T2 < standard Hall period, then T2 is considered an invalid Hall period, and the Hall count is not performed; ③ If T2 ≥ standard Hall period, and the absolute value of T1-T2 > X (calibrated value), then T2 is considered an invalid Hall period, and the Hall count is not performed.
[0093] Once an invalid Hall effect cycle is detected, the seat motor is considered to be within the self-locking range, and subsequent Hall effect cycles are not counted.
[0094] Finally, after entering the soft stop point, the sum of the total number of all valid Hall cycles before the invalid Hall cycle and the Hall count at the soft stop point is determined as the final actual Hall count. This eliminates the influence of invalid Hall cycles and all Hall counts after invalid Hall cycles, improving the accuracy of the determined actual Hall count.
[0095] In some embodiments, the method further includes: Drive the seat motor to rotate until the motor stalls, and acquire all Hall cycles of the regular Hall pulses generated by the Hall sensor of the seat motor before stalling; Determine the maximum and minimum periods among all the stated Hall periods; The minimum period is defined as the standard Hall period, and the difference between the maximum period and the minimum period is defined as the standard period difference.
[0096] Specifically, before determining the current counting position of the seat and the current actual position of the seat based on the current counting position, the standard Hall cycle and the standard cycle difference can be determined first.
[0097] Drive the seat motor to rotate until the motor stalls, and obtain all Hall cycles of the regular Hall pulses generated by the Hall sensor of the seat motor before stalling. Here, all Hall cycles refer to the Hall cycles of the regular Hall pulses generated by the normal rotation of the seat motor. Irregular Hall pulses are not considered.
[0098] Then, determine the maximum and minimum periods among all the Hall periods. The maximum period is the period with the longest pulse duration in a normal Hall period, and the minimum period is the period with the shortest pulse duration in a normal Hall period.
[0099] The minimum period is defined as the standard Hall period, and the difference between the maximum period and the minimum period is defined as the standard period difference. Thus, the standard Hall period represents the minimum pulse duration in a normal Hall period, and the standard period difference represents the maximum period difference between two adjacent Hall periods in a normal period. Therefore, based on the standard Hall period and the standard period difference, it is possible to accurately determine whether a certain Hall period is an invalid Hall period.
[0100] It is worth noting that the standard Hall period and the standard period difference can be determined multiple times, and then the average of the multiple determined standard Hall period and the standard period difference can be determined as the final standard Hall period and the standard period difference, so as to improve the accuracy of the final determined standard Hall period and the standard period difference, and thus improve the accuracy of the determination of invalid Hall period and valid Hall period.
[0101] For example, during the first learning process, the seat controller collects Hall cycles in real time during normal driving (excluding stall). For instance, if 100 Hall cycles are collected, they are 10ms, 11ms, 12ms...13ms respectively. The minimum value is determined and set as the standard Hall cycle. At the same time, the difference between the maximum cycle and the minimum cycle is set as the standard cycle difference.
[0102] In this application, an accurate standard Hall period and standard period difference are determined based on all Hall periods of a regular Hall pulse. Then, based on this accurate standard Hall period and standard period difference, it is possible to accurately determine whether a certain Hall period is an invalid Hall period, thereby improving the accuracy of determining invalid and valid Hall periods.
[0103] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.
[0104] It should be noted that some embodiments of this application have been described above. In some cases, the actions or steps described in the above embodiments can be performed in a different order than that shown in the above embodiments and the desired result can still be achieved. In addition, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0105] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a seat control device.
[0106] refer to Figure 7 The control device for the seat includes: The position determination module 100 is configured to, in response to receiving a one-button control command for the seat, determine the current count position of the seat and determine the current actual position of the seat based on the current count position; The counting determination module 200 is configured to determine the target rotation count based on the current actual position and the target termination position, wherein the target termination position corresponds to the one-button control command of the seat. The execution module 300 is configured to drive the seat motor to rotate until the rotation Hall count corresponding to the seat motor reaches the target rotation count, and then stop driving the seat motor.
[0107] In some embodiments, the position determination module 100 is further configured to: Determining the current count position of the seat and determining the current actual position of the seat based on the current count position includes: Obtain the current Hall count of the Hall pulses generated by the Hall sensor of the seat motor; The current Hall count is corrected to determine the actual Hall count; The current actual position of the seat is determined based on the actual Hall effect count.
[0108] In some embodiments, the position determination module 100 is further configured to: The current counting position of the seat is determined based on the current Hall count; In response to the current counting position being located between a preset soft stop point and a preset hard stop point, each Hall cycle of the Hall pulse generated by the Hall sensor of the seat motor within a target time range is acquired, wherein the target time range is the time range from the preset soft stop point to the current counting position of the seat. The first invalid Hall cycle is determined from all the Hall cycles in chronological order. All Hall cycles that are within the target time range and precede the first invalid Hall cycle are determined as valid Hall cycles; The actual Hall count is determined based on the effective Hall period.
[0109] In some embodiments, the position determination module 100 is further configured to: Determine the base Hall count of the Hall pulses generated by the Hall sensor of the seat motor when the seat reaches the preset soft stop point; The total number of all effective Hall cycles is determined as the additional Hall count; The sum of the additional Hall count and the basic Hall count is determined as the actual Hall count.
[0110] In some embodiments, the position determination module 100 is further configured to: Each Hall period is compared sequentially with the standard Hall period; In response to a Hall period being greater than or equal to the standard Hall period, the previous Hall period of that Hall period is determined; If the absolute value of the period difference between the current Hall period and the previous Hall period is greater than the standard period difference, the current Hall period is determined to be the first invalid Hall period.
[0111] In some embodiments, the position determination module 100 is further configured to: Each Hall period is compared sequentially with the standard Hall period; In response to a Hall period being less than the standard Hall period, the Hall period is determined to be the first invalid Hall period.
[0112] In some embodiments, the position determination module 100 is further configured to: Drive the seat motor to rotate until the motor stalls, and acquire all Hall cycles of the regular Hall pulses generated by the Hall sensor of the seat motor before stalling; Determine the maximum and minimum periods among all the stated Hall periods; The minimum period is defined as the standard Hall period, and the difference between the maximum period and the minimum period is defined as the standard period difference.
[0113] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0114] The apparatus described above is used to implement the corresponding seat control method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0115] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the seat control method described in any of the above embodiments.
[0116] Figure 8 This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0117] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0118] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0119] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0120] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0121] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0122] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0123] The electronic devices described above are used to implement the corresponding seat control methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0124] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the seat control method as described in any of the above embodiments.
[0125] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0126] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the seat control method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0127] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer causes the computer to execute the seat control method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0128] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a vehicle, which includes the control device, electronic device, computer-readable storage medium or computer program product described in any of the above embodiments. The vehicle has the corresponding beneficial effects of any of the above embodiments, which will not be repeated here.
[0129] It is understood that before using the technical solutions of the various embodiments in this disclosure, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.
[0130] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations of this disclosed technical solution.
[0131] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0132] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0133] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application is limited to these examples; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in detail for the sake of brevity.
[0134] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0135] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0136] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A method for controlling a seat, characterized in that, include: In response to receiving a one-button control command for the seat, determine the current counting position of the seat and determine the current actual position of the seat based on the current counting position; The target rotation count is determined based on the current actual position and the target termination position, and the target termination position corresponds to the one-button control command for the seat. Drive the seat motor to rotate until the rotation Hall count corresponding to the seat motor reaches the target rotation count, then stop driving the seat motor. The step of determining the current counting position of the seat and determining the current actual position of the seat based on the current counting position includes: Obtain the current Hall count of the Hall pulses generated by the Hall sensor of the seat motor; The current Hall count is corrected to determine the actual Hall count; The current actual position of the seat is determined based on the actual Hall effect count; The step of correcting the current Hall count to determine the actual Hall count includes: The current counting position of the seat is determined based on the current Hall count; In response to the current counting position being located between a preset soft stop point and a preset hard stop point, each Hall cycle of the Hall pulse generated by the Hall sensor of the seat motor within a target time range is acquired, wherein the target time range is the time range from the preset soft stop point to the current counting position of the seat. The first invalid Hall cycle is determined from all the Hall cycles in chronological order. All Hall cycles that are within the target time range and precede the first invalid Hall cycle are determined as valid Hall cycles; The actual Hall count is determined based on the effective Hall period.
2. The method according to claim 1, characterized in that, Determining the actual Hall count based on the effective Hall period includes: Determine the base Hall count of the Hall pulses generated by the Hall sensor of the seat motor when the seat reaches the preset soft stop point; The total number of all effective Hall cycles is determined as the additional Hall count; The sum of the additional Hall count and the basic Hall count is determined as the actual Hall count.
3. The method according to claim 1, characterized in that, The step of determining the first invalid Hall cycle from all the Hall cycles in chronological order includes: Each described Hall period is compared with the standard Hall period in turn; In response to a Hall period being greater than or equal to the standard Hall period, the previous Hall period of that Hall period is determined; If the absolute value of the period difference between the current Hall period and the previous Hall period is greater than the standard period difference, the current Hall period is determined to be the first invalid Hall period.
4. The method according to claim 1, characterized in that, The step of determining the first invalid Hall cycle from all the Hall cycles in chronological order includes: Each described Hall period is compared with the standard Hall period in turn; In response to a Hall period being less than the standard Hall period, the Hall period is determined to be the first invalid Hall period.
5. The method according to claim 1, characterized in that, The method further includes: Drive the seat motor to rotate until the motor stalls, and acquire all Hall cycles of the regular Hall pulses generated by the Hall sensor of the seat motor before stalling; Determine the maximum and minimum periods among all the stated Hall periods; The minimum period is defined as the standard Hall period, and the difference between the maximum period and the minimum period is defined as the standard period difference.
6. A control device for a seat, characterized in that, include: The position determination module is configured to, in response to receiving a one-button control command for the seat, determine the current count position of the seat and determine the current actual position of the seat based on the current count position; The step of determining the current counting position of the seat and determining the current actual position of the seat based on the current counting position includes: acquiring the current Hall count of the Hall pulses generated by the Hall sensor of the seat motor; correcting the current Hall count to determine the actual Hall count; and determining the current actual position of the seat based on the actual Hall count. The step of correcting the current Hall count to determine the actual Hall count includes: determining the current counting position of the seat based on the current Hall count; in response to the current counting position being between a preset soft stop point and a preset hard stop point, acquiring each Hall cycle of the Hall pulses generated by the Hall sensor of the seat motor within a target time range, wherein the target time range is the time range from the preset soft stop point to the current counting position; determining the first invalid Hall cycle from all the Hall cycles in chronological order; determining all the Hall cycles that are within the target time range and precede the first invalid Hall cycle as valid Hall cycles; and determining the actual Hall count based on the valid Hall cycles. The counting determination module is configured to determine the target rotation count based on the current actual position and the target termination position, wherein the target termination position corresponds to the one-button control command of the seat. The execution module is configured to drive the seat motor to rotate until the rotation Hall effect count corresponding to the seat motor reaches the target rotation count, and then stop driving the seat motor.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the seat control method as described in any one of claims 1 to 5.
8. A vehicle, characterized in that, Includes the electronic device as described in claim 7.