Vehicle key search method, device, computer readable storage medium and vehicle
By sequentially storing and processing the key search trigger sources in the PEPS system, the problem of low efficiency and high energy consumption of the PEPS system in the case of multiple search trigger sources is solved, ensuring the stability and security of the key search function.
Patent Information
- Application Number
- CN202110568012.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-05-24
AI Technical Summary
When the PEPS system receives multiple search trigger sources, the processing efficiency is low and the energy consumption is high. When the functional module fails, the search trigger source may be lost, affecting the normal implementation of the key search function and posing security risks.
By obtaining the key search trigger source and its priority, perform sequential storage and processing, and use the array structure to process the trigger sources in sequence to ensure that the key search is performed in priority order without the need to continuously send the search trigger source, and rely on the stored trigger source when the module fails. Trigger source to search for.
The processing efficiency of the key search trigger source is improved, the energy consumption is reduced, and the normal realization of the key search function and vehicle safety are ensured.
Smart Images

Figure CN115384447B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a vehicle key search method, device, computer-readable storage medium and vehicle. Background Art
[0002] In order to facilitate the use of the vehicle, most vehicles are currently equipped with a PEPS (Passive Entry Passive Start) system. The PEPS system can locate the key so that the door can be unlocked when the key approaches the door, and the vehicle can be started with one click when the key is inside the vehicle, etc.
[0003] The PEPS system can also receive search trigger sources sent by other modules in the vehicle. The other modules may be a power control module, an engine control module, an air conditioning control module, a welcome mode control module, etc., and trigger a key search to locate the key according to the search trigger source. The search trigger sources of different modules may have different priorities based on different functions. At present, when the PEPS system receives multiple search trigger sources, it can select the highest priority for processing, and then re-receive other search trigger sources after the processing is completed. This requires other modules to continuously send search trigger sources, which consumes a lot of power. After each processing, it needs to be re-acquired, and the priority determination efficiency is low. In addition, when a functional module fails, the search trigger source will be completely lost, thereby affecting the normal function of the PEPS system, affecting the normal implementation of the key search function, and possibly causing safety hazards. Summary of the invention
[0004] In view of this, the present invention aims to propose a vehicle key search method, device, computer-readable storage medium and vehicle, so as to improve efficiency, reduce energy consumption and ensure safety when implementing the key search function.
[0005] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0006] A vehicle key search method, the method may include:
[0007] Acquire a key search trigger source corresponding to at least one function in the vehicle and a priority corresponding to the key search trigger source, wherein the key search trigger source is used to instruct to execute a key search corresponding to the function;
[0008] sequentially storing the key search trigger sources according to the priority;
[0009] The key search trigger sources are processed sequentially according to the order in which the key search sources are stored to perform a key search.
[0010] Furthermore, the vehicle includes N types of key search trigger sources corresponding to N types of functions, and the key search trigger sources are sequentially stored according to the priorities, including:
[0011] Constructing a first array, wherein the first array includes N first values;
[0012] According to the priority of the key search trigger source, storing the key search trigger source in a corresponding position in the first array;
[0013] The position of the key search trigger source stored in the first array is assigned a second value to obtain a second array.
[0014] Further, the processing of the key search trigger sources in sequence according to the order in which the key search sources are stored includes:
[0015] Processing a first target key search trigger source in the second array, the first target key search trigger source being the key search trigger source corresponding to the first digit of the second value in the second array;
[0016] When the processing of the first target key trigger source is completed, constructing a third array, wherein the third array includes N-bit first values;
[0017] Assigning a value to the third array according to each bit in the second array to obtain a fourth array, and assigning a position of the first target key search trigger source in the fourth array to a first value;
[0018] The second target key search trigger source is processed in the fourth array, and the above steps are repeated until the acquired key search trigger source is processed, wherein the second target key search trigger source is the key search trigger source corresponding to the first digit in the second value of the fourth array.
[0019] Furthermore, after assigning the position of the key search trigger source stored in the first array to a second value and obtaining the second array, the method further includes:
[0020] Constructing a first flag bit according to the position of the first target key search trigger source in the second array;
[0021] After assigning a value to the third array according to each bit in the second array to obtain a fourth array, and assigning the position of the first target key search trigger source in the fourth array to a first value, the method further includes:
[0022] The first flag bit is updated according to the position of the second target key search trigger source in the fourth array to obtain the second flag bit.
[0023] Further, after processing the key search trigger sources in sequence according to the order in which the key search sources are stored, the method further includes:
[0024] A key search trigger source corresponding to at least one function in the vehicle is retrieved, and subsequent steps are performed to process the retrieved key search trigger source to perform a key search.
[0025] Compared with the prior art, the vehicle key search method of the present invention has the following advantages:
[0026] In an embodiment of the present invention, when a key search trigger source corresponding to at least one function and a priority corresponding to the key search trigger source are obtained, the key search trigger source can be sequentially stored according to the priority of the key search trigger source, and then the key search trigger source can be processed in sequence according to the order in which the key search trigger source is stored to perform a key search. At this time, after receiving the key search trigger source this time, the key search trigger source can be stored and processed in order of priority without continuous sending and multiple receptions, thereby improving the processing efficiency of the key search trigger source and reducing energy consumption. When other modules fail, a key search can also be performed based on the stored key search trigger source, thereby ensuring the normal implementation of the vehicle key search function and ensuring the safety of the vehicle.
[0027] Another object of the present invention is to provide a vehicle key search device to improve efficiency, reduce energy consumption and ensure safety when implementing a key search function.
[0028] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0029] A vehicle key search device, the device may include:
[0030] A trigger source acquisition module, used to acquire a key search trigger source corresponding to at least one function in the vehicle and a priority corresponding to the key search trigger source, wherein the key search trigger source is used to instruct to execute a key search corresponding to the function;
[0031] A trigger source storage module, used for sequentially storing the key search trigger sources according to the priority;
[0032] The trigger source processing module is used to process the key search trigger sources in sequence according to the order in which the key search sources are stored, so as to perform a key search.
[0033] Furthermore, the trigger source storage module includes:
[0034] A first array construction submodule, used to construct a first array, wherein the first array includes N first numerical values;
[0035] A first array storage submodule, configured to store the key search trigger source to a corresponding position in the first array according to the priority of the key search trigger source;
[0036] The first array assignment submodule is used to assign the position of the key search trigger source stored in the first array to a second value to obtain a second array.
[0037] Furthermore, the trigger source processing module includes:
[0038] a trigger source processing submodule, used for processing a first target key search trigger source in the second array, the first target key search trigger source being the key search trigger source corresponding to the first digit in the second value of the second array;
[0039] A second array construction submodule, configured to construct a third array after the processing of the first target key trigger source is completed, wherein the third array includes the N-bit first value;
[0040] A second array assignment submodule, configured to assign a value to the third array according to each bit in the second array to obtain a fourth array, and assign a position of the first target key search trigger source in the fourth array to a first value;
[0041] The trigger source processing submodule is also used to process the second target key search trigger source in the fourth array, and repeat the above steps until the acquired key search trigger source is processed, and the second target key search trigger source is the key search trigger source corresponding to the first bit in the second value of the fourth array.
[0042] Furthermore, the device also includes:
[0043] A flag bit construction module, used to construct a first flag bit according to the position of the first target key search trigger source in the second array;
[0044] The flag bit updating module is used to update the first flag bit according to the position of the second target key search trigger source in the fourth array to obtain the second flag bit.
[0045] Furthermore, the trigger source acquisition module is also used to re-acquire a key search trigger source corresponding to at least one function in the vehicle, and execute subsequent steps to process the re-acquired key search trigger source to perform a key search.
[0046] Compared with the prior art, the vehicle key search device of the present invention and the above-mentioned vehicle key search method have the same advantages over the prior art, which will not be repeated here.
[0047] Another object of the present invention is to provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the vehicle key search method described above is implemented.
[0048] Compared with the prior art, the computer-readable storage medium of the present invention and the above-mentioned vehicle key search method have the same advantages over the prior art, which will not be repeated here.
[0049] Another object of the present invention is to provide a vehicle, which includes a controller, wherein the controller includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the above-mentioned vehicle key search method is implemented.
[0050] Compared with the prior art, the advantages of the vehicle of the present invention and the above-mentioned vehicle key search method over the prior art are the same, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0052] Figure 1 is a flow chart of the steps of a vehicle key search method provided by an embodiment of the present invention;
[0053] Figure 2 is a flowchart of another vehicle key search method provided by an embodiment of the present invention;
[0054] Figure 3 is a schematic diagram of a second array assignment process provided by an embodiment of the present invention;
[0055] Figure 4 This is a schematic diagram of a first flag bit construction process provided by an embodiment of the present invention;
[0056] Figure 5 It is a schematic diagram of a processing process of searching for a trigger source of a first target key provided by an embodiment of the present invention;
[0057] Figure 6 is another schematic diagram of a processing process of searching for a trigger source of a first target key provided by an embodiment of the present invention;
[0058] Figure 7 is a schematic diagram of a third array assignment process provided by an embodiment of the present invention;
[0059] Figure 8 is a schematic diagram of a second flag bit updating process provided by an embodiment of the present invention;
[0060] Fig. 9 is a schematic diagram of a processing process of a second target key search trigger source provided by an embodiment of the present invention;
[0061] Fig.10 The present invention is a structural block diagram of a vehicle key search device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0063] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0064] Figure 1 is a flowchart of a vehicle key search method provided by an embodiment of the present invention. Figure 1 As shown, the method may include:
[0065] Step 101: Acquire a key search trigger source corresponding to at least one function in a vehicle and a priority level corresponding to the key search trigger source, wherein the key search trigger source is used to instruct execution of a key search corresponding to the function.
[0066] In an embodiment of the present invention, a vehicle refers to a vehicle that can implement a key search function and implement a corresponding function according to a key position, such as a vehicle equipped with a PEPS system, wherein a key search trigger source is used to indicate a key search corresponding to an execution function, and the key search source is sent by different functional modules in the vehicle according to demand. The key searches corresponding to different functions may be different, such as a vehicle unlocking function searches whether the key position is near a door, a vehicle one-button start function searches whether the key position is inside the vehicle, and so on. The vehicle can receive more than one key search trigger source, and trigger a key search corresponding to the function according to the key search trigger source.
[0067] In the embodiment of the present invention, since different functions have different priorities, the priorities of the key search trigger sources corresponding to different functions are also different. For example, the priority of the power control function is prior to the priority of the welcome function, the priority of the door unlocking function is prior to the priority of the one-button start function, and so on. The priorities of different functions can be determined according to the control logic in the vehicle or according to the user settings, and there is no specific limitation on this in the embodiment of the present invention.
[0068] Step 102: sequentially store the key search trigger sources according to the priorities.
[0069] In an embodiment of the present invention, after receiving a key search trigger source corresponding to at least one function in a vehicle and a priority corresponding to the key search trigger source, the key search trigger source can be stored sequentially according to the priority. Optionally, the order can be to sort different key search trigger sources according to the priority and store the key trigger source according to the sort. The storage location of the key search trigger source can also be preset in the order of priority, and after receiving the key search trigger source corresponding to at least one function, the key search trigger source can be stored in the storage location corresponding to the priority, etc. The embodiment of the present invention does not impose specific restrictions on this.
[0070] Step 103: Process the key search trigger sources in sequence according to the order in which the key search sources are stored to perform a key search.
[0071] In an embodiment of the present invention, after the key search trigger sources are stored in order according to priority, the key search trigger sources can be processed sequentially according to the order in which they are stored, that is, the key search of corresponding functions can be triggered sequentially according to the storage order of the key search trigger sources. When the key search is successful and the key position is known, it can be recorded as completing the key search. When the key search fails, it can be triggered sequentially until all the received key search sources are triggered to perform the key search.
[0072] In an embodiment of the present invention, when a key search trigger source corresponding to at least one function and a priority corresponding to the key search trigger source are obtained, the key search trigger source can be sequentially stored according to the priority of the key search trigger source, and then the key search trigger source can be processed in sequence according to the order in which the key search trigger source is stored to perform a key search. At this time, after receiving the key search trigger source this time, the key search trigger source can be stored and processed in order of priority without continuous sending and multiple receptions, thereby improving the processing efficiency of the key search trigger source and reducing energy consumption. When other modules fail, a key search can also be performed based on the stored key search trigger source, thereby ensuring the normal implementation of the vehicle key search function and ensuring the safety of the vehicle.
[0073] Figure 2 is a flowchart of another key search method provided by an embodiment of the present invention. Figure 2 As shown, the method may include:
[0074] Step 201: Acquire a key search trigger source corresponding to at least one function in a vehicle and a priority level corresponding to the key search trigger source, wherein the key search trigger source is used to instruct execution of a key search corresponding to the function.
[0075] In the embodiment of the present invention, step 201 may correspond to the relevant description of the aforementioned step 101, and will not be described again here to avoid repetition.
[0076] Optionally, the vehicle includes N types of key search trigger sources corresponding to N types of functions.
[0077] In the embodiment of the present invention, the types of functions may vary depending on the vehicle model, configuration, etc., and the types of corresponding key search trigger sources (Trigger) may also be different. For example, when the vehicle includes N functions, it may include N key search trigger sources, where the function refers to the function that needs to be implemented through key search in the vehicle.
[0078] For example, if there are 11 key search functions required in the vehicle, there are 11 key search trigger sources corresponding to Trigger1, Trigger2, Trigger3...Trigger1, Trigger11, and their priority gradually decreases from Trigger1 to Trigger11. At this time, the vehicle's search trigger sources Trigger1, Trigger2, Trigger6 and Trigger11 are obtained.
[0079] Step 202: construct a first array, wherein the first array includes N first numerical values.
[0080] In an embodiment of the present invention, the storage position corresponding to the priority can be preset by constructing a first array, wherein the first array includes N first numerical values. Optionally, the first numerical value is an initial numerical value, indicating that the position of the numerical value in the first array does not store the search trigger source. The first numerical value can be any numerical value such as 0, 1, 2, 3, etc.
[0081] For example, taking N as 11 and the first value as 0, after obtaining Trigger1, Trigger2, Trigger6 and Trigger11, the first array BUFFER1[00000000000] is constructed.
[0082] Step 203: According to the priority of the key search trigger source, store the key search trigger source in a corresponding position in the first array.
[0083] In the embodiment of the present invention, since the first array includes N first numerical values, the first array includes the storage locations of the N key search trigger sources of the vehicle. At this time, the rank of the key search trigger source can be determined according to the priority of the key search trigger source. For example, when the numerical value of the priority is larger, the priority is lower. If the priority is 1, the rank is 1, if the priority is 3, the rank is 3, if the priority is 11, the rank is 11, and so on. Therefore, the key search trigger source can be stored in the corresponding rank in the first array. There is no need to compare the priority order between different key search sources, and the key search trigger source can be stored in priority order, thereby improving the efficiency of processing the key search trigger source.
[0084] Step 204: assign the position of the key search trigger source stored in the first array to a second value to obtain a second array.
[0085] In an embodiment of the present invention, when a key search trigger source is stored in a first array, the position where the key search trigger source is stored can be assigned a second value to obtain a second array. The second value indicates that the key search trigger source is stored in this position. The second value can be any value different from the first value, so that the storage status of the key search trigger source can be determined through the second array.
[0086] For example, taking the second value as 1, Figure 3 is a schematic diagram of a second array assignment process provided by an embodiment of the present invention, such as Figure 3 As shown, when obtaining Trigger1, Trigger2, Trigger6 and Trigger11, the position of the corresponding priority in the first array is assigned to 1, and the second array BUFFER2[11000100001] is obtained.
[0087] Step 205: construct a first flag bit according to the position of the first target key search trigger source in the second array.
[0088] In an embodiment of the present invention, a flag bit (KeySearchTrigger, KST) is used to indicate the key search trigger source currently being processed. Before the key search trigger source, a first flag bit can be constructed based on a first target key search trigger source. Optionally, the flag bit can be defined according to the priority of the search trigger source, or according to the type of the search trigger source, etc. There is no specific limitation on this in the embodiment of the present invention.
[0089] like, Figure 4 is a schematic diagram of a first flag bit construction process provided by an embodiment of the present invention, such as Figure 4 As shown, when the first target key search trigger source is Trigger1, which is the first position in the second array, the first flag KST1=1 is constructed, and the first target key search trigger source currently being processed is Trigger1, and the second array stores Trigger1, Trigger2, Trigger6 and Trigger11.
[0090] Step 206: Process a first target key search trigger source in the second array, where the first target key search trigger source is the key search trigger source corresponding to the first digit in the second value of the second array.
[0091] In an embodiment of the present invention, according to the sorting rule, assignment rule, etc. of the second array, the key search trigger source corresponding to the first bit in the second value of the second array can be used as the first target key search trigger source, that is, the first target key search trigger source is the key search trigger source with the highest priority among the unprocessed key search trigger sources this time, and the first target key search trigger source is processed. Optionally, it can be a key search corresponding to the function triggered by the first target key search trigger source, or the stored first target key search trigger source can be sent to a corresponding key search module. The embodiment of the present invention does not impose any specific restrictions on this.
[0092] like, Figure 5 is a schematic diagram of a processing process of searching for a trigger source of a first target key provided by an embodiment of the present invention, such as Figure 5 As shown, in the second array BUFFER2 [11000100001], the first bit of the second value "1" is the first bit of the second array, the second bit of the first value is the second bit of the second array, and the third bit of the first number is the sixth bit of the second array, then Trigger1 corresponding to the first bit of the second array is determined to be the first target key search source. At this time, Trigger1 is executed according to KST1, thereby executing the key search process of proc1 (process1, process 1), and the effective key search trigger source in this process is Trigger1.
[0093] Figure 6 FIG. 1 is another schematic diagram of a processing process of searching for a trigger source of a first target key provided by an embodiment of the present invention. Figure 6 As shown, when only the first target key search trigger source is stored in the second array, the flag bit is defined as KST corresponding to the first target key search trigger source Trigger1, then Trigger1 is executed according to the flag bit KST, thereby executing the key search process of proc1, and the effective key search trigger source in the process is Trigger1.
[0094] Step 207: When the processing of the first target key trigger source is completed, construct a third array, wherein the third array includes N-bit first values.
[0095] In an embodiment of the present invention, when processing the first target key search trigger source, there may be situations where the key position can be determined, or the key position cannot be determined. When the key position can be determined, the key search can be ended and the key search is determined to be completed. When the key position cannot be determined, a third array can be further constructed. The construction of the third array can correspond to the construction of the first array in the aforementioned step 202, and the embodiment of the present invention does not impose specific restrictions on this.
[0096] For example, construct the third array BUFFER3 [00000000000].
[0097] Step 208: Assign a value to the third array according to each bit in the second array to obtain a fourth array, and assign a first value to the position of the first target key search trigger source in the fourth array.
[0098] In an embodiment of the present invention, the third array can be assigned a value according to each bit in the second array, so that the key search trigger source stored in the second array is stored in the third array to obtain a fourth array. At this time, since the first target key search trigger source has been processed, the position of the first target key search trigger source in the fourth array can be further assigned to the first numerical value, so that the processed first target key search trigger source is discarded to reduce storage pressure.
[0099] like, Figure 7 is a schematic diagram of a third array assignment process provided by an embodiment of the present invention, such as Figure 7 As shown, after executing proc1=1 according to KST1=1, the value of each bit in BUFFER2 is assigned to the completely empty third array BUFFER3, and the storage position BUFFER3[0] of Trigger1 in BUFFER3 is assigned to 0, obtaining BUFFER4[01000100001].
[0100] In the embodiment of the present invention, refer to Figure 6 Related explanation, when only the first target key search trigger source is stored in the second array, the flag bit is defined as KST corresponding to the first target key search trigger source Trigger1, then Trigger1 is executed according to the flag bit KST, and after executing the key search process of proc1, the value of each bit in BUFFER2 is assigned to the completely empty third array BUFFER3, and the storage position BUFFER3[0] of Trigger1 in BUFFER3 is assigned to 0, and BUFFER4[01000100001] is obtained.
[0101] Step 209: Update the first flag bit according to the position of the second target key search trigger source in the fourth array to obtain a second flag bit.
[0102] In an embodiment of the present invention, after the first target key search trigger source is processed, the first flag bit can be updated to obtain the second flag bit according to the subsequently processed second target key search trigger source, so that the second target key search trigger source is processed according to the second flag bit.
[0103] like, Figure 8is a schematic diagram of a second flag bit updating process provided by an embodiment of the present invention, such as Figure 7 As shown, among the key search trigger sources stored in BUFFER4 [01000100001], Trigger2 is used as the second target key search trigger source, and the first flag KST1=1 is updated to KST2=2, and so on.
[0104] Step 210, process the second target key search trigger source in the fourth array, and repeat the above steps until the acquired key search trigger source is processed, the second target key search trigger source being the key search trigger source corresponding to the first digit in the second value of the fourth array.
[0105] In an embodiment of the present invention, the key search trigger source corresponding to the first bit in the second value of the fourth array can be determined as the second target search trigger source, that is, the search trigger source stored in the fourth array and with the highest priority can be determined as the second target search trigger source. At this time, the second target key search trigger source can be processed, referring to the relevant description of the aforementioned step 206. To avoid repetition, it will not be repeated here.
[0106] In the embodiment of the present invention, when multiple key search trigger sources are obtained, the aforementioned steps 207 to 209 can be repeated, and the multiple key search trigger sources are stored and processed in order of priority until the obtained key search trigger sources are processed.
[0107] like, Fig. 9 is a schematic diagram of a processing process of a second target key search trigger source provided by an embodiment of the present invention, such as Fig. 9 As shown, in the fourth array, Trigger2 is executed according to KST2, thereby executing the key search process of proc2=1, in which the effective key search trigger source is Trigger2.
[0108] After proc2=1 is completed, if Figure 7 As shown, a fifth array BUFFER5=[00000000000] can be constructed, and the value of BUFFER4 is assigned to BUFFER5, and BUFFER5[1] is further assigned to 0, and so on to process the acquired key search trigger sources in sequence.
[0109] Optionally, after step 210, the method further includes:
[0110] Step S11: reacquire a key search trigger source corresponding to at least one function in the vehicle, and execute subsequent steps to process the reacquired key search trigger source to perform a key search.
[0111] In an embodiment of the present invention, when the stored key search trigger source is processed, the key search trigger source corresponding to at least one function in the vehicle can be reacquired, and the subsequent steps can be repeated to process the reacquired key search trigger source to perform a key search. The key search trigger sources acquired twice can be the same or different. Optionally, when the key position has been determined in steps 201 to 210, the key search trigger source in the vehicle can be reacquired after a period of time. When the key position has not been determined in steps 201 to 210, the key search trigger source in the vehicle can be directly reacquired. The embodiment of the present invention does not impose specific restrictions on this.
[0112] In an embodiment of the present invention, when a key search trigger source corresponding to at least one function and a priority corresponding to the key search trigger source are obtained, the key search trigger source can be sequentially stored according to the priority of the key search trigger source, and then the key search trigger source can be processed in sequence according to the order in which the key search trigger source is stored to perform a key search. At this time, after receiving the key search trigger source this time, the key search trigger source can be stored and processed in order of priority without continuous sending and multiple receptions, thereby improving the processing efficiency of the key search trigger source and reducing energy consumption. When other modules fail, a key search can also be performed based on the stored key search trigger source, thereby ensuring the normal implementation of the vehicle key search function and ensuring the safety of the vehicle.
[0113] Fig.10 is a structural block diagram of a vehicle key search device 30 provided by an embodiment of the present invention, such as Fig.10 As shown, the device may include:
[0114] A trigger source acquisition module 301 is used to acquire a key search trigger source corresponding to at least one function in the vehicle and a priority corresponding to the key search trigger source, wherein the key search trigger source is used to instruct to execute a key search corresponding to the function;
[0115] A trigger source storage module 302, used for sequentially storing the key search trigger sources according to the priority;
[0116] The trigger source processing module 303 is used to process the key search trigger sources in sequence according to the order in which the key search sources are stored, so as to perform a key search.
[0117] Optionally, the trigger source storage module 302 includes:
[0118] A first array construction submodule, used to construct a first array, wherein the first array includes N first numerical values;
[0119] A first array storage submodule, configured to store the key search trigger source to a corresponding position in the first array according to the priority of the key search trigger source;
[0120] The first array assignment submodule is used to assign the position of the key search trigger source stored in the first array to a second value to obtain a second array.
[0121] Optionally, the trigger source processing module 303 includes:
[0122] a trigger source processing submodule, used for processing a first target key search trigger source in the second array, the first target key search trigger source being the key search trigger source corresponding to the first digit in the second value of the second array;
[0123] A second array construction submodule, configured to construct a third array after the processing of the first target key trigger source is completed, wherein the third array includes the N-bit first value;
[0124] A second array assignment submodule, configured to assign a value to the third array according to each bit in the second array to obtain a fourth array, and assign a position of the first target key search trigger source in the fourth array to a first value;
[0125] The trigger source processing submodule is also used to process the second target key search trigger source in the fourth array, and repeat the above steps until the acquired key search trigger source is processed, and the second target key search trigger source is the key search trigger source corresponding to the first bit in the second value of the fourth array.
[0126] Optionally, the device further comprises:
[0127] A flag bit construction module, used to construct a first flag bit according to the position of the first target key search trigger source in the second array;
[0128] The flag bit updating module is used to update the first flag bit according to the position of the second target key search trigger source in the fourth array to obtain the second flag bit.
[0129] Optionally, the trigger source acquisition module 301 is further used to re-acquire a key search trigger source corresponding to at least one function in the vehicle, and execute subsequent steps to process the re-acquired key search trigger source to perform a key search.
[0130] In an embodiment of the present invention, when a key search trigger source corresponding to at least one function and a priority corresponding to the key search trigger source are obtained, the key search trigger source can be sequentially stored according to the priority of the key search trigger source, and then the key search trigger source can be processed in sequence according to the order in which the key search trigger source is stored to perform a key search. At this time, after receiving the key search trigger source this time, the key search trigger source can be stored and processed in order of priority without continuous sending and multiple receptions, thereby improving the processing efficiency of the key search trigger source and reducing energy consumption. When other modules fail, a key search can also be performed based on the stored key search trigger source, thereby ensuring the normal implementation of the vehicle key search function and ensuring the safety of the vehicle.
[0131] The embodiment of the present invention further provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, Figures 1 to 9 The vehicle key searching method.
[0132] The embodiment of the present invention further provides a vehicle, the vehicle comprising a controller, the controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to achieve Figures 1 to 9 The vehicle key searching method.
[0133] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A vehicle key search method, characterized in that: The method comprises: Obtaining a key search trigger source corresponding to at least one function in the vehicle and a priority corresponding to the key search trigger source, wherein the key search trigger source is used to instruct to perform a key search corresponding to the function, wherein the key search trigger source is sent by different functional modules in the vehicle according to requirements; sequentially storing the key search trigger sources according to the priority; The key search trigger sources are processed sequentially according to the order in which they are stored, and a key search is performed to determine the key location.
2. The method according to claim 1, characterized in that The vehicle includes N types of key search trigger sources corresponding to N types of functions, and sequentially storing the key search trigger sources according to the priorities includes: Constructing a first array, wherein the first array includes N first values; According to the priority of the key search trigger source, storing the key search trigger source in a corresponding position in the first array; The position of the key search trigger source stored in the first array is assigned a second value to obtain a second array.
3. The method according to claim 2, characterized in that The step of sequentially processing the key search trigger sources according to the order in which the key search trigger sources are stored includes: A first target key search trigger source is processed in the second array, where the first target key search trigger source is the key search trigger source corresponding to the first digit in the second value of the second array.
4. The method according to claim 3, characterized in that After assigning the position of the key search trigger source stored in the first array to a second value and obtaining the second array, the method further includes: A first flag is constructed according to the position of the first target key search trigger source in the second array.
5. The method according to claim 1, characterized in that After the key search trigger sources are processed in sequence according to the order in which the key search trigger sources are stored, the method further includes: A key search trigger source corresponding to at least one function in the vehicle is retrieved, and subsequent steps are performed to process the retrieved key search trigger source to perform a key search.
6. A vehicle key search device, characterized in that: The device comprises: A trigger source acquisition module, used to acquire a key search trigger source corresponding to at least one function in the vehicle and a priority corresponding to the key search trigger source, wherein the key search trigger source is used to instruct to execute a key search corresponding to the function, wherein the key search trigger source is sent by different functional modules in the vehicle according to requirements; A trigger source storage module, used for sequentially storing the key search trigger sources according to the priority; The trigger source processing module is used to process the key search trigger sources in sequence according to the order in which the key search trigger sources are stored, and perform a key search to determine the key position.
7. The device according to claim 6, characterized in that The trigger source storage module comprises: A first array construction submodule, used to construct a first array, wherein the first array includes N first numerical values; A first array storage submodule, configured to store the key search trigger source to a corresponding position in the first array according to the priority of the key search trigger source; The first array assignment submodule is used to assign the position of the key search trigger source stored in the first array to a second value to obtain a second array.
8. The device according to claim 7, characterized in that The trigger source processing module comprises: The trigger source processing submodule is used to process the first target key search trigger source in the second array, where the first target key search trigger source is the key search trigger source corresponding to the first digit in the second value of the second array.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle key search method according to any one of claims 1 to 5 is implemented.
10. A vehicle, comprising a controller, the controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the vehicle key search method according to any one of claims 1 to 5 is implemented.
