Intelligent car steering wheel switch button detection data processing method and system
By integrating the microcontroller and touch screen on the steering wheel of the smart car, using timestamps, area information and geometric center deviation feature values, combined with feature weight values and dynamic adjustment mechanism, the problem of identifying the steering wheel touch switch keys in complex scenarios is solved. Improves recognition accuracy and anti-interference capabilities, and improves driving safety and user experience.
Patent Information
- Application Number
- CN202411218564.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-09-02
AI Technical Summary
The touch switch buttons on the steering wheel of the smart car are difficult to accurately identify in complex touch scenarios, especially when the driver's finger is large or multiple buttons are covered at the same time, it is difficult for the system to judge the driver's true intentions, resulting in the function being triggered incorrectly.
By integrating the microcontroller and touch screen on the steering wheel, the timestamps, area information and geometric center deviation feature values in the touch detection data are used, combined with feature weight values and dynamic adjustment mechanisms, accurately identify the driver's touch operations and improve recognition Accuracy and anti-interference ability.
It realizes accurate identification in complex touch scenarios, reduces false touch and leaks, and improves driving safety and user experience.
Smart Images

Figure CN118732885B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to a method and system for processing data of a switch button detection on a smart car steering wheel. Background Art
[0002] In the field of smart cars, the steering wheel is an important interface for drivers to interact with the vehicle, and the switch button operation on it is crucial for the convenience and safety of driving. Traditional steering wheel buttons usually use mechanical or capacitive buttons, which can usually accurately recognize when the driver presses a button alone.
[0003] With the continuous development of touch technology, touch screens are increasingly used on steering wheels. However, the touch switch button array on the touch screen faces the recognition problem in complex touch scenarios when detecting driver operations. Especially when the driver's fingers are large or cover multiple buttons at the same time, the system often finds it difficult to accurately judge the driver's true intention, resulting in false triggering of functions. Summary of the invention
[0004] The present application provides a smart car steering wheel switch button detection data processing method and system, which are used to accurately identify the driver's operations on the touch switch buttons on the steering wheel, thereby improving driving safety and user experience.
[0005] In a first aspect, the present application provides a method for processing detection data of a switch button of an intelligent automobile steering wheel, which is applied to an intelligent automobile steering wheel control system, wherein the intelligent automobile steering wheel control system comprises a steering wheel body, a microcontroller and a touch screen, wherein the microcontroller and the touch screen are arranged in the steering wheel body, the microcontroller is communicatively connected with the touch screen, and a touch switch button array is arranged on the touch screen; the method comprises:
[0006] Acquire touch detection data acting on at least one touch switch button of the touch switch button array through the touch screen, and send the touch detection data to the microcontroller, wherein the touch detection data includes touch area information and a touch timestamp;
[0007] The microcontroller determines, according to the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes first touch detection data for triggering a first touch switch button in the touch switch button array and second touch detection data for triggering a second touch switch button in the touch switch button array, the first touch detection data includes first touch area information and the first touch timestamp, and the second touch detection data includes second touch area information and the second touch timestamp;
[0008] The microcontroller determines a first touch area according to the first touch area information, and determines a second touch area according to the second touch area information;
[0009] The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area.
[0010] In the above scheme, touch detection data acting on at least one touch switch button of the touch switch button array is obtained through the touch screen, and the touch detection data is sent to the microcontroller, so that the microcontroller determines the touch detection data within the preset lower limit time window according to the first touch timestamp and the second touch timestamp, including the first touch detection data for triggering the first touch switch button in the touch switch button array and the second touch detection data for triggering the second touch switch button in the touch switch button array, and determines the first touch area according to the first touch area information, and determines the second touch area according to the second touch area information, so that the microcontroller determines the target touch switch button of the first touch switch button and the second touch switch button according to the first touch area and the second touch area, thereby being able to accurately identify the driver's operation on the touch switch button on the steering wheel, and even when the driver touches multiple buttons simultaneously or in rapid succession, the target button of the actual operation can be accurately judged, thereby improving the accuracy and reliability of the touch button operation recognition on the steering wheel, reducing the occurrence of false touches, and improving driving safety and user experience.
[0011] Optionally, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, including:
[0012] If the microcontroller determines that the first touch area is smaller than a preset touch area threshold and the second touch area is larger than the preset touch area threshold, then the second touch switch button is determined to be the target touch switch button;
[0013] If the microcontroller determines that both the first touch area and the second touch area are greater than the preset touch area threshold, the target touch switch button is determined using a preset second determination model, and the second determination model is used to compare the difference between the first area ratio and the second area ratio, the first area ratio is the ratio between the first touch area and the first touch switch button area, the first touch switch button area is the area of the preset effective touch area of the first touch switch button, the second area ratio is the ratio between the second touch area and the second touch switch button area, and the second touch switch button area is the area of the preset effective touch area of the second touch switch button.
[0014] In the above scheme, when at least one of the two touch switch buttons is touched over a larger area, a preset touch area threshold and a second determination model are further introduced. When it is detected that the touch areas of the two touch switch buttons are different, the user's intention is judged by comparing the relationship between the touch area and the threshold and combining the ratio of the touch area to the area of each effective touch area, thereby ensuring that the button the user wants to operate can be accurately identified even in the case of fuzzy touch, helping to improve the system's anti-interference ability and reduce the function error triggering caused by accidental touch, thereby improving the recognition accuracy in complex touch scenarios (such as touching multiple buttons at the same time) and ensuring that the system can correctly respond to user intentions.
[0015] Optionally, the second determination model may be used to determine that a touch switch key corresponding to a larger area ratio between the first area ratio and the second area ratio is a target touch switch key.
[0016] Optionally, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, further comprising:
[0017] If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the target touch switch button is determined using a preset first determination model, wherein the first determination model is used to compare the difference between a first center deviation and a second center deviation, wherein the first center deviation is the distance between a first geometric center of a first touch area corresponding to the first touch area information and a geometric center of a preset effective touch area of the first touch switch button, and the second center deviation is the distance between a second geometric center of a second touch area corresponding to the second touch area information and a geometric center of a preset effective touch area of the second touch switch button.
[0018] Optionally, the first determination model may be used to determine that a touch switch key corresponding to a smaller center deviation between the first center deviation and the second center deviation is a target touch switch key.
[0019] In the above scheme, when the touch area is small and difficult to distinguish when close, the preset first determination model is used to determine the target touch switch key. By comparing the deviations between the centers of the two touch areas and the geometric centers of the respective preset effective touch areas, the target touch switch key is determined using the center deviation difference, and by comparing the distance deviation between the touch point and the center of the key effective touch area, the system can more accurately determine the user's true intention, further improving the accuracy and reliability of recognition.
[0020] Optionally, the first touch switch button and the second touch switch button are adjacent touch switch buttons, an adjacent intersection boundary between the first touch switch button and the second touch switch button is a first boundary, and an adjacent intersection boundary between the first touch area and the second touch area at least includes a portion of the first boundary;
[0021] Correspondingly, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, and further includes:
[0022] If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the microcontroller determines the first geometric center coordinates of the first touch area in a preset reference coordinate system according to the first touch area information. , and determining the second geometric center coordinates of the second geometric center of the second touch area in the preset reference coordinate system according to the second touch area information ;
[0023] The microcontroller uses Formula 1 and according to the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue The formula 1 is:
[0024] in, is the minimum distance from the geometric center of the preset effective touch area of the first touch switch button to the first boundary, is the minimum distance from the geometric center of the preset effective touch area of the second touch switch button to the first boundary, and the coordinates of the geometric center of the preset effective touch area of the first touch switch button in the preset reference coordinate system are The geometric center of the preset effective touch area of the second touch switch button has coordinates of ;
[0025] If it is determined that the microcontroller determines the first center deviation characteristic value Less than the second center deviation eigenvalue , then the first touch switch button is the target touch switch button;
[0026] If it is determined that the microcontroller determines the first center deviation characteristic value Greater than the second center deviation eigenvalue , then the second touch switch button is the target touch switch button;
[0027] If it is determined that the microcontroller determines the first center deviation characteristic value Equal to the second center deviation eigenvalue , the target touch switch key is determined according to the first touch switch key area and the second touch switch key area, and the target touch switch key is the touch switch key corresponding to the smaller area between the first touch switch key area and the second touch switch key area.
[0028] In the above scheme, when adjacent touch switch buttons are touched at the same time, the geometric center coordinates and boundary information in the preset reference coordinate system are used to calculate the position deviation of the touch point relative to the button boundary using a formula to determine the target button. This is particularly suitable for situations where the driver may accidentally touch adjacent buttons at the same time, and can effectively avoid the occurrence of misoperation, thereby ensuring the stability and accuracy of the system in various complex situations.
[0029] In addition, the center deviation characteristic values of the two touch switch keys are determined by calculating the minimum distance from the geometric center of the preset effective touch area of the first touch switch key and the second touch switch key to the adjacent intersection boundary (first boundary) between them, and the coordinates of the geometric center of the two touch areas in the preset reference coordinate system through Formula 1 in the above scheme. This calculation process not only takes into account the geometric position information of the touch area, but also combines the physical layout characteristics of the touch switch key (i.e., the adjacent intersection boundary). In addition, Formula 1 provides a basis for determining which touch switch key is the target that the user actually intends to trigger by quantifying the minimum distance relationship between the center of the two touch areas and the boundary between them, as well as the specific position of these centers in the reference coordinate system. When the two touch switch keys are touched at the same time, by comparing their center deviation characteristic values, it can be more accurately determined which key is the user's first choice or target key. In addition, Formula 1 also takes into account the influence of the physical layout of the touch switch key on the accuracy of touch detection. By introducing the parameter of the boundary distance, the system can be more in line with the actual situation and user habits when dealing with the situation where adjacent keys are touched at the same time, thereby improving the accuracy of recognition and user experience.
[0030] It can be seen that by calculating the minimum distance from the geometric center of the effective touch area of the first touch switch button and the second touch switch button to their adjacent boundaries, it is possible to more accurately determine on which button the touch event occurs, especially when the finger covers two adjacent buttons, which can reduce the situation of false touch or failure to recognize touch and improve the accuracy of touch recognition. In addition, when the finger covers two adjacent buttons at the same time, the traditional single button recognition method may make a misjudgment because the touch area may be small and distributed on the two buttons. Formula 1 enhances the system's ability to resist interference by comparing the distance deviation from the geometric center of the effective touch area of the two buttons to their shared boundary. In addition, by accurately judging the driver's intention, unnecessary operation feedback can be reduced, which can improve the user experience during driving. Especially for those application scenarios that require frequent operation of steering wheel buttons, such as adjusting the volume, answering calls, etc., accurate touch recognition can improve driving safety and convenience.
[0031] Optionally, according to the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue After that, it also includes:
[0032] The microcontroller uses Formula 2 to calculate the first center deviation characteristic value And the second center deviation eigenvalue Update, the formula 2 is:
[0033] in, is the geometric deviation characteristic weight value, is the preset touch switch button morphology feature weight value, is the preset touch switch button priority feature weight value, is the preset touch switch button trigger frequency characteristic weight value, the preset priority characteristic value corresponding to the first touch switch button, is the preset priority characteristic value corresponding to the second touch switch button, is the number of triggering times corresponding to the first touch switch button within a preset monitoring period, is the number of triggering times corresponding to the second touch switch button within the preset monitoring period.
[0034] In the above scheme, the center deviation feature value is updated by introducing multiple feature weight values (such as geometric deviation characteristic weight value, touch switch button morphology feature weight value, etc.), thereby comprehensively considering multiple factors (such as button position, morphology, priority, trigger frequency, etc.), making the determination of the target touch switch button more scientific and reasonable, thereby further improving the intelligence level of the system and user experience.
[0035] In addition, in Formula 2 in the above scheme, multiple feature weight values (including geometric deviation feature weight value, preset touch switch button morphology feature weight value, preset touch switch button priority feature weight value and preset touch switch button trigger frequency feature weight value) are introduced to weighted update the center deviation feature value obtained by preliminary calculation. This process comprehensively considers multiple attribute features of the touch switch button, making the determination of the target touch switch button more comprehensive and scientific.
[0036] Specifically, the geometric deviation feature weight value in formula 2 reflects the importance of the touch switch button in the physical layout, the morphological feature weight value considers the impact of the button's shape and size on touch detection, the priority feature weight value reflects the functional importance of the button and the user's usage habits, and the trigger frequency feature weight value dynamically adjusts its weight according to the historical trigger times of the button. The introduction of these weight values enables the system to flexibly adjust the judgment criteria according to different situations, improving the flexibility and accuracy of recognition.
[0037] Through the weighted update of formula 2, the system can more accurately determine which button is the target that the user actually intends to trigger when multiple touch switch buttons are touched at the same time. This technical effect not only improves the recognition accuracy of the system, but also enhances the user experience, making it more convenient and comfortable for users to use the smart car steering wheel.
[0038] Optionally, the touch screen is arranged at the center of the steering wheel body, and the switching mode of the touch switch button array on the touch screen is a progressive switching mode, wherein the progressive switching mode is that in response to a switching instruction, the touch switch button array currently displayed on the touch screen moves as a whole in a preset direction, at least one column of touch switch buttons of the touch switch button array along the preset direction disappears from the touch screen, and at least one new column of touch switch buttons is added to the touch screen in the opposite direction of the preset direction to form an updated touch switch button array;
[0039] Correspondingly, before the microcontroller updates the first center deviation characteristic value and the second center deviation characteristic value using formula 2, it also includes:
[0040] The microcontroller uses Formula 3 and determines the geometric deviation characteristic weight value according to the touch switch key array currently displayed on the touch screen. The Formula 3 is:
[0041] in, is the number of touch switch buttons in the touch switch button array currently displayed on the touch screen, The touch switch button array currently displayed on the touch screen is The distance between the touch switch button and the center position of the steering wheel body, is the average value of the distances between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body, It is the maximum value of the distance between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body.
[0042] In the above scheme, a progressive touch switch key array switching mode is proposed, which allows the user to switch between different function sets through simple gesture operations, and the mode improves the flexibility and usability of the user interface. In addition, a method for dynamically adjusting the weight value of the geometric deviation characteristic can be used according to the currently displayed touch switch key array information.
[0043] In addition, in Formula 3, the geometric deviation characteristic weight value is dynamically adjusted by comprehensively considering the distance between each button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body, as well as the average and maximum values of these distances. This calculation process reflects the refined consideration of the physical layout and position of the touch switch buttons, and provides a more accurate weight basis for subsequent touch detection data processing.
[0044] Specifically, the distance between each touch switch button and the center of the steering wheel body in Formula 3 reflects the relative position of the button on the steering wheel. By calculating the average and maximum values of these distances, we can understand the overall layout characteristics of the current touch switch button array, such as whether it is biased to one side or concentrated in the center. This information is important for evaluating the importance of different buttons in touch detection.
[0045] The geometric deviation characteristic weight values calculated by formula 3 can reflect the relative importance of keys at different positions in touch detection. When two or more adjacent touch switch keys are touched at the same time, the system can allocate attention and processing resources more reasonably based on these weight values, thereby more accurately judging the user's true intention.
[0046] In addition, Formula 3 also reflects the adaptability to dynamic changes in the touch switch button array. When the touch switch button array on the touch screen changes (such as through a progressive switching mode update), the system can recalculate the geometric deviation characteristic weight value to ensure that accurate touch detection performance is still maintained under the new layout.
[0047] Optionally, after the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, the method further includes:
[0048] If the microcontroller determines that the first touch switch button is the target touch switch button, generating a first trigger signal in response to the touch detection data;
[0049] If the touch screen detects characteristic behavior within a preset time range, the microcontroller generates the center deviation correction coefficient corresponding to the second touch switch button using formula 4: , the center deviation correction coefficient The microcontroller is used to use the center deviation correction coefficient when the microcontroller detects the touch detection data next time. The second center deviation eigenvalue make corrections;
[0050] The characteristic behavior is at least one of the following behaviors:
[0051] Characteristic behavior 1: obtaining a second trigger signal acting on the second touch switch button;
[0052] Characteristic behavior 2: obtaining a first change signal acting on the first touch switch button;
[0053] The formula 4 is: in, is the center deviation attenuation coefficient, , It is the number of times the touch screen detects characteristic behaviors within a preset monitoring period.
[0054] In the above scheme, after the target touch switch button is determined, a detection and response mechanism for specific characteristic behaviors is added. When specific characteristic behaviors are detected (such as the secondary triggering of the second touch switch button or the change signal of the first touch switch button), the system will generate a center deviation correction coefficient based on these behaviors, which is used to correct the center deviation characteristic value at the next detection. This technical effect realizes dynamic learning and optimization of user behavior, and improves the system's adaptive ability and user satisfaction.
[0055] In addition, in the above formula 4, by introducing the center deviation correction coefficient, the center deviation characteristic value of the second touch switch button under specific conditions (such as detecting characteristic behavior) is dynamically corrected. This mechanism effectively improves the accuracy and adaptability of the system in complex touch scenarios. In the actual use of the smart car steering wheel, the user may trigger multiple touch switch buttons at the same time due to mistouch, finger sliding or other unintentional behaviors. Formula 4 dynamically adjusts the center deviation characteristic value of the second touch switch button by detecting characteristic behaviors (such as the second trigger signal of the second touch switch button or the first change signal of the first touch switch button), thereby more accurately reflecting the user's true intention. Once the characteristic behavior is detected, Formula 4 calculates the center deviation correction coefficient and applies it to the next touch detection data processing, which significantly reduces the possibility of subsequent misjudgment and improves the accuracy of the system. In addition, by introducing Formula 4, the smart car steering wheel control system can process the user's touch input more intelligently and reduce operational errors caused by mistouch or misjudgment. This not only improves the response speed and accuracy of the system, but also enhances the user's driving experience and satisfaction.
[0056] In a second aspect, the present application provides an intelligent automobile steering wheel control system, comprising: a steering wheel body, a microcontroller and a touch screen, wherein the microcontroller and the touch screen are arranged in the steering wheel body, the microcontroller is communicatively connected with the touch screen, and a touch switch button array is arranged on the touch screen;
[0057] Acquire touch detection data acting on at least one touch switch button of the touch switch button array through the touch screen, and send the touch detection data to the microcontroller, wherein the touch detection data includes touch area information and a touch timestamp;
[0058] The microcontroller determines, according to the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes first touch detection data for triggering a first touch switch button in the touch switch button array and second touch detection data for triggering a second touch switch button in the touch switch button array, the first touch detection data includes first touch area information and the first touch timestamp, and the second touch detection data includes second touch area information and the second touch timestamp;
[0059] The microcontroller determines a first touch area according to the first touch area information, and determines a second touch area according to the second touch area information;
[0060] The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area.
[0061] Optionally, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, including:
[0062] If the microcontroller determines that the first touch area is smaller than a preset touch area threshold and the second touch area is larger than the preset touch area threshold, then the second touch switch button is determined to be the target touch switch button;
[0063] If the microcontroller determines that both the first touch area and the second touch area are greater than the preset touch area threshold, the target touch switch button is determined using a preset second determination model, and the second determination model is used to compare the difference between the first area ratio and the second area ratio, the first area ratio is the ratio between the first touch area and the first touch switch button area, the first touch switch button area is the area of the preset effective touch area of the first touch switch button, the second area ratio is the ratio between the second touch area and the second touch switch button area, and the second touch switch button area is the area of the preset effective touch area of the second touch switch button.
[0064] Optionally, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, further comprising:
[0065] If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the target touch switch button is determined using a preset first determination model, wherein the first determination model is used to compare the difference between a first center deviation and a second center deviation, wherein the first center deviation is the distance between a first geometric center of a first touch area corresponding to the first touch area information and a geometric center of a preset effective touch area of the first touch switch button, and the second center deviation is the distance between a second geometric center of a second touch area corresponding to the second touch area information and a geometric center of a preset effective touch area of the second touch switch button.
[0066] Optionally, the first touch switch button and the second touch switch button are adjacent touch switch buttons, an adjacent intersection boundary between the first touch switch button and the second touch switch button is a first boundary, and an adjacent intersection boundary between the first touch area and the second touch area at least includes a portion of the first boundary;
[0067] Correspondingly, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, and further includes:
[0068] If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the microcontroller determines the first geometric center coordinates of the first touch area in a preset reference coordinate system according to the first touch area information. , and determining the second geometric center coordinates of the second geometric center of the second touch area in the preset reference coordinate system according to the second touch area information ;
[0069] The microcontroller uses Formula 1 and according to the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue , the formula 1 is:
[0070] in, is the minimum distance from the geometric center of the preset effective touch area of the first touch switch button to the first boundary, is the minimum distance from the geometric center of the preset effective touch area of the second touch switch button to the first boundary, and the coordinates of the geometric center of the preset effective touch area of the first touch switch button in the preset reference coordinate system are The geometric center of the preset effective touch area of the second touch switch button has coordinates of ;
[0071] If it is determined that the microcontroller determines the first center deviation characteristic value Less than the second center deviation eigenvalue , then the first touch switch button is the target touch switch button;
[0072] If it is determined that the microcontroller determines the first center deviation characteristic value Greater than the second center deviation eigenvalue , then the second touch switch button is the target touch switch button;
[0073] If it is determined that the microcontroller determines the first center deviation characteristic value Equal to the second center deviation eigenvalue , the target touch switch key is determined according to the first touch switch key area and the second touch switch key area, and the target touch switch key is the touch switch key corresponding to the smaller area between the first touch switch key area and the second touch switch key area.
[0074] Optionally, according to the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue After that, it also includes:
[0075] The microcontroller uses Formula 2 to calculate the first center deviation characteristic value And the second center deviation eigenvalue Update, the formula 2 is:
[0076] in, is the geometric deviation characteristic weight value, is the preset touch switch button morphology feature weight value, is the preset touch switch button priority feature weight value, is the preset touch switch button trigger frequency characteristic weight value, is the preset priority characteristic value corresponding to the first touch switch button, is the preset priority characteristic value corresponding to the second touch switch button, is the number of triggering times corresponding to the first touch switch button within a preset monitoring period, is the number of triggering times corresponding to the second touch switch button within the preset monitoring period.
[0077] Optionally, the touch screen is arranged at the center of the steering wheel body, and the switching mode of the touch switch button array on the touch screen is a progressive switching mode, wherein the progressive switching mode is that in response to a switching instruction, the touch switch button array currently displayed on the touch screen moves as a whole in a preset direction, at least one column of touch switch buttons of the touch switch button array along the preset direction disappears from the touch screen, and at least one new column of touch switch buttons is added to the touch screen in the opposite direction of the preset direction to form an updated touch switch button array;
[0078] Correspondingly, the microcontroller uses Formula 2 to calculate the first center deviation characteristic value And the second center deviation eigenvalue Before updating, also include:
[0079] The microcontroller uses Formula 3 and determines the geometric deviation characteristic weight value according to the touch switch key array currently displayed on the touch screen. The Formula 3 is:
[0080] in, is the number of touch switch buttons in the touch switch button array currently displayed on the touch screen, The touch switch button array currently displayed on the touch screen is The distance between the touch switch button and the center position of the steering wheel body, is the average value of the distances between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body, It is the maximum value of the distance between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body.
[0081] Optionally, after the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, the method further includes:
[0082] If the microcontroller determines that the first touch switch button is the target touch switch button, generating a first trigger signal in response to the touch detection data;
[0083] If the touch screen detects characteristic behavior within a preset time range, the microcontroller generates the center deviation correction coefficient corresponding to the second touch switch button using formula 4: , the center deviation correction coefficient The microcontroller is used to use the center deviation correction coefficient when the microcontroller detects the touch detection data next time. The second center deviation eigenvalue make corrections;
[0084] The characteristic behavior is at least one of the following behaviors:
[0085] Characteristic behavior 1: obtaining a second trigger signal acting on the second touch switch button;
[0086] Characteristic behavior 2: obtaining a first change signal acting on the first touch switch button;
[0087] The formula 4 is: in, is the center deviation attenuation coefficient, , It is the number of times the touch screen detects characteristic behaviors within a preset monitoring period.
[0088] In a third aspect, the present application provides an electronic device, including:
[0089] processor; and,
[0090] A memory, configured to store executable instructions of the processor;
[0091] The processor is configured to perform any possible method described in the first aspect by executing the executable instructions.
[0092] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any possible method described in the first aspect.
[0093] The intelligent automobile steering wheel switch button detection data processing method and system provided in the present application obtain touch detection data acting on at least one touch switch button of a touch switch button array through a touch screen, and send the touch detection data to a microcontroller, so that the microcontroller determines the touch detection data within a preset lower limit time window according to the first touch timestamp and the second touch timestamp, including the first touch detection data of triggering the first touch switch button in the touch switch button array and the second touch detection data of triggering the second touch switch button in the touch switch button array, and determines the first touch area according to the first touch area information, and determines the second touch area according to the second touch area information, so that the microcontroller determines the target touch switch button of the first touch switch button and the second touch switch button according to the first touch area and the second touch area, thereby being able to accurately identify the driver's operation on the touch switch button on the steering wheel, and even when the driver touches multiple buttons simultaneously or in rapid succession, the target button of the actual operation can be accurately determined, thereby improving the accuracy and reliability of the touch button operation recognition on the steering wheel, reducing the occurrence of false touches, and improving driving safety and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0095] Figure 1 This is a flow chart of a method for processing data of a smart car steering wheel switch button detection according to an exemplary embodiment of the present application;
[0096] Figure 2This is a flow chart of a method for processing data of a smart car steering wheel switch button detection according to another exemplary embodiment of the present application;
[0097] Figure 3 is a schematic structural diagram of an intelligent automobile steering wheel control system according to an exemplary embodiment of the present application;
[0098] Figure 4 It is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application.
[0099] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0100] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0101] With the rapid development of smart cars, the interaction between drivers and vehicles has become increasingly important. As an important interface between the driver and the vehicle control system, the steering wheel's operation accuracy and reliability directly affect driving safety and user experience. Traditional steering wheel button detection methods often have problems with false touches and missed touches when the driver touches the buttons quickly and continuously or when multiple buttons are touched at the same time, resulting in the system being unable to accurately identify the driver's true operating intentions.
[0102] In view of the above problems, the embodiment of the present application proposes a method for processing data of intelligent automobile steering wheel switch button detection, aiming to improve the recognition accuracy and reliability of touch button operation on the steering wheel. The core concept of the present invention is to achieve accurate recognition of the driver's touch operation through close cooperation between the microcontroller and the touch screen and the use of advanced touch data processing algorithms.
[0103] Specifically, the present application integrates a microcontroller and a touch screen in the steering wheel body, and sets a touch switch button array on the touch screen. When the driver touches the button on the steering wheel, the touch screen will obtain touch detection data in real time, including touch area information and touch timestamp, and send these data to the microcontroller for processing. By analyzing these data, the microcontroller can accurately determine the touch switch button triggered within the preset lower limit time window, and identify the target touch switch button that the driver actually intends to operate.
[0104] In order to achieve this goal, this application adopts the following key technical means:
[0105] Timestamp analysis: The microcontroller determines the touch switch buttons that are triggered simultaneously or continuously within the preset lower limit time window by comparing the timestamp information in the touch detection data.
[0106] Touch area judgment: For multiple touch switch buttons triggered at the same time, the microcontroller will calculate the touch area based on the touch area information, and preliminarily screen out possible target touch switch buttons by comparing it with the preset touch area threshold.
[0107] Center deviation calculation: When the touch area is similar, the microcontroller will further calculate the distance deviation (center deviation) between the geometric center of the touch area and the geometric center of the preset effective touch area of the touch switch button, and determine the target touch switch button by comparing the center deviation characteristic value.
[0108] Feature weight update: In order to more accurately judge the target touch switch button, the present invention also introduces a variety of feature weight values (such as geometric deviation characteristic weight value, morphology feature weight value, priority feature weight value and trigger frequency feature weight value), and performs weighted update on the center deviation characteristic value obtained by the preliminary calculation to comprehensively consider the influence of multiple factors on the judgment result.
[0109] Dynamic adjustment mechanism: This application also designs a dynamic adjustment mechanism, which detects specific characteristic behaviors on the touch screen (such as secondary trigger signals or change signals), uses a formula to generate a center deviation correction coefficient, and corrects the center deviation characteristic value during the next detection, thereby improving the system's adaptability and recognition accuracy.
[0110] Through the above technical means, the present application can accurately identify the driver's touch operation on the steering wheel in complex touch scenarios, and can accurately determine the target button of the actual operation even when the driver touches multiple buttons simultaneously or in rapid succession. This not only improves the accuracy and reliability of the recognition of touch button operations on the steering wheel, but also reduces the occurrence of false touches and missed touches, thereby improving driving safety and user experience.
[0111] Figure 1FIG. 1 is a flow chart of a method for processing data of a smart car steering wheel switch button detection according to an exemplary embodiment of the present application. Figure 1 As shown, the method provided in this embodiment includes:
[0112] S101. Acquire touch detection data acting on at least one touch switch button of a touch switch button array through a touch screen, and send the touch detection data to a microcontroller.
[0113] The method provided in this embodiment can be applied to an intelligent automobile steering wheel control system, which includes a steering wheel body, a microcontroller and a touch screen. The microcontroller and the touch screen are arranged in the steering wheel body, the microcontroller is connected to the touch screen for communication, and a touch switch button array is arranged on the touch screen. Specifically, the intelligent automobile steering wheel control system consists of three parts: a steering wheel body, a microcontroller and a touch screen. Both the microcontroller and the touch screen are installed in the steering wheel body, and the two realize data exchange through a communication interface. A touch switch button array is pre-set on the touch screen for receiving the driver's touch operation, wherein the above-mentioned touch switch button array can be a virtual switch button in the user graphical interaction interface in the touch display screen, or a physical switch button on a capacitive or resistive touch sensing panel.
[0114] In this step, touch detection data acting on at least one touch switch button of the touch switch button array is acquired through the touch screen, and the touch detection data is sent to the microcontroller, wherein the touch detection data includes touch area information and touch timestamp.
[0115] Specifically, when the driver's finger touches the touch switch button on the steering wheel, the touch screen will immediately sense this operation and start collecting touch detection data. This data includes touch area information (such as the coordinate range of the touch point) and touch timestamp (recording the specific time when the touch occurs). After collection, the touch screen sends these touch detection data to the microcontroller through the communication interface for processing. It is worth mentioning that the touch screen will report the information of the touch area, which can be the coordinates of the touch point or the contour information of the touch area.
[0116] S102: The microcontroller determines, according to the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes the first touch detection data and the second touch detection data.
[0117] In this step, the microcontroller determines, based on the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes first touch detection data for triggering a first touch switch button in the touch switch button array and second touch detection data for triggering a second touch switch button in the touch switch button array, the first touch detection data includes first touch area information and a first touch timestamp, and the second touch detection data includes second touch area information and a second touch timestamp.
[0118] Specifically, after receiving the touch detection data sent by the touch screen, the microcontroller first sorts and filters the data according to the touch timestamp. Within the preset lower limit time window (such as within 50 milliseconds), the microcontroller will identify all possible relevant touch detection data. These data may include multiple touch events that trigger different touch switch buttons.
[0119] S103: The microcontroller determines a first touch area according to the first touch area information, and determines a second touch area according to the second touch area information.
[0120] In this step, the microcontroller calculates the corresponding touch area according to the touch area information of each touch event. According to the touch area information, the microcontroller can calculate the touch area, usually by calculating the number of pixels in the touch area or the area of the geometric shape. Specifically, the touch area can be estimated by calculating the number of pixels in the touch area or by the geometric shape of the touch area (such as a rectangle, a circle, etc.).
[0121] S104: The microcontroller determines a target touch switch button among the first touch switch button and the second touch switch button according to the first touch area and the second touch area.
[0122] The microcontroller compares the touch area of each touch event with the preset touch area threshold. If the touch area of a touch event is much larger than other touch events and exceeds the preset touch area threshold, the microcontroller preliminarily determines that the touch switch button corresponding to the touch event is the target touch switch button.
[0123] Once the target touch switch button is determined, the microcontroller generates a corresponding trigger signal based on the function of the button and transmits it to other control systems of the vehicle for response. For example, if the driver touches the volume increase button, the microcontroller generates a signal to increase the volume and sends it to the vehicle's audio system for processing.
[0124] In a possible implementation, if the microcontroller determines that both the first touch area and the second touch area are smaller than a preset touch area threshold, a preset first determination model is used to determine a target touch switch button, and the first determination model is used to compare the difference between the first center deviation and the second center deviation, the first center deviation being the distance between the first geometric center of the first touch area corresponding to the first touch area information and the geometric center of the preset effective touch area of the first touch switch button, and the second center deviation being the distance between the second geometric center of the second touch area corresponding to the second touch area information and the geometric center of the preset effective touch area of the second touch switch button. Optionally, the above-mentioned first determination model can be used to determine that the touch switch button corresponding to the smaller center deviation between the first center deviation and the second center deviation is the target touch switch button.
[0125] In another possible implementation, if the microcontroller determines that the first touch area is smaller than a preset touch area threshold and the second touch area is larger than the preset touch area threshold, the second touch switch button is determined to be the target touch switch button.
[0126] In another possible implementation, if the microcontroller determines that both the first touch area and the second touch area are greater than a preset touch area threshold, a preset second determination model is used to determine a target touch switch button, and the second determination model is used to compare the difference between the first area ratio and the second area ratio, the first area ratio is the ratio between the first touch area and the first touch switch button area, the first touch switch button area is the area of a preset effective touch area of the first touch switch button, the second area ratio is the ratio between the second touch area and the second touch switch button area, the second touch switch button area is the area of a preset effective touch area of the second touch switch button. Optionally, the above-mentioned second determination model can be used to determine that the touch switch button corresponding to the larger area ratio between the first area ratio and the second area ratio is the target touch switch button.
[0127] In this embodiment, touch detection data acting on at least one touch switch button of the touch switch button array is obtained through the touch screen, and the touch detection data is sent to the microcontroller, so that the microcontroller determines the touch detection data within the preset lower limit time window according to the first touch timestamp and the second touch timestamp, including the first touch detection data for triggering the first touch switch button in the touch switch button array and the second touch detection data for triggering the second touch switch button in the touch switch button array, and determines the first touch area according to the first touch area information, and determines the second touch area according to the second touch area information, so that the microcontroller determines the target touch switch button of the first touch switch button and the second touch switch button according to the first touch area and the second touch area, thereby being able to accurately identify the driver's operation on the touch switch button on the steering wheel, and even when the driver touches multiple buttons simultaneously or in rapid succession, the target button of the actual operation can be accurately determined, thereby improving the accuracy and reliability of the touch button operation recognition on the steering wheel, reducing the occurrence of false touches, and improving driving safety and user experience.
[0128] Figure 2 FIG. 1 is a flow chart of a method for processing data of a smart car steering wheel switch button detection according to another exemplary embodiment of the present application. Figure 2 As shown, the smart car steering wheel switch button detection data processing method provided in this embodiment includes:
[0129] S201, acquiring touch detection data acting on at least one touch switch button of a touch switch button array through a touch screen, and sending the touch detection data to a microcontroller.
[0130] In this step, touch detection data acting on at least one touch switch button of the touch switch button array is acquired through the touch screen, and the touch detection data is sent to the microcontroller, wherein the touch detection data includes touch area information and touch timestamp.
[0131] S202: The microcontroller determines, according to the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes the first touch detection data and the second touch detection data.
[0132] In this step, the microcontroller determines, based on the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes first touch detection data for triggering a first touch switch button in the touch switch button array and second touch detection data for triggering a second touch switch button in the touch switch button array, the first touch detection data includes first touch area information and a first touch timestamp, and the second touch detection data includes second touch area information and a second touch timestamp.
[0133] S203: The microcontroller determines a first touch area according to the first touch area information, and determines a second touch area according to the second touch area information.
[0134] In this step, the microcontroller calculates the corresponding touch area according to the touch area information of each touch event. According to the touch area information, the microcontroller can calculate the touch area, usually by calculating the number of pixels in the touch area or the area of the geometric shape. Specifically, the touch area can be estimated by calculating the number of pixels in the touch area or by the geometric shape of the touch area (such as a rectangle, a circle, etc.).
[0135] S204 , the microcontroller determines the first geometric center coordinates and the second geometric center coordinates according to the first touch area information.
[0136] Optionally, the first touch switch button and the second touch switch button are adjacent touch switch buttons, the adjacent intersection boundary between the first touch switch button and the second touch switch button is the first boundary, and the adjacent intersection boundary between the first touch area and the second touch area at least includes part of the first boundary.
[0137] If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, then in this step, the microcontroller determines the first geometric center coordinates of the first geometric center of the first touch area in the preset reference coordinate system based on the first touch area information, and determines the second geometric center coordinates of the second geometric center of the second touch area in the preset reference coordinate system based on the second touch area information.
[0138] S205. The microcontroller determines a first center deviation characteristic value and a second center deviation characteristic value according to the first geometric center coordinates and the second geometric center coordinates.
[0139] Specifically, the microcontroller uses formula 1 and calculates the first geometric center coordinates And the second geometric center coordinates Determine the first central deviation eigenvalue and the second central deviation eigenvalue , Formula 1 is:
[0140] in, is the minimum distance from the geometric center of the preset effective touch area of the first touch switch button to the first boundary, is the minimum distance from the geometric center of the preset effective touch area of the second touch switch button to the first boundary, and the coordinates of the geometric center of the preset effective touch area of the first touch switch button in the preset reference coordinate system are , the geometric center of the preset effective touch area of the second touch switch button has the coordinates of .
[0141] In another possible implementation, the microcontroller can also use Formula 2 to calculate the first center deviation characteristic value: and the second central deviation eigenvalue Update, formula 2 is:
[0142] in, is the geometric deviation characteristic weight value, is the preset touch switch button morphology feature weight value, is the preset touch switch button priority feature weight value, is the preset touch switch button trigger frequency characteristic weight value, is the preset priority characteristic value corresponding to the first touch switch button, is the preset priority characteristic value corresponding to the second touch switch button, is the number of triggers corresponding to the first touch switch button within the preset monitoring period, is the number of triggering times corresponding to the second touch switch button within the preset monitoring period.
[0143] S206: The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first center deviation characteristic value and the second center deviation characteristic value.
[0144] If it is determined that the microcontroller determines the first center deviation characteristic value Less than the second center deviation eigenvalue , then the first touch switch button is the target touch switch button;
[0145] If it is determined that the microcontroller determines the first center deviation characteristic value Greater than the second center deviation eigenvalue , then the second touch switch button is the target touch switch button;
[0146] If it is determined that the microcontroller determines the first center deviation characteristic value Equal to the second central deviation eigenvalue , a target touch switch key is determined according to the first touch switch key area and the second touch switch key area, and the target touch switch key is a touch switch key corresponding to the smaller area between the first touch switch key area and the second touch switch key area.
[0147] Further, if the touch screen is set in the center of the steering wheel body, the switching mode of the touch switch button array on the touch screen is a progressive switching mode. Among them, the above progressive switching mode is that in response to the switching instruction, the touch switch button array currently displayed on the touch screen moves as a whole in a preset direction, at least one column of touch switch buttons in the touch switch button array along the preset direction disappears from the touch screen, and at least one new column of touch switch buttons is added on the touch screen in the opposite direction of the preset direction to form an updated touch switch button array. It can be understood that the above progressive switching mode is a user interface interaction mode, especially in smart devices or systems, for navigating and switching between different function sets or views. In the context of the smart car steering wheel control system, the progressive switching mode is particularly applied to the touch switch button array on the touch screen. The progressive switching mode allows the user to change the touch switch button array currently displayed on the touch screen through simple gesture operations (such as sliding, clicking a specific button, etc.). In response to the user's switching instruction (such as horizontal or vertical sliding, long pressing a specific area, etc.), the touch switch button array currently displayed on the touch screen will move as a whole in a preset direction. When moving in a preset direction (such as left or right), one or more columns of buttons at the edge of the current touch switch button array will disappear from the touch screen, and one or more new columns of touch switch buttons will be added in the opposite direction of the preset direction, thus forming an updated touch switch button array. At the software level, the progressive switching mode is usually implemented by writing specific user interface logic, which dynamically updates the touch switch button array displayed on the touch screen based on the user's input. At the hardware level, the touch screen, microcontroller, and corresponding sensors and drive circuits need to work together to detect the user's input and convert it into the corresponding touch switch button array update.
[0148] When the switching mode of the touch switch button array on the touch screen is a progressive switching mode, since the position of the touch switch button relative to the center of the steering wheel body will change due to the switching of the interface, the microcontroller uses formula 2 to calculate the first center deviation eigenvalue and the second central deviation eigenvalue Before you update, you can also include:
[0149] The microcontroller uses Formula 3 and determines the weight value of the geometric deviation characteristic according to the touch switch button array currently displayed on the touch screen. Formula 3 is:
[0150] in, is the number of touch switch buttons in the touch switch button array currently displayed on the touch screen, The touch switch button array currently displayed on the touch screen The distance between the touch switch button and the center of the steering wheel body, is the average value of the distance between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body, It is the maximum value of the distance between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body.
[0151] In Formula 3, the geometric deviation characteristic weight value is dynamically adjusted by comprehensively considering the distance between each button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body, as well as the average and maximum values of these distances. This calculation process reflects the refined consideration of the physical layout and position of the touch switch buttons, and provides a more accurate weight basis for subsequent touch detection data processing.
[0152] Specifically, the distance between each touch switch button and the center of the steering wheel body in Formula 3 reflects the relative position of the button on the steering wheel. By calculating the average and maximum values of these distances, we can understand the overall layout characteristics of the current touch switch button array, such as whether it is biased to one side or concentrated in the center. This information is important for evaluating the importance of different buttons in touch detection.
[0153] The geometric deviation characteristic weight values calculated by formula 3 can reflect the relative importance of keys at different positions in touch detection. When two or more adjacent touch switch keys are touched at the same time, the system can allocate attention and processing resources more reasonably based on these weight values, thereby more accurately judging the user's true intention.
[0154] In addition, Formula 3 also reflects the adaptability to dynamic changes in the touch switch button array. When the touch switch button array on the touch screen changes (such as through a progressive switching mode update), the system can recalculate the geometric deviation characteristic weight value to ensure that accurate touch detection performance is still maintained under the new layout.
[0155] On the basis of the above embodiment, after the microcontroller determines the target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, the method may further include:
[0156] If the microcontroller determines that the first touch switch button is the target touch switch button, generating a first trigger signal in response to the touch detection data;
[0157] If the characteristic behavior is detected by the touch screen within the preset time range, the microcontroller generates the center deviation correction coefficient corresponding to the second touch switch button using formula 4: , center deviation correction factor Used to adjust the center deviation correction factor when the microcontroller detects touch detection data next time The second central deviation eigenvalue make corrections;
[0158] Characteristic behavior is at least one of the following behaviors:
[0159] Characteristic behavior 1: obtaining a second trigger signal acting on the second touch switch button;
[0160] Characteristic behavior 2: obtaining the first change signal acting on the first touch switch button;
[0161] Formula 4 is: in, is the center deviation attenuation coefficient, , It is the number of times the touch screen detects characteristic behaviors within the preset monitoring period.
[0162] After the target touch switch button is determined, a detection and response mechanism for specific characteristic behaviors is added. When specific characteristic behaviors are detected (such as the secondary triggering of the second touch switch button or the change signal of the first touch switch button), the system will generate a center deviation correction coefficient based on these behaviors, which is used to correct the center deviation characteristic value at the next detection. This technical effect realizes dynamic learning and optimization of user behavior, and improves the system's adaptive ability and user satisfaction.
[0163] Figure 3 FIG. 1 is a schematic diagram of a smart car steering wheel control system according to an exemplary embodiment of the present application. Figure 3 As shown, the smart car steering wheel control system 300 provided in this embodiment includes: a steering wheel body 310, a microcontroller 320 and a touch screen 330, wherein the microcontroller 320 and the touch screen 330 are arranged in the steering wheel body 310, the microcontroller 320 is in communication connection with the touch screen 330, and a touch switch button array is arranged on the touch screen 330;
[0164] Acquire touch detection data acting on at least one touch switch button of the touch switch button array through the touch screen 330, and send the touch detection data to the microcontroller 320, wherein the touch detection data includes touch area information and touch timestamp;
[0165] The microcontroller 320 determines, according to the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes first touch detection data for triggering a first touch switch button in the touch switch button array and second touch detection data for triggering a second touch switch button in the touch switch button array, the first touch detection data includes first touch area information and the first touch timestamp, and the second touch detection data includes second touch area information and the second touch timestamp;
[0166] The microcontroller 320 determines a first touch area according to the first touch area information, and determines a second touch area according to the second touch area information;
[0167] The microcontroller 320 determines a target touch switch key between the first touch switch key and the second touch switch key according to the first touch area and the second touch area.
[0168] Optionally, the microcontroller 320 determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, including:
[0169] If the microcontroller 320 determines that the first touch area is smaller than a preset touch area threshold and the second touch area is larger than the preset touch area threshold, the second touch switch button is determined to be the target touch switch button;
[0170] If the microcontroller 320 determines that the first touch area and the second touch area are both greater than the preset touch area threshold, the target touch switch button is determined using a preset second determination model, and the second determination model is used to compare the difference between the first area ratio and the second area ratio, the first area ratio is the ratio between the first touch area and the first touch switch button area, the first touch switch button area is the area of the preset effective touch area of the first touch switch button, the second area ratio is the ratio between the second touch area and the second touch switch button area, and the second touch switch button area is the area of the preset effective touch area of the second touch switch button.
[0171] Optionally, the microcontroller 320 determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, further comprising:
[0172] If the microcontroller 320 determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the target touch switch button is determined using a preset first determination model, wherein the first determination model is used to compare the difference between a first center deviation and a second center deviation, wherein the first center deviation is the distance between a first geometric center of a first touch area corresponding to the first touch area information and a geometric center of a preset effective touch area of the first touch switch button, and the second center deviation is the distance between a second geometric center of a second touch area corresponding to the second touch area information and a geometric center of a preset effective touch area of the second touch switch button.
[0173] Optionally, the first touch switch button and the second touch switch button are adjacent touch switch buttons, an adjacent intersection boundary between the first touch switch button and the second touch switch button is a first boundary, and an adjacent intersection boundary between the first touch area and the second touch area at least includes a portion of the first boundary;
[0174] Correspondingly, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, and further includes:
[0175] If the microcontroller determines that both the first touch area and the second touch area are smaller than the preset touch area threshold, the microcontroller 320 determines the first geometric center coordinates of the first touch area in the preset reference coordinate system according to the first touch area information. , and determining the second geometric center coordinates of the second geometric center of the second touch area in the preset reference coordinate system according to the second touch area information ;
[0176] The microcontroller 320 uses Formula 1 and calculates the first geometric center coordinates. And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue , the formula 1 is:
[0177] in, is the minimum distance from the geometric center of the preset effective touch area of the first touch switch button to the first boundary, is the minimum distance from the geometric center of the preset effective touch area of the second touch switch button to the first boundary, and the coordinates of the geometric center of the preset effective touch area of the first touch switch button in the preset reference coordinate system are , the geometric center of the preset effective touch area of the second touch switch button has coordinates in the preset reference coordinate system;
[0178] If it is determined that the microcontroller 320 determines the first center deviation characteristic value Less than the second center deviation eigenvalue , then the first touch switch button is the target touch switch button;
[0179] If it is determined that the microcontroller 320 determines the first center deviation characteristic value Greater than the second center deviation eigenvalue , then the second touch switch button is the target touch switch button;
[0180] If it is determined that the microcontroller 320 determines the first center deviation characteristic value Equal to the second center deviation eigenvalue , the target touch switch key is determined according to the first touch switch key area and the second touch switch key area, and the target touch switch key is the touch switch key corresponding to the smaller area between the first touch switch key area and the second touch switch key area.
[0181] Optionally, according to the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue After that, it also includes:
[0182] The microcontroller 320 uses Formula 2 to calculate the first center deviation characteristic value And the second center deviation eigenvalue Update, the formula 2 is:
[0183] in, is the geometric deviation characteristic weight value, is the preset touch switch button morphology feature weight value, is the preset touch switch button priority feature weight value, is the preset touch switch button trigger frequency characteristic weight value, is the preset priority characteristic value corresponding to the first touch switch button, is the preset priority characteristic value corresponding to the second touch switch button, is the number of triggering times corresponding to the first touch switch button within a preset monitoring period, is the number of triggering times corresponding to the second touch switch button within the preset monitoring period.
[0184] Optionally, the touch screen 330 is arranged at the center of the steering wheel body 310, and the switching mode of the touch switch button array on the touch screen 330 is a progressive switching mode, and the progressive switching mode is that in response to a switching instruction, the touch switch button array currently displayed on the touch screen 330 moves as a whole in a preset direction, at least one column of touch switch buttons of the touch switch button array along the preset direction disappears from the touch screen 330, and at least one new column of touch switch buttons is added on the touch screen 330 in the opposite direction of the preset direction to form an updated touch switch button array;
[0185] Correspondingly, the microcontroller 320 uses Formula 2 to calculate the first center deviation characteristic value And the second center deviation eigenvalue Before updating, also include:
[0186] The microcontroller 320 uses Formula 3 and determines the geometric deviation characteristic weight value according to the touch switch button array currently displayed on the touch screen 330. The Formula 3 is:
[0187] in, is the number of touch switch buttons in the touch switch button array currently displayed on the touch screen 330, The touch switch button array currently displayed on the touch screen 330 is The distance between the touch switch button and the center position of the steering wheel body 310, is the average value of the distance between each switch button in the touch switch button array currently displayed on the touch screen 330 and the center position of the steering wheel body 310, is the maximum value of the distance between each switch button in the touch switch button array currently displayed on the touch screen 330 and the center position of the steering wheel body 310 .
[0188] Optionally, after the microcontroller 320 determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, the method further includes:
[0189] If the microcontroller 320 determines that the first touch switch button is the target touch switch button, generating a first trigger signal in response to the touch detection data;
[0190] If the touch screen 330 detects a characteristic behavior within a preset time range, the microcontroller 320 generates a center deviation correction coefficient corresponding to the second touch switch button using Formula 4: , the center deviation correction coefficient The microcontroller 320 detects the touch detection data next time by using the center deviation correction coefficient. The second center deviation eigenvalue make corrections;
[0191] The characteristic behavior is at least one of the following behaviors:
[0192] Characteristic behavior 1: obtaining a second trigger signal acting on the second touch switch button;
[0193] Characteristic behavior 2: obtaining a first change signal acting on the first touch switch button;
[0194] The formula 4 is: in, is the center deviation attenuation coefficient, , It is the number of times the touch screen 330 detects characteristic behaviors within a preset monitoring period.
[0195] Figure 4 is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application. Figure 4 As shown, an electronic device 400 provided in this embodiment includes: a processor 401 and a memory 402; wherein:
[0196] The memory 402 is used to store computer programs, and the memory may also be a flash memory.
[0197] The processor 401 is used to execute the execution instructions stored in the memory to implement each step in the above method. For details, please refer to the relevant description in the above method embodiment.
[0198] Optionally, the memory 402 may be independent or integrated with the processor 401 .
[0199] When the memory 402 is a device independent of the processor 401, the electronic device 400 may further include:
[0200] The bus 403 is used to connect the memory 402 and the processor 401 .
[0201] This embodiment further provides a readable storage medium, in which a computer program is stored. When at least one processor of an electronic device executes the computer program, the electronic device executes the methods provided in the above-mentioned various implementation modes.
[0202] This embodiment also provides a program product, which includes a computer program stored in a readable storage medium. At least one processor of the electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device implements the methods provided in the above various embodiments.
[0203] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0204] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing data of intelligent car steering wheel switch button detection, It is characterized in that Applied to a smart car steering wheel control system, the smart car steering wheel control system comprises a steering wheel body, a microcontroller and a touch screen, the microcontroller and the touch screen are arranged in the steering wheel body, the microcontroller is communicatively connected with the touch screen, and a touch switch button array is arranged on the touch screen; The method comprises: Acquire touch detection data acting on at least one touch switch button of the touch switch button array through the touch screen, and send the touch detection data to the microcontroller, wherein the touch detection data includes touch area information and a touch timestamp; The microcontroller determines, according to the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes first touch detection data for triggering a first touch switch button in the touch switch button array and second touch detection data for triggering a second touch switch button in the touch switch button array, the first touch detection data includes first touch area information and the first touch timestamp, and the second touch detection data includes second touch area information and the second touch timestamp; The microcontroller determines a first touch area according to the first touch area information, and determines a second touch area according to the second touch area information; The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area; The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, including: If the microcontroller determines that the first touch area is smaller than a preset touch area threshold and the second touch area is larger than the preset touch area threshold, the second touch switch button is determined to be the target touch switch button; If the microcontroller determines that both the first touch area and the second touch area are greater than the preset touch area threshold, the target touch switch button is determined by using a preset second determination model, the second determination model is used to compare the difference between the first area ratio and the second area ratio, the first area ratio is the ratio between the first touch area and the first touch switch button area, the first touch switch button area is the area of a preset effective touch area of the first touch switch button, the second area ratio is the ratio between the second touch area and the second touch switch button area, the second touch switch button area is the area of a preset effective touch area of the second touch switch button; the first touch switch button and the second touch switch button are adjacent touch switch buttons, the adjacent intersection boundary between the first touch switch button and the second touch switch button is a first boundary, and the adjacent intersection boundary between the first touch area and the second touch area at least includes a portion of the first boundary; Correspondingly, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, and further includes: If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the microcontroller determines the first geometric center coordinates of the first touch area in a preset reference coordinate system according to the first touch area information. , and determining the second geometric center coordinates of the second geometric center of the second touch area in the preset reference coordinate system according to the second touch area information ; The microcontroller uses Formula 1 and according to the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue , the formula 1 is: in, the minimum distance from the geometric center of the preset effective touch area of the first touch switch button to the first boundary, is the minimum distance from the geometric center of the preset effective touch area of the second touch switch button to the first boundary, and the coordinates of the geometric center of the preset effective touch area of the first touch switch button in the preset reference coordinate system are The geometric center of the preset effective touch area of the second touch switch button has coordinates of ; If it is determined that the microcontroller determines the first center deviation characteristic value Less than the second center deviation eigenvalue , then the first touch switch button is the target touch switch button; If it is determined that the microcontroller determines the first center deviation characteristic value Greater than the second center deviation eigenvalue , then the second touch switch button is the target touch switch button; If it is determined that the microcontroller determines the first center deviation characteristic value Equal to the second center deviation eigenvalue , then determining the target touch switch key according to the first touch switch key area and the second touch switch key area, the target touch switch key being the touch switch key corresponding to the smaller area between the first touch switch key area and the second touch switch key area; After the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, the method further includes: If the microcontroller determines that the first touch switch button is the target touch switch button, generating a first trigger signal in response to the touch detection data; If the touch screen detects characteristic behavior within a preset time range, the microcontroller generates the center deviation correction coefficient corresponding to the second touch switch button using formula 4: , the center deviation correction coefficient The microcontroller is used to use the center deviation correction coefficient when the microcontroller detects the touch detection data next time. The second center deviation eigenvalue make corrections; The characteristic behavior is at least one of the following behaviors: Characteristic behavior 1: obtaining a second trigger signal acting on the second touch switch button; Characteristic behavior 2: obtaining a first change signal acting on the first touch switch button; The formula 4 is: in, is the center deviation attenuation coefficient, , It is the number of times the touch screen detects characteristic behaviors within a preset monitoring period.
2. The intelligent automobile steering wheel switch button detection data processing method according to claim 1, It is characterized in that The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, further comprising: If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the target touch switch button is determined using a preset first determination model, wherein the first determination model is used to compare the difference between a first center deviation and a second center deviation, wherein the first center deviation is the distance between a first geometric center of a first touch area corresponding to the first touch area information and a geometric center of a preset effective touch area of the first touch switch button, and the second center deviation is the distance between a second geometric center of a second touch area corresponding to the second touch area information and a geometric center of a preset effective touch area of the second touch switch button.
3. The intelligent automobile steering wheel switch button detection data processing method according to claim 1, It is characterized in that In the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue After that, it also includes: The microcontroller uses Formula 2 to calculate the first center deviation characteristic value And the second center deviation eigenvalue Update, the formula 2 is: in, is the geometric deviation characteristic weight value, is the preset touch switch button morphology feature weight value, is the preset touch switch button priority feature weight value, is the preset touch switch button trigger frequency characteristic weight value, is the preset priority characteristic value corresponding to the first touch switch button, is the preset priority characteristic value corresponding to the second touch switch button, is the number of triggering times corresponding to the first touch switch button within a preset monitoring period, is the number of triggering times corresponding to the second touch switch button within the preset monitoring period.
4. The intelligent automobile steering wheel switch button detection data processing method according to claim 3, It is characterized in that The touch screen is arranged at the center of the steering wheel body, and the switching mode of the touch switch button array on the touch screen is a progressive switching mode. The progressive switching mode is that in response to a switching instruction, the touch switch button array currently displayed on the touch screen moves as a whole in a preset direction, at least one column of touch switch buttons of the touch switch button array along the preset direction disappears from the touch screen, and at least one new column of touch switch buttons is added on the touch screen in the opposite direction of the preset direction to form an updated touch switch button array; Correspondingly, the microcontroller uses formula 2 to calculate the first center deviation characteristic value And the second center deviation eigenvalue Before updating, also include: The microcontroller uses Formula 3 and determines the geometric deviation characteristic weight value according to the touch switch key array currently displayed on the touch screen. The Formula 3 is: in, is the number of touch switch buttons in the touch switch button array currently displayed on the touch screen, The touch switch button array currently displayed on the touch screen is The distance between the touch switch button and the center position of the steering wheel body, is the average value of the distances between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body, It is the maximum value of the distance between each switch button in the touch switch button array currently displayed on the touch screen and the center position of the steering wheel body.
5. An intelligent car steering wheel control system, It is characterized in that include: A steering wheel body, a microcontroller and a touch screen, wherein the microcontroller and the touch screen are arranged in the steering wheel body, the microcontroller is in communication connection with the touch screen, and a touch switch button array is arranged on the touch screen; Acquire touch detection data acting on at least one touch switch button of the touch switch button array through the touch screen, and send the touch detection data to the microcontroller, wherein the touch detection data includes touch area information and a touch timestamp; The microcontroller determines, according to the first touch timestamp and the second touch timestamp, that the touch detection data within the preset lower limit time window includes first touch detection data for triggering a first touch switch button in the touch switch button array and second touch detection data for triggering a second touch switch button in the touch switch button array, the first touch detection data includes first touch area information and the first touch timestamp, and the second touch detection data includes second touch area information and the second touch timestamp; The microcontroller determines a first touch area according to the first touch area information, and determines a second touch area according to the second touch area information; The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area; The microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, including: If the microcontroller determines that the first touch area is smaller than a preset touch area threshold and the second touch area is larger than the preset touch area threshold, the second touch switch button is determined to be the target touch switch button; If the microcontroller determines that both the first touch area and the second touch area are greater than the preset touch area threshold, the target touch switch button is determined by using a preset second determination model, the second determination model is used to compare the difference between the first area ratio and the second area ratio, the first area ratio is the ratio between the first touch area and the first touch switch button area, the first touch switch button area is the area of a preset effective touch area of the first touch switch button, the second area ratio is the ratio between the second touch area and the second touch switch button area, the second touch switch button area is the area of a preset effective touch area of the second touch switch button; the first touch switch button and the second touch switch button are adjacent touch switch buttons, the adjacent intersection boundary between the first touch switch button and the second touch switch button is a first boundary, and the adjacent intersection boundary between the first touch area and the second touch area at least includes a portion of the first boundary; Correspondingly, the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, and further includes: If the microcontroller determines that the first touch area and the second touch area are both smaller than the preset touch area threshold, the microcontroller determines the first geometric center coordinates of the first touch area in a preset reference coordinate system according to the first touch area information. , and determining the second geometric center coordinates of the second geometric center of the second touch area in the preset reference coordinate system according to the second touch area information ; The microcontroller uses Formula 1 and according to the first geometric center coordinates And the coordinates of the second geometric center Determine the first central deviation eigenvalue and the second central deviation eigenvalue , the formula 1 is: in, the minimum distance from the geometric center of the preset effective touch area of the first touch switch button to the first boundary, is the minimum distance from the geometric center of the preset effective touch area of the second touch switch button to the first boundary, and the coordinates of the geometric center of the preset effective touch area of the first touch switch button in the preset reference coordinate system are The geometric center of the preset effective touch area of the second touch switch button has coordinates of ; If it is determined that the microcontroller determines the first center deviation characteristic value Less than the second center deviation eigenvalue , then the first touch switch button is the target touch switch button; If it is determined that the microcontroller determines the first center deviation characteristic value Greater than the second center deviation eigenvalue , then the second touch switch button is the target touch switch button; If it is determined that the microcontroller determines the first center deviation characteristic value Equal to the second center deviation eigenvalue , then determining the target touch switch key according to the first touch switch key area and the second touch switch key area, the target touch switch key being the touch switch key corresponding to the smaller area between the first touch switch key area and the second touch switch key area; After the microcontroller determines a target touch switch key among the first touch switch key and the second touch switch key according to the first touch area and the second touch area, the method further includes: If the microcontroller determines that the first touch switch button is the target touch switch button, generating a first trigger signal in response to the touch detection data; If the touch screen detects characteristic behavior within a preset time range, the microcontroller generates the center deviation correction coefficient corresponding to the second touch switch button using formula 4: , the center deviation correction coefficient The microcontroller is used to use the center deviation correction coefficient when the microcontroller detects the touch detection data next time. The second center deviation eigenvalue make corrections; The characteristic behavior is at least one of the following behaviors: Characteristic behavior 1: obtaining a second trigger signal acting on the second touch switch button; Characteristic behavior 2: obtaining a first change signal acting on the first touch switch button; The formula 4 is: in, is the center deviation attenuation coefficient, , It is the number of times the touch screen detects characteristic behaviors within a preset monitoring period.
6. An electronic device, It is characterized in that include: processor; as well as, A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 4 by executing the executable instructions.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 4 when executed by a processor.
Citation Information
Cited By
Motor vehicle having at least one user-operated functional unit and / or comfort unit, and operating device and method for operating a functional unit and / or comfort unit
WO2026175618A1
