A vehicle anti-theft matching method, device, equipment and medium

By generating a target mask and key corresponding to the vehicle identification number, the problem of easy cracking of security authentication algorithms in existing vehicle anti-theft systems is solved, thereby improving vehicle security and anti-theft capabilities.

CN116552449BActive Publication Date: 2026-07-10LAUNCH TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LAUNCH TECH CO LTD
Filing Date
2023-05-30
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing vehicle anti-theft systems, once the security authentication algorithm is cracked, all vehicles of the same model can be compromised, leading to reduced vehicle security and increased risk of theft.

Method used

By using the vehicle identification code to generate a target mask corresponding to the security authentication algorithm, and combining it with the seed value to calculate the first key, a comparison is made to determine the permissions, thereby increasing the difficulty of the security authentication algorithm.

Benefits of technology

The uniqueness of the security authentication algorithm for each vehicle has been enhanced, improving the security of the vehicle anti-theft system and reducing the risk of it being hacked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116552449B_ABST
    Figure CN116552449B_ABST
Patent Text Reader

Abstract

The application discloses a vehicle anti-theft matching method and device, equipment and medium, relates to the technical field of vehicle anti-theft, and is applied to a diagnostic device, and comprises the following steps: calculating a vehicle identification code by using a target algorithm to obtain a target mask corresponding to a security authentication algorithm, and acquiring a seed value sent by an electronic control unit; calculating the seed value and the target mask by using the security authentication algorithm to obtain a first key, and sending the first key to the electronic control unit; acquiring a response result corresponding to a comparison result returned by the electronic control unit after comparing a local second key with the first key, and determining whether the current has the authority to perform key learning and anti-theft matching according to the response result. In the application, since the vehicle identification codes of each vehicle are different, the masks corresponding to the security authentication algorithm generated by each vehicle are also different, so that the difficulty of cracking the security authentication algorithm is increased, and the safety of the vehicle is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle anti-theft technology, and in particular to a vehicle anti-theft matching method, device, equipment and medium. Background Technology

[0002] A complete vehicle anti-theft system mainly consists of three parts: the key, the IMMO (Immobilizer, i.e., engine immobilizer), and the EMS (Engine Management System). When a vehicle undergoes key learning and anti-theft matching, it needs to be done through diagnostic equipment. During this process, security verification is performed using the 27 security authentication service within UDS (Unified Diagnostic Services). Only after passing this verification can key learning and anti-theft matching proceed. The current method involves setting a fixed security authentication algorithm for the IMMO and EMS security strategies. While this improves security, all vehicles of the same model use the same algorithm. Once the security authentication algorithm is cracked, the anti-theft system on all vehicles of the same model is compromised, allowing key learning and vehicle starting, thus posing a security risk and increasing the likelihood of theft.

[0003] In summary, how to increase the difficulty of cracking vehicle security authentication algorithms and improve vehicle security are problems that need to be solved. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a vehicle anti-theft matching method, device, equipment, and medium, which can increase the difficulty of cracking vehicle security authentication algorithms and improve vehicle security. The specific solution is as follows:

[0005] In a first aspect, this application discloses a vehicle anti-theft matching method, applied to diagnostic equipment, comprising:

[0006] The target algorithm is used to calculate the vehicle identification code to obtain the target mask corresponding to the security authentication algorithm, and the seed value sent by the electronic control unit is obtained.

[0007] The first key is calculated using the security authentication algorithm based on the target mask and the seed value, and then sent to the electronic control unit.

[0008] The system obtains the response result returned by the electronic control unit after comparing the local second key with the first key, and determines whether it has permission to perform key learning and anti-theft matching based on the response result.

[0009] Optionally, obtaining the seed value sent by the electronic control unit includes:

[0010] Send a seed acquisition request to the electronic control unit;

[0011] Obtain the seed value returned by the electronic control unit after responding to the seed acquisition request.

[0012] Optionally, after sending the seed acquisition request to the electronic control unit, the method further includes:

[0013] The electronic control unit responds to the seed acquisition request and returns a data packet carrying the seed value to the diagnostic device, and uses the security authentication algorithm to calculate the second key from the seed value and the local mask.

[0014] Optionally, obtaining the seed value returned by the electronic control unit after responding to the seed acquisition request includes:

[0015] Obtain the data packet carrying the seed value returned by the electronic control unit after responding to the seed acquisition request;

[0016] The seed value is extracted from the data packet, and the seed value is converted to an integer value to obtain the converted seed value.

[0017] Optionally, the vehicle anti-theft matching method further includes:

[0018] If this is the first time vehicle anti-theft matching is performed, the local mask stored in the electronic control unit is a pre-set initial mask, and the first key and the second key are keys calculated by the security authentication algorithm using the seed value and the initial mask;

[0019] After obtaining the comparison result used to characterize the consistency between the first key and the second key, key learning and anti-theft matching are performed, and the target mask corresponding to the security authentication algorithm, which is calculated using the target algorithm on the vehicle identification code, is written into the electronic control unit so that the local mask can be updated using the target mask to obtain the updated local mask.

[0020] Optionally, determining whether there is current permission to perform key learning and anti-theft matching based on the response result includes:

[0021] If the comparison result shows that the first key and the second key are consistent, the corresponding response result is a positive response message used to represent successful security authentication, and it is determined that there is currently permission to perform key learning and anti-theft matching.

[0022] If the comparison result shows that the first key and the second key are inconsistent, the corresponding response result is a response message indicating that the key is invalid, and it is determined that there is currently no permission to perform key learning and anti-theft matching.

[0023] Optionally, if the comparison result shows that the first key and the second key are consistent, the method further includes:

[0024] The electronic control unit is unlocked using the first key so that the diagnostic device can perform key learning and anti-theft matching.

[0025] Secondly, this application discloses a vehicle anti-theft matching device, applied to diagnostic equipment, comprising:

[0026] The information acquisition module is used to calculate the vehicle identification code using the target algorithm to obtain the target mask corresponding to the security authentication algorithm, and to obtain the seed value sent by the electronic control unit.

[0027] The key acquisition module is used to calculate a first key using the security authentication algorithm on the target mask and the seed value, and send the first key to the electronic control unit;

[0028] The permission judgment module is used to obtain the response result corresponding to the comparison result returned by the electronic control unit after comparing the local second key and the first key, and to determine whether there is permission to perform key learning and anti-theft matching based on the response result.

[0029] Thirdly, this application discloses an electronic device, comprising:

[0030] Memory, used to store computer programs;

[0031] A processor is used to execute the computer program to implement the steps of the aforementioned disclosed vehicle anti-theft matching method.

[0032] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned disclosed vehicle anti-theft matching method.

[0033] As can be seen, in this application, the diagnostic device uses a target algorithm to calculate the vehicle identification code to obtain a target mask corresponding to the security authentication algorithm, and obtains a seed value sent by the electronic control unit (ECU); it uses the security authentication algorithm to calculate the target mask and the seed value to obtain a first key, and sends the first key to the ECU; it obtains the response result returned by the ECU after comparing its local second key with the first key, and determines whether it has permission to perform key learning and anti-theft matching based on the response result. Thus, in this application, the diagnostic device uses a target algorithm to calculate the vehicle identification code to obtain a target mask corresponding to the security authentication algorithm, and obtains a seed value sent by the ECU through communication with the ECU; then it uses the security authentication algorithm to calculate the first key using the obtained target mask and seed value, then the diagnostic device sends the first key to the ECU, the ECU compares the first key with its local second key, and returns a corresponding response result to the diagnostic device based on the comparison result, and finally the diagnostic device determines whether it has permission to perform key learning and anti-theft matching based on the response result. In this way, since each vehicle identification number is different, the mask generated for each vehicle corresponding to the security authentication algorithm is also different. Therefore, by generating the target mask of the security authentication algorithm based on the vehicle identification number and further generating the first key, this application can increase the difficulty of cracking the security authentication algorithm and improve the security of the vehicle. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0035] Figure 1 This is a flowchart of a vehicle anti-theft matching method disclosed in this application;

[0036] Figure 2 This application discloses a specific vehicle anti-theft matching method flowchart;

[0037] Figure 3 This is a schematic diagram of the structure of a vehicle anti-theft matching device disclosed in this application;

[0038] Figure 4 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0039] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0040] Current vehicle anti-theft systems use fixed security authentication algorithms. While this improves security, all vehicles of the same model use the same algorithm. Once the security authentication algorithm is cracked, the anti-theft system for all vehicles of the same model is compromised. Furthermore, a cracked algorithm allows key learning and vehicle starting, posing a security risk and increasing the likelihood of theft. Therefore, this application discloses a vehicle anti-theft matching method, device, equipment, and medium that increases the difficulty of cracking the vehicle security authentication algorithm and improves vehicle security.

[0041] See Figure 1 As shown in the figure, this application discloses a vehicle anti-theft matching method, applied to a diagnostic device, the method comprising:

[0042] Step S11: Calculate the vehicle identification code using the target algorithm to obtain the target mask corresponding to the security authentication algorithm, and obtain the seed value sent by the electronic control unit.

[0043] In this embodiment, the 17-bit Vehicle Identification Number (VIN) is first obtained, and then the VIN is calculated according to a predetermined target algorithm to obtain a target mask corresponding to the security authentication algorithm. Furthermore, the diagnostic device communicates with the Electronic Control Unit (ECU) via UDS's 27 service to obtain the seed value sent by the ECU.

[0044] Step S12: Calculate the first key using the security authentication algorithm on the target mask and the seed value, and send the first key to the electronic control unit.

[0045] In this embodiment, a first key is calculated using a security authentication algorithm based on the obtained target mask and seed value. This first key is then sent to the electronic control unit via UDS's 27 service. Since each vehicle's vehicle identification number (VIN) is unique, the target mask generated for each vehicle corresponding to the security authentication algorithm is also different. Therefore, this application increases the difficulty of cracking the security authentication algorithm by generating the target mask based on the VIN and further generating the first key, thus increasing the difficulty of passing vehicle security authentication and improving vehicle security.

[0046] Step S13: Obtain the response result returned by the electronic control unit after comparing the local second key with the first key, and determine whether there is permission to perform key learning and anti-theft matching based on the response result.

[0047] In this embodiment, after receiving the first key sent by the diagnostic device, the electronic control unit compares the first key with a locally generated second key and returns a corresponding response to the diagnostic device based on the comparison result. The diagnostic device then determines whether it has permission to perform key learning and anti-theft matching based on the response returned by the electronic control unit.

[0048] As can be seen, in this application, the diagnostic device uses a target algorithm to calculate the vehicle identification code to obtain a target mask corresponding to the security authentication algorithm, and obtains a seed value sent by the electronic control unit (ECU); it uses the security authentication algorithm to calculate the target mask and the seed value to obtain a first key, and sends the first key to the ECU; it obtains the response result returned by the ECU after comparing its local second key with the first key, and determines whether it has permission to perform key learning and anti-theft matching based on the response result. Thus, in this application, the diagnostic device uses a target algorithm to calculate the vehicle identification code to obtain a target mask corresponding to the security authentication algorithm, and obtains a seed value sent by the ECU through communication with the ECU; then it uses the security authentication algorithm to calculate the first key using the obtained target mask and seed value, then the diagnostic device sends the first key to the ECU, the ECU compares the first key with its local second key, and returns a corresponding response result to the diagnostic device based on the comparison result, and finally the diagnostic device determines whether it has permission to perform key learning and anti-theft matching based on the response result. In this way, since each vehicle identification number is different, the mask generated for each vehicle corresponding to the security authentication algorithm is also different. Therefore, by generating the target mask of the security authentication algorithm based on the vehicle identification number and further generating the first key, this application can increase the difficulty of cracking the security authentication algorithm and improve the security of the vehicle.

[0049] See Figure 2 As shown, this application discloses a specific vehicle anti-theft matching method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, it includes:

[0050] Step S21: Calculate the vehicle identification code using the target algorithm to obtain the target mask corresponding to the security authentication algorithm, and send a seed acquisition request to the electronic control unit to obtain the seed value returned by the electronic control unit after responding to the seed acquisition request.

[0051] In this embodiment, the diagnostic device sends a seed acquisition request (27 01) to the electronic control unit (ECU) to obtain the seed value returned by the ECU after responding to the request. It should be noted that prior to this, the diagnostic device also sends a 10 03 to the IMMO / EMS via the UDS, and the IMMO / EMS replies with 50 03. After receiving the 50 03 reply, the device continues to send a 27 01 request to the ECU to obtain the seed value.

[0052] In a specific implementation, after sending the seed acquisition request to the electronic control unit, the method further includes: the electronic control unit responding to the seed acquisition request and returning a data packet carrying the seed value to the diagnostic device; and calculating the second key using the security authentication algorithm on the seed value and the local mask. That is, after receiving the seed acquisition request, the electronic control unit responds to the request and replies with a data packet carrying the seed value (seed). Furthermore, the electronic control unit also calculates the second key locally using the security authentication algorithm on the current seed value (seed) and the internally stored local mask.

[0053] Furthermore, the process of obtaining the seed value returned by the electronic control unit (ECU) in response to the seed acquisition request includes: obtaining a data packet carrying the seed value returned by the ECU in response to the seed acquisition request; extracting the seed value from the data packet; and converting the seed value to an integer value to obtain the converted seed value. That is, after obtaining the data packet carrying the seed value, the diagnostic device extracts the seed value from the data packet and converts the seed value to an integer value to obtain the converted seed value. For example, assuming the ECU replies with seed 67 01AA BB CC DD, the seed value needs to be converted to an integer value to obtain 0xAABBCCDD.

[0054] Step S22: Calculate the first key using the security authentication algorithm on the target mask and the seed value, and send the first key to the electronic control unit.

[0055] In this embodiment, the diagnostic device calculates the corresponding first key based on the seed value and the target mask according to a predetermined security authentication algorithm, and sends the first key to the electronic control unit through the 2702 service.

[0056] Step S23: Obtain the response result corresponding to the comparison result returned by the electronic control unit after comparing the local second key with the first key.

[0057] In this embodiment, it should be noted that the above method further includes: if this is the first time vehicle anti-theft matching is performed, the local mask stored in the electronic control unit is a pre-set initial mask, and the first key and the second key are keys calculated using the security authentication algorithm on the seed value and the initial mask; after obtaining a comparison result indicating that the first key and the second key are consistent, key learning and anti-theft matching are performed, and the target mask corresponding to the security authentication algorithm, calculated using the target algorithm on the vehicle identification code, is written into the electronic control unit so as to update the local mask using the target mask to obtain the updated local mask. It is understood that when a vehicle is first matched for anti-theft purposes, the key, IMMO, and EMS are all brand new and unmatched, and the electronic control unit stores a pre-set initial mask, for example, 0x00000000. This situation is typically applicable to the process of vehicle anti-theft matching while the vehicle is still on the production line. Correspondingly, the first and second keys are also calculated using a security authentication algorithm based on the seed value and the initial mask. For example, assuming the seed value is 0xAABBCCDD and the initial mask is 0x00000000, the calculated key value is 0x11223344. Then, the diagnostic device sends 27 02 11 22 33 44 to the ECU for unlocking, key learning, and anti-theft matching. It also writes the target mask corresponding to the security authentication algorithm, calculated using the target algorithm on the vehicle identification number (VIN), for example, 0x12345678, into the ECU so that the ECU's local mask can be updated using the target mask, resulting in the updated local mask. In other words, at this point, the vehicle's ECU has already been written with the target mask obtained through VIN conversion. When the vehicle needs to be key-learned or anti-theft matched again, since the vehicle has already been written with the target mask obtained through VIN conversion, the diagnostic equipment must know the mask value currently stored inside the vehicle, calculate the correct first key using the seed value and mask according to the security authentication algorithm, and send the first key to the ECU through UDS's 27 service for unlocking before key-learning and anti-theft matching can be performed.

[0058] Step S24: If the comparison result shows that the first key and the second key are consistent, the corresponding response result is a positive response message used to represent successful security authentication, and it is determined that there is currently permission to perform key learning and anti-theft matching.

[0059] In this embodiment, if the comparison result shows that the first key and the second key are the same, it means that the security authentication between the diagnostic device and the ECU is successful. The response result is a positive response message used to characterize the successful security authentication. After the diagnostic device obtains the positive response message, it can determine that it has the right to perform key learning and anti-theft matching.

[0060] Furthermore, if the comparison result shows that the first key and the second key match, the method further includes: using the first key to unlock the electronic control unit, so that the diagnostic device can perform key learning and anti-theft matching. That is, if the keys match, the first key is used to unlock the electronic control unit, enabling the electronic control unit to grant the diagnostic device access rights to specific services and access rights to specific data.

[0061] Step S25: If the comparison result is that the first key and the second key are inconsistent, the corresponding response result is a response message used to indicate that the key is invalid, and it is determined that there is currently no permission to perform key learning and anti-theft matching.

[0062] In this embodiment, if the comparison result shows that the first key and the second key are inconsistent, it indicates that the keys do not match, and this access is considered an erroneous access attempt, and the keys are invalid. Accordingly, the response result is a response message indicating that the key is invalid. After the diagnostic device obtains this response message, it can determine that it does not currently have permission to perform key learning and anti-theft matching.

[0063] For a more detailed description of the process of step S21, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0064] As can be seen, in this embodiment, the diagnostic device sends a seed acquisition request (27 01) to the electronic control unit (ECU) to obtain the seed value (seed) returned by the ECU after responding to the request. Upon receiving the seed acquisition request, the ECU replies with a data packet carrying the seed value (seed). The ECU also calculates a second key locally using a security authentication algorithm based on the current seed value (seed) and its internally stored local mask. Furthermore, during the initial vehicle anti-theft matching, the ECU stores a pre-set initial mask, and the first and second keys are calculated using the security authentication algorithm based on the seed value and the initial mask. After the initial anti-theft matching, the target mask, calculated using the target algorithm on the vehicle identification number and corresponding to the security authentication algorithm, is written into the ECU. This allows the ECU's local mask to be updated using the target mask. When key learning or anti-theft matching is required again, the correct first key is calculated using the seed value and target mask according to the security authentication algorithm to unlock the ECU.

[0065] See Figure 3 As shown in the figure, this application discloses a vehicle anti-theft matching device, applied to diagnostic equipment, the device comprising:

[0066] The information acquisition module 11 is used to calculate the vehicle identification code using the target algorithm to obtain the target mask corresponding to the security authentication algorithm, and to obtain the seed value sent by the electronic control unit.

[0067] The key acquisition module 12 is used to calculate a first key using the security authentication algorithm on the target mask and the seed value, and send the first key to the electronic control unit;

[0068] The permission judgment module 13 is used to obtain the response result corresponding to the comparison result returned by the electronic control unit after comparing the local second key and the first key, and to determine whether there is permission to perform key learning and anti-theft matching based on the response result.

[0069] As can be seen, in this application, the diagnostic device uses a target algorithm to calculate the vehicle identification code to obtain a target mask corresponding to the security authentication algorithm, and obtains a seed value sent by the electronic control unit (ECU); it uses the security authentication algorithm to calculate the target mask and the seed value to obtain a first key, and sends the first key to the ECU; it obtains the response result returned by the ECU after comparing its local second key with the first key, and determines whether it has permission to perform key learning and anti-theft matching based on the response result. Thus, in this application, the diagnostic device uses a target algorithm to calculate the vehicle identification code to obtain a target mask corresponding to the security authentication algorithm, and obtains a seed value sent by the ECU through communication with the ECU; then it uses the security authentication algorithm to calculate the first key using the obtained target mask and seed value, then the diagnostic device sends the first key to the ECU, the ECU compares the first key with its local second key, and returns a corresponding response result to the diagnostic device based on the comparison result, and finally the diagnostic device determines whether it has permission to perform key learning and anti-theft matching based on the response result. In this way, since each vehicle identification number is different, the mask generated for each vehicle corresponding to the security authentication algorithm is also different. Therefore, by generating the target mask of the security authentication algorithm based on the vehicle identification number and further generating the first key, this application can increase the difficulty of cracking the security authentication algorithm and improve the security of the vehicle.

[0070] In some specific embodiments, the information acquisition module 11 may specifically include:

[0071] The request sending unit is used to send a seed acquisition request to the electronic control unit;

[0072] A seed value acquisition unit is used to acquire the seed value returned by the electronic control unit after responding to the seed acquisition request.

[0073] In some specific embodiments, after the request sending unit, the system further includes:

[0074] The request response unit is configured to respond to the seed acquisition request through the electronic control unit and return a data packet carrying the seed value to the diagnostic device.

[0075] The second key generation unit is used to calculate the second key by using the security authentication algorithm on the seed value and the local mask.

[0076] In some specific embodiments, the seed value acquisition unit may specifically include:

[0077] The data packet acquisition unit is used to acquire the data packet carrying the seed value returned by the electronic control unit after responding to the seed acquisition request;

[0078] The numerical conversion unit is used to extract the seed value from the data packet and perform integer conversion on the seed value to obtain the converted seed value.

[0079] In some specific embodiments, the vehicle anti-theft matching device may further include:

[0080] The initial matching unit is used to, if the current is the first time to perform vehicle anti-theft matching, use the local mask stored in the electronic control unit as the preset initial mask, and the first key and the second key are keys calculated by the security authentication algorithm using the seed value and the initial mask;

[0081] The mask update unit is used to perform key learning and anti-theft matching after obtaining the comparison result used to indicate that the first key and the second key are consistent, and write the target mask corresponding to the security authentication algorithm obtained by calculating the vehicle identification code using the target algorithm into the electronic control unit so as to update the local mask using the target mask to obtain the updated local mask.

[0082] In some specific embodiments, the permission determination module 13 may specifically include:

[0083] The first determination unit is configured to, if the comparison result is that the first key and the second key are consistent, then the corresponding response result is a positive response message indicating successful security authentication, and to determine that it is currently authorized to perform key learning and anti-theft matching.

[0084] The second determination unit is used to determine that if the comparison result is that the first key and the second key are inconsistent, the corresponding response result is a response message indicating that the key is invalid, and to determine that there is currently no permission to perform key learning and anti-theft matching.

[0085] In some specific embodiments, the first determining unit may further include:

[0086] An unlocking unit is used to unlock the electronic control unit using the first key, so that the diagnostic device can perform key learning and anti-theft matching.

[0087] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the vehicle anti-theft matching method performed by the electronic device disclosed in any of the foregoing embodiments.

[0088] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0089] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0090] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored on it include operating system 221, computer program 222 and data 223, etc., and the storage method can be temporary storage or permanent storage.

[0091] The operating system 221 manages and controls the various hardware devices and computer programs 222 on the electronic device 20 to enable the processor 21 to perform calculations and processing on the massive amounts of data 223 in the memory 22. The operating system 221 can be Windows, Unix, Linux, etc. The computer program 222, in addition to including a computer program capable of performing the vehicle anti-theft matching method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, may further include computer programs capable of performing other specific tasks. The data 223 may include data received by the electronic device from external devices, as well as data collected by its own input / output interface 25.

[0092] Furthermore, embodiments of this application also disclose a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, it implements the method steps performed during the vehicle anti-theft matching process disclosed in any of the foregoing embodiments.

[0093] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0094] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0095] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0096] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0097] The present invention provides a detailed description of a vehicle anti-theft matching method, device, equipment, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A vehicle anti-theft matching method, characterized in that, Used in diagnostic equipment, including: The target algorithm is used to calculate the vehicle identification code to obtain the target mask corresponding to the security authentication algorithm, and the seed value sent by the electronic control unit is obtained. The first key is calculated using the security authentication algorithm based on the target mask and the seed value, and then sent to the electronic control unit. The electronic control unit obtains the response result corresponding to the comparison result after comparing the local second key with the first key, and determines whether it has permission to perform key learning and anti-theft matching based on the response result; The acquisition of the seed value sent by the electronic control unit includes: Send a seed acquisition request to the electronic control unit; Obtain the seed value returned by the electronic control unit after responding to the seed acquisition request; After sending the seed acquisition request to the electronic control unit, the process also includes: The electronic control unit responds to the seed acquisition request and returns a data packet carrying the seed value to the diagnostic device, and uses the security authentication algorithm to calculate the second key from the seed value and the local mask; The vehicle anti-theft matching method also includes: If this is the first time vehicle anti-theft matching is performed, the local mask stored in the electronic control unit is a pre-set initial mask, and the first key and the second key are keys calculated by the security authentication algorithm using the seed value and the initial mask; After obtaining the comparison result used to characterize the consistency between the first key and the second key, key learning and anti-theft matching are performed, and the target mask corresponding to the security authentication algorithm, which is calculated using the target algorithm on the vehicle identification code, is written into the electronic control unit so that the local mask can be updated using the target mask to obtain the updated local mask.

2. The vehicle anti-theft matching method according to claim 1, characterized in that, The step of obtaining the seed value returned by the electronic control unit after responding to the seed acquisition request includes: Obtain the data packet carrying the seed value returned by the electronic control unit after responding to the seed acquisition request; The seed value is extracted from the data packet, and the seed value is converted to an integer value to obtain the converted seed value.

3. The vehicle anti-theft matching method according to claim 1 or 2, characterized in that, The step of determining whether there is current permission to perform key learning and anti-theft matching based on the response result includes: If the comparison result shows that the first key and the second key are consistent, the corresponding response result is a positive response message used to represent successful security authentication, and it is determined that there is currently permission to perform key learning and anti-theft matching. If the comparison result shows that the first key and the second key are inconsistent, the corresponding response result is a response message indicating that the key is invalid, and it is determined that there is currently no permission to perform key learning and anti-theft matching.

4. The vehicle anti-theft matching method according to claim 3, characterized in that, If the comparison result shows that the first key and the second key are consistent, the method further includes: The electronic control unit is unlocked using the first key so that the diagnostic device can perform key learning and anti-theft matching.

5. A vehicle anti-theft matching device, characterized in that, Used in diagnostic equipment, including: The information acquisition module is used to calculate the vehicle identification code using the target algorithm to obtain the target mask corresponding to the security authentication algorithm, and to obtain the seed value sent by the electronic control unit. The key acquisition module is used to calculate a first key using the security authentication algorithm on the target mask and the seed value, and send the first key to the electronic control unit; The permission judgment module is used to obtain the response result returned by the electronic control unit after comparing the local second key with the first key, and determine whether it has permission to perform key learning and anti-theft matching based on the response result. The information acquisition module specifically includes: The request sending unit is used to send a seed acquisition request to the electronic control unit; A seed value acquisition unit is used to acquire the seed value returned by the electronic control unit after responding to the seed acquisition request; Following the request sending unit, the system further includes: The request response unit is configured to respond to the seed acquisition request through the electronic control unit and return a data packet carrying the seed value to the diagnostic device. The second key generation unit is used to calculate the second key by using the security authentication algorithm on the seed value and the local mask; The vehicle anti-theft matching device also includes: The initial matching unit is used to, if the current is the first time to perform vehicle anti-theft matching, use the local mask stored in the electronic control unit as the preset initial mask, and the first key and the second key are keys calculated by the security authentication algorithm using the seed value and the initial mask; The mask update unit is used to perform key learning and anti-theft matching after obtaining the comparison result used to indicate that the first key and the second key are consistent, and write the target mask corresponding to the security authentication algorithm obtained by calculating the vehicle identification code using the target algorithm into the electronic control unit so as to update the local mask using the target mask to obtain the updated local mask.

6. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the vehicle anti-theft matching method as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, Used to store a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the vehicle anti-theft matching method as described in any one of claims 1 to 4.