Seat control method and device and vehicle
By dynamically determining the anti-clip threshold during the seat adjustment process and deciding whether to start the anti-clip protection mechanism based on the multiple judgment mechanism, the problem of misjudgment of seat anti-clip protection in different environments in the prior art is solved, and the reliability of seat anti-clip protection is improved.
Patent Information
- Application Number
- CN202510421327.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-06-06
AI Technical Summary
The existing seat anti-clip mechanism may lead to misjudgment of anti-clip in different environments, reducing the reliability of seat anti-clip protection, mainly because it is determined whether to start the anti-clip mechanism based on only the fixed threshold.
During the seat adjustment process, the anti-clip threshold value is determined based on the preset anti-clip threshold value and the Hall pulse width value during the initial period of stable operation of the drive device, and multiple Hall pulse width values are collected within the target period to determine whether the number of them is greater than the preset number to determine whether the anti-clip protection mechanism is activated.
This method can adaptively determine the anti-clip threshold value of the seat single adjustment, improve the effectiveness of the anti-clip threshold value in different environments, avoid anti-clip misjudgment, and enhance the reliability of the anti-clip protection of the seat.
Smart Images

Figure CN120096402A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of seat control, and in particular, relates to a seat control method, device and vehicle. Background Art
[0002] With the continuous development of vehicle technology, more and more vehicles can realize intelligent adjustment of seats, and the seat adjustment modes are becoming more and more diverse. As a result, the requirements for seat anti-pinch functions are getting higher and higher.
[0003] At present, whether to start the anti-pinch mechanism is usually determined based on a fixed threshold value such as a preset speed, a preset current value or a preset Hall pulse width value. For example, if the Hall pulse width value of the motor is greater than the preset Hall pulse width value, the anti-pinch mechanism is started.
[0004] However, the adjustment of vehicle seats will be affected by the seat's own factors and external factors. If the anti-pinch mechanism is determined based only on a fixed threshold, it may cause misjudgment of anti-pinch and reduce the reliability of seat anti-pinch. Summary of the invention
[0005] The embodiments of the present application provide a seat control method, device, vehicle, computer-readable storage medium and computer program product, which can ensure the reliability of seat anti-pinch in different environments.
[0006] In a first aspect, an embodiment of the present application provides a seat control method, the method comprising:
[0007] When a driving device for driving the seat to move switches from a stop state to a moving state, obtaining an anti-pinch threshold of the driving device, wherein the anti-pinch threshold is determined based on a preset anti-pinch threshold and a first Hall pulse width value in a first time period, wherein the first time period is an initial time period for stable operation of the driving device;
[0008] collecting a plurality of second Hall pulse width values of the driving device within a target period, wherein the target period is later than the first time period;
[0009] When the second Hall pulse width value is greater than the anti-pinch threshold, determining the second Hall pulse width value as a target Hall pulse width value;
[0010] When the number of the target Hall pulse width values within the target period is greater than a preset number, the anti-pinch protection mechanism of the seat is activated.
[0011] In a possible implementation, after the anti-pinch protection mechanism of the seat is activated, the method further includes:
[0012] When the driving device switches from a moving state to a stopped state, restoring the anti-pinch threshold to the preset anti-pinch threshold;
[0013] monitoring the operating status of the drive device;
[0014] When the motion state is switched from the stop state to the motion state, obtaining a first anti-pinch threshold of the driving device, wherein the first anti-pinch threshold is determined based on the preset anti-pinch threshold and the third Hall pulse width value within the first time period;
[0015] collecting a plurality of fourth Hall pulse width values of the driving device within the target period;
[0016] When the fourth Hall pulse width value is greater than the first anti-pinch threshold value, determining the fourth Hall pulse width value as the target Hall pulse width value;
[0017] When the number of the target Hall pulse width values within the target period is greater than the preset number, the anti-pinch protection mechanism of the seat is activated.
[0018] In a possible implementation, when the second Hall pulse width value is greater than the anti-pinch threshold, after determining the second Hall pulse width value as the target Hall pulse width value, the method further includes:
[0019] When the number of the target Hall pulse width values in the target period is less than or equal to the preset number, clearing the number of the target Hall pulse width values in the target period;
[0020] The next cycle of the target cycle is used as the target cycle, and the step of collecting a plurality of second Hall pulse width values of the driving device within the target cycle is returned to be executed.
[0021] In a possible implementation, when the number of the target Hall pulse width values within the target period is greater than a preset number, before starting the anti-pinch protection mechanism of the seat, the method further includes:
[0022] Displaying a sensitivity adjustment interface, wherein the sensitivity adjustment interface is used to adjust the sensitivity of the anti-pinch protection mechanism, wherein the sensitivity is associated with a critical number of the target Hall pulse width value;
[0023] receiving a first adjustment input of the sensitivity by a user on the sensitivity adjustment interface;
[0024] In response to the first adjustment input, the preset number is determined based on a corresponding relationship between the sensitivity and a critical number of the target Hall pulse width values.
[0025] In a possible implementation, when a driving device for driving the seat to move is switched from a stopped state to a moving state, obtaining an anti-pinch threshold value of the driving device includes:
[0026] When the driving device for driving the seat to move is switched from a stop state to a moving state, collecting a plurality of first Hall pulse width values of the driving device within the first time period;
[0027] Calculating an average value of the plurality of first Hall pulse width values to obtain an anti-pinch reference value;
[0028] Obtaining a preset anti-pinch threshold value of the drive device;
[0029] The anti-pinch threshold is obtained by calculating the sum of the anti-pinch reference value and the preset anti-pinch threshold.
[0030] In a possible implementation, the multiple first Hall pulse width values include a fifth Hall pulse width value and multiple sixth Hall pulse width values, the acquisition time of the multiple sixth Hall pulse width values is earlier than the fifth Hall pulse width value, and the calculating the average value of the multiple first Hall pulse width values to obtain the anti-pinch reference value includes:
[0031] When the fifth Hall pulse width value is collected, determining a difference between the fifth Hall pulse width value and a target average value, wherein the target average value is an average value of the plurality of sixth Hall pulse width values;
[0032] When the absolute value of the difference is greater than a preset threshold value and the duration is less than the first duration, the fifth Hall pulse width value is determined as an abnormal value;
[0033] determining a plurality of target first Hall pulse width values excluding the abnormal value among the plurality of first Hall pulse width values;
[0034] The average value of the plurality of target first Hall pulse width values is calculated to obtain the anti-pinch reference value.
[0035] In a possible implementation, the obtaining a preset anti-pinch threshold of the driving device includes:
[0036] Displaying an anti-pinch force adjustment interface, wherein the anti-pinch force adjustment interface is used to adjust the anti-pinch force of the anti-pinch protection mechanism, wherein the anti-pinch force is associated with a critical value of the Hall pulse width of the driving device;
[0037] receiving a second adjustment input of the anti-pinch force by the user on the anti-pinch force adjustment interface;
[0038] In response to the second adjustment input, the preset anti-pinch threshold is determined based on the corresponding relationship between the anti-pinch force and the Hall pulse width critical value of the driving device.
[0039] In a possible implementation, after the anti-pinch protection mechanism of the seat is activated, the method further includes:
[0040] Recording a plurality of target Hall pulse width values and updating the anti-pinch times, wherein the plurality of target Hall pulse width values are used for anti-pinch cause analysis;
[0041] When a preset condition is met, clearing a plurality of the target Hall pulse width values and the anti-pinch times;
[0042] The preset condition includes any one of the following:
[0043] The anti-pinch times reaches a preset number;
[0044] The recording time of the plurality of target Hall pulse width values reaches a preset time.
[0045] In a second aspect, an embodiment of the present application provides a seat control device, the device comprising:
[0046] an acquisition module, configured to acquire an anti-pinch threshold value of the driving device when the driving device for driving the seat to move is switched from a stop state to a moving state, wherein the anti-pinch threshold value is determined based on a preset anti-pinch threshold value and a first Hall pulse width value in a first time period, wherein the first time period is an initial time period for stable operation of the driving device;
[0047] A collection module, used for collecting a plurality of second Hall pulse width values of the driving device within a target period, wherein the target period is later than the first time period;
[0048] a first determining module, configured to determine the second Hall pulse width value as a target Hall pulse width value when the second Hall pulse width value is greater than the anti-pinch threshold;
[0049] The anti-pinch module is used to activate the anti-pinch protection mechanism of the seat when the number of the target Hall pulse width values within the target cycle is greater than a preset number.
[0050] In a third aspect, an embodiment of the present application provides a vehicle, the vehicle comprising: a processor and a memory storing computer program instructions;
[0051] When the processor executes the computer program instructions, the processor implements any possible implementation method of the first aspect described above.
[0052] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements a method in any possible implementation method of the first aspect described above.
[0053] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a method as any possible implementation method in the first aspect above.
[0054] In the embodiment of the present application, when the driving device for driving the seat to move is switched from a stop state to a moving state (i.e., during the process of adjusting the seat), the anti-pinch threshold of the driving device is determined based on the preset anti-pinch threshold and the Hall pulse width value in the initial time period of stable operation of the driving device, so that the anti-pinch threshold of a single adjustment of the seat can be adaptively determined to ensure the effectiveness of the anti-pinch threshold in different environments. In addition, by collecting multiple second Hall pulse width values of the driving device in a target period, when the second Hall pulse width value is greater than the anti-pinch threshold, the second Hall pulse width value is determined as the target Hall pulse width value, and when the number of target Hall pulse width values in the target period is greater than the preset number, the anti-pinch protection mechanism of the seat is activated, that is, by jointly determining whether to activate the anti-pinch protection mechanism of the seat based on multiple judgment mechanisms (including determining whether the second Hall pulse width value is greater than the anti-pinch threshold, and whether the number of target Hall pulse width values in the target period is greater than the preset number), it is possible to avoid the misjudgment of determining whether to activate the anti-pinch mechanism based only on a fixed threshold, and ensure the reliability of seat anti-pinch. In this way, through the embodiment of the present application, the reliability of seat anti-pinch in different environments can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0056] Figure 1 is a flowchart of a seat control method provided in an embodiment of the present application;
[0057] Figure 2 is a flow chart of another seat control method provided in an embodiment of the present application;
[0058] Figure 3 is a structural schematic diagram of a seat control device provided in an embodiment of the present application;
[0059] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0061] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0062] In actual situations, the adjustment of vehicle seats is affected by both seat-specific factors and external factors. Among them, seat-specific factors may include seat frames, seat motors, etc. External factors may include ambient temperature, weight differences between drivers and passengers, and uncertain vibrations of the vehicle during driving.
[0063] On the one hand, due to the influence of the above-mentioned seat's own factors and external factors, during the seat adjustment process, the sensor data output by the same batch of seats in the same environment or different environments may be different, and the sensor data output by the same seat in different environments may also be different. Therefore, if the determination of whether to activate the anti-pinch mechanism is based only on a fixed threshold, it may cause misjudgment of anti-pinch, reducing the reliability of seat anti-pinch.
[0064] On the other hand, since the vehicle may experience uncertain vibrations during driving, if the anti-pinch mechanism is determined based only on a single difference between the sensor data and a fixed threshold, it may also cause misjudgment of anti-pinch and reduce the reliability of seat anti-pinch.
[0065] Thus, in order to solve the problems of the prior art, the embodiments of the present application provide a seat control method, device, vehicle, computer-readable storage medium and computer program product.
[0066] The following first introduces the seat control method provided in the embodiment of the present application.
[0067] Figure 1 FIG. 1 is a flow chart of a seat control method provided by an embodiment of the present application. The seat control method can be executed by a control unit in a vehicle. Figure 1 As shown, the seat control method provided in the embodiment of the present application includes the following steps:
[0068] S110, when the driving device for driving the seat to move is switched from a stopped state to a moving state, obtaining an anti-pinch threshold of the driving device, where the anti-pinch threshold is determined based on a preset anti-pinch threshold and a first Hall pulse width value in a first time period, where the first time period is an initial time period for stable operation of the driving device;
[0069] S120, collecting multiple second Hall pulse width values of the driving device within a target period, where the target period is later than the first time period;
[0070] S130, when the second Hall pulse width value is greater than the anti-pinch threshold, determining the second Hall pulse width value as the target Hall pulse width value;
[0071] S140: When the number of target Hall pulse width values within the target cycle is greater than a preset number, the anti-pinch protection mechanism of the seat is activated.
[0072] In the embodiment of the present application, when the driving device for driving the seat to move is switched from a stop state to a moving state (i.e., during the process of adjusting the seat), the anti-pinch threshold of the driving device is determined based on the preset anti-pinch threshold and the Hall pulse width value in the initial time period of stable operation of the driving device, so that the anti-pinch threshold of a single adjustment of the seat can be adaptively determined to ensure the effectiveness of the anti-pinch threshold in different environments. In addition, by collecting multiple second Hall pulse width values of the driving device in a target period, when the second Hall pulse width value is greater than the anti-pinch threshold, the second Hall pulse width value is determined as the target Hall pulse width value, and when the number of target Hall pulse width values in the target period is greater than the preset number, the anti-pinch protection mechanism of the seat is activated, that is, by jointly determining whether to activate the anti-pinch protection mechanism of the seat based on multiple judgment mechanisms (including determining whether the second Hall pulse width value is greater than the anti-pinch threshold, and whether the number of target Hall pulse width values in the target period is greater than the preset number), it is possible to avoid the misjudgment of determining whether to activate the anti-pinch mechanism based only on a fixed threshold, and ensure the reliability of seat anti-pinch. In this way, through the embodiment of the present application, the reliability of seat anti-pinch in different environments can be guaranteed.
[0073] The specific implementation methods of the above steps are introduced below.
[0074] In some embodiments, in S110, the drive device can be any one of a motor, a hydraulic drive device, a pneumatic drive device, etc., which is not limited here. In addition, when the drive device switches from a stopped state to a moving state, that is, from the initial stage of stopping to starting operation (such as in the second time period), the Hall pulse width value of the drive device usually changes greatly and the waveform is unstable. Therefore, in order to avoid the Hall pulse width value in the second time period affecting the reliability of subsequent seat anti-pinch, the Hall pulse width value in the second time period can be discarded. Among them, the second time period can be obtained by manually analyzing and calibrating the operating characteristics of the drive device. The second time period can be recorded as T1.
[0075] In addition, the anti-pinch threshold value may be one of the parameters used to determine whether to activate the anti-pinch protection mechanism during the current seat adjustment process. The anti-pinch threshold value may be a Hall pulse width value.
[0076] The first time period may be the initial time period for the stable operation of the driving device. During the first time period, the Hall pulse width value of the driving device is usually relatively stable. On the time axis, the first time period may be located after the second time period and adjacent to the second time period. During the first time period, the control unit may continuously collect the first Hall pulse width value of the driving device, and determine the anti-pinch threshold for this adjustment of the seat based on the first Hall pulse width value and the preset anti-pinch threshold. The first time period may be denoted as T2. In addition, the preset anti-pinch threshold may be a fixed threshold obtained by pre-calibrating the driving device.
[0077] As an example, if the control unit receives a control instruction to adjust the seat, it can control the driving device of the seat (such as a motor) to drive the seat to move. Among them, adjusting the seat can include automatic adjustment and manual adjustment by the user, which is not limited here. After T1, during T2, the control unit can collect multiple first Hall pulse width values of the driving device, and determine the anti-pinch threshold based on the preset anti-pinch threshold and the multiple first Hall pulse width values collected during T2.
[0078] Based on this, in order to ensure the effectiveness of the anti-pinch threshold in different environments, and thus improve the reliability of seat anti-pinch in different environments, in some embodiments, the above S110 may specifically include:
[0079] When the driving device for driving the seat to move is switched from a stop state to a moving state, collecting a plurality of first Hall pulse width values of the driving device within a first time period;
[0080] Calculate the average value of multiple first Hall pulse width values to obtain an anti-pinch reference value;
[0081] Obtain a preset anti-pinch threshold value of the drive device;
[0082] The anti-pinch threshold is obtained by calculating the sum of the anti-pinch reference value and the preset anti-pinch threshold.
[0083] Here, the first Hall pulse width value may be a Hall pulse width value collected within a first time period. Within the first time period, the control unit may collect multiple first Hall pulse width values according to a first collection cycle. That is, the collection time intervals of multiple first Hall pulse width values may be the same. The average value of multiple first Hall pulse width values may be an anti-pinch reference value. The anti-pinch reference value may vary depending on the environment in which the seat is adjusted this time. For example, if the temperature is low, the larger the Hall pulse width value, the larger the anti-pinch reference value. In addition, as described above, the preset anti-pinch threshold may be a fixed threshold obtained by pre-calibrating the drive device. That is, the preset anti-pinch threshold has nothing to do with the environment in which the seat is adjusted this time. In this way, by calculating the sum of the anti-pinch reference value and the preset anti-pinch threshold, the anti-pinch threshold related to the environment in which the seat is adjusted this time can be obtained.
[0084] In order to better illustrate the significance of calculating the anti-pinch threshold based on the seat adjustment data in the embodiment of the present application, a specific example is given.
[0085] For example, if the preset anti-pinch threshold is 60, and in a low temperature environment (such as minus 40 degrees Celsius), multiple first Hall pulse width values are between 130-140, then when determining whether to start the anti-pinch protection mechanism based only on the size relationship between the preset anti-pinch threshold and the Hall pulse width value, since 130 is greater than 60, the anti-pinch protection mechanism will always be activated, which will cause the seat to stop moving or retract, causing the preset anti-pinch threshold to fail, thereby reducing the user experience.
[0086] If the anti-pinch protection mechanism is determined based on the size relationship between the anti-pinch threshold and the Hall pulse width value, then since the multiple first Hall pulse width values are all greater than 130, the anti-pinch reference value is greater than 130, and the anti-pinch threshold is greater than 190, so the seat can move normally, and then the anti-pinch protection mechanism can be activated when the seat anti-pinch condition is met, thereby improving the reliability of seat anti-pinch in different environments. Among them, the seat anti-pinch condition will be introduced in detail later.
[0087] In this way, the embodiment of the present application can ensure the effectiveness of the anti-pinch threshold in different environments by calculating the anti-pinch threshold based on the seat adjustment data, thereby improving the reliability of seat anti-pinch in different environments.
[0088] In addition, the plurality of first Hall pulse width values may include a fifth Hall pulse width value and a plurality of sixth Hall pulse width values, wherein the acquisition time of the plurality of sixth Hall pulse width values may be earlier than that of the fifth Hall pulse width value.
[0089] Based on this, in order to improve the accuracy of the anti-pinch reference value, in some embodiments, the above-mentioned calculation of the average value of multiple first Hall pulse width values to obtain the anti-pinch reference value may specifically include:
[0090] When the fifth Hall pulse width value is collected, determining a difference between the fifth Hall pulse width value and a target average value, where the target average value is an average value of a plurality of sixth Hall pulse width values;
[0091] When the absolute value of the difference is greater than the preset threshold value and the duration is less than the first duration, the fifth Hall pulse width value is determined as an abnormal value;
[0092] determining a plurality of target first Hall pulse width values excluding abnormal values among the plurality of first Hall pulse width values;
[0093] The average value of the first Hall pulse width values of the targets is calculated to obtain an anti-pinch reference value.
[0094] Here, the fifth Hall pulse width value may be the Hall pulse width value most recently collected within the first time period. The Hall pulse width values collected before collecting the fifth Hall pulse width value may all be recorded as the sixth Hall pulse width value. In addition, the preset threshold may be a preset pulse width critical value for determining abnormal values. The preset threshold may, for example, be a preset anti-pinch threshold. In addition, the first duration may include at least one collection time interval of the first Hall pulse width value, that is, the second duration may include at least one first collection cycle. The first duration may be recorded as T3.
[0095] As an example, within the first time period, the control unit can scroll and calculate the average value of multiple first Hall pulse width values. When the absolute value of the difference between the collected pulse width value and the average value is greater than the preset threshold and the duration is less than T3, it is filtered and processed as an abnormal jump, which does not affect the calculation of the average value.
[0096] As a more specific example, in the first time period, if the control unit collects the first Hall pulse width value, the Hall pulse width value can be determined as the target average value, and the second Hall pulse width value can be collected. After collecting the second Hall pulse width value, the average value of the first two Hall pulse width values can be calculated, and the target average value can be updated using the average value, and the third Hall pulse width value can be collected. After collecting the third Hall pulse width value, the difference between the Hall pulse width value and the target average value can be calculated first. If the absolute value of the difference is less than or equal to the preset threshold, the average value of the first three Hall pulse width values can be calculated, and the target average value can be updated using the average value, and the fourth Hall pulse width value can be collected. After collecting the fourth Hall pulse width value, the difference between the Hall pulse width value and the target average value can be calculated first. If the absolute value of the difference is greater than the preset threshold, the Hall pulse width value can be temporarily determined as an abnormal value, and the fifth Hall pulse width value can be collected. After collecting the fifth Hall pulse width value, the difference between the Hall pulse width value and the target average value can be calculated first. If the absolute value of the difference is less than or equal to the preset threshold, it can be determined that the duration of the absolute value of the difference greater than the preset threshold is a first collection cycle, and then it can be determined that the duration is less than the first duration, and then the fourth Hall pulse width value can be determined as an abnormal value.
[0097] On the other hand, assuming that the first time length includes two first acquisition cycles, and the absolute value of the difference between the fifth Hall pulse width value and the target average value is greater than the preset threshold, it can be determined that the duration for which the absolute value of the difference is greater than the preset threshold is equal to the first time length, thereby determining that the Hall pulse width value of the driving device is indeed increasing, rather than being an abnormal situation. Therefore, the average value of the first five Hall pulse width values can be continued to be calculated, and the target average value can be updated using the average value.
[0098] It should be noted that the first time duration including two first acquisition cycles is only an example. In the embodiment of the present application, in order to improve the accuracy of determining abnormal values, the first time duration may include at least three first acquisition cycles. In addition, the first time period is usually less than 1 second, which is short. Therefore, even if the Hall pulse width value continues to increase during the first time period, it is usually not necessary to activate the anti-pinch protection mechanism.
[0099] In this way, the embodiment of the present application can improve the accuracy of the anti-pinch reference value by first determining multiple target first Hall pulse width values excluding abnormal values among multiple first Hall pulse width values, and then calculating the average value of the multiple target first Hall pulse width values to obtain the anti-pinch reference value.
[0100] In addition, in order to further improve the reliability of seat anti-pinch in different environments, in some embodiments, the above-mentioned acquisition of the preset anti-pinch threshold of the driving device may specifically include:
[0101] Display the anti-pinch force adjustment interface, which is used to adjust the anti-pinch force of the anti-pinch protection mechanism. The anti-pinch force is associated with the Hall pulse width critical value of the drive device;
[0102] Receiving a second adjustment input of the anti-pinch force by the user in the anti-pinch force adjustment interface;
[0103] In response to the second adjustment input, a preset anti-pinch threshold is determined based on a corresponding relationship between the anti-pinch force and a critical value of a Hall pulse width of the driving device.
[0104] Here, the anti-pinch force adjustment interface can be an interface in the vehicle's central control screen. The correspondence between the anti-pinch force and the Hall pulse width critical value can be pre-calibrated. Since the Hall pulse width value usually changes greatly at the moment of seat startup, in order to ensure the accuracy of the above correspondence, the seat startup moment can be avoided when calibrating the above correspondence, thereby avoiding false anti-pinch and causing abnormal seat movement.
[0105] In addition, the anti-pinch force adjustment interface may include an anti-pinch force adjustment control, and the second adjustment input may be a user input to the anti-pinch force adjustment control. The embodiment of the present application does not limit the specific form of the anti-pinch force adjustment control and the specific method of the second adjustment input. For example, the anti-pinch force adjustment control may be an input control, and the second adjustment input may be an input in which the user directly enters the size of the anti-pinch force in the input control. The anti-pinch force adjustment control may also be a selection control, and the second adjustment input may be an input in which the user selects any one of a plurality of anti-pinch forces. The anti-pinch force adjustment control may also be a sliding control, and the second adjustment input may be an input in which the user selects the anti-pinch force by sliding the sliding control.
[0106] In this way, by displaying the anti-pinch force adjustment interface and responding to the user's second adjustment input of the anti-pinch force in the anti-pinch force adjustment interface, the preset anti-pinch threshold is determined based on the correspondence between the anti-pinch force and the Hall pulse width critical value of the driving device. The preset anti-pinch threshold can be continuously improved, thereby improving the accuracy of the anti-pinch threshold and further improving the reliability of seat anti-pinch in different environments.
[0107] In addition, in order to reduce the risk of anti-pinch failure due to abnormality of the driving device, in some embodiments, after obtaining the anti-pinch reference value, the method may further include:
[0108] Determine the factory parameters of the drive device based on multiple anti-pinch reference values;
[0109] Based on the factory parameters, check whether the drive device is abnormal.
[0110] Here, the multiple anti-pinch reference values may be the anti-pinch reference values corresponding to the drive devices with the same properties under the same environment. The drive devices with the same properties may be seats produced in the same batch. The same properties of the drive devices may include the same type of drive device, the same structure of the drive device, the same driving mode of the drive device, etc. In addition, the factory parameters may be a range. For example, if the multiple anti-pinch reference values are all between 40 and 60, the factory parameters may be [40, 60].
[0111] As an example, after determining the anti-pinch reference value, the anti-pinch reference value and its corresponding property information of the drive device and external environment information can be saved. After obtaining multiple anti-pinch reference values, the multiple anti-pinch reference values can be screened based on the property information of the drive device and the external environment information to obtain the anti-pinch reference values corresponding to the drive devices with the same properties under the same environment, and then the factory parameters of the drive device can be determined based on the maximum and minimum values of the screened multiple anti-pinch reference values to evaluate the consistency of the drive device.
[0112] The embodiment of the present application can reduce the risk of anti-pinch failure due to abnormality of the driving device by detecting whether the driving device is abnormal based on the above-mentioned factory parameters.
[0113] In some embodiments, in S120, the second Hall pulse width value may be a Hall pulse width value collected in a target period. On the time axis, the target period may be any one of a plurality of collection periods after the first time period. The target period may be recorded as T4.
[0114] As an example, in each target cycle, the control unit may collect multiple second Hall pulse width values according to the second collection cycle. That is, the collection time intervals of the multiple second Hall pulse width values may be the same. The second collection cycle may be the same as or different from the first collection cycle described above, which is not limited here.
[0115] In some embodiments, in S130, if the second Hall pulse width value is greater than the anti-pinch threshold, the second Hall pulse width value may be determined as the target Hall pulse width value, wherein the number of the target Hall pulse width values may be any integer including 0.
[0116] Based on this, in order to ensure the reliability of the seat anti-pinch function during the whole process of adjusting the seat, in some embodiments, after the above S130, the method may further include:
[0117] When the number of target Hall pulse width values in the target period is less than or equal to a preset number, clearing the number of target Hall pulse width values in the target period;
[0118] The next cycle of the target cycle is taken as the target cycle, and a plurality of second Hall pulse width values of the acquisition driving device in the target cycle are returned and executed.
[0119] Here, the preset number may be a critical number of target Hall pulse width values for determining whether to activate the anti-pinch protection mechanism. If the number of target Hall pulse width values within the target period is less than or equal to the preset number, it may be determined that there is no anti-pinch risk within the target period. If the number of target Hall pulse width values within the target period is greater than the preset number, it may be determined that there is an anti-pinch risk within the target period. In addition, the preset number may be associated with the sensitivity of the anti-pinch protection mechanism. The larger the preset number, the weaker the sensitivity of the anti-pinch protection mechanism may be.
[0120] As an example, if the number of target Hall pulse width values in a target cycle is less than or equal to a preset number, it can be determined that there is no anti-pinch risk in the target cycle, and the number of target Hall pulse width values in the cycle can be reset to zero, and the judgment of the next cycle can be continued. Before the drive device stops running, it can be determined whether to start the anti-pinch protection mechanism of the seat according to the target cycle.
[0121] The embodiment of the present application cyclically executes the above steps of collecting multiple second Hall pulse width values within the target cycle, determining the target Hall pulse width value among the multiple second Hall pulse width values, and determining whether to activate the anti-pinch protection mechanism of the seat based on the relationship between the number of target Hall pulse width values within the target cycle and the preset number, thereby ensuring the reliability of the seat anti-pinch during the entire process of adjusting the seat.
[0122] In some embodiments, in S140, if the number of target Hall pulse width values in the target cycle is greater than a preset number, it can be determined that there is an anti-pinch risk in the target cycle, and then the anti-pinch protection mechanism of the seat is activated. The anti-pinch protection mechanism of the seat can include any one of stopping the movement of the drive device and moving the drive device in the reverse direction, which is not limited here.
[0123] Based on this, in order to ensure the reliability of seat anti-pinch in different environments, in some embodiments, after the above S140, the method may further include:
[0124] When the driving device switches from a moving state to a stopped state, the anti-pinch threshold is restored to a preset anti-pinch threshold;
[0125] Monitor the operating status of the drive device;
[0126] When the motion state is switched from the stop state to the motion state, a first anti-pinch threshold of the driving device is obtained, where the first anti-pinch threshold is determined based on a preset anti-pinch threshold and a third Hall pulse width value within a first time period;
[0127] Collecting multiple fourth Hall pulse width values of the driving device within a target period;
[0128] When the fourth Hall pulse width value is greater than the first anti-pinch threshold value, determining the fourth Hall pulse width value as the target Hall pulse width value;
[0129] When the number of target Hall pulse width values within the target cycle is greater than a preset number, the anti-pinch protection mechanism of the seat is activated.
[0130] Here, the running state may include a moving state and a stopped state. In addition, the third Hall pulse width value, the fourth Hall pulse width value and the first anti-pinch threshold value may be affected by the environment. That is, the numerical value of the third Hall pulse width value may be the same as or different from the numerical value of the first Hall pulse width value mentioned above. The fourth Hall pulse width value may be the same as or different from the numerical value of the second Hall pulse width value mentioned above. The numerical value of the first anti-pinch threshold value may be the same as or different from the numerical value of the anti-pinch threshold value mentioned above.
[0131] After the driving device switches from the moving state to the stopped state, the anti-pinch threshold can be cleared and the anti-pinch threshold can be restored to the preset anti-pinch threshold described above. After the driving device is restarted, the anti-pinch threshold can be adaptively updated again according to the above strategy.
[0132] The embodiment of the present application obtains the anti-pinch threshold required for each seat adjustment each time the seat is adjusted, and can adaptively determine the anti-pinch threshold for a single seat adjustment, thereby ensuring the effectiveness of the anti-pinch threshold in different environments, and further ensuring the reliability of seat anti-pinch in different environments.
[0133] Based on this, in order to further improve the reliability of seat anti-pinch in different environments, in some embodiments, before the above S140, the method may further include:
[0134] Display the sensitivity adjustment interface, which is used to adjust the sensitivity of the anti-pinch protection mechanism. The sensitivity is associated with the critical number of the target Hall pulse width value;
[0135] Receiving a first sensitivity adjustment input from a user on a sensitivity adjustment interface;
[0136] In response to the first adjustment input, a preset number is determined based on a corresponding relationship between the sensitivity and a critical number of target Hall pulse width values.
[0137] Here, the sensitivity adjustment interface can be an interface in the vehicle's central control screen. The correspondence between the sensitivity and the critical number of the target Hall pulse width value can be pre-calibrated. Since the Hall pulse width value usually changes greatly at the moment of seat startup, in order to ensure the accuracy of the above correspondence, the seat startup moment can be avoided when calibrating the above correspondence, thereby avoiding false anti-pinch and causing abnormal seat movement.
[0138] In addition, the sensitivity adjustment interface may include a sensitivity adjustment control, and the first adjustment input may be an input by the user to the sensitivity adjustment control. The embodiment of the present application does not limit the specific form of the sensitivity adjustment control and the specific method of the first adjustment input. For example, the sensitivity adjustment control may be an input control, and the first adjustment input may be an input by the user directly entering the sensitivity size in the input control. The sensitivity adjustment control may also be a selection control, and the first adjustment input may be an input by the user selecting any one of multiple sensitivities. The sensitivity adjustment control may also be a sliding control, and the first adjustment input may be an input by the user selecting the sensitivity by sliding the sliding control.
[0139] In this way, by displaying the sensitivity adjustment interface and responding to the user's first adjustment input of the sensitivity in the sensitivity adjustment interface, the preset number is determined based on the correspondence between the sensitivity and the critical number of the target Hall pulse width value. The preset number can be flexibly adjusted, that is, the anti-pinch sensitivity can be flexibly adjusted, which can further improve the reliability of seat anti-pinch in different environments.
[0140] In addition, in order to continuously and sustainably optimize the anti-pinch function, in some embodiments, after the above S140, the method may further include:
[0141] Record multiple target Hall pulse width values and update the anti-pinch times. Multiple target Hall pulse width values are used for anti-pinch cause analysis.
[0142] When the preset conditions are met, multiple target Hall pulse width values and anti-pinch times are cleared;
[0143] Pre-conditions include any of the following:
[0144] The number of anti-pinch times reaches the preset number;
[0145] The recording time of multiple target Hall pulse width values reaches the preset time.
[0146] Here, each time the anti-pinch protection mechanism is activated, an anti-pinch event and multiple target Hall pulse width values related to the anti-pinch event can be recorded, and the value of the anti-pinch trigger is increased by 1, so that the user can subsequently perform anti-pinch cause analysis based on the target Hall pulse width value, thereby continuously optimizing the anti-pinch function. Among them, the user can perform anti-pinch cause analysis based only on the anti-pinch event, or based on multiple saved anti-pinch events, which is not limited here.
[0147] In addition, users can customize the recording time of the data corresponding to the anti-pinch event (i.e., multiple target Hall pulse width values) or the number of anti-pinch event cycles (i.e., preset times). If the recording time or the preset times are exceeded, the multiple target Hall pulse width values and anti-pinch times can be automatically cleared to ensure that the latest anti-pinch events can be continuously recorded, thus optimizing the sustainability of the anti-pinch function.
[0148] In this way, through the embodiments of the present application, the anti-pinch function can be continuously and sustainably optimized.
[0149] In order to better describe the entire solution, some specific examples are given based on the above embodiments.
[0150] For example, Figure 2 As shown, the seat control method provided in the embodiment of the present application may include the following steps:
[0151] S21, receiving a control instruction for adjusting the seat;
[0152] S22, in response to the control instruction, start controlling the driving device to operate;
[0153] S23, after the driving device runs for T1, during T2, collecting a plurality of first Hall pulse width values of the driving device;
[0154] S24, calculating the average value of a plurality of first Hall pulse width values to obtain an anti-pinch reference value;
[0155] S25, obtaining a preset anti-pinch threshold;
[0156] S26, calculating the sum of the anti-pinch reference value and the preset anti-pinch threshold value to obtain the anti-pinch threshold value;
[0157] S27, collecting multiple second Hall pulse width values within the target period after T2;
[0158] S28, determining whether the second Hall pulse width value is greater than the anti-pinch threshold, if so, executing S29, if not, executing S211;
[0159] S29, determining whether the number of target Hall pulse width values greater than the anti-pinch threshold value within the target period is greater than a preset number, if so, executing S210, if not, executing S211;
[0160] S210, activate the anti-pinch protection mechanism of the seat;
[0161] S211: The seat's anti-pinch protection mechanism is not activated.
[0162] The embodiment of the present application determines the anti-pinch threshold of the driving device based on the preset anti-pinch threshold and the Hall pulse width value in the initial time period of stable operation of the driving device during the process of adjusting the seat, and can adaptively determine the anti-pinch threshold of a single adjustment of the seat, thereby ensuring the effectiveness of the anti-pinch threshold in different environments. In addition, by collecting multiple second Hall pulse width values of the driving device in a target period, when the second Hall pulse width value is greater than the anti-pinch threshold, the second Hall pulse width value is determined as the target Hall pulse width value, and when the number of target Hall pulse width values in the target period is greater than the preset number, the anti-pinch protection mechanism of the seat is activated, that is, by jointly determining whether to activate the anti-pinch protection mechanism of the seat based on multiple judgment mechanisms (including determining whether the second Hall pulse width value is greater than the anti-pinch threshold, and whether the number of target Hall pulse width values in the target period is greater than the preset number), it is possible to avoid the misjudgment of determining whether to activate the anti-pinch mechanism based only on a fixed threshold, thereby ensuring the reliability of seat anti-pinch. In this way, through the embodiment of the present application, the reliability of seat anti-pinch in different environments can be guaranteed.
[0163] Based on the seat control method provided in the above embodiment, the present application also provides a specific implementation of the seat control device. Please refer to the following embodiment.
[0164] like Figure 3 As shown, the seat control device 300 provided in the embodiment of the present application includes the following modules:
[0165] an acquisition module 310, configured to acquire an anti-pinch threshold of the driving device when the driving device for driving the seat to move is switched from a stop state to a moving state, wherein the anti-pinch threshold is determined based on a preset anti-pinch threshold and a first Hall pulse width value in a first time period, wherein the first time period is an initial time period for stable operation of the driving device;
[0166] The acquisition module 320 is used to acquire a plurality of second Hall pulse width values of the driving device within a target period, where the target period is later than the first time period;
[0167] A first determination module 330, configured to determine the second Hall pulse width value as a target Hall pulse width value when the second Hall pulse width value is greater than an anti-pinch threshold;
[0168] The anti-pinch module 340 is used to activate the anti-pinch protection mechanism of the seat when the number of target Hall pulse width values within a target cycle is greater than a preset number.
[0169] The seat control device 300 is described in detail below, as shown below:
[0170] In some embodiments, the seat control device 300 may further include:
[0171] A reset module, used for restoring the anti-pinch threshold to a preset anti-pinch threshold when the driving device switches from a moving state to a stopped state;
[0172] A monitoring module, used for monitoring the operating status of the drive device;
[0173] The acquisition module 310 is further used to acquire a first anti-pinch threshold of the driving device when the motion state is switched from the stop state to the motion state, where the first anti-pinch threshold is determined based on a preset anti-pinch threshold and a third Hall pulse width value within a first time period;
[0174] The acquisition module 320 is further used to acquire a plurality of fourth Hall pulse width values of the driving device within a target period;
[0175] The first determination module 330 is further configured to determine the fourth Hall pulse width value as a target Hall pulse width value when the fourth Hall pulse width value is greater than the first anti-pinch threshold value;
[0176] The anti-pinch module 340 is further used to activate the anti-pinch protection mechanism of the seat when the number of target Hall pulse width values within the target cycle is greater than a preset number.
[0177] In some embodiments, the seat control device 300 may further include:
[0178] a clearing module, for clearing the number of target Hall pulse width values in a target period to zero after determining the second Hall pulse width value as a target Hall pulse width value when the second Hall pulse width value is greater than an anti-pinch threshold and when the number of target Hall pulse width values in a target period is less than or equal to a preset number;
[0179] The execution module is used to take the next cycle of the target cycle as the target cycle and return to execute the acquisition of multiple second Hall pulse width values of the driving device within the target cycle.
[0180] In some embodiments, the seat control device 300 may further include:
[0181] A display module, used for displaying a sensitivity adjustment interface before activating the anti-pinch protection mechanism of the seat when the number of target Hall pulse width values within the target cycle is greater than a preset number, wherein the sensitivity adjustment interface is used to adjust the sensitivity of the anti-pinch protection mechanism, and the sensitivity is associated with a critical number of target Hall pulse width values;
[0182] A receiving module, used for receiving a first sensitivity adjustment input from a user on a sensitivity adjustment interface;
[0183] The second determination module is used to determine the preset number in response to the first adjustment input based on the corresponding relationship between the sensitivity and the critical number of the target Hall pulse width value.
[0184] In some embodiments, the acquisition module 310 may specifically include:
[0185] A collection submodule, used for collecting a plurality of first Hall pulse width values of the driving device within a first time period when the driving device for driving the seat to move is switched from a stop state to a moving state;
[0186] A first calculation submodule, used for calculating an average value of a plurality of first Hall pulse width values to obtain an anti-pinch reference value;
[0187] An acquisition submodule, used for acquiring a preset anti-pinch threshold value of the drive device;
[0188] The second calculation submodule is used to calculate the sum of the anti-pinch reference value and the preset anti-pinch threshold value to obtain the anti-pinch threshold value.
[0189] In some embodiments, the plurality of first Hall pulse width values include a fifth Hall pulse width value and a plurality of sixth Hall pulse width values, and the acquisition time of the plurality of sixth Hall pulse width values is earlier than the fifth Hall pulse width value. Based on this, the first calculation submodule may specifically include:
[0190] A first determining unit is used to determine a difference between the fifth Hall pulse width value and a target average value when the fifth Hall pulse width value is collected, where the target average value is an average value of multiple sixth Hall pulse width values;
[0191] A second determining unit, configured to determine the fifth Hall pulse width value as an abnormal value when the absolute value of the difference is greater than a preset threshold and the duration is less than the first duration;
[0192] a third determining unit, configured to determine a plurality of target first Hall pulse width values excluding abnormal values from among the plurality of first Hall pulse width values;
[0193] The calculation unit is used to calculate the average value of multiple target first Hall pulse width values to obtain an anti-pinch reference value.
[0194] In some embodiments, the acquisition submodule may specifically include:
[0195] A display unit, used for displaying an anti-pinch force adjustment interface, where the anti-pinch force adjustment interface is used to adjust the anti-pinch force of the anti-pinch protection mechanism, where the anti-pinch force is associated with a critical value of a Hall pulse width of a driving device;
[0196] A receiving unit, configured to receive a second adjustment input of the anti-pinch force by the user on the anti-pinch force adjustment interface;
[0197] The fourth determination unit is used to determine a preset anti-pinch threshold value in response to the second adjustment input based on the corresponding relationship between the anti-pinch force and the Hall pulse width critical value of the driving device.
[0198] In some embodiments, the seat control device 300 may further include:
[0199] A third determination module is used to determine the factory parameters of the driving device based on a plurality of anti-pinch reference values after obtaining the anti-pinch reference value;
[0200] The detection module is used to detect whether the drive device is abnormal based on factory parameters.
[0201] In some embodiments, the seat control device 300 may further include:
[0202] A recording module is used to record multiple target Hall pulse width values and update the anti-pinch times after the anti-pinch protection mechanism of the seat is activated. The multiple target Hall pulse width values are used for anti-pinch cause analysis;
[0203] A clearing module is used to clear multiple target Hall pulse width values and anti-pinch times when preset conditions are met;
[0204] Prerequisites include any of the following:
[0205] The number of anti-pinch times reaches the preset number;
[0206] The recording time of multiple target Hall pulse width values reaches the preset time.
[0207] In the embodiment of the present application, when the driving device for driving the seat to move is switched from a stop state to a moving state (i.e., during the process of adjusting the seat), the anti-pinch threshold of the driving device is determined based on the preset anti-pinch threshold and the Hall pulse width value in the initial time period of stable operation of the driving device, so that the anti-pinch threshold of a single adjustment of the seat can be adaptively determined to ensure the effectiveness of the anti-pinch threshold in different environments. In addition, by collecting multiple second Hall pulse width values of the driving device in a target period, when the second Hall pulse width value is greater than the anti-pinch threshold, the second Hall pulse width value is determined as the target Hall pulse width value, and when the number of target Hall pulse width values in the target period is greater than the preset number, the anti-pinch protection mechanism of the seat is activated, that is, by jointly determining whether to activate the anti-pinch protection mechanism of the seat based on multiple judgment mechanisms (including determining whether the second Hall pulse width value is greater than the anti-pinch threshold, and whether the number of target Hall pulse width values in the target period is greater than the preset number), it is possible to avoid the misjudgment of determining whether to activate the anti-pinch mechanism based only on a fixed threshold, and ensure the reliability of seat anti-pinch. In this way, through the embodiment of the present application, the reliability of seat anti-pinch in different environments can be guaranteed.
[0208] Based on the seat control method provided in the above embodiment, the embodiment of the present application also provides a specific implementation of a vehicle, wherein the vehicle may include an electronic device. Figure 4 A schematic diagram of an electronic device 400 provided in an embodiment of the present application is shown.
[0209] The electronic device 400 may include a processor 410 and a memory 420 storing computer program instructions.
[0210] Specifically, the processor 410 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0211] The memory 420 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 420 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 420 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 420 may be inside or outside the electronic device 400. In a particular embodiment, the memory 420 is a non-volatile solid-state memory.
[0212] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.
[0213] The processor 410 implements any one of the seat control methods in the above embodiments by reading and executing computer program instructions stored in the memory 420 .
[0214] In one example, the electronic device 400 may further include a communication interface 430 and a bus 440. Figure 4 As shown, the processor 410, the memory 420, and the communication interface 430 are connected via a bus 440 and communicate with each other.
[0215] The communication interface 430 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0216] Bus 440 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 440 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0217] Exemplarily, the electronic device 400 may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).
[0218] The electronic device can execute the seat control method in the embodiment of the present application, thereby realizing the combination Figure 1 to Figure 2 Describe the seat control method.
[0219] In addition, in combination with the seat control method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the seat control methods in the above embodiment is implemented.
[0220] In combination with the seat control method in the above embodiment, the embodiment of the present application can provide a computer program product to implement. When the instructions in the computer program product are executed by a processor of an electronic device, any one of the seat control methods in the above embodiment is implemented.
[0221] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0222] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0223] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0224] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0225] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A seat control method, characterized in that: include: When a driving device for driving the seat to move switches from a stop state to a moving state, obtaining an anti-pinch threshold of the driving device, wherein the anti-pinch threshold is determined based on a preset anti-pinch threshold and a first Hall pulse width value in a first time period, wherein the first time period is an initial time period for stable operation of the driving device; collecting a plurality of second Hall pulse width values of the driving device within a target period, wherein the target period is later than the first time period; When the second Hall pulse width value is greater than the anti-pinch threshold, determining the second Hall pulse width value as a target Hall pulse width value; When the number of the target Hall pulse width values within the target period is greater than a preset number, the anti-pinch protection mechanism of the seat is activated.
2. The method according to claim 1, characterized in that After the anti-pinch protection mechanism of the seat is activated, the method further comprises: When the driving device switches from a moving state to a stopped state, restoring the anti-pinch threshold to the preset anti-pinch threshold; monitoring the operating status of the drive device; When the motion state is switched from the stop state to the motion state, obtaining a first anti-pinch threshold of the driving device, wherein the first anti-pinch threshold is determined based on the preset anti-pinch threshold and the third Hall pulse width value within the first time period; collecting a plurality of fourth Hall pulse width values of the driving device within the target period; When the fourth Hall pulse width value is greater than the first anti-pinch threshold value, determining the fourth Hall pulse width value as the target Hall pulse width value; When the number of the target Hall pulse width values within the target period is greater than the preset number, the anti-pinch protection mechanism of the seat is activated.
3. The method according to claim 1, characterized in that In the case where the second Hall pulse width value is greater than the anti-pinch threshold, after determining the second Hall pulse width value as the target Hall pulse width value, the method further includes: When the number of the target Hall pulse width values in the target period is less than or equal to the preset number, clearing the number of the target Hall pulse width values in the target period; The next cycle of the target cycle is used as the target cycle, and the step of collecting a plurality of second Hall pulse width values of the driving device within the target cycle is returned to be executed.
4. The method according to any one of claims 1 to 3, characterized in that: When the number of the target Hall pulse width values within the target period is greater than a preset number, before the anti-pinch protection mechanism of the seat is activated, the method further includes: Displaying a sensitivity adjustment interface, wherein the sensitivity adjustment interface is used to adjust the sensitivity of the anti-pinch protection mechanism, wherein the sensitivity is associated with a critical number of the target Hall pulse width value; receiving a first adjustment input of the sensitivity by a user on the sensitivity adjustment interface; In response to the first adjustment input, the preset number is determined based on a corresponding relationship between the sensitivity and a critical number of the target Hall pulse width values.
5. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining the anti-pinch threshold of the driving device when the driving device for driving the seat to move is switched from a stop state to a moving state includes: When the driving device for driving the seat to move is switched from a stop state to a moving state, collecting a plurality of first Hall pulse width values of the driving device within the first time period; Calculating an average value of the plurality of first Hall pulse width values to obtain an anti-pinch reference value; Obtaining a preset anti-pinch threshold value of the drive device; The anti-pinch threshold is obtained by calculating the sum of the anti-pinch reference value and the preset anti-pinch threshold.
6. The method according to claim 5, characterized in that The multiple first Hall pulse width values include a fifth Hall pulse width value and multiple sixth Hall pulse width values, the acquisition time of the multiple sixth Hall pulse width values is earlier than the fifth Hall pulse width value, and the average value of the multiple first Hall pulse width values is calculated to obtain the anti-pinch reference value, including: When the fifth Hall pulse width value is collected, determining a difference between the fifth Hall pulse width value and a target average value, wherein the target average value is an average value of the plurality of sixth Hall pulse width values; When the absolute value of the difference is greater than a preset threshold value and the duration is less than the first duration, the fifth Hall pulse width value is determined as an abnormal value; determining a plurality of target first Hall pulse width values excluding the abnormal value among the plurality of first Hall pulse width values; The average value of the plurality of target first Hall pulse width values is calculated to obtain the anti-pinch reference value.
7. The method according to claim 5, characterized in that The obtaining of a preset anti-pinch threshold of the driving device includes: Displaying an anti-pinch force adjustment interface, wherein the anti-pinch force adjustment interface is used to adjust the anti-pinch force of the anti-pinch protection mechanism, wherein the anti-pinch force is associated with a critical value of the Hall pulse width of the driving device; receiving a second adjustment input of the anti-pinch force by the user on the anti-pinch force adjustment interface; In response to the second adjustment input, the preset anti-pinch threshold is determined based on the corresponding relationship between the anti-pinch force and the Hall pulse width critical value of the driving device.
8. The method according to any one of claims 1 to 3, characterized in that: After the anti-pinch protection mechanism of the seat is activated, the method further comprises: Recording a plurality of target Hall pulse width values and updating the anti-pinch times, wherein the plurality of target Hall pulse width values are used for anti-pinch cause analysis; When a preset condition is met, clearing a plurality of the target Hall pulse width values and the anti-pinch times; The preset condition includes any one of the following: The anti-pinch times reaches a preset number; The recording time of the plurality of target Hall pulse width values reaches a preset time.
9. A seat control device, characterized in that: The device comprises: an acquisition module, configured to acquire an anti-pinch threshold value of the driving device when the driving device for driving the seat to move is switched from a stop state to a moving state, wherein the anti-pinch threshold value is determined based on a preset anti-pinch threshold value and a first Hall pulse width value in a first time period, wherein the first time period is an initial time period for stable operation of the driving device; A collection module, used for collecting a plurality of second Hall pulse width values of the driving device within a target period, wherein the target period is later than the first time period; a first determining module, configured to determine the second Hall pulse width value as a target Hall pulse width value when the second Hall pulse width value is greater than the anti-pinch threshold; The anti-pinch module is used to activate the anti-pinch protection mechanism of the seat when the number of the target Hall pulse width values within the target cycle is greater than a preset number.
10. A vehicle, characterized in that: The vehicle includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the seat control method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Seat anti-pinch method and related equipment
CN121375591A