Control method, device and equipment of electronic steering column lock and storage medium
By obtaining data in different gears and calculating the PWM assignment table, combined with the clustering algorithm to adaptively adjust the motor output power, the problem of unstable lock tongue stroke of the electronic steering column lock at different temperatures is solved, and stable action and mechanical safety are achieved.
Patent Information
- Application Number
- CN202410942157.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-11
AI Technical Summary
The existing electronic steering column lock is subject to different ambient temperatures. The thermal expansion, extrusion, cold contraction and brittleness of the gear assembly cause the lock tongue stroke to be unstable, which may cause the gear shaft column to break, and the fixed driving torque cannot meet the actual conditions at different temperatures. need.
Divide the temperature and voltage ranges into multiple levels, obtain the data of unlocking and locking instructions, calculate the PWM assignment table through table calculations, adjust the PWM pulse duty cycle to drive the motor, and combine the clustering algorithm to eliminate abnormal voltage data and adaptively Adjust the motor output power to ensure stable lock tongue action.
Under different temperature and voltage environments, the motor output power is adjusted to ensure the stability of the lock tongue's telescopic action, avoid mechanical damage, and improve the reliability and service life of the electronic steering column lock.
Smart Images

Figure CN118753201A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of vehicle control, and in particular relates to a control method, device, equipment and storage medium of an electronic steering column lock. Background Art
[0002] Automotive electronic steering lock technology is a safety measure used to prevent illegal operation or unauthorized steering activity.
[0003] As an anti-theft device on the steering wheel steering mechanism, the electronic steering column lock receives message instructions from the CAN bus and performs security authentication on the source of the instructions. Combined with the vehicle conditions (vehicle speed, gear position, power status, etc.) published on the CAN bus when the instructions are issued, it decides whether to lock (lock) or release (unlock) the vehicle steering mechanism.
[0004] The electronic steering column lock controls the rotation of the built-in motor through PWM pulse adjustment, which in turn drives the gear assembly to push and retract the lock tongue to achieve locking or unlocking.
[0005] However, due to the wide range of vehicle application scenarios, the ambient temperature spans a large range (80°C to -40°C). Compared with normal temperature, the gear components inside the electronic steering column lock show changes in thermal expansion and extrusion at high temperatures; they shrink and become brittle at low temperatures. And in the prior art, a fixed driving torque is used to drive the gear assembly. When operating at high temperatures, there is a probability that the gear assembly will expand thermally, and the friction will increase, which will cause the originally set torque to not meet actual needs and the lock tongue stroke to be unstable. When operating at low temperatures, there is a probability that the gear assembly will shrink and become brittle, resulting in the original torque being too large, causing a collision, and in extreme cases, the gear shaft column will break.
[0006] Therefore, how to ensure that the electronic steering column can stably complete the extension and retraction of the lock tongue under different ambient temperatures while avoiding mechanical damage to the lock body structural components is an urgent problem to be solved. Summary of the invention
[0007] The present invention provides a control method, device, equipment and storage medium for an electronic steering column lock, which can effectively solve the above-mentioned problems.
[0008] The present invention is achieved in that:
[0009] A control method for an electronic steering column lock, comprising:
[0010] Define the temperature range from -40℃ to 85℃ as a temperature level with a step of 5℃, and name each temperature level from 0 to 24, for a total of 25 temperature levels;
[0011] The voltage range of the vehicle battery from 14V to 34.5V is defined as a voltage level with each interval of 0.5V, and each voltage level is named from 0 to 41, for a total of 42 voltage levels;
[0012] Respectively obtain data of unlocking instructions of the electronic steering column lock at 42 voltage levels in 25 temperature levels, and record the obtained data in a table as unlocking table 1;
[0013] Respectively obtain data of the locking command of the electronic steering column lock at 42 voltage levels in 25 temperature levels, and record the obtained data in a table as a locking table 1;
[0014] Compare and calculate the obtained unlocking table 1 with the preset standard unlocking table to obtain the unlocking PWM assignment table;
[0015] Compare and calculate the acquired locking table 1 with the preset standard locking table to obtain the locking PWM assignment table;
[0016] Outputting the PWM pulse duty cycle according to the calculated unlocking PWM assignment table to drive the motor to realize the electronic steering column lock to complete the unlocking instruction;
[0017] The PWM pulse duty cycle is output according to the calculated locking PWM assignment table to drive the motor to realize the electronic steering column lock and complete the locking instruction.
[0018] As a further improvement, after obtaining the unlocking table 1 or the locking table 1, the method further includes:
[0019] Record the voltage values of the vehicle battery 5 times in one temperature level respectively, and regard the 5 recorded values of the vehicle battery as a voltage set;
[0020] Using a distance-based clustering algorithm to remove abnormal voltage data from the voltage set, to obtain a voltage data set after removal;
[0021] Based on the eliminated voltage data set, the average of the voltage data set is calculated using a weighted arithmetic mean method, and the obtained average of the voltage data set is used as the voltage value of the vehicle battery at the current temperature level.
[0022] As a further improvement, the distance-based clustering algorithm removes abnormal voltage data from the voltage set to obtain a voltage data set after removal, including:
[0023] Combining any two voltage data in the voltage set to obtain a data group;
[0024] Clustering all the data groups using a distance-based clustering algorithm to obtain a first clustering category set, wherein the first clustering category set includes at least one clustering category;
[0025] The threshold range corresponding to each cluster category is calculated based on the first cluster category set and the Laida criterion, all the threshold ranges are analyzed, and the minimum threshold range formed by all the threshold ranges is used as the abnormal threshold range for judging abnormal voltage data.
[0026] As a further improvement, the threshold range corresponding to each cluster category is calculated based on the first cluster category set and the Laida criterion, including:
[0027] Deleting the first clustering categories according to the number of the data groups included in each of the first clustering categories to obtain a second clustering category set, wherein a number threshold is obtained, and if the number of the data groups included in the first clustering category is less than the number threshold, deleting the first clustering category;
[0028] Calculating parameters corresponding to each cluster category in the second cluster category set, wherein the voltage data in each cluster category in the second cluster category set are aggregated to obtain a third voltage set, and the mean and variance of the third voltage set are calculated, and the mean and variance are used as the parameters corresponding to each cluster category in the second cluster category set;
[0029] According to the parameters corresponding to each cluster category in the second cluster category set, the threshold range corresponding to each cluster category is calculated using the Laida criterion.
[0030] An electronic steering column lock device, comprising:
[0031] A classification module, for defining a temperature range of -40°C to 85°C as a temperature level at every 5°C interval, and for naming each temperature level from 0 to 24, for a total of 25 temperature levels; and for defining a voltage range of a vehicle battery from 14V to 34.5V as a voltage level at every 0.5V interval, and for naming each voltage level from 0 to 41, for a total of 42 voltage levels;
[0032] An acquisition module, used for respectively acquiring data of 42 voltage levels in 25 temperature levels of the unlocking instruction of the electronic steering column lock, and recording the acquired data in a table as an unlocking table 1, and for respectively acquiring data of 42 voltage levels in 25 temperature levels of the locking instruction of the electronic steering column lock, and recording the acquired data in a table as a locking table 1;
[0033] A calculation module, used for comparing and calculating the unlocking table 1 obtained with a preset standard unlocking table to obtain an unlocking PWM assignment table, and used for comparing and calculating the locking table 1 obtained with a preset standard locking table to obtain a locking PWM assignment table;
[0034] A drive module is used to output a PWM pulse duty cycle according to a calculated unlocking PWM assignment table to drive a motor to implement an unlocking instruction of an electronic steering column lock, and is used to output a PWM pulse duty cycle according to a calculated locking PWM assignment table to drive a motor to implement a locking instruction of an electronic steering column lock.
[0035] As a further improvement, the calculation module further includes:
[0036] A counting module is used to record the voltage values of the vehicle battery 5 times in one temperature level, and regard the 5 recorded values of the vehicle battery as a voltage set;
[0037] A removal module, used for removing abnormal voltage data from the voltage set based on a distance-based clustering algorithm to obtain a voltage data set after removal;
[0038] The recording module is used to calculate the average of the voltage data set based on the eliminated voltage data set by using the weighted arithmetic mean method, and use the obtained average of the voltage data set as the voltage value of the vehicle battery at the current temperature level.
[0039] As a further improvement, the rejection module includes:
[0040] A combining unit, used for combining any two voltage data in the voltage set to obtain a data group;
[0041] A clustering unit, configured to perform clustering processing on all the data groups using a distance-based clustering algorithm to obtain a first clustering category set, wherein the first clustering category set includes at least one clustering category;
[0042] The calculation unit calculates the threshold range corresponding to each cluster category based on the first cluster category set and the Laida criterion, analyzes all the threshold ranges, and uses the minimum threshold range formed by all the threshold ranges as the abnormal threshold range for judging abnormal voltage data.
[0043] As a further improvement, the computing unit comprises:
[0044] a deleting subunit, configured to perform a deleting operation on the first clustering categories according to the number of the data groups included in each of the first clustering categories to obtain a second clustering category set, wherein a number threshold is obtained, and if the number of the data groups included in the first clustering category is less than the number threshold, the first clustering category is deleted;
[0045] a first calculation subunit, configured to calculate a parameter corresponding to each cluster category in the second cluster category set, wherein the voltage data in each cluster category in the second cluster category set are aggregated to obtain a third voltage set, and the mean and variance of the third voltage set are calculated, and the mean and variance are used as the parameter corresponding to each cluster category in the second cluster category set;
[0046] The second calculation subunit is used to calculate the threshold range corresponding to each cluster category by using the Laida criterion according to the parameters corresponding to each cluster category in the second cluster category set.
[0047] An electronic steering column lock device, comprising:
[0048] Memory for storing computer programs;
[0049] A processor, configured to implement the control method of the electronic steering column lock according to any one of claims 1 to 4 when executing the computer program.
[0050] A storage medium for an electronic steering column lock, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the control method for the electronic steering column lock according to any one of claims 1 to 4 is implemented.
[0051] The beneficial effect of the present invention is that the duty cycle of the PWM pulse waveform of the driving motor is changed under different temperature and voltage environments to adjust the output power of the motor when it is in action, thereby changing the torque that pushes the lock tongue, thereby ensuring that the lock tongue can be stably extended and retracted, and avoiding mechanical damage to the structural components of the lock body.
[0052] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 is a flow chart of a control method of an electronic steering column lock according to an embodiment of the present invention;
[0055] Figure 2 is a schematic diagram of the structure of the electronic steering column lock according to an embodiment of the present invention;
[0056] Figure 3 Schematic diagram of the structure of the electronic steering column lock according to the embodiment of the present invention.
[0057] Reference numerals:
[0058] 701-classification module, 702-acquisition module, 703-calculation module, 704-driving module, 705-counting module, 706-elimination module, 707-recording module, 708-combination unit, 709-clustering unit, 710-calculation unit, 711-elimination sub-unit, 712-first calculation sub-unit, 713-second calculation sub-unit, 800-device, 801-processor, 802-memory, 803-multimedia component, 804-I / O interface, 805-communication component. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0060] In the description of the present invention, the orientations or positional relationships indicated by terms such as "upper", "lower", "above", "both ends", etc. are based on the orientations or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0061] Example 1
[0062] Reference Figure 1-2 As shown, this embodiment provides a control method for an electronic steering column lock, comprising step S1, step S2, step S3, step S4 and step S5.
[0063] Step S1, set a temperature acquisition loop on the circuit, and define the temperature range of -40°C to 85°C as a temperature level with a spacing of 5°C on the single-chip computer program, and name each temperature level from 0 to 24, setting a total of 25 temperature levels.
[0064] Step S2, define the voltage range of the vehicle battery from 14V to 34.5V as a voltage level with each interval of 0.5V, and name each voltage level from 0-41, setting a total of 42 voltage levels.
[0065] Step S3, respectively obtaining data of 42 voltage levels in 25 temperature levels for the unlocking instruction of the electronic steering column lock, and recording the obtained data in a table as unlocking table 1, and respectively obtaining data of 42 voltage levels in 25 temperature levels for the locking instruction of the electronic steering column lock, and recording the obtained data in a table as locking table 1.
[0066] Step S4, comparing and calculating the obtained unlocking table 1 with the preset standard unlocking table to obtain an unlocking PWM assignment table, and comparing and calculating the obtained locking table 1 with the preset standard locking table to obtain a locking PWM assignment table.
[0067] Step S5: outputting a PWM pulse duty cycle according to the calculated unlocking PWM assignment table to drive the motor to implement the electronic steering column lock to complete the unlocking instruction, and outputting a PWM pulse duty cycle according to the calculated locking PWM assignment table to drive the motor to implement the electronic steering column lock to complete the locking instruction.
[0068] By adding a temperature compensation design to the circuit, the driving torque is adaptively adjusted according to different ambient temperatures, so that when the electronic steering column lock is actuated in different temperature environments, the gear components are in a better driving effect, reducing wear and mechanical fatigue, and ultimately improving the reliability of the product's single action and extending its service life.
[0069] By changing the duty cycle of the PWM pulse waveform of the driving motor under different temperature and voltage environments, the output power of the motor can be adjusted, thereby changing the torque that pushes the lock tongue. This can ensure the stable completion of the lock tongue extension and retraction action while avoiding mechanical damage to the lock body structural components.
[0070] Furthermore, the step S3 also includes step S301, step S302 and step S303.
[0071] Step S301, recording the voltage values of the vehicle battery five times in one temperature level, and treating the five recorded values of the vehicle battery as a voltage set;
[0072] Step S302: removing abnormal voltage data from the voltage set based on a distance-based clustering algorithm to obtain a voltage data set after removal;
[0073] Step S303: Based on the voltage data set after elimination, the average of the voltage data set is calculated using a weighted arithmetic mean method, and the average of the voltage data set is used as the voltage value of the vehicle battery at the current temperature level.
[0074] Furthermore, the step S302 also includes step S3021, step S3022, step S3023, step S3024, step S3025 and step S3026.
[0075] Step S3021: Combine any two voltage data in the voltage set to obtain a data group.
[0076] Step S3022: cluster all the data groups using a distance-based clustering algorithm to obtain a first cluster category set, wherein the first cluster category set includes at least one cluster category.
[0077] Step S3023: Calculate the threshold range corresponding to each cluster category based on the first cluster category set and the Laida criterion, analyze all the threshold ranges, and use the minimum threshold range formed by all the threshold ranges as the abnormal threshold range for judging abnormal voltage data.
[0078] Step S3024: deleting the first clustering categories according to the number of the data groups contained in each of the first clustering categories to obtain a second clustering category set, wherein a number threshold is obtained, and if the number of the data groups contained in the first clustering category is less than the number threshold, the first clustering category is deleted.
[0079] Step S3025, calculating the parameters corresponding to each cluster category in the second cluster category set, wherein the voltage data in each cluster category in the second cluster category set are grouped to obtain a third voltage set, and the mean and variance of the third voltage set are calculated, and the mean and variance are used as the parameters corresponding to each cluster category in the second cluster category set.
[0080] Step S3026: Calculate a threshold range corresponding to each cluster category using the Laida criterion according to the parameters corresponding to each cluster category in the second cluster category set.
[0081] In this embodiment, the k□meams clustering algorithm among the distance-based clustering algorithms is adopted, and a density-based clustering algorithm, such as the DBSCAN algorithm, can also be used; after clustering processing, the clustering category corresponding to each data group is obtained, where a data group may have multiple clustering categories, and then all the clustering categories are grouped together to obtain the first clustering category set.
[0082] Step S3026 can be understood as: for example, the threshold range corresponding to the first cluster category is 2□3, the threshold range corresponding to the second cluster category is 1□4, and the threshold range corresponding to the third cluster category is 3□5, then the three threshold ranges are marked on the scale lines, and then the minimum threshold range formed is the abnormal threshold range. As in the above example, the minimum range formed by these three cluster categories is 1□2. The threshold range determination method in this embodiment can reduce the range to a minimum, thereby improving the accuracy of abnormal data screening.
[0083] In this embodiment, the number threshold can be customized according to user needs, where step S3024 can be understood as: for example, there are 2 data groups belonging to cluster category 1, and 4 data groups belonging to cluster category 2. At this time, if the number threshold is 3, cluster category 1 will be eliminated; this method can improve the rationality of the calculated threshold range.
[0084] The method in this embodiment ensures the breadth of the collected original data, and also eliminates abnormal data in the original data through the abnormal data elimination method, thereby ensuring that the acquired temperature data and voltage data are more accurate, so that the results of subsequent comparison calculations are more accurate.
[0085] Example 2
[0086] As shown in the figure, this embodiment provides an electronic steering column lock device, including a classification module 701 , an acquisition module 702 , a calculation module 703 and a driving module 704 .
[0087] The classification module 701 is used to define the temperature range of -40°C to 85°C as a temperature level at every interval of 5°C, and to name each temperature level from 0-24, for a total of 25 temperature levels, and to define the voltage range of the vehicle battery from 14V to 34.5V as a voltage level at every interval of 0.5V, and to name each voltage level from 0-41, for a total of 42 voltage levels.
[0088] The acquisition module 702 is used to respectively acquire the data of the unlocking instruction of the electronic steering column lock at 42 voltage levels in 25 temperature levels, and record the acquired data in a table as unlocking table 1, and is used to respectively acquire the data of the locking instruction of the electronic steering column lock at 42 voltage levels in 25 temperature levels, and record the acquired data in a table as locking table 1.
[0089] The calculation module 703 is used to compare and calculate the obtained unlocking table 1 with the preset standard unlocking table to obtain the unlocking PWM assignment table, and to compare and calculate the obtained locking table 1 with the preset standard locking table to obtain the locking PWM assignment table.
[0090] The driving module 704 is used to output a PWM pulse duty cycle according to the calculated unlocking PWM assignment table to drive the motor to implement the electronic steering column lock to complete the unlocking instruction, and is used to output a PWM pulse duty cycle according to the calculated locking PWM assignment table to drive the motor to implement the electronic steering column lock to complete the locking instruction.
[0091] Furthermore, the calculation module 703 also includes:
[0092] The counting module 705 is used to record the voltage values of the vehicle battery for 5 times in one temperature level, and regard the 5 recorded values of the vehicle battery as a voltage set;
[0093] A removal module 706 is used to remove abnormal voltage data from the voltage set based on a distance-based clustering algorithm to obtain a voltage data set after removal;
[0094] The recording module 707 is used to calculate the average of the voltage data set based on the eliminated voltage data set by using the weighted arithmetic mean method, and use the obtained average of the voltage data set as the voltage value of the vehicle battery at the current temperature level.
[0095] Furthermore, the elimination module 706 includes:
[0096] A combining unit 708, configured to combine any two voltage data in the voltage set to obtain a data group;
[0097] A clustering unit 709, configured to perform clustering processing on all the data groups using a distance-based clustering algorithm to obtain a first clustering category set, wherein the first clustering category set includes at least one clustering category;
[0098] The calculation unit 710 calculates the threshold range corresponding to each cluster category based on the first cluster category set and the Laida criterion, analyzes all the threshold ranges, and uses the minimum threshold range formed by all the threshold ranges as the abnormal threshold range for judging abnormal voltage data.
[0099] Furthermore, the calculation unit 710 includes:
[0100] a deleting subunit, configured to perform a deleting operation on the first clustering categories according to the number of the data groups included in each of the first clustering categories to obtain a second clustering category set, wherein a number threshold is obtained, and if the number of the data groups included in the first clustering category is less than the number threshold, the first clustering category is deleted;
[0101] A first calculation subunit 712 is used to calculate the parameters corresponding to each cluster category in the second cluster category set, wherein the voltage data in each cluster category in the second cluster category set are aggregated to obtain a third voltage set, and the mean and variance of the third voltage set are calculated, and the mean and variance are used as the parameters corresponding to each cluster category in the second cluster category set;
[0102] The second calculation subunit 713 is used to calculate the threshold range corresponding to each cluster category by using the Laida criterion according to the parameters corresponding to each cluster category in the second cluster category set.
[0103] Example 3
[0104] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides an electronic steering column lock device. The electronic steering column lock device described below and the electronic steering column lock control method described above can refer to each other.
[0105] Figure 3 FIG. 8 is a block diagram of an electronic steering column lock device 800 according to an exemplary embodiment. Figure 3 As shown, the device 800 includes a processor 801 and a memory 802. The device 800 may also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805.
[0106] The processor 801 is used to control the overall operation of the device 800 to complete all or part of the steps in the above-mentioned electronic steering lock control method. The memory 802 is used to store various types of data to support the operation of the device 800, and these data may include, for example, instructions for any application or method operating on the device 800, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0107] The multimedia component 803 may include a screen and an audio component. The screen, for example, may be a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 802 or sent through the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the device 800 and other devices. Wireless communication, such as Wi□Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 may include: Wi□Fi module, Bluetooth module, NFC module.
[0108] In an exemplary embodiment, the device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned electronic steering lock control method.
[0109] In another exemplary embodiment, a computer storage medium including program instructions is also provided.
[0110] When the program instructions are executed by the processor, the steps of the above-mentioned electronic steering lock control method are implemented. For example, the computer storage medium can be the above-mentioned memory 802 including the program instructions, and the above-mentioned program instructions can be executed by the processor 801 of the electronic steering lock device 800 to complete the above-mentioned electronic steering lock control method.
[0111] Example 4
[0112] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a storage medium of an electronic steering column lock. The storage medium of an electronic steering column lock described below and the control method of the electronic steering lock described above can refer to each other.
[0113] A storage medium for an electronic steering column lock stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the electronic steering lock control method of the above method embodiment are implemented.
[0114] The storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other storage media that can store program codes.
[0115] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A control method for an electronic steering column lock, characterized in that: include: Define the temperature range from -40℃ to 85℃ as a temperature level with a step of 5℃, and name each temperature level from 0 to 24, for a total of 25 temperature levels; The voltage range of the vehicle battery from 14V to 34.5V is defined as a voltage level with each interval of 0.5V, and each voltage level is named from 0 to 41, for a total of 42 voltage levels; Respectively obtain data of unlocking instructions of the electronic steering column lock at 42 voltage levels in 25 temperature levels, and record the obtained data in a table as unlocking table 1; Respectively obtain data of the locking command of the electronic steering column lock at 42 voltage levels in 25 temperature levels, and record the obtained data in a table as a locking table 1; Compare and calculate the obtained unlocking table 1 with the preset standard unlocking table to obtain the unlocking PWM assignment table; Compare and calculate the acquired locking table 1 with the preset standard locking table to obtain the locking PWM assignment table; Outputting the PWM pulse duty cycle according to the calculated unlocking PWM assignment table to drive the motor to realize the electronic steering column lock to complete the unlocking instruction; The PWM pulse duty cycle is output according to the calculated locking PWM assignment table to drive the motor to realize the electronic steering column lock and complete the locking instruction.
2. The control method of the electronic steering column lock according to claim 1, characterized in that: After obtaining the unlocking table 1 or the locking table 1, the method further includes: Record the voltage values of the vehicle battery 5 times in one temperature level respectively, and regard the 5 recorded values of the vehicle battery as a voltage set; Using a distance-based clustering algorithm to remove abnormal voltage data from the voltage set, to obtain a voltage data set after removal; Based on the eliminated voltage data set, the average of the voltage data set is calculated using a weighted arithmetic mean method, and the obtained average of the voltage data set is used as the voltage value of the vehicle battery at the current temperature level.
3. The control method of the electronic steering column lock according to claim 2, characterized in that: The distance-based clustering algorithm removes abnormal voltage data from the voltage set to obtain a voltage data set after removal, including: Combining any two voltage data in the voltage set to obtain a data group; Clustering all the data groups using a distance-based clustering algorithm to obtain a first clustering category set, wherein the first clustering category set includes at least one clustering category; The threshold range corresponding to each cluster category is calculated based on the first cluster category set and the Laida criterion, all the threshold ranges are analyzed, and the minimum threshold range formed by all the threshold ranges is used as the abnormal threshold range for judging abnormal voltage data.
4. The control method of the electronic steering column lock according to claim 3, characterized in that: The threshold range corresponding to each cluster category is calculated based on the first cluster category set and the Laida criterion, including: Deleting the first clustering categories according to the number of the data groups included in each of the first clustering categories to obtain a second clustering category set, wherein a number threshold is obtained, and if the number of the data groups included in the first clustering category is less than the number threshold, deleting the first clustering category; Calculating parameters corresponding to each cluster category in the second cluster category set, wherein the voltage data in each cluster category in the second cluster category set are aggregated to obtain a third voltage set, and the mean and variance of the third voltage set are calculated, and the mean and variance are used as the parameters corresponding to each cluster category in the second cluster category set; According to the parameters corresponding to each cluster category in the second cluster category set, the threshold range corresponding to each cluster category is calculated using the Laida criterion.
5. An electronic steering column lock device, characterized in that: include: A classification module, for defining a temperature range of -40°C to 85°C as a temperature level at every 5°C interval, and for naming each temperature level from 0 to 24, for a total of 25 temperature levels; and for defining a voltage range of a vehicle battery from 14V to 34.5V as a voltage level at every 0.5V interval, and for naming each voltage level from 0 to 41, for a total of 42 voltage levels; An acquisition module, used for respectively acquiring data of 42 voltage levels in 25 temperature levels of the unlocking instruction of the electronic steering column lock, and recording the acquired data in a table as an unlocking table 1, and for respectively acquiring data of 42 voltage levels in 25 temperature levels of the locking instruction of the electronic steering column lock, and recording the acquired data in a table as a locking table 1; A calculation module, used for comparing and calculating the unlocking table 1 obtained with a preset standard unlocking table to obtain an unlocking PWM assignment table, and used for comparing and calculating the locking table 1 obtained with a preset standard locking table to obtain a locking PWM assignment table; A drive module is used to output a PWM pulse duty cycle according to a calculated unlocking PWM assignment table to drive a motor to implement an unlocking instruction of an electronic steering column lock, and is used to output a PWM pulse duty cycle according to a calculated locking PWM assignment table to drive a motor to implement a locking instruction of an electronic steering column lock.
6. The electronic steering column lock device according to claim 5, characterized in that: The calculation module also includes: A counting module is used to record the voltage values of the vehicle battery 5 times in one temperature level, and regard the 5 recorded values of the vehicle battery as a voltage set; A removal module, used for removing abnormal voltage data from the voltage set based on a distance-based clustering algorithm to obtain a voltage data set after removal; The recording module is used to calculate the average of the voltage data set based on the eliminated voltage data set by using the weighted arithmetic mean method, and use the obtained average of the voltage data set as the voltage value of the vehicle battery at the current temperature level.
7. The electronic steering column lock device according to claim 6, characterized in that: The rejection module comprises: A combining unit, used for combining any two voltage data in the voltage set to obtain a data group; A clustering unit, configured to perform clustering processing on all the data groups using a distance-based clustering algorithm to obtain a first clustering category set, wherein the first clustering category set includes at least one clustering category; The calculation unit calculates the threshold range corresponding to each cluster category based on the first cluster category set and the Laida criterion, analyzes all the threshold ranges, and uses the minimum threshold range formed by all the threshold ranges as the abnormal threshold range for judging abnormal voltage data.
8. The electronic steering column lock device according to claim 7, characterized in that: The computing unit comprises: a deleting subunit, configured to perform a deleting operation on the first clustering categories according to the number of the data groups included in each of the first clustering categories to obtain a second clustering category set, wherein a number threshold is obtained, and if the number of the data groups included in the first clustering category is less than the number threshold, the first clustering category is deleted; a first calculation subunit, configured to calculate a parameter corresponding to each cluster category in the second cluster category set, wherein the voltage data in each cluster category in the second cluster category set are aggregated to obtain a third voltage set, and the mean and variance of the third voltage set are calculated, and the mean and variance are used as the parameter corresponding to each cluster category in the second cluster category set; The second calculation subunit is used to calculate the threshold range corresponding to each cluster category by using the Laida criterion according to the parameters corresponding to each cluster category in the second cluster category set.
9. An electronic steering column lock device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the control method of the electronic steering column lock according to any one of claims 1 to 4 when executing the computer program.
10. A storage medium for an electronic steering column lock, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the electronic steering column lock according to any one of claims 1 to 4 is implemented.
