Key value determination method, adaptive method and related device for vehicle-mounted side control
Patent Information
- Application Number
- CN202310706850.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-13
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2043-06-13
AI Technical Summary
然而,一个方控按键对应多组AD值时,人工计算按键取值范围易出错,对市场上千奇百态的方控容错率低
[0015] The beneficial effects of this application are as follows: It obtains at least one set of key data for at least two keys, wherein each set of key data includes at least two key index values and their corresponding key values; based on the at least one set of key data, it determines at least one range of key values for each key index value corresponding to the key in the at least one set of key data; it selects a target key value range from the at least one range of key values for each key index value to be used as the key value range for the key represented by that key index value; and then the target key value range is saved for use in response to the function corresponding to the key represented by that key index value. This solves the problem of high computational cost and error-proneness when multiple sets of AD values correspond to the control buttons.
Smart Images

Figure CN116860745B_ABST
Abstract
Description
Technical Field
[0001] The disclosed embodiments of this application relate to the field of vehicle technology, and more specifically, to a method for determining button values, an adaptive method, and related devices for vehicle steering wheel control. Background Technology
[0002] In-vehicle Infotainment (IVI) is a comprehensive in-vehicle information processing system that uses a dedicated in-vehicle central processing unit, based on the vehicle's bus system and internet services. For safety reasons, the driver has buttons on the steering wheel that allow for easy control of the IVI's media playback, pause, interface switching, answering and hanging up calls, and other functions. When a button on the steering wheel is pressed, an Administrative Distance (AD) value is calculated. When no button is pressed, the AD value is constant; the AD value is used to determine whether a button has been pressed.
[0003] Because in-vehicle infotainment platforms are installed inside the vehicle, they must withstand the effects of climate change during operation, such as transitions from winter to summer, from dry to humid conditions, and environmental changes caused by temperature rises due to vehicle movement. In other words, automotive electronic systems endure various environmental challenges, including temperature, humidity, rain, acid mist, vibration, electromagnetic interference, and current surges. This means that even with identical steering wheel control hardware, pressing a button in different environments will result in different AD values. However, when a single steering wheel control button corresponds to multiple AD values, manually calculating the value range is prone to errors, and the system has low fault tolerance due to the diverse range of steering wheel controls available on the market. Summary of the Invention
[0004] According to embodiments of this application, this application proposes a method for determining button values, an adaptive method, and related equipment for vehicle-mounted steering wheel controls to solve the above-mentioned problems.
[0005] The first aspect of this application discloses a method for determining key values of a vehicle steering wheel control, comprising: acquiring at least one set of key data for at least two keys, wherein each set of key data includes at least two key index values and their corresponding key values, the at least two key index values being used to represent the at least two keys; determining at least one key value range for the key represented by each key index value corresponding to the at least one set of key data, based on the at least one set of key data; selecting a target key value range from the at least one key value range for the key represented by each key index value, to be used as the key value range for the key represented by the key index value, wherein the target key value range is stored for use in response to the function corresponding to the key represented by the key index value.
[0006] In some embodiments, determining at least one key value range for a key represented by each key index value corresponding to the at least one set of key data based on the at least one set of key data includes: sorting each set of key data in the at least one set of key data according to the size of the key value; and obtaining, based on each sorted set of key data using a preset algorithm, the maximum key value and the minimum key value corresponding to each key index value corresponding to each set of key data, wherein the maximum key value and the minimum key value are used to determine the key value range for the key represented by the key index value.
[0007] In some embodiments, the preset algorithm includes: in the sorted same group of key data, the median value of the key value represented by each key index value and the key value of the key represented by the first adjacent key index value, plus a fixed value, is used as the minimum key value corresponding to the key index value, wherein the key value of the key represented by the key index value is greater than the key value of the key represented by the first adjacent key index value; the median value of the key value represented by each key index value and the key value of the second adjacent key is used as the maximum key value corresponding to the key index value, wherein the key value of the key represented by the key index value is less than the key value of the second adjacent key.
[0008] In some embodiments, the at least two buttons include a first button; the preset algorithm includes: in the sorted same group of button data, if the button value of the first button is the minimum button value in the sorted same group of button data, the minimum button value of the first button is a first preset value, and the maximum button value of the first button is the midpoint between the button value of the first button and the button value of the second adjacent button, wherein the button value of the first button is less than the button value of the second adjacent button; if the button value of the first button is the maximum button value in the sorted same group of button data, the maximum button value of the first button is a second preset value, and the minimum button value of the first button is the midpoint between the button value of the first button and the button value of the first adjacent button plus a fixed value, wherein the button value of the first button is greater than the button value of the first adjacent button.
[0009] In some embodiments, each set of key data further includes a group identifier; the target key value range and the group identifier of the set of key data corresponding to the target key value range are stored together for use in response to the function corresponding to the key represented by the key index value.
[0010] In some embodiments, the target key value range is the key value range with the largest interval among the at least one key value range. A second aspect of this application discloses an adaptive method for a vehicle-mounted steering wheel control, comprising: receiving a key instruction; obtaining a target key value range for one of at least two keys; determining whether the key value corresponding to the key instruction is within the target key value range of the at least two keys; responding to a function corresponding to the at least two keys if the key value corresponding to the key instruction is within the target key value range of the at least two keys; and responding to a function corresponding to the at least two keys if the key value corresponding to the key instruction is not within the target key value range of the at least two keys, obtaining the target key value range of the next key among the at least two keys, and determining whether the key value corresponding to the key instruction is within the target key value range of the next key among the at least two keys, until the function of one of the at least two keys is responded to; wherein the target key value range of the at least two keys is determined by the key value determination method for the vehicle-mounted steering wheel control described in the first aspect.
[0011] In some embodiments, the step of responding to the key value corresponding to the key instruction being within the target key value range of one of the at least two keys includes: determining a group identifier for the key value corresponding to the key instruction based on the target key value range of one of the at least two keys; and ensuring that the key value corresponding to the group identifier corresponding to the key instruction is within the target key value range of one of the at least two keys.
[0012] The third aspect of this application discloses an in-vehicle device, including a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the method for determining key values of in-vehicle steering wheel control as described in the first aspect, or to implement the adaptive method of in-vehicle steering wheel control as described in the second aspect.
[0013] A fourth aspect of this application discloses a vehicle-mounted device, comprising: an acquisition module, configured to acquire at least one set of key data for at least two keys, wherein each set of key data includes at least two key index values and their corresponding key values, the at least two key index values representing the at least two keys; a key value range determination module, configured to determine, based on the at least one set of key data, at least one key value range for a key represented by each key index value corresponding to the at least one set of key data; and a target key value range selection module, configured to select a target key value range from the at least one key value range for a key represented by each key index value, for use as the key value range for the key represented by the key index value, wherein the target key value range is stored for use in response to a function corresponding to the key represented by the key index value.
[0014] The fifth aspect of this application discloses a non-volatile computer-readable storage medium storing program instructions thereon, which, when executed by a processor, implement the method for determining key values of vehicle-mounted steering wheel control as described in the first aspect, or implement the adaptive method of vehicle-mounted steering wheel control as described in the second aspect.
[0015] The beneficial effects of this application are as follows: It obtains at least one set of key data for at least two keys, wherein each set of key data includes at least two key index values and their corresponding key values; based on the at least one set of key data, it determines at least one range of key values for each key index value corresponding to the key in the at least one set of key data; it selects a target key value range from the at least one range of key values for each key index value to be used as the key value range for the key represented by that key index value; and then the target key value range is saved for use in response to the function corresponding to the key represented by that key index value. This solves the problem of high computational cost and error-proneness when multiple sets of AD values correspond to the control buttons. Attached Figure Description
[0016] The present application will be further described below with reference to the accompanying drawings and embodiments. In the drawings:
[0017] Figure 1 This is a flowchart illustrating the method for determining the button value of a vehicle-mounted steering wheel control according to an embodiment of this application.
[0018] Figure 2 This is a logical diagram illustrating the determination of key values according to an embodiment of this application;
[0019] Figure 3 This is a flowchart illustrating the adaptive method for vehicle-mounted steering control according to an embodiment of this application;
[0020] Figure 4 This is a schematic diagram of the structure of the vehicle-mounted device according to an embodiment of this application;
[0021] Figure 5 This is a schematic diagram of the structure of the vehicle-mounted device according to an embodiment of this application;
[0022] Figure 6 This is a schematic diagram of the structure of a non-volatile computer-readable storage medium according to an embodiment of this application. Detailed Implementation
[0023] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0024] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Additionally, the character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, "many" in this application means two or more. Moreover, the term "at least one" in this application means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C. Furthermore, the terms "first," "second," and "third" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features.
[0025] To enable those skilled in the art to better understand the technical solution of this application, the technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0026] Please see Figure 1 , Figure 1 This is a flowchart illustrating the method for determining the button value of a vehicle-mounted steering wheel control according to an embodiment of this application. The execution subject of this method can be an electronic device with computing capabilities, such as a microcomputer, a server, and mobile devices such as laptops and tablets.
[0027] It should be noted that if substantially the same result is obtained, the method of this application is not based on... Figure 1 The sequence of processes shown is limited.
[0028] In some possible implementations, this method can be implemented by the processor calling computer-readable instructions stored in memory, such as... Figure 1 As shown, the method may include the following steps:
[0029] S11: Obtain at least one set of key data for at least two keys, wherein each set of key data includes at least two key index values and their corresponding key values, and the at least two key index values are used to represent at least two keys.
[0030] At least one set of button data for at least two buttons can be obtained through a preset method. For example, by entering the steering wheel control button learning interface to learn steering wheel control, multiple sets of button data corresponding to each button can be obtained. For example, button data may include button index values, as well as each set of AD values, function values, etc., corresponding to the button index values. The button index value is used to represent the button, which can be represented by a number or a string representing the button name, etc.
[0031] At least two sets of key data are required. For example, if there are three keys with corresponding key index values "key1", "key2", and "key3", each set corresponds to two sets of key data. The first set of key data can be the key data of the keys represented by the key index values key1, key2, and key3 obtained under scenario A, and the second set of key data can be the key data of the keys represented by the key index values key1, key2, and key3 obtained under scenario B. Scenario A / B can represent different application environments for vehicle steering wheel control, such as different humidity / temperature environments. Each set of key data includes at least two key index values and their corresponding key values. The at least two key index values are used to represent at least two keys. For example, if the key index values are "key1", "key2", and "key3", key1 can represent one key, key2 can represent another key, and key3 can represent yet another key. The corresponding key values can be the AD values and function values of the three keys represented by the key index values key1, key2, and key3.
[0032] S12: Based on at least one set of key data, determine at least one key value range for each key index value corresponding to the at least one set of key data.
[0033] Taking the key index values key1, key2, and key3 mentioned above as an example, there are two sets of key data, namely the first set of key data and the second set of key data. At least one set of key data is processed, for example, the first set of key data and the second set of key data are processed to determine at least one key value range of the key represented by each key index value corresponding to the at least one set of key data. Each key value range of the key represented by the key index value corresponds to a set of key data. That is, the range of AD values of key1, key2, and key3 in the first set of key data and the range of AD values of key1, key2, and key3 in the second set of key data can be determined. For example, the range of AD values of key1 corresponding to the first set of key data is a1-a2, the range of AD values of key2 is b1-b2, and the range of AD values of key3 is c1-c2. The range of AD values of key1 corresponding to the second set of key data is d1-d2, the range of AD values of key2 is e1-e2, and the range of AD values of key3 is f1-f2.
[0034] S13: Select a target key value range from at least one key value range of the key represented by each key index value, and use it as the key value range of the key represented by the key index value, wherein the target key value range is stored for use in response to the function corresponding to the key represented by the key index value.
[0035] Continuing with the example of the key index values key1, key2, and key3, there are two sets of key data: the first set and the second set. At least one set of key data is processed. For example, the first and second sets of key data are processed. It is determined that the AD value range of key1 corresponding to the first set of key data is a1-a2, the AD value range of key2 is b1-b2, and the AD value range of key3 is c1-c2. The AD value range of key1 corresponding to the second set of key data is d1-d2, the AD value range of key2 is e1-e2, and the AD value range of key3 is f1-f2. A target key value range is selected from at least one key value range of the key represented by each key index value to be used as the key value range of the key represented by the key index value. For example, the first group of AD values of key1 is a1-a2, and the second group of AD values of key1 is d1-d2. At this time, the target key value range is determined from a1-a2 and d1-d2. For example, a1-a2 is used as the target key value range as the key value range of the key represented by the index value key1. At this time, the target key value range is saved for use in response to the function corresponding to the key represented by the key index value. For example, if a key is pressed and its AD value is within the target key value range of the key represented by the index value key1, that is, between a1-a2, then the function corresponding to the key represented by the index value key1 is responded to.
[0036] In this embodiment, at least one set of key data for at least two buttons is acquired, wherein each set of key data includes at least two key index values and their corresponding key values. The at least two key index values are used to represent at least two buttons. Based on the at least one set of key data, at least one range of key values for the button represented by each key index value corresponding to the at least one set of key data is determined. A target key value range is selected from the at least one range of key values for the button represented by each key index value to be used as the key value range for the button represented by the key index value. The target key value range is then saved for use in response to the function corresponding to the button represented by the key index value. This solves the problem of high computational cost and error susceptibility when multiple sets of AD values correspond to the control buttons.
[0037] In some embodiments, the target key value range is the key value range with the largest interval among at least one key value range.
[0038] Continuing with the example of the key index values key1, key2, and key3, there are two sets of key data: the first set and the second set. At least one set of key data is processed. For example, the first and second sets of key data are processed. It is determined that the AD value range of key1 corresponding to the first set of key data is a1-a2, the AD value range of key2 is b1-b2, and the AD value range of key3 is c1-c2. The AD value range of key1 corresponding to the second set of key data is d1-d2, the AD value range of key2 is e1-e2, and the AD value range of key3 is f1-f2, where a1-a2 < d1-d2. The target key value range is the key value range with the largest interval among at least one key value range. That is, the target key value range is selected from at least one key value range of each key. For example, the first group of AD values of key1 is a1-a2, and the second group of AD values of key1 is d1-d2. In this case, the target key value range is determined from a1-a2 and d1-d2. Since a1-a2 < d1-d2, d1-d2 is used as the target key value range for the key value range represented by key1.
[0039] In some embodiments, determining at least one range of key values for a key represented by each key index value corresponding to at least one set of key data, based on at least one set of key data, includes: sorting each set of key data in the at least one set of key data according to the size of the key value; and obtaining, based on each sorted set of key data, the maximum key value and the minimum key value corresponding to each key index value corresponding to each set of key data using a preset algorithm, wherein the maximum key value and the minimum key value are used to determine the range of key values for the key represented by the key index value.
[0040] Taking the key index values key1, key2, and key3 as examples, there are at least one set of key data. For example, in the first set of key data, the AD value of key1 is x1, the AD value of key2 is x2, and the AD value of key3 is x3, where x1 < x2 < x3. Each set of key data is sorted according to the size of its key value. For example, sorting it in ascending order would result in key1-x1, key2-x2, and key3-x3. Alternatively, it could be sorted in descending order; this application does not limit the sorting. Using a preset algorithm, based on each group of sorted key data, the maximum and minimum key values corresponding to each key index value of each group of key data are obtained. The maximum and minimum key values are used to determine the key value range represented by the key index value. For example, based on key1-x1, key2-x2, key3-x3, the preset algorithm can obtain the maximum and minimum key values corresponding to each key index value of the first group of key data, namely the maximum AD value a2 and minimum AD value a1 of key1, the maximum AD value b2 and minimum AD value b1 of key2, and the maximum AD value c2 and minimum AD value c1 of key3. The preset algorithm can be other key value algorithms / schemes to complete the relevant calculations of the vehicle steering wheel control key values.
[0041] In some embodiments, the preset algorithm includes: in the sorted same group of key data, the middle value of the key value represented by each key index value and the key value represented by the first adjacent key index value plus a fixed value is used as the minimum key value corresponding to the key index value, wherein the key value represented by the key index value is greater than the key value represented by the first adjacent key index value; the middle value of the key value represented by each key index value and the key value represented by the second adjacent key index value is used as the maximum key value corresponding to the key index value, wherein the key value represented by the key index value is less than the key value represented by the second adjacent key index value.
[0042] Continuing with the example of the key index values key1, key2, and key3, there is at least one set of key data. For example, in the first set of key data, the AD value of key1 is x1, the AD value of key2 is x2, and the AD value of key3 is x3, where x1 < x2 < x3. In at least one set of key data, each set of key data is sorted according to the size of the key value. For example, sorting in ascending order yields key1-x1, key2-x2, key3-x3. The minimum key value corresponding to each key index is the median of the key value and the key value of the first adjacent key index, plus a fixed value. The key value of the key represented by this key index is greater than the key value of the first adjacent key index. The key value of the first adjacent key index is the key value in the same group that is adjacent to the key value represented by this key index and is smaller than it. For example, the median of the AD value x2 of key2 and the AD value x1 of key1, plus a fixed value, can be used as the minimum key value for this key index. The smaller AD value is b1, and the AD value x2 of key2 is greater than the AD value x1 of key1. For example, b1 = x1 + (x2 - x1) / 2 + 1. The middle value between the key value represented by each key index value and the key value represented by the second adjacent key index value is used as the maximum key value corresponding to that key index value. The key value represented by that key index value is less than the key value represented by the second adjacent key index value. The key value represented by the second adjacent key index value is the key value that is adjacent to and greater than the key value represented by that key index value in the same group after sorting. For example, the middle value x3 between the AD value x2 of key2 and the AD value of key3 is used as the maximum AD value b2 of key2. The AD value x2 of key2 is less than the AD value x3 of key3. For example, b2 = x2 + (x3 - x2) / 2.
[0043] In some embodiments, at least two buttons include a first button; the preset algorithm includes: in the sorted same group of button data, if the button value of the first button is the minimum button value in the sorted same group of button data, the minimum button value of the first button is a first preset value, and the maximum button value of the first button is the median value between the button value of the first button and the button value of the second adjacent button, wherein the button value of the first button is less than the button value of the second adjacent button.
[0044] Continuing with the example of key index values key1, key2, and key3, there are at least one set of key data. For example, in the first set of key data, the AD value of key1 is x1, the AD value of key2 is x2, and the AD value of key3 is x3, where x1 < x2 < x3. Each set of key data is sorted according to the size of its key value, for example, in ascending order, resulting in key1-x1, key2-x2, key3-x3. If the key value of the first key is the minimum key value in the same set of key data after sorting, for example, the key index value key1 corresponding to AD value x1, where x1 is the minimum key value in the same set of key data, then the minimum key value corresponding to the first key represented by key1 is a first preset value, that is, the minimum AD value a1 of key1 is 0, or a specific value greater than 0. The maximum value corresponding to the first key represented by ey1 is the midpoint between the value of the first key and the value of the second adjacent key, where the value of the first key is less than the value of the second adjacent key. The second adjacent key is the key adjacent to the value of the first key and has a value greater than it. That is, the AD value x1 of the first key represented by key1 is less than the AD value x2 of the second adjacent key represented by key2. The maximum AD value a2 of key1 is the midpoint between the AD value x1 of key1 and the AD value x2 of key2, i.e., a2 = x1 + (x2 - x1) / 2. Further, if the value of the first key is the maximum value of the key values in the same group of sorted key data, the maximum value of the first key is a second preset value, and the minimum value of the first key is the midpoint between the value of the first key and the value of the first adjacent key plus a fixed value, where the value of the first key is greater than the value of the first adjacent key.
[0045] If the key value of the first key is the maximum value among the key values in the same group of key data after sorting, for example, the key index value key3 corresponding to AD value x3, where x3 is the maximum value among the key values in the same group of key data, then the maximum key value of the first key represented by the key index value key3 is the second preset value, that is, the maximum AD value c2 of key3 can be a preset constant minus 1. The minimum key value of the first key is the midpoint between the key value of the first key and the key value of the first adjacent key plus a fixed value, where the key value of the first key is greater than the key value of the first adjacent key. The first adjacent key is the key corresponding to the key value that is adjacent to the key value of the first key and is less than its key value. That is, the minimum AD value c1 of the first key represented by key3 can be the midpoint between the AD values corresponding to key3 and key2 plus a fixed value, for example, c1 = x2 + (x3 - x2) / 2 - 1.
[0046] Specifically, the preset algorithm in the above embodiments can be implemented by software programs or by hardware programming.
[0047] In some embodiments, each set of key data further includes a group identifier; the target key value range and the group identifier of the set of key data corresponding to the target key value range are stored together for use in response to the function corresponding to the key.
[0048] Continuing with the example of key1, key2, and key3, there are two sets of key data: the first set and the second set. At least one set of key data is processed. For example, processing the first and second sets of key data, we determine that the AD value range for key1 (corresponding to the first set of key data) is a1-a2, for key2 it is b1-b2, and for key3 it is c1-c2. Similarly, for the second set of key data, the AD value range for key1 is d1-d2, for key2 it is e1-e2, and for key3 it is f1-f2, where a1-a2 < d1-d2, e1-e2 < b1-b2, and c1-c2 < f1-f2. Therefore, the target key value range for key1 is determined to be d1-d2, for key2 it is determined to be b1-b2, and for key3 it is determined to be f1-f2. The target key value range and the group identifier of the corresponding set of key data are saved together for use in response to the function corresponding to the key. For example, the group identifiers of d1-d2 and the second group corresponding to d1-d2 are saved, the group identifiers of b1-b2 and the first group corresponding to b1-b2 are saved, and the group identifiers of f1-f2 and the second group corresponding to f1-f2 are saved for use in response to the function corresponding to the key.
[0049] The logic diagram for determining the key value in the embodiments of this application will be described in detail below, in conjunction with the above content. Figure 2 As shown, Figure 2 This is a logical diagram illustrating the determination of key values according to an embodiment of this application.
[0050] Obtain the key data of the buttons, that is, obtain at least one set of key data of at least two buttons, wherein each set of key data includes at least two key index values, and each set of AD values, function values, and key index values corresponding to each key index value. The at least two key index values are used to represent at least two buttons.
[0051] The key data of the same group represented by each key index value is sorted according to the size of the key value. The maximum and minimum key values corresponding to each key index value in the key data are obtained by a preset algorithm. For example, in a group of key data, the AD value of key1 is x1, the AD value of key2 is x2, and the AD value of key3 is x3, where x1 < x2 < x3. Sort each set of key data in at least one group according to the size of the key value. For example, sorting them in ascending order will result in key1-x1, key2-x2, key3-x3. The minimum AD value a1 of key1 can be determined as the first preset value. The maximum AD value a2 of key1 is the midpoint between the AD value x1 of key1 and the AD value x2 of key2. The minimum AD value b1 of key2 is the midpoint between the AD value x2 of key2 and the AD value x1 of key1 plus a fixed value, such as adding 1. The maximum AD value b2 of key2 is the midpoint between the AD value x2 of key2 and the AD value x3 of key3. The minimum AD value c1 of key3 can be the midpoint between the AD value of key3 and the AD value of key2 plus a fixed value. The maximum AD value c2 of key3 is the second preset value. The first preset value can be 0 or greater than 0, and the calculation rules for each group need to be consistent. The second preset value can be a constant minus 1 or other values, and the calculation rules for each group need to be consistent.
[0052] If there are N sets of key data, where N is greater than or equal to 1, then sort the key data of different sets according to the size of the key value, and obtain the maximum and minimum key values of each key corresponding to the key data of different sets through a preset algorithm.
[0053] Determine the target key value range for a key, which is to determine the target key value range for a key using N sets of key data. The target key value range for one key is the key value range with the largest interval among the N sets of key value ranges corresponding to that key.
[0054] Please see Figure 3 , Figure 3 This is a flowchart illustrating an adaptive method for vehicle-mounted steering control according to an embodiment of this application. This method can be applied to vehicle-mounted devices with functions such as computing. It should be noted that if substantially the same result is obtained, the method of this application does not necessarily require further elaboration. Figure 3 The sequence of processes shown is limited.
[0055] In some possible implementations, this method can be implemented by the processor calling computer-readable instructions stored in memory, such as... Figure 3 As shown, the method may include the following steps:
[0056] S31: Receive key commands and obtain the target key value range for at least two keys.
[0057] For example, at least two buttons include three buttons corresponding to button index values key1, key2, and key3, corresponding to two sets of button data: a first set of button data and a second set of button data. At least one set of button data is processed. For example, processing the first and second sets of button data, it is determined that the AD value range of the button represented by key1 in the first set of button data is a1-a2, the AD value range of the button represented by key2 is b1-b2, and the AD value range of the button represented by key3 is c1-c2. The second set of button data... The AD value range of the button represented by key1 is d1-d2, the AD value range of the button represented by key2 is e1-e2, and the AD value range of the button represented by key3 is f1-f2, where a1-a2 < d1-d2, e1-e2 < b1-b2, and c1-c2 < f1-f2. Therefore, the target button value range for the button represented by key1 is determined to be d1-d2, the target button value range for the button represented by key2 is determined to be b1-b2, and the target button value range for the button represented by key3 is determined to be f1-f2. Upon receiving a button command, the target button value ranges of at least two buttons are obtained. That is, when a button is pressed, the AD value range and AD group value of at least one saved button are obtained. For example, the target button value range for the button represented by key1 is d1-d2, the target button value range for the button represented by key2 is b1-b2, and the target button value range for the button represented by key3 is f1-f2.
[0058] S32: Determine whether the key value corresponding to the key command is within the target key value range of at least one of the two keys.
[0059] Receive button commands, that is, when a button is pressed, obtain the button value corresponding to the button command and the target button value range of at least two buttons, and then determine whether the button value corresponding to the button command is within the target button value range of at least two buttons.
[0060] S33: Responding to a key value corresponding to a key instruction that falls within the target key value range of at least two keys, responding to the function corresponding to one of the at least two keys.
[0061] If the key value corresponding to the key instruction is within the target key value range corresponding to one of the key values of at least two keys, then the recorded AD group value is searched from the target key value range of at least two keys, and the AD value of the corresponding group value of the key corresponding to the key instruction is taken. If the AD value is between the maximum key value and the minimum key value of the key, then the function value corresponding to the key is responded to.
[0062] Continuing with the example of key index values key1, key2, and key3, when a key is pressed, we can obtain the AD value y1 of the first group and the AD value y2 of the second group corresponding to that key. The target key value range for the key represented by key1 is determined to be d1-d2, corresponding to the second group; the target key value range for the key represented by key2 is b1-b2, corresponding to the first group; and the target key value range for the key represented by key3 is f1-f2, also corresponding to the second group. For example, if at least one of the two keys is the key represented by key1, then starting the query from key1, the target key value range for the key represented by key1 is d1-d2, corresponding to the second group. This means determining whether the AD value y2 of the second group corresponding to that key is between d1 and d2. If it is, then the function corresponding to the key represented by key1 is executed.
[0063] S34: In response to the fact that the key value corresponding to the key instruction is not within the target key value range of at least two keys, obtain the target key value range of the next key among at least two keys, and determine whether the key value corresponding to the key instruction is within the target key value range of the next key among at least two keys, until the function of one of the at least two keys is responded to.
[0064] Continuing with the example of key index values key1, key2, and key3, in response to the fact that the key value of the key is not within the target key value range of the key represented by key1, that is, the second group AD value y2 corresponding to the key command is not between d1 and d2, the target key value range of the next key among at least two keys is obtained. That is, it can be the next / other key among the keys that have already saved the AD value range and AD group value. For example, the second key is the key represented by key2 or the key represented by key3.
[0065] If the key value corresponding to the key instruction is not within the target key value range of key1, that is, the AD value y2 of the second group corresponding to the key instruction is not between d1 and d2, then the target key value range of the second key is obtained. For example, if the next key among at least two keys is the key represented by key2, and the target key value range of the key represented by key2 is b1-b2, corresponding to the first group, then it is determined whether the AD value y1 of the first group corresponding to the key is between b1 and b2. If it is, then the function corresponding to the key represented by key2 is responded to... If the key value corresponding to the key instruction is not within the target key value range of the key represented by key2, then the determination continues until the function of one of the at least two keys is responded to.
[0066] The target key value range for at least two keys is determined using the aforementioned key value determination method for vehicle steering wheel control. This involves acquiring at least one set of key data for at least two keys, where each set includes at least two key index values and their corresponding key values. Based on the at least one set of key data, at least one key value range for each key index value corresponding to the at least one set of key data is determined. A target key value range is selected from the at least one key value range for each key index value to be used as the key value range for the key represented by that key index value. The target key value range is stored to respond to the function corresponding to the key represented by that key index value. Further details are omitted here.
[0067] In some embodiments, responding to the key value corresponding to the key instruction being within the target key value range of one of at least two keys includes: determining a group identifier of the key value corresponding to the key instruction based on the target key value range of one of at least two keys; and responding to the key value corresponding to the group identifier being within the target key value range of one of at least two keys.
[0068] Based on the target key value range of one of the at least two keys, determine the group identifier of the key value corresponding to the key instruction. For example, when a control is pressed, obtain the AD value range and AD group value of at least one saved key, where the AD group value is the group identifier. For example, if the target key value range of the key represented by key1 is determined to be d1-d2, and the corresponding second group is the group identifier, then respond to the function corresponding to the key represented by key1 if the key value corresponding to the group identifier of the key instruction is within the target key value range of key1, that is, if the AD value y2 of the second group corresponding to the key value of the key instruction is between d1 and d2.
[0069] Furthermore, in response to the key value corresponding to the key instruction not being within the target key value range of key1, the target key value range of the next key among at least two keys is obtained, and it is determined whether the key value corresponding to the key instruction is within the target key value range of the next key among at least two keys. For example, if the next key is the key represented by key2, based on the target key value range of the key represented by key2, the second group identifier of the key value corresponding to the key instruction is determined. For example, in response to the key value corresponding to the key instruction not being within the target key value range of the key represented by key1, the target key value range of the key represented by key2 is obtained. For example, if the target key value range of key2 is b1-b2, the corresponding first group is the group identifier. In response to the key value corresponding to the first group identifier of the key instruction being within the target key value range of the key represented by key2, that is, the AD value y1 of the first group corresponding to the key is located in b1-b2, then the function corresponding to the key represented by key2 is responded to.
[0070] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0071] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. The electronic device 40 includes a memory 41 and a processor 42 coupled to each other. The processor 42 is used to execute program instructions stored in the memory 41 to implement the steps of the above-described embodiment of the vehicle-mounted steering wheel control key value determination method, or to implement the steps of the above-described embodiment of the vehicle-mounted steering wheel control adaptive method. In a specific implementation scenario, the electronic device 40 may include, but is not limited to, a microcomputer or a server.
[0072] Specifically, processor 42 controls itself and memory 41 to implement the steps of the above-described embodiment of the vehicle-mounted steering wheel control key value determination method, or to implement the steps of the above-described embodiment of the vehicle-mounted steering wheel control adaptive method. Processor 42 can also be called a CPU (Central Processing Unit), and may be an integrated circuit chip with signal processing capabilities. Processor 42 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 42 can be implemented using integrated circuit chips.
[0073] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a vehicle-mounted device according to an embodiment of this application. The vehicle-mounted device 50 includes an acquisition module 51, a key value range determination module 52, and a target key value range selection module 53.
[0074] The acquisition module 51 is used to acquire at least one set of key data for at least two keys, wherein each set of key data includes at least two key index values and their corresponding key values, and the at least two key index values are used to represent at least two keys.
[0075] The key value range determination module 52 is used to determine, based on at least one set of key data, at least one key value range represented by each key index value corresponding to the at least one set of key data.
[0076] The target key value range selection module 53 is used to select a target key value range from at least one key value range of the key represented by each key index value, so as to use it as the key value range of the key represented by the key index value, wherein the target key value range is stored for use in response to the function corresponding to the key represented by the key index value.
[0077] In some embodiments, the key value range determination module 52 determines at least one key value range for a key represented by each key index value corresponding to at least one set of key data based on at least one set of key data, including: sorting each set of key data in the at least one set of key data according to the size of the key value; and obtaining the maximum key value and minimum key value corresponding to each key index value corresponding to each set of key data based on a preset algorithm, wherein the maximum key value and minimum key value are used to determine the key value range of the key represented by the key index value.
[0078] In some embodiments, the preset algorithm includes: in the sorted same group of key data, the middle value of the key value represented by each key index value and the key value represented by the first adjacent key index value plus a fixed value is used as the minimum key value corresponding to the key index value, wherein the key value represented by the key index value is greater than the key value represented by the first adjacent key index value; the middle value of the key value represented by each key index value and the key value represented by the second adjacent key index value is used as the maximum key value corresponding to the key index value, wherein the key value represented by the key index value is less than the key value represented by the second adjacent key index value.
[0079] In some embodiments, at least two buttons include a first button; the preset algorithm includes: in the sorted same group of button data, if the button value of the first button is the minimum button value in the sorted same group of button data, the minimum button value of the first button is a first preset value, and the maximum button value of the first button is the midpoint between the button value of the first button and the button value of the second adjacent button, wherein the button value of the first button is less than the button value of the second adjacent button; if the button value of the first button is the maximum button value in the sorted same group of button data, the maximum button value of the first button is a second preset value, and the minimum button value of the first button is the midpoint between the button value of the first button and the button value of the first adjacent button plus a fixed value, wherein the button value of the first button is greater than the button value of the first adjacent button.
[0080] In some embodiments, each set of key data further includes a group identifier; the target key value range and the group identifier of the set of key data corresponding to the target key value range are stored together for use in response to the function corresponding to the key.
[0081] In some embodiments, the target key value range is the key value range with the largest interval among at least one key value range. See also... Figure 6 , Figure 6 This is a schematic diagram of the structure of a non-volatile computer-readable storage medium according to an embodiment of this application. The non-volatile computer-readable storage medium 60 is used to store a computer program 601. When the computer program 601 is executed by a processor, for example by the aforementioned... Figure 4 When the processor 42 in the embodiment is executed, it is used to implement the steps of the above-described method embodiment for determining key values for vehicle-mounted steering wheel control, or to implement the steps of the above-described adaptive method embodiment for vehicle-mounted steering wheel control.
[0082] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.
[0083] In the several embodiments provided in this application, it should be understood that the disclosed methods and related devices can be implemented in other ways. For example, the related device implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication disconnection shown or discussed may be indirect coupling or communication disconnection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0084] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0085] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0086] Those skilled in the art will readily recognize that numerous modifications and variations can be made to the apparatus and method while maintaining the teachings of this application. Therefore, the above disclosure should be considered limited only by the scope of the appended claims.
Claims
1. A method for determining the button values of a vehicle-mounted steering wheel control, characterized in that, include: Acquire at least two sets of key data for at least two buttons, wherein each set of key data includes at least two button index values and their corresponding button values, wherein the at least two button index values are used to characterize the at least two buttons, and the at least two sets of key data correspond to the application environment of vehicle steering wheel control under different conditions. Based on the at least two sets of key data, determine at least two key value ranges for each key index value corresponding to the at least two sets of key data. Select a target key value range from at least two key value ranges of the key represented by each key index value to use as the key value range of the key represented by the key index value, wherein the target key value range is stored for use in response to the function corresponding to the key represented by the key index value; Based on the at least two sets of key data, determine at least two key value ranges for each key index value corresponding to the at least two sets of key data, including: Sort each set of key data in the at least two sets according to the size of the key value; Using a preset algorithm, based on each group of sorted key data, the maximum and minimum key values corresponding to each key index value of each group of key data are obtained. The maximum and minimum key values are used to determine the range of key values represented by the key index value.
2. The method according to claim 1, characterized in that, The preset algorithm includes: In the same group of sorted key data, the middle value of the key value represented by each key index value and the key value represented by the first adjacent key index value, plus a fixed value, is used as the minimum key value corresponding to the key index value, wherein the key value represented by the key index value is greater than the key value represented by the first adjacent key index value. The midpoint between the key value represented by each key index value and the key value represented by the second adjacent key index value is used as the maximum key value corresponding to that key index value, wherein the key value represented by that key index value is less than the key value represented by the second adjacent key index value.
3. The method according to claim 1 or 2, characterized in that, The at least two buttons include a first button; The preset algorithm includes: In the same group of sorted key data, if the key value of the first key is the minimum key value in the same group of sorted key data, the minimum key value of the first key is a first preset value, and the maximum key value of the first key is the midpoint between the key value of the first key and the key value of the second adjacent key, wherein the key value of the first key is less than the key value of the second adjacent key. If the key value of the first button is the maximum key value in the same group of key data after sorting, the maximum key value of the first button is a second preset value, and the minimum key value of the first button is the midpoint between the key value of the first button and the key value of the first adjacent button plus a fixed value, wherein the key value of the first button is greater than the key value of the first adjacent button.
4. The method according to claim 1, characterized in that, Each set of key data also includes a group identifier; The target key value range and the group identifier of the key data corresponding to the target key value range are saved together for use in response to the function corresponding to the key represented by the key index value.
5. The method according to claim 1, characterized in that, The target key value range is the key value range with the largest interval among the at least two key value ranges.
6. An adaptive method for vehicle-mounted steering control, characterized in that, include: Receive key commands and obtain the target key value range for at least two keys; Determine whether the key value corresponding to the key instruction is within the target key value range of one of the at least two keys; In response to the key value corresponding to the key instruction being within the target key value range of one of the at least two keys, the function corresponding to one of the at least two keys is responded to. In response to the fact that the key value corresponding to the key instruction is not within the target key value range of one of the at least two keys, the target key value range of the next key among the at least two keys is obtained, and it is determined whether the key value corresponding to the key instruction is within the target key value range of the next key among the at least two keys, until the function of one of the at least two keys is responded to; The target key value range of the at least two keys is determined by the key value determination method of the vehicle steering wheel control according to any one of claims 1 to 5.
7. The method according to claim 6, characterized in that, The key value corresponding to the key command being located within the target key value range of one of the at least two keys includes: Based on the target key value range of one of the at least two keys, determine the group identifier of the key value corresponding to the key instruction; The key value corresponding to the group identifier corresponding to the key instruction is within the target key value range of one of the at least two keys.
8. A vehicle-mounted device, characterized in that, It includes a memory and a processor coupled to each other, the processor being used to execute program instructions stored in the memory to implement the method for determining the key value of the vehicle steering wheel control according to any one of claims 1 to 5, or to implement the adaptive method of the vehicle steering wheel control according to any one of claims 6 to 7.
9. A vehicle-mounted device, characterized in that, include: The acquisition module is used to acquire at least two sets of key data for at least two keys, wherein each set of key data includes at least two key index values and their corresponding key values, and the at least two key index values are used to represent the at least two keys. The key value range determination module is used to determine, based on the at least two sets of key data, at least two key value ranges represented by each key index value corresponding to the at least two sets of key data, wherein the at least two sets of key data correspond to the application environment of vehicle steering wheel control under different conditions. The target key value range selection module is used to select a target key value range from at least two key value ranges of the key represented by each key index value, so as to use it as the key value range of the key represented by the key index value, wherein the target key value range is stored for use in response to the function corresponding to the key represented by the key index value. Based on the at least two sets of key data, determine at least two key value ranges for each key index value corresponding to the at least two sets of key data, including: Sort each set of key data in the at least two sets according to the size of the key value; Using a preset algorithm, based on each group of sorted key data, the maximum and minimum key values corresponding to each key index value of each group of key data are obtained. The maximum and minimum key values are used to determine the range of key values represented by the key index value.
10. A non-volatile computer-readable storage medium storing program instructions thereon, characterized in that, When the program instructions are executed by the processor, they implement the method for determining the value of the vehicle-mounted steering wheel control button as described in any one of claims 1 to 5, or the adaptive method for the vehicle-mounted steering wheel control as described in any one of claims 6 to 7.
Citation Information
Patent Citations
Steering wheel key setting method and device, computer equipment and storage medium
CN114368354A