Key function adaptation method and device, equipment and storage medium

By obtaining and judging the combination data of the key combination, the target key value table is generated, the software change cost problem caused by key changes is solved, the new keys and original software is adapted, the cost of vehicle hardware changes is reduced, and the software is enhanced compatibility.

CN119045883APending Publication Date: 2024-11-29ZHEJIANG GEELY HLDG GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411108844.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Due to changes in keys, the overall cost of the vehicle increases. The existing technology requires software changes to adapt to hardware replacement, which conflicts with the need to reduce costs.

Method used

By obtaining fixed key data, it determines its matching with the initial value table, collects key combination data and determines whether it meets the preset combination, and generates the target key value table to adapt to new keys to avoid software changes.

Benefits of technology

Without making software changes, the compatibility of software is enhanced, the additional cost of vehicle hardware changes is reduced, and the flexibility of adaptation is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045883A_ABST
    Figure CN119045883A_ABST
Patent Text Reader

Abstract

The invention discloses a key function adaptation method and device, equipment and a storage medium, relates to the technical field of software control, and discloses a key function adaptation method which comprises the following steps: acquiring fixed key data; under the condition that the fixed key data are not matched with the initial key value table, key combination data are collected; judging whether the key combination data conforms to a preset key combination or not; and generating a target key value table based on the key combination data under the condition that the key combination data conforms to the preset key combination. According to the method and the device, the technical effects that the replaced key is matched with the original software under the condition that software change is not carried out, and the overall hardware replacement cost of the vehicle is reduced are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software control technology, and in particular to a key function adaptation method, device, equipment and storage medium. Background Art

[0002] As car versions are updated and iterated at a faster pace, the prices of older models need to be continuously adjusted downwards, so hardware such as buttons also fall into the category of cost reduction control.

[0003] However, the change of buttons will involve the change of resistance value. For example, for the window buttons, the resistance value changes include rising, falling and one-key falling. For low-end models, the change of resistance value will lead to the software change of related controllers. The cost of software change is high, which conflicts with the overall cost reduction concept. Summary of the invention

[0004] The main purpose of the present application is to provide a key function adaptation method, device, equipment and storage medium, aiming to solve the technical problem that the overall cost of the vehicle increases due to the need for software changes due to key changes.

[0005] To achieve the above object, the present application proposes a key function adaptation method, the method comprising:

[0006] Get fixed key data;

[0007] In the case where the fixed key data does not match the initial key value table, collecting key combination data;

[0008] Determining whether the key combination data conforms to a preset key combination;

[0009] In the case that the key combination data conforms to the preset key combination, a target key value table is generated based on the key combination data.

[0010] In one embodiment, the step of determining whether the key combination data conforms to a preset key combination includes:

[0011] Obtaining a combination sequence and a key interval in the preset key combination;

[0012] When the key types of the key combination data are arranged in the combination order and the interval between the key types is less than the key interval, it is determined that the key combination data conforms to the preset key combination;

[0013] When the key types of the key combination data are not arranged in the combination order, or the interval between the key types is greater than or equal to the key interval, it is determined that the key combination data does not conform to the preset key combination.

[0014] In one embodiment, the step of generating a target key value table based on the key combination data includes:

[0015] Determine whether there is key data reuse between the key types;

[0016] In the case of key data reuse, the key combination data and the preset key time condition are used as key response conditions, the key response conditions are associated with key functions, and a target key value table is generated;

[0017] In the absence of button data reuse, the button combination data and button functions are associated to generate a target button value table.

[0018] In one embodiment, the step of obtaining fixed key data includes:

[0019] Collect initial key data according to the preset scanning cycle;

[0020] The initial key data is subjected to periodic filtering to obtain fixed key data.

[0021] In one embodiment, the method further comprises:

[0022] Display the button adaptation interface through the vehicle screen;

[0023] Receiving a key data collection instruction based on the key adaptation interface, and collecting adaptation key data of each key function according to the key data collection instruction;

[0024] The adapted key data is stored in an interface key value table.

[0025] In one embodiment, after the step of displaying the button adaptation interface on the vehicle screen, the step further includes:

[0026] Acquiring filtering time data and / or key recognition time data based on the key adaptation interface;

[0027] The filtering time data and / or the key recognition time data are associated with the adaptation key data and stored.

[0028] In one embodiment, before the step of obtaining fixed key data, the step further includes:

[0029] Detect the power-on status of the vehicle;

[0030] When the vehicle changes from a power-off state to a power-on state, the number of allowed key adaptation times is set to a preset number.

[0031] In addition, to achieve the above purpose, the present application also proposes a key function adaptation device, the key function adaptation device comprising:

[0032] An acquisition module is used to acquire fixed key data;

[0033] A collection module, used for collecting key combination data when the fixed key data does not match the initial key value table;

[0034] A judging module, used to judge whether the key combination data conforms to a preset key combination;

[0035] A generating module is used to generate a target key value table based on the key combination data when the key combination data conforms to the preset key combination.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a key function adaptation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the key function adaptation method described above.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the key function adaptation method described above are implemented.

[0038] One or more technical solutions proposed in this application have at least the following technical effects: first determine whether the operated button can respond directly by obtaining fixed button data; when the fixed button data does not match the initial button value table, it indicates that the button and the software do not match and cannot respond directly, and then collect button combination data; determine whether the button combination data conforms to the preset button combination, and the button combination data is used as the data basis for button function adaptation; when the button combination data conforms to the preset button combination, it indicates that the collected button combination data is valid, and a target button value table can be generated based on the button combination data, and the target button value table can replace the original initial button value table to respond to operations on different buttons. In this way, the technical solution of this application can adapt the replaced button to the original software without changing the software, thereby enhancing the compatibility of the software and reducing the additional cost of hardware changes for the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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.

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 This is an electrical schematic diagram before the window button is changed;

[0042] Figure 2 This is an electrical schematic diagram after a car window button is changed;

[0043] Figure 3 A flowchart of the first embodiment of the key function adaptation method of the present application is provided;

[0044] Figure 4 A flowchart of the second embodiment of the key function adaptation method of the present application is provided;

[0045] Figure 5 A brief flowchart of the key function adaptation method provided in the third embodiment of the present application;

[0046] Figure 6 This is a schematic diagram of the module structure of the key function adaptation device according to an embodiment of the present application;

[0047] Figure 7 A schematic diagram of the device structure of the hardware operating environment involved in the key function adaptation method of the embodiment of the present application.

[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0051] Buttons come in different forms, including physical and virtual. Physical buttons are often presented in the form of hardware, such as buttons for controlling window lifting in vehicles, buttons for controlling volume on mobile phones, and buttons for changing channels on remote controls. With the advancement of technology, physical buttons are gradually transformed into virtual buttons controlled by touch screens. Although the virtual buttons displayed on the screen are different in appearance, they still have control functions and can operate certain functions. Taking the window buttons as an example, due to the need to control costs for old models, the model or quantity of the window buttons needs to be replaced. This hardware change requires the adaptation of software functions.

[0052] Figure 1 This is an electrical schematic diagram before the window button is changed. Figure 1 It includes three gears: manual rise, manual descent and automatic descent, corresponding to 3 button functions. Each function is controlled by a separate button, and the resistance value of the circuit connected to different gears is different. Figure 2 This is an electrical schematic diagram after the window button is changed. Figure 2 There are only two gears, up and down, and whether it is automatic down is determined by identifying the duration of the down button. If there is no adaptive function method for the window button, then the change of the button will lead to the change of the controller software, which will significantly increase the cost of change.

[0053] It should be noted that the embodiments of the present application can be applied in vehicles and other electronic devices with button change requirements. The following embodiments are described by taking the window button change as an example. The following description is based on the controller in the vehicle as the execution subject, and the controller can be a DCM (Data Communication Module) or a BCM (Body Control Module).

[0054] Based on this, the embodiment of the present application provides a key function adaptation method, referring to Figure 3 , Figure 3 This is a flow chart of the first embodiment of the key function adaptation method of the present application.

[0055] In this embodiment, the key function adaptation method includes steps S10 to S40:

[0056] Step S10, obtaining fixed key data;

[0057] Fixed key data refers to the data generated by operating the key without key function adaptation. Key data refers to the data generated by operating the key, and fixed key data belongs to key data. It is understandable that the key can control whether to connect to the circuit and change the resistance of the connected circuit by pressing or popping up. Fixed key data can include different types, and different keys can be distinguished by fixed key data. For example, for the window control function, the fixed key data generated by operating the up button and the down button are different. Fixed key data can be presented in different types of data forms, including AD (analogue-to-digital, analog-to-digital conversion) value, voltage value or current value. The following is explained using AD value as an example.

[0058] In one practicable manner, when the vehicle is powered on, the window button pressing state is continuously monitored, and the button AD value is obtained when the window button is pressed. When the button is not replaced, the controller software and the button function are adapted, and the button function can be directly identified according to the fixed button data and responded to.

[0059] In one practicable manner, step S10 includes steps S101 to S102:

[0060] Step S101, collecting initial key data according to a preset scanning cycle;

[0061] The preset scanning cycle refers to the cycle used to detect the initial key data, which can be set according to actual needs. It is understandable that the preset scanning cycle is set shorter so that subsequent operations can be performed on the initial key data in a timely manner. The initial key data refers to the key data collected within the preset scanning cycle. The switch used by the key can be a mechanical elastic switch. When the mechanical contacts are disconnected and closed, due to the elastic effect of the mechanical contacts, the key switch will not be immediately and stably connected when closed, nor will it be immediately disconnected when disconnected. There will be jitter during the closing and disconnecting process. Any operation on the key may generate initial key data. However, the initial key data may not necessarily be used to respond to the key function.

[0062] Step S102, performing periodic filtering on the initial key data to obtain fixed key data.

[0063] Periodic filtering refers to filtering the initial key data according to a certain filtering period, which can be regarded as a delayed sampling method. When the key is pressed, the signal value may jitter, which can be eliminated by filtering. In the process of periodic filtering, the moment when the initial key data is collected can be marked, delayed by a filtering period, and then the initial key data at that moment can be taken as fixed key data. The filtering period can be set according to the actual jitter situation so that more accurate fixed key data can be obtained after periodic filtering.

[0064] In an practicable manner, the preset scanning period is set to be smaller than the filtering period. For example, the preset scanning period is set to 10 ms, and the filtering period is set to 50 ms. In this embodiment, de-jittering is performed by filtering to prevent inaccuracy caused by data jitter.

[0065] In an practicable manner, before step S10, steps A10 to A20 are also included:

[0066] Step A10, detecting the power-on status of the vehicle;

[0067] The power-on state of the vehicle refers to whether the vehicle is connected to the power supply to power on the entire vehicle. The power-on state can include the power-on state and the power-off state. In the power-on state, the vehicle is connected to the power supply, the controller and other components in the vehicle are awakened, and the key function adaptation operation can be performed.

[0068] Step A20, when the vehicle changes from a power-off state to a power-on state, setting the allowed key adaptation times to a preset number.

[0069] The power-off state refers to the power-off state in which the vehicle is not connected to the power supply. The number of allowed key adaptations is the number of key function adaptations allowed after each power-on. The preset number is the threshold value of the preset number of key function adaptations. It is understandable that the process of key function adaptation needs to be performed when the vehicle is powered on, and after the vehicle is powered on, the user may enter the key function adaptation process through certain operations, resulting in uncontrollable key adaptation process. Set the number of allowed key adaptations to the preset number, then after the number of key adaptations reaches the preset number after each power-on, key function adaptation is no longer allowed, to prevent adaptation errors caused by user misoperation. The vehicle changes from the power-off state to the power-on state, indicating that it enters the power-on state, and the number of allowed key adaptations takes effect during a single entry into the power-on state.

[0070] In a feasible implementation, the preset number of times is set to 1, and KeyAdaptiveFlag=1 is used to indicate that the number of key adaptations allowed is 1. When the key function adaptation process is completed or the key function adaptation process is entered, KeyAdaptiveFlag=0 is set to allow the number of key adaptations to be set to zero. If the key function adaptation needs to be performed again, the vehicle can be powered off and then powered on again, and the number of key adaptations allowed can be restored to the preset number. By limiting the number of key adaptations, users can be prevented from mistakenly entering the key function adaptation process and performing erroneous operations.

[0071] Step S20, collecting key combination data when the fixed key data does not match the initial key value table;

[0072] The initial key value table refers to a table originally stored for matching key data with key functions. The initial key value table contains the correspondence between key data and key functions. Based on the initial key value table, after operating a key to generate fixed key data, you can query the initial key value table to see whether there is a key function corresponding to the fixed key data. If there is a corresponding key function, it means that the fixed key data matches the initial key value table and can directly respond to the key function. In the event of a key change, the key data may change, resulting in a mismatch between the fixed key data and the initial key value table.

[0073] Key combination data refers to key data including different key types, and key type refers to the type corresponding to the key function. For example, the key type of the window raising button corresponds to the manual raising function. Key combination data includes key data of various types of windows. By collecting key combination data as a reference for key data after key replacement, key function adaptation is performed. In key combination data, key data can be grouped according to key type.

[0074] In an implementable manner, key data is generated by operating a window key, and each key operation generates a key data. The key data is continuously collected until the key data having the same number as the key combination data is obtained to form the key combination data.

[0075] Step S30, determining whether the key combination data conforms to a preset key combination;

[0076] The preset key combination refers to the combination conditions that the key combination data should meet for key function adaptation. Key combination data that meets the preset key combination can be considered valid and can be used to generate a target key value table for key function adaptation. It is understandable that the replacement of keys will cause the key data corresponding to some or all key functions to change, so it is necessary to adapt through key combination data.

[0077] In an practicable manner, the preset key combination includes requirements for the combination order and detection time of the key combination data. The combination order refers to the arrangement order that the multiple key data included in the key combination data should comply with. The detection time refers to the time required to detect the key combination data. By judging whether the key combination data complies with the combination order and detection time requirements, it is determined whether it complies with the preset key combination. For example, the combination order requirement is to arrange the key combination data in the order of ascending, descending, and automatic descending, and the detection time requirement is to complete the detection of the key combination data within 5 seconds.

[0078] In one practicable manner, step S30 includes steps S31 to S33:

[0079] Step S31, obtaining the combination sequence and key interval in the preset key combination;

[0080] The combination order refers to the arrangement order that the multiple key data included in the key combination data should conform to. The key interval refers to the time interval between key data of different key types included in the key combination data. Each key type can include multiple key data. It can be understood that key data of the same key type have similarities. In this case, the preset key combination can also include requirements on the number of key data in each key type.

[0081] The change of buttons may lead to the change of the number of buttons and / or resistance value. When the number of buttons changes from many to few, it is necessary to adapt the button functions from many to few. By limiting the combination order, the function with button reuse is set at the end of the combination order. For example, the combination order is set to be arranged in sequence according to the up button, down button and automatic down button, and the number of down buttons and automatic down buttons is set to be different to distinguish them. The button interval can be set to a shorter time so that the detection of button combination data does not take too long to avoid misoperation.

[0082] Step S32, when the key types of the key combination data are arranged in the combination order and the interval between the key types is less than the key interval, determining that the key combination data conforms to the preset key combination;

[0083] The key types are arranged in a combination order, and the interval between each key type is less than the key interval, indicating that the collected key combination data conforms to the preset key combination and can be used for key function adaptation. In the process of judging that the key types are arranged in a combination order, the number of key data for each key type can also be limited. For example, if the operation is identified as 3-5 consecutive ascending keys, 2 consecutive descending keys, 3-5 consecutive automatic descending keys, and the interval between adjacent types of keys is less than 1s, it is determined that the key combination data conforms to the preset key combination.

[0084] Step S33, when the key types in the key combination data are not arranged in the combination order, or the interval between the key types is greater than or equal to the key interval, it is determined that the key combination data does not conform to the preset key combination.

[0085] If the key combination data does not meet the requirements of either the combination order or the key interval, it can be determined that the key combination data does not meet the preset key combination. For example, if 3-5 consecutive ascending keys, 2 consecutive descending keys, 3-5 consecutive automatic down keys, and the interval between adjacent types of keys is less than 1s are set as the preset key combination, it is identified that the descending key is followed by 2 ascending keys, and it is determined that it does not meet the preset key combination.

[0086] By limiting the combination sequence and key interval conditions, the validity of key combination data is determined, which can prevent the influence of misoperation on key function adaptation.

[0087] Step S40: generating a target key value table based on the key combination data when the key combination data conforms to the preset key combination.

[0088] The target key value table refers to a table used to match key data and key functions after the key function adaptation is successful. After the key function adaptation is performed, the target key value table can be stored in a non-volatile memory to replace the initial key value table in response to key operations. The target key value table and the initial key value table can have the same structure, both including the correspondence between key data and key functions, and the key data in the target key value table is updated compared to the initial key value table. The target key value table is stored in a non-volatile memory to ensure that the setting information still exists after power failure and startup, and there is no need to adapt again to complete the key function adaptation.

[0089] In an implementable manner, for the key data of each key type in the key combination data, the key data in the initial key value table is replaced according to the correspondence between the key type and the key function to obtain the target key value table.

[0090] In one practicable manner, step S40 includes steps S41 to S43:

[0091] Step S41, determining whether there is key data reuse between the key types;

[0092] Key data reuse refers to data reuse caused by key reuse due to the change in the number of keys from more to less. The key data generated by operating the same key is the same, and the change of the key may cause different key functions to share the same key, so key data reuse may occur in this case. Key data reuse can be determined by comparing key data of different key types. In an implementable manner, the key data of each key type is compared, and when the deviation between key data of different key types is less than a preset deviation threshold, it is determined that key data reuse exists. The preset deviation threshold can be set according to actual conditions. For example, it is set to 5%. If the deviation between the key data of the descending key and the automatic descending key is less than 5%, it is determined that the descending key and the automatic descending key are reused.

[0093] Step S42, in the case of key data reuse, taking the key combination data and the preset key time condition as key response conditions, associating the key response conditions with key functions, and generating a target key value table;

[0094] The key response condition refers to the condition that the key data generated by the operation key should meet in order to respond to the key function. For the target key value table, in the case of reuse of key data, the reused keys have high similarity between the key data, and their corresponding key functions cannot be determined only by the difference between the key data, so further distinction is required. The preset key time condition refers to the time condition for distinguishing the reused key data. The preset key time condition can be set flexibly. For example, for the reuse of the descending key and the automatic descending key, the duration of the descending key is set within 250-500ms to be identified as the automatic descending function, and all other times are descending functions. The preset key time conditions and key combination data are grouped according to the key type, and are associated with the corresponding key functions to form a target key value table.

[0095] Step S43: in the absence of key data reuse, the key combination data is associated with the key function to generate a target key value table.

[0096] There is no reuse of key data, which means that the change of a key may only result in a change in resistance value, and there is no need to perform more-to-few function adaptation. The key combination data is grouped according to the key type, and associated with the key function to form a target key value table.

[0097] By distinguishing the preset key time conditions, this embodiment can adapt more to fewer functions in the time key change, thereby broadening the scope of application.

[0098] This embodiment provides a key function adaptation method, which first determines whether the operated key can respond directly by obtaining fixed key data; when the fixed key data does not match the initial key value table, it indicates that the key and the software do not match and cannot respond directly, and then collects key combination data; determines whether the key combination data conforms to the preset key combination, and the key combination data is used as the data basis for key function adaptation; when the key combination data conforms to the preset key combination, it indicates that the collected key combination data is valid, and a target key value table can be generated based on the key combination data, and the target key value table can replace the original initial key value table to respond to operations on different keys. In this way, the technical solution of the present application can adapt the replaced key to the original software without changing the software, thereby enhancing the compatibility of the software and reducing the additional cost of hardware changes for the vehicle.

[0099] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, the key function adaptation method further includes steps S01 to S03:

[0100] Step S01, displaying a button adaptation interface via the vehicle screen;

[0101] The button adaptation interface refers to a display interface used for button function adaptation. Figure 4 is a schematic diagram of a process of adapting key functions through an interface in this embodiment, Figure 4 The car entertainment system button setting UI interface in the is the button adaptation interface. This interface can be displayed on the vehicle's onboard screen, and the button function is adapted by operating the onboard screen. The onboard screen can be the central control screen, the co-pilot screen, the rear screen or the ceiling screen.

[0102] Step S02, receiving a key data collection instruction based on the key adaptation interface, and collecting adaptation key data of each key function according to the key data collection instruction;

[0103] The key data collection instruction is an instruction used to collect adapted key data. Adapted key data refers to key data collected when key function adaptation is performed through the key adaptation interface. Operators who perform key function adaptation can operate the key adaptation interface to generate key data collection instructions, send the key data collection instructions to the module that performs the collection operation, obtain the adapted key data, and perform the collection operation on each key function to obtain the required adapted key data.

[0104] like Figure 4 As shown, the button adaptation interface can adapt the functions of the button types of the up button, down button and one-button down button. The collected adaptation button data is the AD value. When the blank at the intersection of the button type and the AD value to be collected is clicked, the button data collection instruction of the function can be generated. The up button is operated to collect AD. After the DCM / BCM controller recognizes the AD value, it is filtered for 50ms and the AD value is uploaded to the interface through CAN (Controller Area Network). The blank space corresponding to the up button of the interface can display the AD value collected at this time. The data generated by the button adaptation interface can interact with the HMI (Human Machine Interface) between the car entertainment system. The car entertainment system and BCM / DCM communicate with each other through CAN. BCM / DCM can control the lifting and lowering of the window through motor drive control.

[0105] In an practicable manner, step S01 further includes steps S011 to S012:

[0106] Step S011, acquiring filtering time data and / or key recognition time data based on the key adaptation interface;

[0107] Filtering time data refers to the time data used for filtering during the process of collecting key data, which can be regarded as filtering time. Key recognition time data refers to the data used to identify the key function corresponding to the duration of key data, which can be regarded as the duration that key data should meet. In the case of key data reuse, the reused key functions can be distinguished by key recognition time data. Figure 4 As shown, the button adaptation interface may also include options for filtering time and button recognition time. In a manner similar to configuring the button AD value in the above steps, click on the blank space at the intersection to obtain filtering time data and / or button recognition time data.

[0108] Step S012: storing the filtering time data and / or the key recognition time data in association with the adaptation key data.

[0109] The adapted key data can be distinguished according to the key type. According to the position of the blank space in the key adaptation interface, the association between the filtering time data and the adapted key data, and between the key identification time data and the adapted key data can be known, and the above-mentioned associated data are stored in association. In the subsequent key function response process, the key data is identified according to the stored content and the function response is performed.

[0110] Step S03, storing the adaptation button data in an interface button value table.

[0111] The interface key value table refers to a table established based on the adapted key data. It can have the same form as the target key value table, including the correspondence between key data and key functions. In the case of key data reuse, the preset time condition is associated with the key data as the key response condition. After the key adaptation setting is completed, click Finish in the key adaptation interface. The vehicle screen can store the data and transmit the data to the DCM / BCM controller through the CAN signal for storage and memory, ensuring that the setting information still exists after power failure and restart, without the need to adapt again.

[0112] In this embodiment, the key function adaptation operation can be performed through the key adaptation interface, which can adapt to the diversity of key characteristic changes and improve the convenience of operation.

[0113] For example, in order to help understand the implementation process of the key function adaptation method obtained by combining this embodiment with the above embodiments, a third embodiment of the key function adaptation method of this application is proposed, please refer to Figure 5 , Figure 5A brief flow chart of a key function adaptation method is provided, specifically: after the BCM / DCM is powered on for the first time, initialization is performed, and the number of allowed key adaptations is set to 1; AD value acquisition data processing is run in a 10ms task, and AD value data is fixedly acquired and then filtered for 50ms, and the acquired data includes an up key, a down key, and an automatic down key; after filtering, a comparison is made to determine whether the current key AD value conforms to an existing initial key value table, and if so, a function key can be directly responded to, and if not, a key combination determination is performed to determine whether the key combination data conforms to a preset key combination; if the key combination determination passes, the acquired key AD value can be used to replace the AD value in the initial key value table, and stored in FLASH, and then a key function response is performed.

[0114] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the key function adaptation method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0115] This application also provides a key function adaptation device, please refer to Figure 6 , the key function adaptation device comprises:

[0116] An acquisition module 10, used to acquire fixed key data;

[0117] A collection module 20, used for collecting key combination data when the fixed key data does not match the initial key value table;

[0118] A judging module 30, used to judge whether the key combination data conforms to a preset key combination;

[0119] The generating module 40 is used to generate a target key value table based on the key combination data when the key combination data conforms to the preset key combination.

[0120] In an optional manner, the determination module 30 is further configured to:

[0121] Obtaining a combination sequence and a key interval in the preset key combination;

[0122] When the key types of the key combination data are arranged in the combination order and the interval between the key types is less than the key interval, it is determined that the key combination data conforms to the preset key combination;

[0123] When the key types of the key combination data are not arranged in the combination order, or the interval between the key types is greater than or equal to the key interval, it is determined that the key combination data does not conform to the preset key combination.

[0124] In an optional manner, the generating module 40 is further configured to:

[0125] Determine whether there is key data reuse between the key types;

[0126] In the case of key data reuse, the key combination data and the preset key time condition are used as key response conditions, the key response conditions are associated with key functions, and a target key value table is generated;

[0127] In the absence of button data reuse, the button combination data and button functions are associated to generate a target button value table.

[0128] In an optional manner, the acquisition module 10 is further used for:

[0129] Collect initial key data according to the preset scanning cycle;

[0130] The initial key data is subjected to periodic filtering to obtain fixed key data.

[0131] In an optional manner, the key function adaptation device further includes a display module, which is used to:

[0132] Display the button adaptation interface through the vehicle screen;

[0133] Receiving a key data collection instruction based on the key adaptation interface, and collecting adaptation key data of each key function according to the key data collection instruction;

[0134] The adapted key data is stored in an interface key value table.

[0135] In an optional manner, the display module is further used for:

[0136] Acquiring filtering time data and / or key recognition time data based on the key adaptation interface;

[0137] The filtering time data and / or the key recognition time data are associated with the adaptation key data and stored.

[0138] In an optional manner, the key function adaptation device further includes a detection module, which is used to:

[0139] Detect the power-on status of the vehicle;

[0140] When the vehicle changes from a power-off state to a power-on state, the number of allowed key adaptation times is set to a preset number.

[0141] The key function adaptation device provided by the present application adopts the key function adaptation method in the above embodiment, which can solve the technical problem that the software needs to be changed due to the change of the key, resulting in an increase in the overall cost of the vehicle. Compared with the prior art, the beneficial effects of the key function adaptation device provided by the present application are the same as the beneficial effects of the key function adaptation method provided by the above embodiment, and other technical features in the key function adaptation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0142] The present application provides a key function adaptation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the key function adaptation method in the above-mentioned embodiment.

[0143] Reference below Figure 7 , which shows a schematic diagram of the structure of a key function adaptation device suitable for implementing the embodiment of the present application. The key function adaptation device in the embodiment of the present application may include but is not limited to a mobile terminal such as a vehicle terminal (such as a vehicle navigation terminal) and a fixed terminal such as a vehicle controller. Figure 7 The key function adaptation device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0144] like Figure 7As shown, the key function adaptation device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the key function adaptation device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the key function adaptation device to communicate with other devices wirelessly or by wire to exchange data. Although the key function adaptation device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0145] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0146] The key function adaptation device provided by the present application adopts the key function adaptation method in the above embodiment, which can solve the technical problem that the software needs to be changed due to the change of the key, resulting in an increase in the overall cost of the vehicle. Compared with the prior art, the beneficial effects of the key function adaptation device provided by the present application are the same as the beneficial effects of the key function adaptation method provided by the above embodiment, and the other technical features in the key function adaptation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0147] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0149] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the key function adaptation method in the above-mentioned embodiment.

[0150] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0151] The computer-readable storage medium may be included in the key function adaptation device; or may exist independently without being assembled into the key function adaptation device.

[0152] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the key function adaptation device, the key function adaptation device: obtains fixed key data; when the fixed key data does not match the initial key value table, collects key combination data; determines whether the key combination data conforms to the preset key combination; when the key combination data conforms to the preset key combination, generates a target key value table based on the key combination data.

[0153] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0154] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0155] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0156] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned key function adaptation method, and can solve the technical problem that the software needs to be changed due to the change of the key, resulting in an increase in the overall cost of the vehicle. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the key function adaptation method provided by the above-mentioned embodiment, and will not be repeated here.

[0157] The present application also provides a computer program product, including a computer program, which implements the steps of the key function adaptation method as described above when executed by a processor.

[0158] The computer program product provided by the present application can solve the technical problem that the software change required due to the change of the button leads to the increase of the overall cost of the vehicle. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the button function adaptation method provided by the above embodiment, which will not be repeated here.

[0159] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A key function adaptation method, It is characterized in that The method includes: Get fixed key data; In the case where the fixed key data does not match the initial key value table, collecting key combination data; Determining whether the key combination data conforms to a preset key combination; In the case that the key combination data conforms to the preset key combination, a target key value table is generated based on the key combination data.

2. The method according to claim 1, It is characterized in that The step of determining whether the key combination data conforms to the preset key combination comprises: Obtaining a combination sequence and a key interval in the preset key combination; When the key types of the key combination data are arranged in the combination order and the interval between the key types is less than the key interval, it is determined that the key combination data conforms to the preset key combination; When the key types of the key combination data are not arranged in the combination order, or the interval between the key types is greater than or equal to the key interval, it is determined that the key combination data does not conform to the preset key combination.

3. The method according to claim 2, It is characterized in that The step of generating a target key value table based on the key combination data comprises: Determine whether there is key data reuse between the key types; In the case of key data reuse, the key combination data and the preset key time condition are used as key response conditions, the key response conditions are associated with key functions, and a target key value table is generated; In the absence of button data reuse, the button combination data and button functions are associated to generate a target button value table.

4. The method according to claim 1, It is characterized in that The step of obtaining fixed key data comprises: Collect initial key data according to the preset scanning cycle; The initial key data is subjected to periodic filtering to obtain fixed key data.

5. The method according to claim 1, It is characterized in that The method further comprises: Display the button adaptation interface through the vehicle screen; Receiving a key data collection instruction based on the key adaptation interface, and collecting adaptation key data of each key function according to the key data collection instruction; The adapted key data is stored in an interface key value table.

6. The method according to claim 5, It is characterized in that After the step of displaying the button adaptation interface on the vehicle screen, the following step is further included: Acquiring filtering time data and / or key recognition time data based on the key adaptation interface; The filtering time data and / or the key recognition time data are associated with the adaptation key data and stored.

7. The method according to any one of claims 1 to 6, It is characterized in that The step of obtaining fixed key data also includes: Detect the power-on status of the vehicle; When the vehicle changes from a power-off state to a power-on state, the number of allowed key adaptation times is set to a preset number.

8. A key function adaptation device, It is characterized in that The key function adaptation device comprises: An acquisition module is used to acquire fixed key data; A collection module, used for collecting key combination data when the fixed key data does not match the initial key value table; A judging module, used for judging whether the key combination data conforms to a preset key combination; A generating module is used to generate a target key value table based on the key combination data when the key combination data conforms to the preset key combination.

9. A key function adaptation device, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the key function adaptation method according to any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the key function adaptation method according to any one of claims 1 to 7 are implemented.