Seat information acquisition methods, devices, electronic equipment and vehicles

CN117621943BActive Publication Date: 2026-08-14GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-12
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]本申请实施例提供了一种座椅信息获取方法、装置、电子设备及车辆,以解决具备座椅记忆功能的车辆的生产效率低的问题

Benefits of technology

[0015]本申请实施例提供了一种应用于座椅记忆功能的位置学习方法以及相应的座椅信息获取方法。首先,在座椅的位置学习功能被触发的情况下,控制座椅的电机朝预设方向转动,直至电机发生堵转,将电机的当前霍尔数值设置为初始值。之后,当电机朝与预设方向相反的方向转动时,根据检测到的霍尔脉冲的第一数目,将电机的当前霍尔数值更新为第一数目所对应的霍尔数值与初始值的和值。最后,将电机的当前霍尔数值在预设机械行程区间内对应的位置信息,确定为座椅当前的位置信息。由于电机只需要完成向一个方向转动的过程,相比于现有的至少完成向两个方向转动的过程,至少缩短了一半的位置学习时间,极大地削减了对产线节拍的影响,大大提高了车辆生产效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117621943B_ABST
    Figure CN117621943B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, electronic device, and vehicle for acquiring seat information. The method includes: when the seat's position learning function is triggered, controlling the seat's motor to rotate in a preset direction until the motor stalls, setting the motor's current Hall effect value to an initial value; when the motor rotates in the opposite direction to the preset direction, updating the motor's current Hall effect value to the sum of the Hall effect value corresponding to the first number of detected Hall effect pulses and the initial value; determining the position information corresponding to the motor's current Hall effect value within a preset mechanical travel range as the seat's current position information; wherein the starting value of the preset mechanical travel range corresponds to the initial value, and the ending value of the preset mechanical travel range corresponds to a pre-calibrated total Hall effect value of the motor. This application can improve the production efficiency of vehicles equipped with seat memory functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle control technology, and in particular to a method, device, electronic device, and vehicle for acquiring seat information. Background Technology

[0002] With the advancement of social productivity, automobiles have entered thousands of households and gradually become one of the necessities of life. Currently, vehicles are becoming increasingly intelligent, with a large number of functions integrated into them, such as seat memory.

[0003] To implement seat memory functionality, a position learning method is typically used to acquire the seat's position information. However, existing position learning methods often take a considerable amount of time, significantly impacting vehicle production efficiency. Summary of the Invention

[0004] This application provides a method, device, electronic device, and vehicle for acquiring seat information to address the problem of low production efficiency in vehicles with seat memory function.

[0005] In a first aspect, embodiments of this application provide a method for obtaining seat information, including:

[0006] When the seat's position learning function is triggered, the motor of the control seat is rotated in a preset direction until the motor stalls, and the current Hall value of the motor is set to the initial value.

[0007] When the motor rotates in the opposite direction to the preset direction, the current Hall value of the motor is updated to the sum of the Hall value corresponding to the first number and the initial value, based on the first number of Hall pulses detected.

[0008] The position information corresponding to the current Hall value of the motor within the preset mechanical travel range is determined as the current position information of the seat. The starting value of the preset mechanical travel range corresponds to the initial value, and the ending value of the preset mechanical travel range corresponds to the pre-calibrated total Hall value of the motor. The total Hall value is the Hall value corresponding to the second number of Hall pulses detected when the motor rotates the maximum mechanical travel of the seat.

[0009] Secondly, embodiments of this application provide a seat information acquisition device, including:

[0010] The calibration module is used to control the seat motor to rotate in a preset direction when the seat's position learning function is triggered, until the motor stalls, and then set the current Hall value of the motor to the initial value.

[0011] The update module is used to update the current Hall value of the motor to the sum of the Hall value corresponding to the first number and the initial value when the motor rotates in the opposite direction to the preset direction, based on the first number of detected Hall pulses.

[0012] The acquisition module is used to determine the current position information of the seat by the position information corresponding to the current Hall value of the motor within the preset mechanical travel range; wherein, the starting value of the preset mechanical travel range corresponds to the initial value, and the ending value of the preset mechanical travel range corresponds to the pre-calibrated total Hall value of the motor. The total Hall value is the Hall value corresponding to the second number of Hall pulses detected when the motor rotates the maximum mechanical travel of the seat.

[0013] Thirdly, embodiments of this application provide 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 computer program to implement the steps of the method as described in the first aspect or any possible implementation of the first aspect above.

[0014] Fourthly, embodiments of this application provide a vehicle including the electronic equipment described in the third aspect.

[0015] This application provides a position learning method for seat memory function and a corresponding seat information acquisition method. First, when the seat position learning function is triggered, the seat motor is controlled to rotate in a preset direction until the motor stalls, and the current Hall effect value of the motor is set to an initial value. Then, when the motor rotates in the opposite direction to the preset direction, based on a first number of detected Hall effect pulses, the current Hall effect value of the motor is updated to the sum of the Hall effect value corresponding to the first number and the initial value. Finally, the position information corresponding to the current Hall effect value of the motor within a preset mechanical travel range is determined as the current position information of the seat. Since the motor only needs to complete the rotation process in one direction, compared to the existing process of at least two-directional rotation, the position learning time is shortened by at least half, greatly reducing the impact on production line cycle time and significantly improving vehicle production efficiency. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the implementation of a seat information acquisition method provided in an embodiment of this application;

[0018] Figure 2 This is a schematic diagram of the mechanical travel of a seat provided in an embodiment of this application;

[0019] Figure 3 This is a schematic diagram of the structure of a seat information acquisition device provided in an embodiment of this application;

[0020] Figure 4 This is a schematic diagram of an electronic device provided in an embodiment of this application;

[0021] Figure 5 This is a schematic diagram of a vehicle provided in an embodiment of this application. Detailed Implementation

[0022] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0023] To make the objectives, technical solutions, and advantages of this application clearer, the following description will be provided in conjunction with the accompanying drawings and specific embodiments.

[0024] Currently, vehicle seat memory functions typically employ a full-stroke position learning method. Taking the longitudinal motor controlling the seat's fore-and-aft movement as an example, firstly, the longitudinal motor is controlled to rotate in the reverse direction. Once the seat reaches its mechanical travel limit in that direction, the longitudinal motor stalls, and this position is recorded as the reverse stall point. Next, the longitudinal motor is controlled to rotate in the forward direction. Once the seat reaches its mechanical travel limit in that direction, the longitudinal motor stalls again, and this position is recorded as the forward stall point. Thus, the distance between the reverse and forward stall points represents the mechanical travel distance of the seat's longitudinal motor. The seat's position information can then be obtained by establishing a coordinate system. It is evident that for vehicles on the production line, the motor must complete at least two rotations in both the reverse and forward directions during position learning. This results in a long learning time, impacting production line cycle time and reducing vehicle production efficiency.

[0025] To address the problems of the prior art, embodiments of this application provide a method, apparatus, electronic device, and vehicle for acquiring seat information. The method for acquiring seat information provided in this application embodiment will be described first below.

[0026] The entity executing the seat information acquisition method can be a seat information acquisition device, such as a vehicle control unit (VCU), electronic control unit (ECU), or any electronic device capable of performing the relevant processing of the seat information acquisition method. This application embodiment does not specifically limit it.

[0027] See Figure 1 The flowchart illustrating the implementation of the seat information acquisition method provided in this application embodiment is described in detail below:

[0028] Step 110: When the seat position learning function is triggered, control the seat motor to rotate in the preset direction until the motor stalls, and set the current Hall value of the motor to the initial value.

[0029] In some embodiments, the vehicle can be any type of vehicle, such as a gasoline vehicle, a diesel vehicle, or other vehicles with a fuel system, or a new energy vehicle such as an EV (Electric Vehicle), HEV (Hybrid Electric Vehicle), or PHEV (Plug-in Hybrid Electric Vehicle). The vehicle's seats can be equipped with multiple motors, such as a lifting motor to control the seat's up-and-down movement, a lateral motor to control the seat's left-and-right movement, a longitudinal motor to control the seat's forward-and-back movement, and a backrest motor to control the seat back's rotation. These motors can be equipped with Hall sensors. When the motor moves, the Hall sensors generate Hall pulses, and the number of Hall pulses generated is directly proportional to the amplitude of the motor's movement. Thus, the number of Hall pulses can be used to measure the amplitude of the motor's movement. The Hall value of the motor is a converted value from the Hall pulses, and the conversion ratio can be set as needed, such as 1:1, 1:5, 1:10, etc. Taking 1:5 as an example, it means that 5 Hall pulses can be converted into 1 Hall value. Assuming that the current Hall value of the motor is 100, when the motor rotates a certain distance in the direction of increasing Hall value, a total of 50 Hall pulses are detected during this rotation. Then, the Hall value increases by 10 after conversion. At this time, the current Hall value of the motor will be updated to 110.

[0030] In some embodiments, the seat's position learning function can be triggered by pressing a mechanical or virtual button that has the function of learning the seat's position. Taking a virtual button as an example, the virtual button with the position learning function can be a text button or an icon button displayed on the vehicle control screen. Pressing this virtual button triggers the seat's position learning function. Specifically, after the position learning function is triggered, the seat motor can be controlled to rotate in a preset direction according to preset control logic. Generally, the mechanical travel limit position corresponding to this preset direction is called the mechanical zero point, and the industry typically sets the direction corresponding to the mechanical zero point as the reverse direction of the motor. Therefore, the preset direction can be set to the reverse direction of the motor. Of course, to differentiate it from other manufacturers, the preset direction can also be set to the forward direction of the motor, and correspondingly, the limit position corresponding to the forward direction of the motor can also be called the mechanical zero point.

[0031] like Figure 2 The diagram illustrates the mechanical travel of a seat. The mechanical travel of the seat shown in the diagram ranges from the first position point 21 to the third position point 23. It can be seen that the first position point 21 and the third position point 23 represent the two extreme positions of the mechanical travel, and the second position point 22 represents a certain position of the seat within the mechanical travel. For the mechanical zero point, either the first position point 21 or the third position point 23 can be set as the mechanical zero point according to the manufacturer's design.

[0032] Due to the limitations of the seat's mechanical travel, once the seat reaches the limit of its mechanical travel in a preset direction, it will be unable to move further, and the motor will also stop rotating—that is, the motor is stalled. Specifically, this can be determined by detecting the presence or absence of Hall pulses or by detecting the motor current. For example, if no Hall pulse is detected, and / or if the motor current exceeds a preset threshold, it can be determined that the motor is stalled. Thus, when a stall is detected, the current Hall value of the motor can be set to an initial value, such as 0. This initial value is used to indicate that the seat is at the mechanical zero point of its mechanical travel.

[0033] It is worth mentioning that once the current Hall value of the motor is set to the initial value, it indicates that the mechanical zero point of the seat's mechanical travel has been determined. At this point, the seat's position learning can be ended.

[0034] Step 120: When the motor rotates in the opposite direction to the preset direction, the current Hall value of the motor is updated to the sum of the Hall value corresponding to the first number and the initial value, based on the first number of detected Hall pulses.

[0035] In some embodiments, since the motor is stalled in the preset direction, it can only rotate in the opposite direction. As the motor continues to rotate in the opposite direction, Hall pulses are continuously detected. When the motor stops rotating, no more Hall pulses are generated. At this point, the change in Hall value during this motor rotation process can be calculated based on the first number of detected Hall pulses, i.e., the Hall value corresponding to the first number. This change is then added to the Hall value before this rotation to obtain the current Hall value of the motor.

[0036] Step 130: Determine the current position information of the seat by the position information corresponding to the current Hall value of the motor within the preset mechanical travel range. The starting value of the preset mechanical travel range corresponds to the initial value, and the ending value of the preset mechanical travel range corresponds to the pre-calibrated total Hall value of the motor. The total Hall value is the Hall value corresponding to the second number of Hall pulses detected when the motor rotates to its maximum seat mechanical travel.

[0037] In some embodiments, a certain number of seats of the same model can be selected, their mechanical travel calibrated, and then the average of all calibrated values ​​can be used as the mechanical travel of the seat. Alternatively, a certain number of motors of the same model can be selected, and the Hall pulses generated by rotating them for the entire mechanical travel (i.e., the maximum seat mechanical travel) can be recorded. Then, the average of all recorded values ​​can be used as the total Hall value.

[0038] It's important to note that the preset mechanical travel range is obtained by transforming the seat's mechanical travel. Since the initial value corresponds to the mechanical zero point of the mechanical travel, and the total Hall value corresponds to the total mechanical travel, the preset mechanical travel range corresponding to the initial value and the total Hall value is essentially the seat's mechanical travel. It's worth mentioning that determining the seat's position information essentially means determining where the seat is within its mechanical travel range. However, after the seat is assembled, due to variations in the assembly process, the initial position of the motor is uncertain. At this point, the seat's position within its mechanical travel range is unknown. Therefore, the seat can be moved to the mechanical zero point of the mechanical travel range. Since the mechanical zero point is a fixed position, moving the seat to this position determines the specific position within its mechanical travel range. Thus, once the specific position of the seat within its mechanical travel range is determined, and the maximum seat mechanical travel is known, even if the seat moves again, the position information of the seat after the motor rotation can be calculated using the linear relationship between the Hall pulse count and the motor rotation amplitude—that is, the position of the seat within its mechanical travel range.

[0039] Thus, through the above processing, the seat's position information can be obtained regardless of how the seat moves along its mechanical travel, thereby enabling the seat memory function based on this position information.

[0040] In addition, since the motor only needs to complete the process of rotating in one preset direction during the above process, compared with the existing process of rotating in at least two directions, the position learning time is shortened by at least half, which greatly reduces the impact on the production line cycle and greatly improves vehicle production efficiency.

[0041] Furthermore, since the above process can determine the mechanical zero point of the seat's mechanical travel, that is, it uses an absolute position rather than a relative position relative to the seat's assembly position, the seat position information determined by the absolute position has a high degree of accuracy.

[0042] Optionally, the processing in steps 120-130 above can be considered as the first movement of the seat after position learning is completed. For subsequent seat movements, the determination of its position information can be processed as follows: Assign the current Hall value of the motor to the first variable; when the motor rotates again, detect the third number of Hall pulses; based on the rotation direction of the motor and the third number, update the current Hall value of the motor to the sum of the Hall value corresponding to the third number and the first variable; wherein, when the rotation direction of the motor is a preset direction, the Hall value corresponding to the third number is negative; when the rotation direction of the motor is opposite to the preset direction, the Hall value corresponding to the third number is positive; determine the position information corresponding to the current Hall value of the motor within the preset mechanical travel range as the current position information of the seat, and assign the current Hall value of the motor to the first variable.

[0043] It should be noted that, for ease of description, a first variable is introduced here. Whenever the motor rotates, causing the current Hall value of the motor to be updated, the first variable is also automatically updated, that is, the current Hall value of the motor is assigned to the first variable.

[0044] Taking h0 as the current Hall value of the motor and h1 as the first variable as an example, when the motor rotates, h1 remains unchanged for a while and h0 will be updated. Assuming that the Hall value corresponding to the Hall pulse detected during rotation is 10, then h0 = h1 + 10. After that, h1 is updated again, that is, h1 = h0.

[0045] Therefore, the current Hall value of the motor is also a variable. The values ​​of the current Hall value and the first variable can be stored in the read-only memory (ROM) of the corresponding electronic device. In this way, even if the electronic device loses power or restarts, the values ​​of each variable can be retained, thereby avoiding the problem of relearning due to the loss of variable values ​​and improving the user experience.

[0046] Thus, through the above processing, the seat's position information can be accurately obtained for subsequent movements of the seat after position learning is completed.

[0047] Optionally, considering that the motor may shift position after the seat has been in motion for a long time, causing the position point corresponding to the initial value to no longer be the mechanical zero point, that is, there is an error between the position point corresponding to the initial value and the mechanical zero point, the following processing can be used to correct this.

[0048] In some embodiments, when the motor rotates in a preset direction and stalls, if the current Hall effect value of the motor is less than the initial value, then the current Hall effect value is set to the initial value, and the first variable is also set to the initial value. It should be noted that, according to the aforementioned position learning process, the current Hall effect value of the motor cannot be less than the initial value, because once the current Hall effect value equals the initial value, the motor will stall, preventing the current Hall effect value from decreasing further. The reason for this situation is likely that the motor position has shifted, causing an error between the position point corresponding to the initial value and the mechanical zero point. To address this, the current Hall effect value of the motor can be set to the initial value so that the initial value corresponds to the mechanical zero point. Furthermore, the first variable is also set to the initial value to avoid subsequent calculation errors.

[0049] In some embodiments, when the motor rotates in a preset direction and stalls, if the current Hall value of the motor is greater than the initial value, the motor is controlled to stop rotating and then rotated in the preset direction after a preset time. If the current Hall value of the motor when it stalls again is the same as the Hall value of the motor when it stalled the previous time, the current Hall value of the motor is set to the initial value, and the first variable is also set to the initial value. It should be noted that this situation may be due to a shift in the motor position or a temporary stall caused by a jam in the seat. Therefore, a secondary confirmation can be performed: after a preset time, the motor is controlled to rotate in the preset direction. For example, if the motor is still stalled after 3 seconds, it indicates that the stall is not temporary. To address this, the current Hall value of the motor can be set to the initial value so that the initial value corresponds to the mechanical zero point. Furthermore, the first variable is also set to the initial value to avoid subsequent calculation errors.

[0050] Therefore, in cases where the motor may shift position after prolonged seat movement, the Hall value of the motor can be corrected by resetting the initial value as described above, so that the initial value corresponds to the mechanical zero point, thereby ensuring the accuracy of the seat position.

[0051] Optionally, to avoid frequent motor stalling, a "soft stop" can be used to control the motor to stop rotating in advance before it stalls. The corresponding processing can be as follows: when the current Hall value of the motor is less than a first preset threshold, or when the current Hall value of the motor is greater than a second preset threshold, the motor is controlled to stop rotating; wherein, the first preset threshold is the sum of the initial value and the preset reserved value, and the second preset threshold is the difference between the total Hall value and the preset reserved value.

[0052] Taking an initial value of 0 and a total Hall effect value of 1200 as an example, under normal circumstances, the motor will stall when its current Hall effect value is 0 or 1200. However, with "soft stop processing" enabled, assuming a preset reserve value of 10, the motor will stop rotating when its current Hall effect value is less than 10 or greater than 1190. This prevents frequent motor stalling, thus extending the motor's lifespan and reducing mechanical wear.

[0053] Optionally, considering safety needs, such as the driver not being too close to the front dashboard, if they are too close, the airbag deployment in the event of a collision could easily cause other injuries to the passengers. This can be addressed by limiting the fore-and-aft movement of the seat. The corresponding process can be as follows: receive a first input to modify the total Hall value; in response to the first input, when a total Hall value setting command is obtained, set the modified value carried in the total Hall value setting command to the value of the total Hall value.

[0054] In some embodiments, the first input may be a user pressing a mechanical or virtual button that has the function of modifying the total Hall value. Then, the user can modify the total Hall value by touching the corresponding option or entering a specific value. In this way, the corresponding electronic device can obtain a total Hall value setting instruction and then set the modified value carried in the total Hall value setting instruction as the total Hall value.

[0055] Optionally, for seats equipped with multiple motors, such as seats with lifting motors, lateral motors, and backrest motors, the seat may interfere with other interior components in some positions. For example, if the seat is high and forward-leaning, and the backrest tilt angle is small, the headrest may collide with the roof. To address this, the movement range of the corresponding motors can be limited at specific positions. The corresponding handling can be as follows: when the current Hall effect value of the first motor of the seat is within the first preset range corresponding to the first motor, if the current Hall effect value of the second motor of the seat exceeds the second preset range corresponding to the second motor, then the second motor is controlled to stop rotating; where the first motor is any one of the multiple motors, and the second motor is any one of the multiple motors other than the first motor.

[0056] In some embodiments, technicians can pre-simulate multiple collision scenarios, then calibrate the movement range of each motor that can avoid collision in each scenario, and design corresponding control logic. Thus, when the control logic is triggered, the movement of each motor can be controlled, thereby preventing interference between the seat and other interior components in specific positions.

[0057] This application provides a position learning method and a corresponding seat information acquisition method for seat memory function. Since the motor only needs to complete the rotation process in one direction, compared to the existing method which requires at least two rotations, the position learning time is reduced by at least half, significantly reducing the impact on production line cycle time and greatly improving vehicle production efficiency.

[0058] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0059] The following are device embodiments of this application. For details not described in detail, please refer to the corresponding method embodiments described above.

[0060] Figure 3 A schematic diagram of the structure of the seat information acquisition device provided in an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiments of this application are shown, and are described in detail below:

[0061] like Figure 3 As shown, the seat information acquisition device includes:

[0062] The calibration module 310 is used to control the motor of the seat to rotate in a preset direction when the position learning function of the seat is triggered, until the motor stalls, and set the current Hall value of the motor to the initial value.

[0063] The update module 320 is used to update the current Hall value of the motor to the sum of the Hall value corresponding to the first number and the initial value when the motor rotates in the opposite direction to the preset direction, based on the first number of detected Hall pulses.

[0064] The acquisition module 330 is used to determine the current position information of the seat by the position information corresponding to the current Hall value of the motor within the preset mechanical travel range; wherein, the starting value of the preset mechanical travel range corresponds to the initial value, and the ending value of the preset mechanical travel range corresponds to the pre-calibrated total Hall value of the motor, and the total Hall value is the Hall value corresponding to the second number of Hall pulses detected when the motor rotates the maximum mechanical travel of the seat.

[0065] In one possible implementation, the seat information acquisition device further includes:

[0066] The assignment module is used to assign the current Hall value of the motor to the first variable;

[0067] The detection module is used to detect the third number of Hall pulses when the motor rotates again.

[0068] Correspondingly, the update module is also used for:

[0069] Based on the motor's rotation direction and the third number, the motor's current Hall value is updated to the sum of the Hall value corresponding to the third number and the first variable; wherein, when the motor's rotation direction is the preset direction, the Hall value corresponding to the third number is negative; when the motor's rotation direction is opposite to the preset direction, the Hall value corresponding to the third number is positive.

[0070] Correspondingly, the acquisition module is also used for:

[0071] The position information corresponding to the current Hall value of the motor within the preset mechanical travel range is determined as the current position information of the seat, and the current Hall value of the motor is assigned to the first variable.

[0072] In one possible implementation, the seat information acquisition device further includes:

[0073] The setting module is used to set the current Hall value of the motor to the initial value and the first variable to the initial value when the motor is rotating in a preset direction and stalls.

[0074] In one possible implementation, the settings module is also used for:

[0075] If the motor is rotating in the preset direction and stalls, and the current Hall value of the motor is greater than the initial value, the motor will be controlled to stop rotating and then rotate in the preset direction after a preset time.

[0076] If the current Hall value when the motor stalls again is the same as the Hall value when the motor stalled the previous time, then the current Hall value of the motor is set to the initial value, and the first variable is also set to the initial value.

[0077] In one possible implementation, the seat information acquisition device further includes:

[0078] The control module is used to control the motor to stop rotating when the current Hall value of the motor is less than a first preset threshold or the current Hall value of the motor is greater than a second preset threshold.

[0079] The first preset threshold is the sum of the initial value and the preset reserved value, and the second preset threshold is the difference between the total Hall value and the preset reserved value.

[0080] In one possible implementation, the control module is also used for:

[0081] Receive the first input that modifies the total Hall value;

[0082] In response to the first input, when a total Hall value setting instruction is received, the modified value carried in the total Hall value setting instruction is set to the value of the total Hall value.

[0083] In one possible implementation, the seat includes multiple motors;

[0084] Correspondingly, the control module is also used for:

[0085] When the current Hall value of the first motor of the seat is within the first preset range corresponding to the first motor, if the current Hall value of the second motor of the seat exceeds the second preset range corresponding to the second motor, the second motor is controlled to stop rotating; wherein, the first motor is any one of the multiple motors, and the second motor is any one of the multiple motors other than the first motor.

[0086] In this embodiment, since the motor only needs to complete the process of rotating in one direction, compared with the existing process of rotating in at least two directions, the position learning time is shortened by at least half, which greatly reduces the impact on the production line cycle time and greatly improves vehicle production efficiency.

[0087] This application also provides a computer program product having program code that, when run in a corresponding processor, controller, computing device, or terminal, executes the steps in any of the above-described seat information acquisition method embodiments, for example... Figure 1Steps 110 to 130 are shown. Those skilled in the art will understand that the methods and apparatus proposed in the embodiments of this application can be implemented in various forms, including hardware, software, firmware, dedicated processors, or combinations thereof. Dedicated processors may include application-specific integrated circuits (ASICs), reduced instruction set computers (RISCs), and / or field-programmable gate arrays (FPGAs). The proposed methods and apparatus are preferably implemented as a combination of hardware and software. The software is preferably installed as an application program on a program storage device. This is typically based on a machine with a computer platform, such as one or more central processing units (CPUs), random access memory (RAM), and one or more input / output (I / O) interfaces. An operating system is also typically installed on the computer platform. The various processes and functions described herein may be part of an application program, or a portion thereof may be executed by an operating system.

[0088] Figure 4 This is a schematic diagram of the electronic device 4 provided in an embodiment of this application. Figure 4 As shown, the electronic device 4 in this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, it implements the steps in the various seat information acquisition method embodiments described above, for example... Figure 1 Steps 110 to 140 are shown. Alternatively, when the processor 40 executes the computer program 42, it implements the functions of each module in the above-described device embodiments, for example... Figure 3 The functions of modules 310 to 330 are shown.

[0089] For example, the computer program 42 can be divided into one or more modules, which are stored in the memory 41 and executed by the processor 40 to complete this application. The one or more modules can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 42 in the electronic device 4. For example, the computer program 42 can be divided into... Figure 3 Modules 310 to 330 are shown.

[0090] The electronic device 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will understand that... Figure 4 This is merely an example of electronic device 4 and does not constitute a limitation on electronic device 4. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0091] The processor 40 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0092] The memory 41 can be an internal storage unit of the electronic device 4, such as a hard disk or memory. The memory 41 can also be an external storage device of the electronic device 4, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 41 can include both internal and external storage units of the electronic device 4. The memory 41 is used to store the computer program and other programs and data required by the electronic device. The memory 41 can also be used to temporarily store data that has been output or will be output.

[0093] This application also provides a vehicle, such as... Figure 5 As shown, the vehicle 5 includes the aforementioned electronic equipment 4.

[0094] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0095] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0096] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0097] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0098] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0099] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0100] If the integrated module is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above-described embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various seat information acquisition method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0101] Furthermore, the features of the embodiments shown in the accompanying drawings or the various embodiments mentioned in this specification should not be construed as independent embodiments. Rather, each feature described in one example of an embodiment can be combined with one or more other desired features from other embodiments to produce other embodiments not described in words or with reference to the accompanying drawings.

[0102] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for acquiring seat information, characterized in that, include: When the seat's position learning function is triggered, the seat's motor is controlled to rotate in a preset direction until the motor stalls, and the current Hall value of the motor is set to the initial value. When the motor rotates in the opposite direction to the preset direction, the current Hall value of the motor is updated to the sum of the Hall value corresponding to the first number of detected Hall pulses and the initial value, based on the first number of Hall pulses detected. The position information corresponding to the current Hall value of the motor within the preset mechanical travel range is determined as the current position information of the seat; wherein, the starting value of the preset mechanical travel range corresponds to the initial value, and the ending value of the preset mechanical travel range corresponds to the pre-calibrated total Hall value of the motor, and the total Hall value is the Hall value corresponding to the second number of Hall pulses detected when the motor rotates the maximum mechanical travel of the seat; After determining the current position information of the seat by taking the position information corresponding to the current Hall value of the motor within a preset mechanical travel range, the method further includes: Assign the current Hall value of the motor to the first variable; When the motor rotates again, the third number of Hall pulses is detected; Based on the rotation direction of the motor and the third number, the current Hall value of the motor is updated to the sum of the Hall value corresponding to the third number and the first variable; wherein, when the rotation direction of the motor is the preset direction, the Hall value corresponding to the third number is negative; when the rotation direction of the motor is opposite to the preset direction, the Hall value corresponding to the third number is positive. The position information corresponding to the current Hall value of the motor within the preset mechanical travel range is determined as the current position information of the seat, and the current Hall value of the motor is assigned to the first variable.

2. The seat information acquisition method according to claim 1, characterized in that, The method further includes: If the motor is rotating in a preset direction and stalls, and the current Hall value of the motor is less than the initial value, then the current Hall value of the motor is set to the initial value, and the first variable is also set to the initial value.

3. The method for acquiring seat information according to claim 1, characterized in that, The method further includes: If the motor is rotating in a preset direction and stalls, and the current Hall value of the motor is greater than the initial value, then the motor is controlled to stop rotating and, after a preset time, the motor is controlled to rotate in the preset direction. If the current Hall value when the motor stalls again is the same as the Hall value when the motor stalled previously, then the current Hall value of the motor is set to the initial value, and the first variable is also set to the initial value.

4. The seat information acquisition method according to claim 1, characterized in that, The method further includes: When the current Hall value of the motor is less than a first preset threshold, or when the current Hall value of the motor is greater than a second preset threshold, the motor is controlled to stop rotating. Wherein, the first preset threshold is the sum of the initial value and the preset reserved value, and the second preset threshold is the difference between the total Hall value and the preset reserved value.

5. The method for acquiring seat information according to claim 1, characterized in that, The method further includes: Receive a first input that modifies the total Hall value; In response to the first input, when a total Hall value setting instruction is received, the modified value carried in the total Hall value setting instruction is set to the value of the total Hall value.

6. The method for acquiring seat information according to claim 1, characterized in that, The seat includes multiple motors; The method further includes: When the current Hall value of the first motor of the seat is within the first preset range corresponding to the first motor, if the current Hall value of the second motor of the seat exceeds the second preset range corresponding to the second motor, the second motor is controlled to stop rotating; wherein, the first motor is any one of the plurality of motors, and the second motor is any one of the plurality of motors other than the first motor.

7. A seat information acquisition device, characterized in that, include: The calibration module is used to control the motor of the seat to rotate in a preset direction when the seat's position learning function is triggered, until the motor stalls, and set the current Hall value of the motor to the initial value. The update module is used to update the current Hall value of the motor to the sum of the Hall value corresponding to the first number and the initial value when the motor rotates in the opposite direction to the preset direction, based on the first number of detected Hall pulses. The acquisition module is used to determine the current position information of the seat by taking the position information corresponding to the current Hall value of the motor within a preset mechanical travel interval; wherein, the starting value of the preset mechanical travel interval corresponds to the initial value, and the ending value of the preset mechanical travel interval corresponds to the pre-calibrated total Hall value of the motor, and the total Hall value is the Hall value corresponding to the second number of Hall pulses detected when the motor rotates the maximum mechanical travel of the seat; The assignment module is used to assign the current Hall value of the motor to the first variable; The detection module is used to detect the third number of Hall pulses when the motor rotates again; The update module is also used to: update the current Hall value of the motor to the sum of the Hall value corresponding to the third number and the first variable according to the rotation direction of the motor and the third number; wherein, when the rotation direction of the motor is the preset direction, the Hall value corresponding to the third number is negative; when the rotation direction of the motor is opposite to the preset direction, the Hall value corresponding to the third number is positive. The acquisition module is also used to: determine the position information corresponding to the current Hall value of the motor within the preset mechanical travel range as the current position information of the seat, and assign the current Hall value of the motor to the first variable.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 6 above.

9. A vehicle, characterized in that, Including the electronic device as described in claim 8.

Citation Information

Patent Citations

  • Seat and method of adjusting the same

    CN107272466A

  • Control method and device for adjusting stroke of vehicle seat and vehicle

    CN114194077A