A vehicle-side smart key authentication method based on multiple antennas

The intelligent key authentication method using multiple antennas is divided into preliminary and re-authentication processes, which solves the problems of slow key authentication and long data length, realizes fast and stable key authentication, and improves the vehicle's intelligent performance.

CN117676573BActive Publication Date: 2025-09-30DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311599372.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2025-09-30
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

In the existing technology, the smart key authentication speed is slow and easily affected by field strength interference. In addition, the long data information length during key authentication can easily lead to high- and low-frequency chip failures, and the single authentication time is long.

Method used

The smart key authentication method using multiple antennas is divided into preliminary key authentication and secondary key authentication processes. Preliminary authentication is performed through key number screening, and secondary authentication is performed through ESK code confirmation, which reduces the data transmission length and improves the authentication rate.

Benefits of technology

By breaking down the authentication process, the amount of data sent is reduced, the authentication speed is increased, the probability of chip failure is reduced, and the vehicle function response speed and intelligent performance are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117676573B_ABST
    Figure CN117676573B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle-side smart key authentication strategy based on multiple antennas, in which the key authentication process is divided into a preliminary key authentication process and a secondary key authentication process. The preliminary key authentication process is used to verify the key ID and key number, and the secondary key authentication process is used to verify the key ESK code. The secondary key authentication process is executed only when the key passes the preliminary key authentication process, which reduces the amount of information sent in the key authentication process and improves the key authentication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart keys, and in particular to a vehicle-side smart key authentication method based on multiple antennas. Background Art

[0002] With the continuous advancement of science and technology, car owners' demands for cars are constantly increasing, and the number of intelligent functions in vehicles is also increasing. Currently, most vehicles use smart keys with key authentication antennas installed inside the vehicle and on the outside of the doors. The key authentication antennas transmit low-frequency data, which the key terminal receives and responds with high-frequency data. This authenticates the smart key and infers its location (whether inside or outside the vehicle). This allows for certain vehicle functions. For example, if the key is inside, the vehicle can be started / powered on; otherwise, it cannot be started / powered on; if the key is outside, the vehicle can be unlocked; otherwise, it cannot be unlocked. However, existing technologies provide extensive overviews of key authentication, but few specific implementation strategies. Key authentication speed is also not considered. Key authentication is generally susceptible to interference from field strength, so a single antenna may be used for multiple authentication attempts. If authentication fails or the key does not respond after multiple attempts, it indicates authentication failure. Key authentication can only be activated for two antennas. If three antennas are deployed inside the vehicle, the key authentication antennas are activated in a specific order to determine whether the key is inside the vehicle. In addition, considering the data information length of ESK / ID and other information, the longer the information length, the more likely the driver / high and low frequency receiving chip will malfunction. Based on this, this patent describes the key authentication speed and the preliminary key authentication algorithm and the secondary key authentication algorithm. By configuring the vehicle antenna data, a sequential strategy for using the key authentication antenna is formulated. At the same time, a key authentication process strategy is formulated to formulate the overall key authentication and realize the key authentication function between the smart key and the central processing controller. Summary of the Invention

[0003] The purpose of the present invention is to provide a vehicle-side smart key authentication method based on multiple antennas to improve the speed and stability of key authentication.

[0004] To solve the above technical problems, the present invention provides a technical solution: a vehicle-side smart key authentication method based on multiple antennas, comprising:

[0005] When there is a key authentication request, a preliminary key authentication process is executed; the preliminary key authentication process includes preliminary key authentication, in which the vehicle's antenna is driven according to a preset antenna driving rule to send a low-frequency signal with the preliminary key authentication request and all stored key numbers. If a high-frequency signal with the key ID and key number is returned after a key compares the key number in the low-frequency signal with its own key number, and the received ID and key number match the sent key number, then the key passes the preliminary key authentication;

[0006] If a key passes the initial key authentication, a re-key authentication process is executed; the re-key authentication process includes re-key authentication, in which the vehicle's antenna is driven according to a preset antenna driving rule to send a low-frequency signal with a re-key authentication request and the key number that has passed the initial key authentication. If a high-frequency message with an ESK code is received from a key that compares the key number in the low-frequency signal with its own key number and the received ESK code matches the vehicle's ESK code, the key has passed the re-key authentication;

[0007] Only when a key passes the initial key authentication and the re-key authentication, it is determined that the key has passed the key authentication;

[0008] The key number, ID, and ESK code are all stored in the vehicle and the key during the key learning phase. The key number and ID are bound to the key, and the ESK code is bound to the vehicle.

[0009] According to the above scheme, the initial key authentication process includes:

[0010] The initial value of the number of preliminary authentications is defined as 0, and the initial value of the antenna replacement parameter used as the input of the antenna driving rule is defined as 1;

[0011] Selecting and driving an antenna according to a preset antenna driving rule, performing preliminary key authentication, clearing a first timer and accumulating a first timing value;

[0012] During the accumulation of the first timing value, if a key passes the preliminary key authentication, the preliminary key authentication process ends and enters the re-key authentication process; when the first timing value is greater than the preset time threshold tmax, if no key passes the preliminary key authentication, the number of preliminary authentication times is increased by one, and the antenna replacement parameter is set to the opposite of its original value, and then the process returns to "selecting and driving the antenna according to the preset antenna driving rule, clearing the first timer and accumulating the first timing value";

[0013] Repeat the above steps and drive different antennas in sequence according to the preset antenna driving rules to perform preliminary key authentication; if the number of preliminary authentication times reaches the preset preliminary authentication times threshold n1 and there is still no key that passes the preliminary key authentication, the key authentication ends and is determined to be authentication failure.

[0014] According to the above scheme, the antenna driving rules are applicable to the following three antenna installation situations:

[0015] 1) Only one middle row antenna is installed in the car;

[0016] 2) Two antennas are installed in the car, one for the front row and one for the middle row;

[0017] 3) Three antennas are installed in the car, namely the front row antenna, the middle row antenna and the rear row antenna;

[0018] The antenna driving rules are as follows:

[0019] If there is only one middle row antenna in the car, drive the middle row antenna;

[0020] If the number of antennas in the car is 2 or more, determine whether the antenna replacement parameter is greater than 0, otherwise drive the middle row antenna. If so, determine whether the number of antennas in the car is 2, if so drive the front row antenna, otherwise drive both the front and rear row antennas at the same time.

[0021] According to the above scheme, the re-key authentication process includes:

[0022] Define the initial value of the total number of re-authentication times to be zero, and keep the antenna replacement parameters consistent with the end of the initial key authentication process;

[0023] Select and drive the antenna according to the preset antenna driving rules, perform key authentication again, reset the second timer and accumulate the second timing value;

[0024] During the accumulation of the second timing value, if a key passes the re-key authentication, the re-key authentication process ends, and it is determined that the key authentication is completed and the key authentication is successful; when the second timing value is greater than the preset time threshold t2max, if no key passes the re-key authentication, the total number of re-authentication times is increased by one, and then it is determined whether the number of re-key authentications performed by the currently driven antenna is less than the preset value n3. If so, the process directly returns to "selecting and driving the antenna according to the preset antenna driving rule, performing re-key authentication, clearing the second timer and accumulating the second timing value"; otherwise, the antenna replacement parameter is taken as the inverse of its original value and the process returns to "selecting and driving the antenna according to the preset antenna driving rule, performing re-key authentication, clearing the second timer and accumulating the second timing value";

[0025] Repeat the above steps and drive different antennas in sequence according to the preset antenna driving rules to perform key re-authentication; if the number of key re-authentication times reaches the preset re-authentication threshold n3 and there is still no key that passes the re-key authentication, the key authentication ends and is determined to be authentication failure.

[0026] According to the above scheme, the process of key learning stage is as follows;

[0027] In the initial state, no key is learned and the number of learned keys is 0.

[0028] When there is a key learning request, read the number of learned keys and assign the key number to the number of learned keys plus 1;

[0029] Drive the preset antenna to send the stored ESK code and key number to the key;

[0030] Receive the key ID returned by the key after saving the ESK code and key number and store it;

[0031] Increases the number of learned keys by 1.

[0032] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the vehicle-side smart key authentication method based on multiple antennas as described above is implemented.

[0033] A computer storage medium stores a computer program, which, when executed by a processor, implements the vehicle-side smart key authentication method based on multiple antennas as described above.

[0034] A key-side smart key authentication method, comprising:

[0035] Send a key authentication request and enter the preliminary key authentication process;

[0036] When receiving the preliminary key authentication request and the low-frequency signal with the key number from the vehicle antenna, it compares it with its own key number. If they are consistent, it returns a high-frequency signal with the key ID and key number, and enters the key authentication process again;

[0037] When the key authentication request and low-frequency signal with the key number are received again from the vehicle antenna, they are compared with the key number of the vehicle itself. If they are consistent, a high-frequency message with the ESK code is returned.

[0038] A smart key is used to execute the key-side smart key authentication method described above.

[0039] A car is provided with the computer device described above.

[0040] The present invention has the following beneficial effects: In a conventional key authentication process, when a vehicle receives a key authentication request, it traverses and drives different antennas, sequentially sending the IDs, key numbers, and vehicle ESK codes of all learned keys. This increases the authentication time due to the large number of data bytes sent in a single pass. By dividing the authentication process into preliminary key authentication and secondary key authentication, the preliminary key authentication only sends the key number for preliminary key screening. Once the key number of a key that passes the preliminary key authentication is determined, the key is reconfirmed in the secondary key authentication, thereby reducing the byte length of the transmitted data and improving the authentication rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Schematic diagram of vehicle antenna distribution and detection range according to the first embodiment of the present invention;

[0042] Figure 1 In the figure, a-car door handle, b-car door handle key detection antenna, c-car interior front, middle and rear key detection antenna, d-car tailgate key detection antenna, the elliptical shaded area centered on the antenna in the figure is the key detection range of the antenna;

[0043] Figure 2 This is a key learning flow chart of the first embodiment of the present invention;

[0044] Figure 3 Schematic diagram of the association data between the vehicle end and the key end according to the first embodiment of the present invention;

[0045] Figure 4 This is a general flow chart of key authentication according to the first embodiment of the present invention;

[0046] Figure 5 This is a flowchart of the preliminary key authentication of the first embodiment of the present invention;

[0047] Figure 6 This is a flowchart of the re-key authentication of the first embodiment of the present invention;

[0048] Figure 7 This is a logical diagram of the antenna driving sequence and authentication result during the preliminary key authentication in the first embodiment of the present invention;

[0049] Figure 8 This is a logical diagram of the antenna driving sequence and authentication result during re-key authentication in the first embodiment of the present invention;

[0050] Figure 9 Schematic diagram of antenna driving rules according to the first embodiment of the present invention. DETAILED DESCRIPTION

[0051] To make the purpose, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0052] Example 1:

[0053] This embodiment provides a vehicle-side smart key authentication method based on multiple antennas, as follows.

[0054] For the distribution of vehicle antennas in this embodiment, see Figure 1 .Depend on Figure 1 It can be seen that there are three antennas inside the vehicle. Depending on the size and layout of the vehicle, there can be two or one antenna inside the vehicle, as long as the search range of the antenna inside the vehicle can cover the entire interior of the vehicle.

[0055] See also Figure 2 , the key learning process is as follows:

[0056] During initialization, the CPU has not learned any keys. Diagnostics write the vehicle's ESK code to the CPU. It determines whether there's a need to learn a key. If so, it reads the number of learned keys from the CPU as Num and assigns the key number Key_Num (indicating the key being learned) to Num+1. The CCM (Central Processing Unit) drives a specific antenna (determined by the manufacturer) to transmit the ESK code and Key_Num to the key. Upon receiving this information, the key stores the ESK and Key_Num in memory and sends the key ID to the CCM. The CCM stores the key ID (different keys have different IDs, so each CPU has a one-to-one correspondence between the key ID and Key_Num). The number of learned keys is set to Key_Num, completing the learning of the Key_Num key, and continues to detect whether there's a need to learn a key.

[0057] For information on the association between the learned key and the vehicle, see Figure 3. Therefore, the parameters for interaction between the key end and the central processing controller end are Key_Num, key ID and ESK code, and the ESK stored in the central controller and all learned key ends are consistent. And the Key_Num of the first key (the Key_Num value of the first key is 1) and the key ID (the ID of the first key) are stored in the CCM, and the CCM will store the Key_Num equal to 1 and the key ID of the first key in correspondence; similarly, the Key_Num of the nth key (the Key_Num value of the nth key is n) and the ID of the nth key are stored in the CCM, and the CCM will store the Key_Num of the nth key and the ID of the nth key in correspondence.

[0058] See also Figure 4 ,The overall process of key authentication is as follows:

[0059] When there is a key authentication request, a preliminary key authentication process is executed; the preliminary key authentication process includes preliminary key authentication, in which the vehicle's antenna is driven according to a preset antenna driving rule to send a low-frequency signal with the preliminary key authentication request and all stored key numbers. If a high-frequency signal with the key ID and key number is returned after a key compares the key number in the low-frequency signal with its own key number, and the received ID and key number match the sent key number, then the key passes the preliminary key authentication;

[0060] If a key passes the initial key authentication, a re-key authentication process is executed; the re-key authentication process includes re-key authentication, in which the vehicle's antenna is driven according to a preset antenna driving rule to send a low-frequency signal with a re-key authentication request and the key number that has passed the initial key authentication. If a high-frequency message with an ESK code is received from a key that compares the key number in the low-frequency signal with its own key number and the received ESK code matches the vehicle's ESK code, the key has passed the re-key authentication;

[0061] A key is considered to have passed the key authentication only if it has passed the preliminary key authentication and the re-key authentication.

[0062] Regardless of which antenna is used for key authentication, the initial key authentication process and the secondary key authentication process strategy are the same, except that each antenna has a different detection range. If detecting whether there is a key in the car, the three antennas in the car are required to authenticate the key, thereby covering the entire range of the car. (Generally, to avoid excessive current damage to the chip, only two antennas can be driven for authentication at the same time. Therefore, this embodiment also considers the antenna call sequence, which will be explained in detail later.) However, key authentication is easily interfered with, so each antenna will be used for multiple authentications. Key authentication is considered a failure only when key authentication fails / key authentication times out in all authentications. As long as the key authentication succeeds once, it is considered a success.

[0063] The benefits of using initial key authentication and re-key authentication are explained as follows:

[0064] The key ID mentioned above contains 3 bytes, the ESK code generally contains 16 bytes, and Key_Num is generally only 3 bits in size (generally, vehicles only support learning up to 4 keys, so only 3 bits are occupied. If more keys are supported, the corresponding number of bits can be increased). If the vehicle has learned multiple keys, when authenticating the keys, if you only need one key process to complete the key authentication, you need to authenticate the keys sequentially or authenticate all keys at the same time.

[0065] If all keys are authenticated simultaneously, the low-frequency and high-frequency data should include all the information: ESK / ID / Key_Num (because multiple keys can be learned, Key 1 is defined as: ID1, ESK1, Key_Num1; Key 2: ID2, ESK2, Key_Num2; and so on). The ESK code is used to identify the key for the corresponding vehicle, the key ID is used to identify the key that has been learned by the CCM, and the Key_Num is used to identify the key being authenticated. However, if the central controller learns multiple keys, it will have multiple different ID / Key_Nums. Since the ESK and ID bytes are 16 and 3 respectively, if there are four keys, the low-frequency / high-frequency data sent will have at least 16*4+3*4 bytes. Therefore, the authentication speed is relatively slow, and the high-frequency / low-frequency chip reception / transmission failure may occur.

[0066] If the keys are authenticated one by one, the corresponding ESK and ID are also required (for example, to authenticate the first key, the ESK and ID of the first key are required). If only key 4 is nearby, and if the keys are authenticated one by one, key 4 will be authenticated the fourth time. Therefore, the high-frequency and low-frequency ESK and ID will be sent a total of 4 times, totaling (16+4)*4 bytes. The data length is relatively large, and the authentication speed is relatively slow.

[0067] Because the presence of a corresponding smart key is indicated by the presence of a key that has been authenticated, this embodiment splits key authentication into a preliminary key authentication process and a secondary key authentication process. This reduces the amount of high- and low-frequency data transmitted, preventing slow key authentication and high- and low-frequency chip reception and transmission failures. Note: The CCM transmits low-frequency signals via the antenna. The antenna selection will be discussed later in the antenna activation sequence and key authentication result determination logic.

[0068] The initial key authentication process is as follows:

[0069] See also Figure 5 During the preliminary key authentication, the CCM sends a low-frequency message with a preliminary key authentication request and the Key_Num of all learned keys (for example, if the CCM has learned four keys, the low-frequency message sent will include Key_Num1, Key_Num2, Key_Num3, and Key_Num4). When the key end receives the low-frequency message and recognizes the preliminary key authentication request, it parses whether the Key_Num in the key end exists in the low-frequency message. If so, it replies with the high-frequency data of the Key_Num and ID in the key end. (If the CCM has learned four keys and all the keys are nearby, the first key that passes the Key_Num comparison replies with a high-frequency message with ID and Key_Num). After receiving the high-frequency message from the key end, the CCM identifies whether the Key_Num and ID in the high-frequency message are exactly the same as the Key_Num and ID stored in the CCM. If they are the same, it means that the Key_Num-th key is nearby.

[0070] See also Figure 7 The antenna driving sequence and authentication result logic during the initial key authentication are as follows:

[0071] The default number of preliminary authentication times is 0, and the default value of the antenna replacement parameter is 1. If there is a key authentication request, the antenna driving rule is called to select the driven antenna, and then the preliminary key authentication is entered (the process has been described above), and timer 1 is started. During the timing of timer 1, if a key is detected, the preliminary key authentication is passed; at the same time, it is detected whether timer 1 is greater than tmax (tmax is the time required to complete the preliminary key authentication of the key when the Key_Num of the matching key is the same as the maximum number of keys that can be stored on the vehicle side). If so, it is determined whether there is a key nearby based on the result of the preliminary key authentication process. If so, the preliminary key authentication is passed. The authentication passes, otherwise the number of preliminary authentications is incremented by 1. Determine whether the number of preliminary authentications is greater than n1 (n1 is greater than the number of antennas, ensuring that each antenna searches for the key once. If n1 is a multiple of the number of antennas, it means that each antenna will try to find the key multiple times, and it will be considered a failure only if all are not found. However, considering the key authentication time issue, the size of n1 needs to be reasonably selected). If it is greater than n1, it means that the antenna has been replaced and repeated authentication n1 times, indicating that there is indeed no key nearby. At this time, key authentication is completed and key authentication fails. Otherwise, the antenna replacement parameter is negated (used in the antenna driving rule for replacing the antenna), and the antenna driving rule is called again to select the driven antenna and repeat authentication. Therefore, two results will be obtained in the end: preliminary key authentication passed, key authentication completed and key authentication failed, and the antenna replacement parameter will not change after the result is obtained (used for re-key authentication when selecting the antenna. The antenna that initially authenticated the key is first used to detect the key (finding the key during the preliminary authentication process means that the key is near the antenna, so this antenna is used first for re-authentication. Try not to replace the antenna directly to find the key, reducing key authentication time and improving vehicle performance).

[0072] The re-key authentication process is as follows:

[0073] See also Figure 6 After the initial authentication is completed, the re-key authentication process begins. If there is a key nearby, the key will be re-authenticated. The CCM will send a low-frequency signal with Key_Num (passed the initial key authentication) and a re-key authentication request. The key end receives the low-frequency signal and determines whether the Key_Num on the key end is the same as the Key_Num sent by the CCM. If so, a high-frequency signal (16 bytes) with the ESK code in the key end is sent. The CCM receives the ESK code and determines whether the ESK code is equal to the ESK code corresponding to the Key_Num in the CCM. If they are equal, the authentication is passed, otherwise the authentication fails.

[0074] See also Figure 7 The antenna driving sequence and authentication result logic during key authentication are as follows:

[0075] The total number of re-authentication attempts defaults to 0. A check is made to determine whether the initial key authentication has passed. If so, the antenna driver rule is invoked to obtain the driven antenna (using this antenna to search for the key). Timer 2 is started and the re-authentication process begins. If key authentication succeeds, key authentication is complete and successful. If key authentication still fails when Timer 2 exceeds t2max, the antenna search is considered unsuccessful. The total number of re-authentication attempts is incremented by 1, and a check is made to determine whether the total number of re-authentication attempts is greater than n2 (n2 is the maximum number of authentication attempts). If not, the current antenna's re-authentication attempts are determined to be less than the preset value n3 (each antenna authenticates n3 times). If less than n3, the antenna driver rule is invoked to continue re-authenticating using this antenna. If greater than n3, the antenna replacement parameter is negated and the antenna driver rule is invoked again, replacing the antenna and continuing authentication. If so (the total number of re-authentication attempts is greater than n2), key authentication is completed and key authentication fails. This process offers two possible outcomes: key authentication completed and key authentication failed, or key authentication completed and key authentication successful.

[0076] Where n2 = number of antennas in the car * n3 (n3 represents the number of rounds each antenna authenticates nearby keys).

[0077] Explanation: During re-key authentication, if the first antenna activated (as shown in the re-key authentication antenna selection function below, the first antenna activated is the one that initially authenticated the key. Since the initial authentication was successful, it indicates that the key is within the antenna's detection range. Therefore, this antenna is used for re-authentication, reducing the time required for key authentication) fails to detect the key, then after re-authenticating n3 times without finding a matching key, a new antenna is used to authenticate all nearby keys. This means that each antenna is activated n3 times (each antenna authenticates each nearby key n3 times) to authenticate nearby keys. If all authentications fail, a new antenna is used to authenticate nearby keys. Therefore, the maximum number of authentications, n2, equals the number of antennas in the vehicle * n3.

[0078] See also Figure 9 , the antenna driving rules are as follows:

[0079] Because there is only one antenna at the door handle, when the driver's door, passenger's door, or tailgate PE needs to be unlocked, only the driver's door, passenger's door handle, or tailgate antenna needs to be called. However, the number of antennas in the vehicle will vary depending on the vehicle size, etc. Therefore, this embodiment describes the antenna sequence selection logic during in-vehicle key authentication.

[0080] The antenna driving rules in this embodiment are applicable to the following three antenna installation situations:

[0081] 1) Only one middle row antenna is installed in the car;

[0082] 2) Two antennas are installed in the car, one for the front row and one for the middle row;

[0083] 3) Three antennas are installed in the car, namely the front row antenna, the middle row antenna and the rear row antenna;

[0084] The antenna driving rules are as follows:

[0085] If there is only one middle row antenna in the car, drive the middle row antenna;

[0086] If the number of antennas in the car is 2 or more, determine whether the antenna replacement parameter is greater than 0, otherwise drive the middle row antenna. If so, determine whether the number of antennas in the car is 2, if so drive the front row antenna, otherwise drive both the front and rear row antennas at the same time.

[0087] This embodiment describes a multi-antenna-based authentication strategy for smart keys and central processing units. Prior art provides extensive overviews of key authentication, but few specific implementation strategies, and fails to consider key authentication speed. Generally, key authentication is easily affected by field strength interference, so multiple authentication attempts are performed using a single antenna. If authentication fails multiple times or the key does not respond, it indicates authentication failure. Key authentication can only be driven for two antennas. If three antennas are deployed in the vehicle, the key authentication antennas will be called in a specific order to determine whether a key is present. Furthermore, the data length of information such as the ESK / ID must be considered. Longer information length increases the likelihood of driver / high- and low-frequency receiver chips malfunctioning. Based on this, this embodiment describes initial and secondary key authentication and develops a key authentication strategy. Based on the key authentication requirements (key authentication requirements include authentication of the vehicle's internal key and authentication of the external key, this embodiment only describes authentication of the vehicle's internal key) and the number of antennas inside the vehicle, an antenna sequence strategy is formulated for vehicle key authentication. The key is initially authenticated by the smart key number and key ID, and then the key is re-authenticated using the vehicle's unique ESK code to determine whether the key matches the central processing controller and whether it matches the same vehicle. If all match, the vehicle can be powered on / started. In addition, for vehicles with multiple antennas inside the vehicle, to ensure key authentication speed, the key is first authenticated using the antenna used when the initial key authentication passed during re-authentication. If the key cannot be found, the key is searched for using other antennas, thereby improving key authentication speed. Using this strategy, it is possible to accurately determine whether the key is inside the vehicle. By calling the antenna sequence and decomposing the key authentication into initial key authentication and re-authentication, the key authentication rate can be increased, avoiding abnormalities in the chip receiving and sending large data, reducing the probability of vehicle failure, and thus improving the responsiveness of vehicle functions, improving vehicle intelligence performance and usability.

[0088] Example 2:

[0089] The principles of this embodiment are basically the same as those of the first embodiment. Based on the first embodiment, this embodiment further proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the vehicle-side smart key authentication method based on multiple antennas described in the first embodiment is implemented.

[0090] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A vehicle-side smart key authentication method based on multiple antennas, characterized by: include; When there is a key authentication request, a preliminary key authentication process is executed; the preliminary key authentication process includes preliminary key authentication, in which the vehicle's antenna is driven according to a preset antenna driving rule to send a low-frequency signal with the preliminary key authentication request and all stored key numbers. If a high-frequency signal with the key ID and key number is returned after a key compares the key number in the low-frequency signal with its own key number, and the received ID and key number match the sent key number, then the key passes the preliminary key authentication; If a key passes the initial key authentication, a re-key authentication process is executed; the re-key authentication process includes re-key authentication, in which the vehicle's antenna is driven according to a preset antenna driving rule to send a low-frequency signal with a re-key authentication request and the key number that has passed the initial key authentication. If a high-frequency message with an ESK code is received from a key that compares the key number in the low-frequency signal with its own key number and the received ESK code matches the vehicle's ESK code, the key has passed the re-key authentication; Only when a key passes the initial key authentication and the re-key authentication, it is determined that the key has passed the key authentication; The key number, ID, and ESK code are all stored in the vehicle and key during the key learning phase. The key number and ID are bound to the key, and the ESK code is bound to the vehicle. The initial key certification process includes: The initial value of the number of preliminary authentications is defined as 0, and the initial value of the antenna replacement parameter used as the input of the antenna driving rule is defined as 1; Selecting and driving an antenna according to a preset antenna driving rule, performing preliminary key authentication, clearing a first timer and accumulating a first timing value; During the accumulation of the first timer value, if a key passes the preliminary key authentication, the preliminary key authentication process ends and the re-key authentication process begins. When the first timer value exceeds the preset time threshold tmax, if no key passes the preliminary key authentication, the number of preliminary authentication times is increased by one, the antenna replacement parameter is set to the opposite of its original value, and then the process returns to "select and drive the antenna according to the preset antenna driving rule, clear the first timer, and accumulate the first timer value." The number of preliminary authentication times defaults to 0. Repeat the above steps and drive different antennas in sequence according to the preset antenna driving rules to perform preliminary key authentication; if the number of preliminary authentication times reaches the preset preliminary authentication number threshold n1 and there is still no key that passes the preliminary key authentication, the key authentication ends and is determined to have failed; The antenna driving rules described above apply to the following three antenna installation situations: There is only one mid-row antenna installed in the car; There are two antennas installed in the car, one for the front row and one for the middle row; There are three antennas installed in the car, namely the front row antenna, the middle row antenna and the rear row antenna; The antenna driving rules are as follows: If there is only one middle row antenna in the car, drive the middle row antenna; If the number of antennas in the car is 2 or more, determine whether the antenna replacement parameter is greater than 0. Otherwise, drive the middle antenna. If so, determine whether the number of antennas in the car is 2. If so, drive the front antenna. Otherwise, drive both the front and rear antennas at the same time. The antenna replacement parameter defaults to 1.

2. The smart key authentication method based on multiple antennas according to claim 1, characterized in that: The re-key authentication process includes: Define the initial value of the total number of re-authentication times to be zero, and keep the antenna replacement parameters consistent with the end of the initial key authentication process; Select and drive the antenna according to the preset antenna driving rules, perform key authentication again, reset the second timer and accumulate the second timing value; During the accumulation of the second timing value, if a key passes the re-key authentication, the re-key authentication process ends, and it is determined that the key authentication is completed and the key authentication is successful; when the second timing value is greater than the preset time threshold t2max, if no key passes the re-key authentication, the total number of re-authentication times is increased by one, and then it is determined whether the number of re-key authentications performed by the currently driven antenna is less than the preset value n3. If so, the process directly returns to "selecting and driving the antenna according to the preset antenna driving rule, performing re-key authentication, clearing the second timer and accumulating the second timing value"; otherwise, the antenna replacement parameter is taken as the inverse of its original value and the process returns to "selecting and driving the antenna according to the preset antenna driving rule, performing re-key authentication, clearing the second timer and accumulating the second timing value"; Repeat the above steps and drive different antennas in sequence according to the preset antenna driving rules to perform key authentication again; If there is still no key that has passed the re-key authentication when the number of re-key authentication times reaches the preset re-authentication number threshold n3, the key authentication ends and is determined to be authentication failure.

3. The smart key authentication method based on multiple antennas according to claim 1, characterized in that: The process of the key learning phase is as follows; In the initial state, no key is learned and the number of learned keys is 0. When there is a key learning request, read the number of learned keys and assign the key number to the number of learned keys plus 1; Drive the preset antenna to send the stored ESK code and key number to the key; Receive the key ID returned by the key after saving the ESK code and key number and store it; Increases the number of learned keys by 1.

4. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the vehicle-side smart key authentication method based on multiple antennas as described in any one of claims 1-3.

5. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle-side smart key authentication method based on multiple antennas as described in any one of claims 1-3 is implemented.

6. An automobile, characterized in that: The computer device according to claim 4 is provided.