Electric side step control method, apparatus and device, vehicle, and medium
By adding the judgment of subsequent working current data status and current array update to the electric pedal control system, the accuracy problem of the anti-pinch function control of the electric pedal is solved, and the accuracy and user experience of the anti-pinch function are improved.
Patent Information
- Application Number
- PCT/CN2024/080002
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-08
- Filing Date
- 2024-03-04
- Publication Date
- 2024-09-12
AI Technical Summary
The control accuracy of the anti-pinch function of the existing electric pedal is poor, and it is easy to accidentally prevent or fail to prevent the pedal from being pinched, which affects the user experience.
By increasing the judgment on the status of subsequent working current data and updating the current array in a trusted state, the anti-pinch function of the electric pedal is controlled based on the two current arrays before and after the update, thereby improving the accuracy of the anti-pinch function.
It reduces the risk of the electric pedal accidentally being pinched or not being pinched, and improving the user experience.
Smart Images

Figure CN2024080002_12092024_PF_FP_ABST
Abstract
Description
Electric pedal control method, control device, control equipment, vehicle and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202310224373.6 and application date of March 8, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present disclosure relates to the field of vehicle technology, and in particular to an electric pedal control method, a control device, a control equipment, a vehicle, and a medium. Background Art
[0004] As people's living standards improve, more and more people choose cars as a means of transportation. At present, because the chassis of high-chassis SUV (Sport / Suburban Utility Vehicle) cars and off-road vehicles are higher, pedals need to be installed on both sides of the car.
[0005] The main types of running boards on the market today are fixed running boards and electric running boards. Fixed running boards are immobile and take up space, which can lead to scratches on some roads. Therefore, automatically retractable electric running boards are now commonly used. To ensure user safety, electric running boards need to have an anti-pinch function. Related technologies use a recursive average filtering method to control the anti-pinch function of electric running boards. However, this method has poor accuracy in controlling the anti-pinch function of electric running boards, making it prone to false anti-pinch or non-anti-pinch situations, resulting in a poor user experience.
[0006] Summary of the Invention
[0007] The present disclosure aims to solve the technical problems in the related art to a certain extent.
[0008] To this end, the present disclosure proposes an electric pedal control method, control device, control equipment, vehicle and medium, which increases the judgment of the first subsequent working current data state, and updates the current array according to the first subsequent working current when the first subsequent working current data state is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0009] An embodiment of the first aspect of the present disclosure proposes an electric pedal control method, including the following steps: obtaining the working currents of N electric pedal motors as a first current array; calculating the average value of the N working currents in the first current array as a first average value; judging the data state of the first subsequent working current based on the magnitude relationship between at least one subsequent working current obtained and the first average value; when the data state of the first subsequent working current is credible, updating the first current array according to the subsequent working current, and using the obtained current data as a second current array; and controlling the anti-pinch function of the electric pedal based on the first current array and the second current array.
[0010] According to the electric pedal control method of the embodiment of the present disclosure, the working currents of N electric pedal motors are obtained as a first current array, and then the average value of the N working currents in the first current array is calculated as the first average value. Based on the magnitude relationship between at least one subsequent working current obtained and the first average value, the data state of the first subsequent working current is judged, and if the data state of the first subsequent working current is credible, the first current array is updated according to the first subsequent working current, and the obtained current data is used as the second current array. Finally, based on the first current array and the second current array, the anti-pinch function of the electric pedal is controlled. Therefore, the method improves the accuracy of the control of the anti-pinch function of the electric pedal by increasing the judgment of the data state of the first subsequent working current, and if the data state of the first subsequent working current is credible, the current array is updated according to the first subsequent working current, and the anti-pinch function of the electric pedal is controlled according to the two current arrays before and after the update, thereby reducing the risk of the electric pedal being erroneously anti-pinch or not anti-pinch, and improving the user experience.
[0011] According to an embodiment of the present disclosure, determining the data state of the first subsequent operating current based on the acquired magnitude relationship between at least one subsequent operating current and the first average value includes:
[0012] calculating an absolute difference between a first subsequent operating current and the first average value as a first absolute difference;
[0013] The data state of the first subsequent operating current is determined according to a magnitude relationship between the first absolute difference and a set threshold.
[0014] According to an embodiment of the present disclosure, determining the data state of the first subsequent operating current according to the magnitude relationship between the first absolute difference and a set threshold value includes:
[0015] When the first absolute difference is less than or equal to the set threshold, determining that the data state of the first subsequent operating current is credible; or
[0016] When the first absolute difference is greater than the set threshold, it is determined that the data state of the first subsequent operating current is pending.
[0017] According to an embodiment of the present disclosure, determining the data state of the first subsequent operating current according to the magnitude relationship between the first absolute difference and a set threshold value includes:
[0018] When the data state of the first subsequent operating current is pending, calculating an absolute difference between the second subsequent operating current and the first average value as a second absolute difference;
[0019] According to the magnitude relationship between the second absolute difference and the set threshold, it is determined whether the data state of the first subsequent working current is credible or uncredible.
[0020] According to an embodiment of the present disclosure, determining whether the data state of the first subsequent operating current is credible or uncredible based on a magnitude relationship between the second absolute difference and the set threshold value includes:
[0021] In a case where the second absolute difference is greater than the set threshold, determining that the data state of the first subsequent operating current is credible; or,
[0022] When the second absolute difference is less than or equal to the set threshold, it is determined that the data state of the first subsequent working current is untrustworthy.
[0023] According to an embodiment of the present disclosure, the updating of the first current array according to the first subsequent operating current to obtain a current array as the second current array includes:
[0024] The first operating current is deleted from the first current array, and the first subsequent operating current is added to the end of the first current array, and the obtained current array is used as the second current array.
[0025] According to one embodiment of the present disclosure, the method further includes:
[0026] When the data state of the first subsequent operating current is untrustworthy, the N operating currents in the second current array are maintained as the N operating currents in the first current array.
[0027] According to one embodiment of the present disclosure, controlling the anti-pinch function of the electric pedal according to the first current array and the second current array includes:
[0028] Calculating an average value of the N operating currents in the second current data as a second average value;
[0029] calculating an absolute difference between the first average value and the second average value as a third absolute difference;
[0030] The anti-pinch function of the electric pedal is controlled according to the magnitude relationship between the third absolute difference and the current threshold.
[0031] According to one embodiment of the present disclosure, controlling the anti-pinch function of the electric pedal according to the magnitude relationship between the third absolute difference and the current threshold includes:
[0032] When the third absolute difference is greater than or equal to the current threshold, controlling the anti-pinch function of the electric pedal to be triggered; or
[0033] When the third absolute difference is smaller than the current threshold, the anti-pinch function of the electric pedal is controlled not to be triggered.
[0034] The second aspect of the present disclosure provides an electric pedal control device, comprising: an acquisition module for acquiring the working currents of N electric pedal motors as a first current array; wherein N is a positive integer; a calculation module for calculating the average value of the N working currents in the first current array as a first average value; a judgment module for judging the data state of the first subsequent working current based on the magnitude relationship between at least one subsequent working current acquired and the first average value; an update module for updating the first current array according to the first subsequent working current when the data state of the first subsequent working current is credible, and the obtained current array is used as a second current array; a control module for controlling the anti-pinch function of the electric pedal based on the first current array and the second current array.
[0035] According to an electric pedal control device of an embodiment of the present disclosure, an acquisition module acquires the operating currents of N electric pedal motors as a first current array, a calculation module calculates the average value of the N operating currents in the first current array as a first average value, a judgment module determines the data state of the first subsequent operating current based on the magnitude relationship between at least one acquired subsequent operating current and the first average value, an update module updates the first current array based on the first subsequent operating current if the data state of the first subsequent operating current is credible, and the obtained current array serves as a second current array. The control module controls the anti-pinch function of the electric pedal based on the first current array and the second current array. Thus, by increasing the determination of the data state of the first subsequent operating current, and updating the current array based on the first subsequent operating current if the data state of the first subsequent operating current is credible, and controlling the anti-pinch function of the electric pedal based on the two current arrays before and after the update, the device improves the accuracy of the control of the anti-pinch function of the electric pedal, reduces the risk of the electric pedal erroneously preventing or failing to prevent pinching, and enhances the user experience.
[0036] According to one embodiment of the present disclosure, when the judgment module is used to judge the data state of the first subsequent operating current based on the acquired magnitude relationship between at least one subsequent operating current and the first average value, it includes:
[0037] calculating an absolute difference between a first subsequent operating current and the first average value as a first absolute difference;
[0038] The data state of the first subsequent operating current is determined according to a magnitude relationship between the first absolute difference and a set threshold.
[0039] According to an embodiment of the present disclosure, when the judgment module is used to determine the data state of the first subsequent operating current based on the magnitude relationship between the first absolute difference and the set threshold, it includes:
[0040] When the first absolute difference is less than or equal to the set threshold, determining that the data state of the first subsequent operating current is credible; or
[0041] When the first absolute difference is greater than the set threshold, it is determined that the data state of the first subsequent operating current is pending.
[0042] According to an embodiment of the present disclosure, when the judgment module is used to determine the data state of the first subsequent operating current based on the magnitude relationship between the first absolute difference and the set threshold, it includes:
[0043] When the data state of the first subsequent operating current is pending, calculating an absolute difference between the second subsequent operating current and the first average value as a second absolute difference;
[0044] According to the magnitude relationship between the second absolute difference and the set threshold, it is determined whether the data state of the first subsequent working current is credible or uncredible.
[0045] According to one embodiment of the present disclosure, when the judgment module is used to determine whether the data status of the first subsequent operating current is credible or uncredible based on the magnitude relationship between the second absolute difference and the set threshold, it includes:
[0046] In a case where the second absolute difference is greater than the set threshold, determining that the data state of the first subsequent operating current is credible; or,
[0047] When the second absolute difference is less than or equal to the set threshold, it is determined that the data state of the first subsequent working current is untrustworthy.
[0048] According to one embodiment of the present disclosure, the updating module is used to update the first current array according to the first subsequent operating current, and the obtained current array is used as the second current array, including:
[0049] The first operating current is deleted from the first current array, and the first subsequent operating current is added to the end of the first current array, and the obtained current array is used as the second current array.
[0050] According to an embodiment of the present disclosure, the update module is further configured to maintain the N operating currents in the second current array as the N operating currents in the first current array when the data status of the first subsequent operating current is untrustworthy.
[0051] According to one embodiment of the present disclosure, when the control module is used to control the anti-pinch function of the electric pedal according to the first current array and the second current array, it includes:
[0052] Calculating an average value of the N operating currents in the second current data as a second average value;
[0053] calculating an absolute difference between the first average value and the second average value as a third absolute difference;
[0054] The anti-pinch function of the electric pedal is controlled according to the magnitude relationship between the third absolute difference and the current threshold.
[0055] According to one embodiment of the present disclosure, when the control module is configured to control the anti-pinch function of the electric pedal based on the magnitude relationship between the third absolute difference and the current threshold, the control module includes:
[0056] When the third absolute difference is greater than or equal to the current threshold, controlling the anti-pinch function of the electric pedal to be triggered; or
[0057] When the third absolute difference is smaller than the current threshold, the anti-pinch function of the electric pedal is controlled not to be triggered.
[0058] The third aspect embodiment of the present disclosure proposes an electric pedal control device, comprising: a processor and a memory; wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the electric pedal control method of the first aspect embodiment.
[0059] The electric pedal control device of the embodiment of the present disclosure executes the above-mentioned electric pedal control method, adds a judgment on the first subsequent working current data state, and updates the current array according to the first subsequent working current when the first subsequent working current data state is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0060] A fourth embodiment of the present disclosure provides a vehicle comprising the above-mentioned electric pedal control device.
[0061] The vehicle of the disclosed embodiment uses the above-mentioned electric pedal control device, adds a judgment on the state of the first subsequent working current data, and updates the current array according to the first subsequent working current when the state of the first subsequent working current data is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0062] The fifth embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the electric pedal control method of the first embodiment is implemented.
[0063] The computer-readable storage medium of the embodiment of the present disclosure executes the above-mentioned electric pedal control method, which increases the judgment of the first subsequent working current data state, and updates the current array according to the first subsequent working current when the first subsequent working current data state is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0064] The sixth embodiment of the present disclosure proposes a computer program product. When a processor executes instructions in the computer program product, the electric pedal control method of the first embodiment is implemented.
[0065] The computer program product of the disclosed embodiment executes the above-mentioned electric pedal control method, which increases the judgment of the first subsequent working current data state, and updates the current array according to the first subsequent working current when the first subsequent working current data state is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0066] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The above and / or additional aspects and advantages of the present disclosure will become apparent and readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0068] FIG1 is a flow chart of a method for controlling an electric pedal according to an embodiment of the present disclosure;
[0069] FIG2 is a flow chart of a method for controlling an electric pedal according to an embodiment of the present disclosure;
[0070] FIG3 is a block diagram of an electric pedal control device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0071] The following describes in detail embodiments of the present disclosure, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0072] The following describes an electric pedal control method, an electric pedal control device, an electric pedal control apparatus, a vehicle, and a computer-readable storage medium according to embodiments of the present disclosure with reference to the accompanying drawings.
[0073] As people's living standards improve, more and more people are choosing cars as their means of transportation. Currently, due to the high chassis of high-riding SUVs and off-road vehicles, running boards need to be installed on both sides of the vehicle. The main types of running boards on the market are fixed running boards and electric running boards. Fixed running boards are immobile and take up space, which can cause scratches on some roads. Therefore, automatically retractable electric running boards are now more commonly used.
[0074] In order to ensure the safety of users, the electric pedal has an anti-pinch function. In the related art, the electric pedal control method is implemented by the recursive average filtering method. Among them, the recursive average filtering method is also called the sliding average filtering method. The principle of this method is: regard N consecutive sampling values as a queue, the length of the queue is fixed to N, and each time a new sampling value is sampled, it is put at the end of the queue, and the sampling value at the head of the original queue is thrown away, that is, it follows the first-in-first-out principle, and then the N sampling values in the queue are averaged, and whether the anti-pinch function is triggered is determined based on the average value of the two adjacent queues. The recursive average filtering method in the related art has a good inhibitory effect on periodic interference and high smoothness, and is suitable for general electric pedal operating conditions (current ripple generated by carbon brushes and commutators). However, the inhibitory effect on occasional pulse interference is poor, and it is not easy to eliminate the interference value caused by pulse interference, resulting in the risk of the electric pedal being anti-pinch or not anti-pinch when occasional abnormal interference pulses occur.
[0075] To this end, the present disclosure proposes an electric pedal control method, which increases the judgment of the first subsequent working current data state, and when the first subsequent working current data state is credible, updates the current array according to the first subsequent working current, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0076] FIG1 is a flowchart of a method for controlling an electric step according to an embodiment of the present disclosure.
[0077] As shown in FIG1 , the electric pedal control method according to an embodiment of the present disclosure includes the following steps S101 to S105 .
[0078] S101: Obtain operating currents of N electric scooter motors as a first current array, where N is a positive integer.
[0079] For example, the operating current of the electric pedal motor may be collected at set intervals through a current sensor provided on the electric pedal motor.
[0080] S102 , calculating an average value of N operating currents in a first current array as a first average value.
[0081] In this step, the N operating currents are added together to obtain a sum of the N operating currents, and then divided by N to obtain an average value of the N operating currents in the first current array.
[0082] S103: Determine a data state of a first subsequent operating current according to a magnitude relationship between the obtained at least one subsequent operating current and the first average value.
[0083] S104 , when the data state of the first subsequent working current is credible, updating the first current array according to the first subsequent working current, and using the obtained current array as the second current array.
[0084] In steps S103 and S104 , when the N+1th operating current is obtained, it is necessary to determine whether the data status of the N+1th operating current is reliable or pending.
[0085] If the data status of the N+1th working current is pending, it is necessary to further determine whether the data status of the N+1th working current is credible or uncredible based on the acquired N+2th working current.
[0086] If the data status of the N+1th working current is credible, the first working current in the first current array is deleted, and the N+1th working current is added to the end of the first current array, and the obtained current array is used as the second current array.
[0087] If the data status of the N+1th operating current is unreliable, it indicates that the N+1th operating current is an interference current. In this case, the N+1th operating current is discarded, and the second current array is maintained as the first current array. Subsequently, the data status of the N+2th operating current is determined based on the obtained N+3th operating current.
[0088] S105 , controlling the anti-pinch function of the electric step according to the first current array and the second current array.
[0089] In this step, after obtaining the first current array and the second current array, the average value of the N working currents in the second current array is calculated, and the average value of the N working currents in the second current array is subtracted from the average value of the N working currents in the first current array to obtain the absolute value. If the absolute value after the difference between the two is greater than or equal to the current threshold (which can be obtained according to actual conditions, such as a corresponding table between temperature and current threshold at different temperatures can be obtained in advance, and when the current temperature is obtained, the current threshold at the current temperature is obtained by looking up the table), the anti-pinch function of the electric pedal is triggered; if the absolute value after the difference between the two is less than the current threshold, the anti-pinch function of the electric pedal is not triggered.
[0090] Therefore, the electric pedal control method of the embodiment of the present invention increases the judgment of the first subsequent working current data state, and when the first subsequent working current data state is credible, updates the current array according to the first subsequent working current, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0091] FIG2 is a flow chart of a method for controlling an electric pedal according to an embodiment of the present disclosure.
[0092] As shown in FIG2 , the electric pedal control method according to the embodiment of the present disclosure includes the following steps S201 to S217 .
[0093] S201 , obtaining operating currents of N electric pedal motors as a first current array.
[0094] S202 , calculating an average value of N operating currents in a first current array as a first average value.
[0095] S203 , calculating an absolute difference between the first subsequent operating current and the first average value as a first absolute difference.
[0096] S204 , judging a data state of a first subsequent operating current according to a magnitude relationship between the first absolute difference and a set threshold.
[0097] It should be noted that step S204 includes two situations: step S205 or step S206.
[0098] S205 , when the first absolute difference is less than or equal to a set threshold, determining that the data state of the first subsequent operating current is credible.
[0099] S206 , when the first absolute difference is greater than a set threshold, determining that the data state of the first subsequent operating current is pending.
[0100] S207 , calculating an absolute difference between the second subsequent operating current and the first average value as a second absolute difference.
[0101] S208 , judging whether the data state of the first subsequent working current is credible or uncredible based on the magnitude relationship between the second absolute difference and the set threshold.
[0102] S209 , when the second absolute difference is greater than a set threshold, determining that the data state of the first subsequent operating current is credible.
[0103] S210 , deleting the first operating current from the first current array, and adding the first subsequent operating current to the end of the first current array, and the obtained current array is used as the second current array.
[0104] S211 , when the second absolute difference is less than or equal to a set threshold, determining that the data state of the first subsequent operating current is untrustworthy.
[0105] S212 , the N operating currents in the second current array are maintained as the N operating currents in the first current array.
[0106] S213, calculating an average value of N working currents in the second current data as a second average value;
[0107] S214, calculating an absolute difference between the first average value and the second average value as a third absolute difference;
[0108] S215 , judging whether to trigger the anti-pinch function of the electric side step based on the magnitude relationship between the third absolute difference and the current threshold.
[0109] S216 , when the third absolute difference is greater than or equal to the current threshold, controlling the anti-pinch function of the electric pedal to be triggered.
[0110] S217 , when the third absolute difference is less than the current threshold, controlling the anti-pinch function of the electric pedal to not be triggered.
[0111] Therefore, the electric pedal control method of the embodiment of the present invention increases the judgment of the first subsequent working current data state, and when the first subsequent working current data state is credible, updates the current array according to the first subsequent working current, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, and when the first subsequent working current data state is uncredible, the N working currents in the second current array maintain the N working currents in the first current data unchanged, that is, the anti-pinch function of the electric pedal remains unchanged, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0112] In summary, according to the electric pedal control method of the embodiment of the present disclosure, the operating currents of N electric pedal motors are obtained as a first current array, and then the average value of the N operating currents in the first current array is calculated as the first average value. Based on the magnitude relationship between at least one subsequent operating current obtained and the first average value, the data state of the first subsequent operating current is judged, and if the data state of the first subsequent operating current is credible, the first current array is updated according to the first subsequent operating current, and the obtained current data is used as the second current array. Finally, based on the first current array and the second current array, the anti-pinch function of the electric pedal is controlled. Therefore, the method improves the accuracy of the control of the anti-pinch function of the electric pedal by adding the judgment of the data state of the first subsequent operating current, and if the data state of the first subsequent operating current is credible, the current array is updated according to the first subsequent operating current, and the anti-pinch function of the electric pedal is controlled according to the two current arrays before and after the update, thereby reducing the risk of the electric pedal being erroneously anti-pinch or not anti-pinch, and improving the user experience.
[0113] FIG3 is a block diagram of an electric pedal control device according to an embodiment of the present disclosure.
[0114] As shown in FIG3 , the electric pedal control device 300 according to an embodiment of the present disclosure includes: an acquisition module 310 , a calculation module 320 , a determination module 330 , an update module 340 and a control module 350 .
[0115] Among them, the acquisition module 310 is used to obtain the working current of N electric pedal motors as a first current array; wherein N is a positive integer. The calculation module 320 is used to calculate the average value of the N working currents in the first current array as a first average value. The judgment module 330 is used to judge the data state of the first subsequent working current based on the magnitude relationship between at least one subsequent working current obtained and the first average value. The update module 340 is used to update the first current array according to the first subsequent working current when the data state of the first subsequent working current is credible, and the obtained current array is used as the second current array. The control module 350 is used to control the anti-pinch function of the electric pedal based on the first current array and the second current array.
[0116] According to one embodiment of the present disclosure, the determination module 330 is configured to determine the data state of the first subsequent operating current based on the acquired magnitude relationship between at least one subsequent operating current and the first average value, including:
[0117] calculating an absolute difference between the first subsequent operating current and the first average value as a first absolute difference;
[0118] The data state of the first subsequent operating current is determined according to a magnitude relationship between the first absolute difference and a set threshold.
[0119] According to one embodiment of the present disclosure, when the judgment module 330 is configured to determine the data state of the first subsequent operating current based on the magnitude relationship between the first absolute difference and the set threshold, the judgment module 330 includes:
[0120] When the first absolute difference is less than or equal to the set threshold, determining that the data state of the first subsequent working current is credible; or,
[0121] When the first absolute difference is greater than the set threshold, it is determined that the data state of the first subsequent working current is pending.
[0122] According to one embodiment of the present disclosure, when the judgment module 330 is configured to determine the data state of the first subsequent operating current based on the magnitude relationship between the first absolute difference and the set threshold, the judgment module 330 includes:
[0123] When the data state of the first subsequent working current is pending, calculating an absolute difference between the second subsequent working current and the first average value as a second absolute difference;
[0124] According to the magnitude relationship between the second absolute difference and the set threshold, it is determined whether the data state of the first subsequent working current is credible or uncredible.
[0125] According to one embodiment of the present disclosure, the judgment module 330 is configured to determine whether the data state of the first subsequent operating current is credible or uncredible based on the magnitude relationship between the second absolute difference and the set threshold, including:
[0126] When the second absolute difference is greater than the set threshold, determining that the data state of the first subsequent working current is credible; or,
[0127] When the second absolute difference is less than or equal to the set threshold, it is determined that the data state of the first subsequent working current is untrustworthy.
[0128] According to one embodiment of the present disclosure, the updating module 340 is configured to update the first current array according to the first subsequent operating current, and the obtained current array, when used as the second current array, includes:
[0129] The first operating current is deleted from the first current array, and the first subsequent operating current is added to the end of the first current array, and the obtained current array is used as the second current array.
[0130] According to an embodiment of the present disclosure, the update module 340 is further configured to maintain the N operating currents in the second current array as the N operating currents in the first current array when the data state of the first subsequent operating current is untrustworthy.
[0131] According to one embodiment of the present disclosure, the control module 350 is configured to control the anti-pinch function of the electric step according to the first current array and the second current array, including:
[0132] Calculating an average value of N operating currents in the second current data as a second average value;
[0133] calculating an absolute difference between the first average and the second average as a third absolute difference;
[0134] The anti-pinch function of the electric pedal is controlled according to the magnitude relationship between the third absolute difference and the current threshold.
[0135] According to one embodiment of the present disclosure, the control module 350 is configured to control the anti-pinch function of the electric step according to the magnitude relationship between the third absolute difference and the current threshold, including:
[0136] When the third absolute difference is greater than or equal to the current threshold, the anti-pinch function of the electric pedal is controlled to be triggered; or,
[0137] When the third absolute difference is smaller than the current threshold, the anti-pinch function of the electric pedal is controlled not to be triggered.
[0138] It should be noted that for details not disclosed in the electric pedal control device of the embodiment of the present disclosure, please refer to the details disclosed in the electric pedal control method of the embodiment of the present disclosure, and the details will not be repeated here.
[0139] According to an electric pedal control device of an embodiment of the present disclosure, an acquisition module acquires the operating currents of N electric pedal motors as a first current array, a calculation module calculates the average value of the N operating currents in the first current array as a first average value, a judgment module determines the data state of the first subsequent operating current based on the magnitude relationship between at least one acquired subsequent operating current and the first average value, an update module updates the first current array based on the first subsequent operating current if the data state of the first subsequent operating current is credible, and the obtained current array serves as a second current array. The control module controls the anti-pinch function of the electric pedal based on the first current array and the second current array. Thus, by increasing the determination of the data state of the first subsequent operating current, and updating the current array based on the first subsequent operating current if the data state of the first subsequent operating current is credible, and controlling the anti-pinch function of the electric pedal based on the two current arrays before and after the update, the device improves the accuracy of the control of the anti-pinch function of the electric pedal, reduces the risk of the electric pedal erroneously preventing or failing to prevent pinching, and enhances the user experience.
[0140] Based on the above embodiments, the present disclosure further proposes an electric pedal control device.
[0141] The electric pedal control device of the embodiment of the present disclosure includes: a processor and a memory; wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the above-mentioned electric pedal control method.
[0142] The electric pedal control device of the embodiment of the present disclosure executes the above-mentioned electric pedal control method, adds a judgment on the first subsequent working current data state, and updates the current array according to the first subsequent working current when the first subsequent working current data state is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0143] Based on the above embodiments, the present disclosure also proposes a vehicle.
[0144] The vehicle according to the embodiment of the present disclosure includes: the electric pedal control device according to the above embodiment.
[0145] The vehicle of the disclosed embodiment uses the above-mentioned electric pedal control device, adds a judgment on the state of the first subsequent working current data, and updates the current array according to the first subsequent working current when the state of the first subsequent working current data is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0146] Based on the above embodiments, the present disclosure also proposes a computer-readable storage medium.
[0147] A computer program is stored on a computer-readable storage medium of an embodiment of the present disclosure, and when the computer program is executed by a processor, the electric pedal control method of the embodiment of the first aspect is implemented.
[0148] The computer-readable storage medium of the embodiment of the present disclosure executes the above-mentioned electric pedal control method, which increases the judgment of the first subsequent working current data state, and updates the current array according to the first subsequent working current when the first subsequent working current data state is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0149] Based on the above embodiments, the present disclosure also proposes a computer program product.
[0150] When the instructions in the computer program product of the embodiment of the present disclosure are executed by a processor, the above-mentioned electric pedal control method is performed.
[0151] The computer program product of the disclosed embodiment executes the above-mentioned electric pedal control method, which increases the judgment of the first subsequent working current data state, and updates the current array according to the first subsequent working current when the first subsequent working current data state is credible, and controls the anti-pinch function of the electric pedal according to the two current arrays before and after the update, thereby improving the accuracy of the control of the anti-pinch function of the electric pedal, reducing the risk of the electric pedal being mistakenly anti-pinched or not anti-pinched, and improving the user experience.
[0152] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and features of different embodiments or examples, unless they are mutually inconsistent.
[0153] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0154] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0155] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.
[0156] It should be understood that various parts of the present disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0157] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0158] In addition, the functional units in the various embodiments of the present disclosure may be integrated into a single module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
[0159] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. A person of ordinary skill in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A method for controlling an electric pedal, comprising: Obtaining the operating currents of N electric pedal motors as a first current array, wherein N is a positive integer; Calculating an average value of the N working currents in the first current array as a first average value; Determining a data state of a first subsequent working current according to a magnitude relationship between at least one subsequent working current obtained and the first average value; When the data state of the first subsequent working current is credible, updating the first current array according to the first subsequent working current, and using the obtained current array as the second current array; The anti-pinch function of the electric pedal is controlled according to the first current array and the second current array.
2. The method according to claim 1, wherein: The step of determining the data state of the first subsequent working current according to the magnitude relationship between the acquired at least one subsequent working current and the first average value includes: calculating an absolute difference between a first subsequent working current and the first average value as a first absolute difference; The data state of the first subsequent operating current is determined according to a magnitude relationship between the first absolute difference and a set threshold.
3. The method according to claim 2, wherein: The step of determining the data state of the first subsequent working current according to the magnitude relationship between the first absolute difference and the set threshold value includes: In the case where the first absolute difference is less than or equal to the set threshold, determining that the data state of the first subsequent working current is credible; or, When the first absolute difference is greater than the set threshold, it is determined that the data state of the first subsequent working current is pending.
4. The method according to claim 3, wherein: The step of determining the data state of the first subsequent working current according to the magnitude relationship between the first absolute difference and the set threshold value includes: When the data state of the first subsequent working current is pending, calculating an absolute difference between the second subsequent working current and the first average value as a second absolute difference; According to the magnitude relationship between the second absolute difference and the set threshold, it is determined whether the data state of the first subsequent working current is credible or uncredible.
5. The method according to claim 4, wherein: The determining, based on the magnitude relationship between the second absolute difference and the set threshold, whether the data state of the first subsequent working current is credible or uncredible includes: In the case where the second absolute difference is greater than the set threshold, determining that the data state of the first subsequent working current is credible; or, When the second absolute difference is less than or equal to the set threshold, it is determined that the data state of the first subsequent working current is untrustworthy.
6. The method according to claim 1, wherein: The updating of the first current array according to the first subsequent working current to obtain a current array as a second current array includes: The first operating current is deleted from the first current array, and the first subsequent operating current is added to the end of the first current array, and the obtained current array is used as the second current array.
7. The method according to claim 1, further comprising: When the data state of the first subsequent working current is untrustworthy, the N working currents in the second current array are maintained as the N working currents in the first current array.
8. The method according to claim 1, wherein: The controlling the anti-pinch function of the electric pedal according to the first current array and the second current array includes: Calculating an average value of the N working currents in the second current data as a second average value; calculating an absolute difference between the first average value and the second average value as a third absolute difference; The anti-pinch function of the electric pedal is controlled according to the magnitude relationship between the third absolute difference and the current threshold.
9. The method according to claim 8, wherein: The controlling the anti-pinch function of the electric pedal according to the magnitude relationship between the third absolute difference and the current threshold value includes: When the third absolute difference is greater than or equal to the current threshold, the anti-pinch function of the electric pedal is controlled to be triggered; or, When the third absolute difference is smaller than the current threshold, the anti-pinch function of the electric pedal is controlled not to be triggered.
10. An electric pedal control device, comprising: An acquisition module, used for acquiring the working currents of N electric pedal motors as a first current array; wherein N is a positive integer; A calculation module, used for calculating an average value of the N working currents in the first current array as a first average value; A judgment module, used for judging a data state of a first subsequent working current according to a magnitude relationship between at least one subsequent working current obtained and the first average value; An updating module, configured to update the first current array according to the first subsequent working current when the data state of the first subsequent working current is credible, and use the obtained current array as the second current array; A control module is used to control the anti-pinch function of the electric pedal according to the first current array and the second current array.
11. The device according to claim 10, wherein: The judging module is used for: calculating an absolute difference between a first subsequent working current and the first average value as a first absolute difference; The data state of the first subsequent operating current is determined according to a magnitude relationship between the first absolute difference and a set threshold.
12. The device according to claim 11, wherein: The judging module is used for: In the case where the first absolute difference is less than or equal to the set threshold, determining that the data state of the first subsequent working current is credible; or, When the first absolute difference is greater than the set threshold, it is determined that the data state of the first subsequent working current is pending.
13. The device according to claim 12, wherein: The judging module is used for: When the data state of the first subsequent working current is pending, calculating an absolute difference between the second subsequent working current and the first average value as a second absolute difference; According to the magnitude relationship between the second absolute difference and the set threshold, it is determined whether the data state of the first subsequent working current is credible or uncredible.
14. The device according to claim 13, wherein: The judging module is used for: In the case where the second absolute difference is greater than the set threshold, determining that the data state of the first subsequent working current is credible; or, When the second absolute difference is less than or equal to the set threshold, it is determined that the data state of the first subsequent working current is untrustworthy.
15. The device according to claim 10, wherein: The update module is used to: The first operating current is deleted from the first current array, and the first subsequent operating current is added to the end of the first current array, and the obtained current array is used as the second current array.
16. The device according to claim 10, wherein: The update module is further configured to: When the data state of the first subsequent working current is untrustworthy, the N working currents in the second current array are maintained as the N working currents in the first current array.
17. The device according to claim 10, wherein: The control module is used for: Calculating an average value of the N working currents in the second current data as a second average value; calculating an absolute difference between the first average value and the second average value as a third absolute difference; The anti-pinch function of the electric pedal is controlled according to the magnitude relationship between the third absolute difference and the current threshold.
18. The device according to claim 17, wherein: The control module is used for: When the third absolute difference is greater than or equal to the current threshold, the anti-pinch function of the electric pedal is controlled to be triggered; or, When the third absolute difference is smaller than the current threshold, the anti-pinch function of the electric pedal is controlled not to be triggered.
19. An electric pedal control device, comprising: Processor and memory; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the electric pedal control method as described in any one of claims 1 to 9.
20. A vehicle comprising: An electric pedal control device as claimed in claim 19.
21. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the electric pedal control method according to any one of claims 1 to 9 is implemented.
22. A computer program product, wherein: When the processor executes the instructions in the computer program product, the electric pedal control method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Self-learning method of anti-pinch parameters of electric car window
CN103216172A
Vehicle window anti-pinch control method and device and vehicle
CN115538886A
Electric pedal control method, control device, control equipment, vehicle and medium
CN116552394A
Anti-pinch control system
US20210146801A1
