Anti-counterfeiting detection method, system and server for vehicle electronic parts

By using anti-counterfeiting key encryption technology and cloud technology on the server to perform anti-counterfeiting inspection of vehicle electronic components, the problems of high cost, complex operation and low efficiency in the existing technology are solved, and efficient and safe detection results are achieved.

CN115564463BActive Publication Date: 2024-12-10BYD CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110739708.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2024-12-10
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

The anti-counterfeiting detection technology of existing vehicle electronic parts is high cost, complex operation, low efficiency, and low safety, which is easy to be cracked, resulting in the accuracy and reliability of the detection results being unable to be guaranteed.

Method used

Use servers to interact with anti-counterfeiting key encryption technology and cloud technology, and use software to perform anti-counterfeiting detection of electronic components without dismantling the vehicle or third-party detection agencies to intervene. Use anti-counterfeiting key encryption technology and cloud technology to interact to ensure detection The inimitable and safe process.

Benefits of technology

It realizes fast, accurate and reliable anti-counterfeiting inspection of vehicle electronic components, reduces inspection costs, simplifies operation processes, improves inspection efficiency and safety, and ensures the accuracy and reliability of inspection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115564463B_ABST
    Figure CN115564463B_ABST
Patent Text Reader

Abstract

The present invention discloses an anti-counterfeiting detection method and system for electronic components of a vehicle, and a server. The method can be used for a server, and the method includes: receiving an anti-counterfeiting detection instruction, wherein the anti-counterfeiting detection instruction includes the serial number of the electronic component to be tested; obtaining a first random number and a first ciphertext sent by the electronic component to be tested, wherein the first ciphertext is generated by the electronic component to be tested according to the first random number encryption; obtaining a second ciphertext according to the serial number and the first random number; if the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has not passed. The present invention can be applied to the server of the vehicle main engine factory, without adding additional detection equipment, with low cost and easy to implement, and can simply, conveniently and quickly perform anti-counterfeiting detection on the electronic components of the vehicle, with high detection efficiency, and the anti-counterfeiting detection process is highly secure and not easy to crack, so that the detection result is highly accurate and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to an anti-counterfeiting detection method and system for vehicle electronic components, and a server. Background Art

[0002] The electronic components of a vehicle are an important factor affecting driving safety. Therefore, in order to ensure driving safety, it is necessary to conduct anti-counterfeiting inspections on the electronic components of the vehicle. Through anti-counterfeiting inspections, it can be determined whether the electronic components are original to the vehicle or non-original, such as counterfeit or refurbished electronic components. It is understandable that the original electronic components of the vehicle are more compatible with the vehicle, and their stability and reliability are generally better than non-original electronic components, and the failure rate is generally lower than non-original electronic components, which can better ensure the safety of the vehicle.

[0003] At present, most of the related technologies for anti-counterfeiting detection of electronic components require the use of additional detection equipment, and the detection equipment needs to be equipped with anti-counterfeiting chips. The technical cost of the chip is relatively high, which leads to high detection costs. In addition, the current anti-counterfeiting detection requires the disassembly of the entire vehicle to perform anti-counterfeiting detection on individual electronic components, and requires the intervention of a third-party detection agency to assist in anti-counterfeiting detection. Therefore, the operation is complicated, difficult to implement, and the detection efficiency is low. In addition, the current anti-counterfeiting detection method is mainly to perform anti-counterfeiting verification by identifying QR codes or barcodes, and QR codes or barcodes have been forged or imitated and are easily cracked, resulting in low security in the anti-counterfeiting detection process, making the accuracy and reliability of the detection results impossible to guarantee. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art.

[0005] To this end, an object of the present invention is to propose an anti-counterfeiting detection method for vehicle electronic components. The anti-counterfeiting detection method for vehicle electronic components can be applied to the server of the vehicle main engine factory, without adding additional detection equipment, with low cost and easy to implement. It can simply, conveniently and quickly perform anti-counterfeiting detection on the electronic components of the vehicle, with high detection efficiency, and adopts anti-counterfeiting key encryption technology, so that the anti-counterfeiting detection process is highly secure and not easy to crack, and the detection results are highly accurate and reliable.

[0006] To this end, a second objective of the present invention is to provide a server.

[0007] Therefore, a third object of the present invention is to provide an anti-counterfeiting detection system for vehicle electronic components.

[0008] To this end, a fourth objective of the present invention is to provide an electronic device.

[0009] To this end, a fifth object of the present invention is to provide a computer-readable storage medium.

[0010] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention discloses an anti-counterfeiting detection method for vehicle electronic components, which is used in a server, and the method comprises the following steps: receiving an anti-counterfeiting detection instruction, wherein the anti-counterfeiting detection instruction includes the serial number of the electronic component to be tested; obtaining a first random number and a first ciphertext sent by the electronic component to be tested, wherein the first ciphertext is generated by the electronic component to be tested by encrypting the first random number; obtaining a second ciphertext according to the serial number and the first random number; if the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has failed.

[0011] According to the anti-counterfeiting detection method of vehicle electronic parts of the embodiment of the present invention, it can be used in the server of the vehicle main engine factory. The server receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic parts to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has not passed. Therefore, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic parts through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic parts of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0012] To achieve the above-mentioned purpose, the second aspect of the embodiment of the present invention discloses a server, including: a receiving module, used to receive an anti-counterfeiting detection instruction, the anti-counterfeiting detection instruction includes the serial number of the electronic component to be tested; an acquisition module, used to obtain a first random number and a first ciphertext sent by the electronic component to be tested, wherein the first ciphertext is generated by the electronic component to be tested based on encryption of the first random number; a processing module, used to obtain a second ciphertext based on the serial number and the first random number; a detection module, used to determine that the anti-counterfeiting detection of the electronic component to be tested has passed when it is determined that the first ciphertext and the second ciphertext are consistent, otherwise, determine that the anti-counterfeiting detection of the electronic component to be tested has failed.

[0013] According to the server of the embodiment of the present invention, the anti-counterfeiting detection instruction is received, the first random number and the first ciphertext sent by the electronic component to be tested are obtained, and the second ciphertext is obtained according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has not passed. Therefore, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic components through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic components of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0014] To achieve the above-mentioned purpose, a third aspect of the present invention discloses an anti-counterfeiting detection system for vehicle electronic components, including the server described in the second aspect of the present invention.

[0015] According to the anti-counterfeiting detection system of vehicle electronic parts of the embodiment of the present invention, the server receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic parts to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has not passed. Therefore, the server of the system adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server of the system performs anti-counterfeiting detection on the electronic parts through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic parts of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0016] To achieve the above-mentioned objectives, the fourth aspect of the present invention discloses an electronic device, comprising: a processor, a memory, and an anti-counterfeiting detection program for vehicle electronic components stored in the memory and executable on the processor, wherein the anti-counterfeiting detection program for vehicle electronic components, when executed by the processor, implements the anti-counterfeiting detection method for vehicle electronic components as described in the first aspect of the present invention.

[0017] According to the electronic device of the embodiment of the present invention, the server receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic component to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has not passed. Therefore, by adopting the anti-counterfeiting key encryption technology and cloud technology computing interaction, the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the electronic components are tested through software. The operation is simple, easy to implement, time-saving and labor-saving, and the detection efficiency is high, so that the electronic components of the vehicle can be simply, conveniently, quickly, and efficiently accurately and reliably anti-counterfeited; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0018] To achieve the above-mentioned objectives, the fifth aspect of the present invention discloses a computer-readable storage medium, on which is stored an anti-counterfeiting detection program for vehicle electronic components. When the anti-counterfeiting detection program for vehicle electronic components is executed by a processor, the anti-counterfeiting detection method for vehicle electronic components as described in the first aspect of the present invention is implemented.

[0019] According to the computer-readable storage medium of the embodiment of the present invention, when the anti-counterfeiting detection program of the electronic parts of the vehicle stored thereon is executed by the processor, the anti-counterfeiting detection instruction can be received through the server, the first random number and the first ciphertext sent by the electronic parts to be tested are obtained, and the second ciphertext is obtained according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has not passed. Therefore, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic parts through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic parts of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0020] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0022] Figure 1 is a flow chart of an anti-counterfeiting detection method for vehicle electronic components according to an embodiment of the present invention;

[0023] Figure 2 is a flow chart of an anti-counterfeiting detection method for vehicle electronic components according to a specific embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a process of generating a key and writing it into an electronic component to be tested according to an embodiment of the present invention;

[0025] Figure 4 It is a schematic diagram of the method and process of issuing anti-counterfeiting detection instructions according to a specific embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of an interface for sending an anti-counterfeiting detection instruction by a preset terminal according to a specific embodiment of the present invention;

[0027] Figure 6 is a schematic diagram of a process of unbinding an electronic component to be tested from a vehicle frame number according to a specific embodiment of the present invention;

[0028] Figure 7 is a schematic diagram of the structure of a server according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.

[0030] Reference below Figure 1-Figure 7 The anti-counterfeiting detection method, system and server of vehicle electronic components according to the embodiments of the present invention are described.

[0031] Figure 1 The flowchart of the anti-counterfeiting detection method of vehicle electronic parts according to one embodiment of the present invention. The anti-counterfeiting detection method of vehicle electronic parts can be applied to a server, such as a server of a vehicle main engine factory, and the server can adopt anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process of the vehicle's electronic parts is unforgeable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable. The server performs anti-counterfeiting detection on electronic parts through software, which is simple to operate, making the anti-counterfeiting detection process easy to implement, saving time and effort, and having high detection efficiency.

[0032] like Figure 1As shown, the anti-counterfeiting detection method for vehicle electronic parts includes the following steps:

[0033] Step S1: receiving an anti-counterfeiting detection instruction, wherein the anti-counterfeiting detection instruction includes the serial number of the electronic component to be tested.

[0034] Specifically, the electronic component to be tested is the ECU (Electronic Control Unit) component of the vehicle, and the serial number (Serial Number, SN) of the electronic component to be tested is the ECU serial number, which corresponds to the electronic component to be tested one by one and is used to characterize the identity information of the electronic component to be tested. That is, each electronic component on the vehicle has a serial number SN corresponding to it one by one, which is used to uniquely identify the identity of the electronic component. By identifying the serial number SN, the corresponding electronic component ECU can be uniquely determined.

[0035] In a specific embodiment, the electronic components of the vehicle include, but are not limited to, the vehicle's multimedia power supply, steering wheel angle sensor, panoramic MCU (Microcontroller Unit), gateway controller, left blind spot monitoring unit, right blind spot monitoring unit, hydraulic brake unit, body stability system, functional video controller, battery management controller, etc.

[0036] In an embodiment of the present invention, the serial number SN of each electronic component can be written into its corresponding EEPROM (Electrically Erasable Programmable read only memory), for example, recorded as ECU_EEPROM memory. Since the EEPROM memory has the characteristic of being unmodifiable after storing data, it can effectively prevent the serial number SN of the electronic component from being tampered with, thereby improving data security. Among them, the SN of each electronic component is set by the vehicle host manufacturer when leaving the factory, and the data length of the SN is also set by the host manufacturer, for example, but not limited to 19 bytes.

[0037] After the electronic components are software-filled, the car factory's production line host system writes the SN of the electronic components into the corresponding ECU_EEPROM storage through CAN (Controller Area Network) diagnosis or component incision, so that the SN of the electronic components can be used to apply for the anti-counterfeiting key with a unique corresponding relationship. After receiving the anti-counterfeiting detection request, the electronic components transmit their corresponding SN to the production line host system, and the production line host system requests the anti-counterfeiting key corresponding to the electronic components for anti-counterfeiting detection through the pre-set URL (Uniform Resource Locator) interface address and protocol through the POST interactive method.

[0038] Step S2: obtaining a first random number and a first ciphertext sent by the electronic component to be tested, wherein the first ciphertext is generated by encrypting the electronic component to be tested according to the first random number.

[0039] Specifically, when the electronic component to be tested is subjected to anti-counterfeiting detection, the electronic component to be tested will send a random number, namely, a first random number, to the server. The first random number is randomly generated by the electronic component to be tested. The electronic component to be tested will encrypt the first random number based on a preset encryption algorithm using its unique corresponding anti-counterfeiting key to obtain a first ciphertext, and then send the first ciphertext to the server so that the server will use the first ciphertext for subsequent anti-counterfeiting detection and verification processes.

[0040] In a specific embodiment, when performing anti-counterfeiting detection, the electronic component to be tested can generate any 4-byte random number, i.e., the first random number, fill the first random number with 16 bytes of data, record it as the first data, use the anti-counterfeiting key unique to the electronic component to be tested as the encryption factor, use the AES (Encryption Standard, Advanced Encryption Standard) asymmetric algorithm, such as the AES128 algorithm, to encrypt the first data to obtain 16 bytes of second data, and cut the second data into 4 bytes of third data, i.e., the first ciphertext, and send the first random number and the first ciphertext to the server. It should be noted that the length of the first random number is not limited to 4 bytes, and other numbers of bytes can also be used. The length of the first random number can be flexibly set according to actual needs. The above is only an exemplary description of the present invention.

[0041] Step S3: Obtain a second ciphertext according to the sequence number and the first random number.

[0042] Specifically, the server uses the same encryption algorithm, such as AES128 algorithm, to encrypt the first random number based on the received SN of the component to be tested and the first random number to obtain a second ciphertext, so as to subsequently compare the first ciphertext with the second ciphertext to perform anti-counterfeiting detection on the electronic component to be tested.

[0043] Step S4: If the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting test of the electronic component to be tested has passed; otherwise, it is determined that the anti-counterfeiting test of the electronic component to be tested has failed.

[0044] Specifically, the first ciphertext and the second ciphertext are compared. If the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting test of the electronic component to be tested has passed, and the electronic component to be tested is an original part; if the first ciphertext and the second ciphertext are inconsistent, it is determined that the anti-counterfeiting test of the electronic component to be tested has failed, and the electronic component to be tested is a non-original part, such as a counterfeit, refurbished part or second-hand part.

[0045] Therefore, the above-mentioned anti-counterfeiting detection method for electronic components of a vehicle can be used for the server of the vehicle main engine factory. The server receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic component to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has not passed. Therefore, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic components through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic components of the vehicle can be simply, conveniently, quickly, and efficiently accurately and reliably anti-counterfeited; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0046] In one embodiment of the present invention, in step S3, the process of obtaining the second ciphertext according to the serial number and the first random number includes: obtaining an anti-counterfeiting key uniquely corresponding to the electronic component to be tested according to the serial number; and encrypting the first random number according to the anti-counterfeiting key to obtain the second ciphertext.

[0047] It is understandable that the serial number of each electronic component and its unique corresponding anti-counterfeiting key have been pre-stored in the server. After receiving the serial number SN of the electronic component to be tested, the server can query the anti-counterfeiting key that uniquely corresponds to the SN of the electronic component based on the SN. Therefore, after receiving the anti-counterfeiting detection instruction, after identifying the SN of the electronic component to be tested, the corresponding anti-counterfeiting key is queried based on the SN, and the anti-counterfeiting key is used as an encryption factor to perform an encryption operation on the first random number sent by the electronic component to be tested. Specifically, the same encryption algorithm as the electronic component to be tested is used, that is, the AES asymmetric algorithm, specifically the AES128 algorithm is used to perform an encryption operation on the first random number to obtain a second ciphertext with the same length as the first ciphertext data, such as 4 bytes. Then, the first ciphertext and the second ciphertext are compared to determine the authenticity of the electronic component to be tested, and the corresponding anti-counterfeiting detection result is output.

[0048] For ease of understanding, combined Figure 2 As shown, a detailed anti-counterfeiting detection process of the components to be tested is described with a specific embodiment.

[0049] exist Figure 2In the illustrated embodiment, the user first logs in to the server through a preset terminal, such as a user's mobile phone, a vehicle-mounted terminal, or a detection device of the OEM, to obtain a token; the server verifies whether the vehicle frame number, also known as the vehicle identification number (VIN), is legal, for example, whether it is produced by a recognized vehicle manufacturer. If the verification is successful, a token is generated for authentication of subsequent interfaces, and the frame number and the current corresponding time are recorded. After the preset terminal receives the token and status code fed back by the server, the login is successful. The preset terminal applies to the server for the ECU list, and the server feeds back the status code and ECU list to the preset terminal, and records the relevant data sent and the corresponding time. When it is necessary to perform anti-counterfeiting verification on the ECU to be tested, the user sends the corresponding anti-counterfeiting detection instruction through the preset terminal, which includes the serial number SN of the ECU to be tested, to request anti-counterfeiting detection on the ECU to be tested; after receiving the anti-counterfeiting detection instruction, the ECU to be tested automatically generates an arbitrary 4-byte random number a, that is, a first random number, and fills the first random number a with 16-byte data to obtain data a', and then uses the anti-counterfeiting key uniquely corresponding to the ECU to be tested as an encryption factor, and encrypts the data a' through the AES128 encryption algorithm to obtain a 16-byte data, which is cropped to obtain a 4-byte ciphertext b, that is, the first ciphertext. The ECU to be tested transmits the SN, the first random number a, and the first ciphertext b to the preset terminal through the CAN diagnostic interaction method. The preset terminal sends the above data to the server through the URL interface. After receiving the data, the server first verifies whether the SN has a corresponding relationship with the vehicle frame number VIN. If not, the server feedbacks the result that the SN has not been verified to the preset terminal. If so, the server obtains the corresponding anti-counterfeiting key according to the SN, uses the anti-counterfeiting key as the encryption factor, and encrypts the first random number a through the same encryption algorithm, that is, the AES128 encryption algorithm, to obtain the second ciphertext b', and compares the second ciphertext b' with the first ciphertext b uploaded by the ECU to be tested. If the comparison results are consistent, it is determined to be an original product, that is, the anti-counterfeiting authentication of the ECU to be tested is passed; if the comparison results are inconsistent, it is determined that it is not an original product, that is, the anti-counterfeiting authentication of the ECU to be tested is failed.

[0050] In one embodiment of the present invention, before obtaining the anti-counterfeiting key corresponding to the electronic component to be tested according to the serial number, the method further includes: generating the anti-counterfeiting key according to the serial number, and writing the anti-counterfeiting key into the electronic component to be tested.

[0051] Specifically, the anti-counterfeiting key of the electronic component to be tested is pre-generated by the server according to its serial number and written into the electronic component to be tested. In other words, each electronic component sends its corresponding serial number to the server, and the server generates an anti-counterfeiting key uniquely corresponding to the serial number according to the serial number of each electronic component, and writes the anti-counterfeiting key into the corresponding electronic component. Thus, each electronic component pre-stores its serial number and the anti-counterfeiting key uniquely corresponding to the serial number.

[0052] In a specific embodiment, for example, when each electronic component ECU is produced, the server will generate a unique anti-counterfeiting key based on the serial number of the ECU and write it into the ECU so that the anti-counterfeiting key can be used to perform anti-counterfeiting detection on the ECU later.

[0053] In one embodiment of the present invention, a process of generating an anti-counterfeiting key based on a serial number includes: obtaining the length of the serial number, and calculating a message digest algorithm value, such as an MD5 (Message-Digest Algorithm) value, based on the length; encrypting a first byte group randomly obtained from the message digest algorithm value to obtain a third ciphertext, wherein the first byte group includes N randomly obtained bytes, wherein N is an integer greater than 1; adding 1 to each of the N bytes in the first byte group and then inverting the result to obtain a second byte group, wherein the second byte group includes N new bytes, and encrypting the second byte group to obtain a fourth ciphertext; merging the first ciphertext and the second ciphertext to obtain a first array; and extracting odd-numbered bytes in the first array to generate an anti-counterfeiting key.

[0054] As a specific example, Figure 3As shown, N=8 is set, and the process of the server generating an anti-counterfeiting key according to the serial number is exemplarily summarized as follows: the server calculates the MD5 value according to the serial number length of the ECU to be tested, and randomly takes the first byte group in the MD5 value, the first byte group includes 8 bytes, and uses the asymmetric encryption algorithm in the AES advanced encryption algorithm to encrypt the 8 bytes in the first byte group to obtain a 128-bit ciphertext, namely the third ciphertext; then the 8 bytes randomly taken out are added by 1 and then inverted to obtain a new group of data, namely the second byte group, the second byte group also includes 8 bytes, and the same encryption algorithm, namely the asymmetric encryption algorithm in the AES advanced encryption algorithm, is used to encrypt the 8 bytes in the second byte group to obtain another 128-bit ciphertext, namely the fourth ciphertext; the third ciphertext and the fourth ciphertext are combined, specifically: the third ciphertext is in front and the fourth ciphertext is in the back, thereby forming a 32-byte array, namely the first array, which includes 256 bits of data, and then the odd bytes in the first array are taken to form 128 bits of data, which is the anti-counterfeiting key of the electronic component to be tested. After generating the anti-counterfeiting key, the server records and stores the anti-counterfeiting key. Thus, the server can generate an anti-counterfeiting key uniquely corresponding to each component to be tested based on its serial number, and store the serial number of each electronic component and its uniquely corresponding anti-counterfeiting key for subsequent anti-counterfeiting detection of the electronic component.

[0055] It should be noted that in the embodiment of the present invention, the data length of the anti-counterfeiting key generated by the server can be flexibly configured according to actual needs, such as setting the data length of the generated anti-counterfeiting key to 8 bytes, 16 bytes or 32 bytes, etc. The longer the data length of the anti-counterfeiting key, the more difficult it is to crack, and the higher the security of the anti-counterfeiting detection, which in turn makes the accuracy and reliability of the detection result higher.

[0056] Furthermore, after the anti-counterfeiting key of the electronic component to be tested is generated, the server transmits the generated anti-counterfeiting key to the production line host computer that produces the component to be tested through the URL interface address. After receiving the anti-counterfeiting key, the production line host computer determines the integrity of the anti-counterfeiting key and writes it into the storage of the corresponding electronic component to be tested through the incision, thereby realizing the writing of the anti-counterfeiting key. It should be noted that the anti-counterfeiting key written into the electronic component to be tested is unreadable and cannot be modified, so it is very safe. Further, after the anti-counterfeiting key is written, the production line host computer performs a random test once. After the test is successful, the upload server writes the success status and takes the product offline. Further, the server records the electronic component corresponding to the serial number of the uploaded test success as a qualified product.

[0057] In one embodiment of the present invention, the anti-counterfeiting detection instruction is generated and sent by a preset terminal, and the preset terminal at least includes: at least one of an authorized mobile terminal, a vehicle-mounted terminal and a detection device of a vehicle main engine manufacturer.

[0058] In a specific embodiment, the authorized mobile terminal is, for example, the car owner's mobile phone, tablet computer or smart wearable device. The car owner can send anti-counterfeiting detection instructions to the server through his mobile terminal, and the mobile terminal is easy to carry, so that the car owner can perform anti-counterfeiting detection on electronic components anytime and anywhere.

[0059] The vehicle owner terminal is the vehicle-mounted terminal of the vehicle to be inspected, such as a vehicle-mounted computer or a vehicle-mounted multimedia system. Users, such as vehicle owners or other inspectors, can send anti-counterfeiting detection instructions to the server by operating the vehicle-mounted terminal. Moreover, since the vehicle-mounted terminal is placed inside the vehicle, it is convenient for users to operate, thereby facilitating users to perform anti-counterfeiting detection on electronic components simply and quickly, thereby facilitating users, such as vehicle owners or other inspectors, to perform anti-counterfeiting detection on vehicles at any time.

[0060] The detection equipment of the vehicle main manufacturer is the equipment used to perform anti-counterfeiting detection on the electronic parts of the vehicle. The staff of the vehicle main manufacturer can send anti-counterfeiting detection instructions to the server by operating the detection equipment, thereby facilitating the vehicle main manufacturer to perform anti-counterfeiting detection on the vehicle.

[0061] Therefore, the embodiment of the present invention can provide multiple anti-counterfeiting detection methods, and can issue anti-counterfeiting detection instructions through multiple terminal methods, so as to meet the needs of different types of users, and also improve the reliability of anti-counterfeiting detection. For example, the car owner, other inspection personnel or vehicle host manufacturer can conduct anti-counterfeiting detection and monitoring of the vehicle's electronic components ECU anytime and anywhere, and timely grasp the safety of the vehicle, which provides great convenience for users to protect their rights and fight against counterfeiting.

[0062] In a specific embodiment, in combination Figure 4 As shown, there are three ways to issue anti-counterfeiting detection instructions:

[0063] A. Anti-counterfeiting detection instructions are issued through the detection equipment of the vehicle main manufacturer, wherein the detection equipment can be configured as the server itself, that is, the vehicle main manufacturer can generate anti-counterfeiting detection instructions through the server itself, thereby realizing anti-counterfeiting detection of the electronic components to be tested. For example, an anti-counterfeiting detection front-end webpage is developed in the server, and the webpage is designed with a user name login entrance, an anti-counterfeiting detection frame number input, and the option of vehicle ECU detection or custom ECU detection, query of detection results and other interfaces. Vehicle main manufacturer staff can apply for an account to conduct after-sales service or test the anti-counterfeiting detection of the vehicle. Furthermore, after the server generates the anti-counterfeiting detection instruction, it can send the anti-counterfeiting detection instruction to the vehicle's on-board terminal through the HTTP (HyperTextTransferProtocol, hypertext transfer) protocol. The on-board terminal sends the serial number and other data of the electronic components to be tested to the server through the HTTP protocol according to the anti-counterfeiting detection instruction, so that the server can perform anti-counterfeiting detection.

[0064] B. Send anti-counterfeiting detection instructions through the vehicle terminal, where the vehicle terminal can be configured as a vehicle computer or a vehicle multimedia system, and the vehicle computer or vehicle multimedia system is provided with a switch or button for sending anti-counterfeiting detection instructions. The user can trigger the switch or button to send the anti-counterfeiting detection instruction to the server, so that the server can perform anti-counterfeiting detection on the electronic components to be tested after receiving the anti-counterfeiting detection instruction. For example, in scenarios such as when the owner picks up a new car, goes to a 4S store to see the car, or confirms the vehicle condition after vehicle maintenance, the user can easily send the anti-counterfeiting detection instruction at any time by operating the corresponding switch or button on the vehicle terminal, so as to confirm the authenticity of the electronic components to be tested.

[0065] C. Sending anti-counterfeiting detection instructions through a mobile terminal, wherein the mobile terminal can be a mobile phone or a tablet computer, etc. An anti-counterfeiting detection interface can be developed on the mobile terminal, and the anti-counterfeiting detection interface has an option to send anti-counterfeiting detection instructions. When it is necessary to perform anti-counterfeiting detection on the electronic components to be tested, the user operates the mobile terminal to enter the anti-counterfeiting detection interface, and can click on the option to send the anti-counterfeiting detection instruction to the server, so that the server can perform anti-counterfeiting detection on the electronic components to be tested, thereby realizing anti-counterfeiting detection of the electronic components to be tested anytime and anywhere.

[0066] In one embodiment of the present invention, the anti-counterfeiting detection method for vehicle electronic components further includes: after the anti-counterfeiting detection of the electronic components to be tested is completed, sending corresponding anti-counterfeiting detection result information to a preset terminal so that the preset terminal displays the anti-counterfeiting detection result information.

[0067] Specifically, after the anti-counterfeiting test of the electronic components to be tested is completed, the server obtains the corresponding anti-counterfeiting test result information and sends the anti-counterfeiting test result information to one or more of the preset terminals, such as the authorized mobile terminal, the vehicle terminal and the vehicle OEM's test equipment, so that the preset terminal displays the anti-counterfeiting test result information, such as displaying the information that the anti-counterfeiting test failed or passed. Thus, the visualization of the anti-counterfeiting test results is realized, which is convenient for users to view the anti-counterfeiting test results of relevant electronic components in a timely manner.

[0068] In a specific embodiment, in combination Figure 4As shown, the server can send anti-counterfeiting detection result information to the detection equipment of the vehicle main factory, such as the server itself. After receiving the anti-counterfeiting detection information, the detection equipment displays the corresponding anti-counterfeiting detection result information on its display interface, such as the information that a certain electronic component to be tested has failed or passed the anti-counterfeiting detection, so as to facilitate the relevant personnel of the vehicle main factory to view. On the other hand, the server can also send anti-counterfeiting detection result information to a vehicle terminal, such as a vehicle computer or a vehicle multimedia system. After receiving the anti-counterfeiting detection information, the vehicle computer or the vehicle multimedia system displays the corresponding anti-counterfeiting detection result information on its display interface, such as the information that a certain electronic component to be tested has failed or passed the anti-counterfeiting detection, so as to facilitate users, such as car owners or other inspection personnel to view.

[0069] On the other hand, the server can also send anti-counterfeiting detection result information to a mobile terminal, such as a mobile phone or tablet computer of the car owner. After receiving the anti-counterfeiting detection information, the mobile phone or tablet computer displays the corresponding anti-counterfeiting detection result information on its display interface, such as whether a certain electronic component to be tested has failed or passed the anti-counterfeiting detection, so that the car owner can view it conveniently. Alternatively, the server can also push the anti-counterfeiting detection result information to the mobile terminal in the form of a text message, so that the user can view it in time.

[0070] In one embodiment of the present invention, before receiving the anti-counterfeiting detection instruction, the anti-counterfeiting detection method for electronic components of a vehicle further includes: receiving the frame number corresponding to the vehicle and multiple serial numbers corresponding to all the electronic components of the vehicle; binding the multiple serial numbers to the frame number in a one-to-one correspondence. Specifically, the serial numbers corresponding to all the electronic components of the vehicle are bound to the frame number of the vehicle in advance, so that the serial number of each electronic component has a one-to-one correspondence with the frame number of the vehicle in which it is located, thereby making it easy to identify whether the electronic component to be tested belongs to the vehicle. Therefore, when electronic components that do not belong to the vehicle, such as second-hand parts or anti-counterfeiting parts, are installed in the vehicle, since they have no one-to-one correspondence with the vehicle, the anti-counterfeiting detection will fail, thereby identifying the electronic component as a non-original part, thereby avoiding the situation where the electronic component is disassembled and installed on other vehicles for continued use, thereby improving the reliability and safety of anti-counterfeiting detection.

[0071] In a specific embodiment, after the main engine factory's final assembly line loads the vehicle, when the new vehicle is powered on for the first time, the production line server sends the serial numbers of all the electronic components of the vehicle and the frame number of the vehicle to the server. The server binds each serial number with the frame number in a one-to-one correspondence, thereby pre-establishing a one-to-one correspondence between all the electronic components of the vehicle and the vehicle, which facilitates the subsequent identification of whether the electronic components to be tested belong to the vehicle.

[0072] In one embodiment of the present invention, the anti-counterfeiting detection instruction also includes a frame number. Before obtaining the first random number and the first ciphertext sent by the electronic component to be tested, it also includes: determining whether the frame number corresponds to the serial number of the electronic component to be tested; if so, obtaining the first random number and the first ciphertext sent by the electronic component to be tested; otherwise, outputting anti-counterfeiting detection failure information.

[0073] Specifically, combined Figure 2 As shown, before performing the anti-counterfeiting detection, it is first determined whether the serial number of the electronic component to be tested and the frame number have a one-to-one corresponding binding relationship, that is, it is determined whether the electronic component has been bound to the vehicle, that is, it is determined whether the electronic component belongs to the vehicle. If so, the anti-counterfeiting detection process continues, such as obtaining the first random number and the first ciphertext sent by the electronic component to be tested; otherwise, it is determined that the serial number of the electronic component to be tested and the frame number do not have a one-to-one corresponding binding relationship, it is considered that the electronic component is not bound to the vehicle, that is, the electronic component does not belong to the vehicle, then the anti-counterfeiting detection cannot be performed, and the anti-counterfeiting detection failure information is output.

[0074] In one embodiment of the present invention, after receiving the anti-counterfeiting detection instruction, it also includes: determining the type of the anti-counterfeiting detection instruction; if the anti-counterfeiting detection instruction is the first type of anti-counterfeiting detection instruction, all electronic components of the vehicle are used as the electronic components to be tested, so that anti-counterfeiting detection of all electronic components of the whole vehicle can be achieved, thereby achieving one-click anti-counterfeiting detection of the whole vehicle. If the anti-counterfeiting detection instruction is the second type of anti-counterfeiting detection instruction, the pre-selected target electronic components contained in the second type of anti-counterfeiting detection instruction are used as the electronic components to be tested, so that selective anti-counterfeiting detection can be achieved, that is, the user customizes the input of the electronic components to be tested, and only the electronic components selected by the user are tested for anti-counterfeiting detection, and there is no need to detect other electronic components, thereby reducing the waiting time for anti-counterfeiting detection and improving the detection efficiency.

[0075] In a specific embodiment, in combination Figure 5 As shown, an exemplary interface diagram for issuing different types of anti-counterfeiting detection instructions is shown. The interface can be configured on a mobile terminal (such as a mobile phone) or a vehicle terminal (such as a vehicle computer) or a vehicle OEM's detection equipment (such as a server's web page).

[0076] When the user needs to perform anti-counterfeiting detection on all electronic components of the vehicle, the user can select the option of detecting the vehicle ECU on the interface, thereby generating a first type of anti-counterfeiting detection instruction. After receiving the first type of anti-counterfeiting detection instruction, the server will treat all electronic components of the vehicle as electronic components to be tested, that is, perform anti-counterfeiting detection on all electronic components of the vehicle, thereby realizing the one-click anti-counterfeiting detection function of the vehicle. Furthermore, after the anti-counterfeiting detection is completed, the corresponding anti-counterfeiting detection result information is sent to the mobile terminal or the vehicle-mounted terminal or the vehicle OEM's detection equipment, so that the mobile terminal or the vehicle-mounted terminal or the vehicle OEM's detection equipment can display the anti-counterfeiting detection result information corresponding to all electronic components of the vehicle. For example Figure 5 In the example shown in , the displayed anti-counterfeiting test result information includes: the multimedia module is an original product, that is, the anti-counterfeiting test passed; the panoramic ECU is a non-original product, that is, the anti-counterfeiting test failed; the steering wheel switch is an original product, but the record found that it has a binding record, it is a refurbished part or a second-hand part, that is, the anti-counterfeiting test failed. Thus, the anti-counterfeiting test result prompt function is realized, and users can clearly and conveniently check which electronic components are original and which are non-original, which greatly facilitates user use.

[0077] Continue to combine Figure 5As shown, when the user only needs to perform anti-counterfeiting detection on some electronic components, if the anti-counterfeiting detection is performed on all electronic components of the vehicle, the detection time is too long, and the user needs to wait for a long time, which affects the user experience. In an embodiment of the present invention, the user can trigger the option of selecting the ECU module to be detected on the interface, and select the part of the electronic components to be detected in the corresponding submenu. If the user only wants to perform anti-counterfeiting detection on the panoramic ECU, multimedia power supply and gateway controller, the user triggers the option of selecting the ECU module to be detected on the interface, and selects the panoramic ECU, multimedia power supply and gateway controller in the corresponding submenu, thereby generating a second type of anti-counterfeiting detection instruction. At this time, the second type of anti-counterfeiting detection instruction contains the serial numbers corresponding to the panoramic ECU, multimedia power supply and gateway controller. After the server receives the second type of anti-counterfeiting detection instruction, it performs anti-counterfeiting detection on the panoramic ECU, multimedia power supply and gateway controller accordingly, thereby realizing the user-defined ECU anti-counterfeiting detection function, that is, only the ECU that the user needs to detect is subjected to anti-counterfeiting detection, without the need to perform anti-counterfeiting detection on other ECUs, thereby greatly saving the waiting time for anti-counterfeiting detection, while improving the detection efficiency and enhancing the user experience. Furthermore, after the anti-counterfeiting detection is completed, the corresponding anti-counterfeiting detection result information, such as the anti-counterfeiting detection result information corresponding to the panoramic ECU, the anti-counterfeiting detection result information corresponding to the multimedia power supply and the anti-counterfeiting detection result information corresponding to the gateway controller, is sent to the mobile terminal or the vehicle-mounted terminal or the detection equipment of the vehicle host manufacturer, so that the mobile terminal or the vehicle-mounted terminal or the detection equipment of the vehicle host manufacturer can display the anti-counterfeiting detection result information corresponding to the panoramic ECU, the multimedia power supply and the gateway controller respectively.

[0078] In one embodiment of the present invention, after binding multiple serial numbers with frame numbers in a one-to-one correspondence, the anti-counterfeiting detection method for vehicle electronic components also includes: receiving an unbinding instruction, the unbinding instruction including the serial number of the electronic component to be unbound and the identity information of the unbinding person; verifying the identity information of the unbinding person, for example, determining whether the unbinding person is the vehicle owner or other authorized person; if the verification is successful, unbinding the serial number of the electronic component to be unbound from the frame number, and generating a corresponding unbinding log to record the unbinding process and the corresponding unbinding information; if the verification fails, the serial number of the electronic component to be unbound from the frame number is not unbound, and a preset prompt message is pushed to the user terminal to inform the user that someone is illegally unbinding the vehicle, reminding the user to change the password in time, etc., so as to facilitate the user to respond in time, thereby improving vehicle safety.

[0079] In a specific embodiment, when a user needs to repair or replace an electronic component, the user needs to first contact the binding between the electronic component and the vehicle. Figure 6As shown, the unbinding process is summarized as follows: the user logs in to the account, connects to the server, enters the ECU unbinding application entrance, and sends an unbinding instruction to the server for unbinding the one-to-one correspondence between the ECU and the vehicle, which includes the serial number of the electronic component to be unbound and the identity information of the unbinding person, and further, may also include the reason or reason for applying for unbinding; after the server receives the unbinding instruction, it authenticates the Jiabang person according to the identity information of the unbinding person to determine whether the unbinding person is the owner or other authorized person, and the specific verification method includes, for example, but is not limited to: verifying the unbinding password entered by the unbinding person and / or performing face recognition verification on the unbinding person. When the verification is passed, that is, when it is confirmed that the unbinding person is the owner or other authorized person, the unbinding operation is performed to unbind the binding relationship between the electronic component to be unbound and the frame number, thereby unbinding the electronic component to be unbound from the vehicle, thereby facilitating the repair or replacement of the electronic component, and generating a corresponding unbinding log, and the unbinding log can also be sent to the user terminal (such as the user's mobile phone) to inform the user in time. On the other hand, when the verification fails, that is, when it is confirmed that the unbinding person is not the vehicle owner or other authorized person, and it is believed that an illegal person may have applied for illegal unbinding, the unbinding operation will not be performed, that is, the binding relationship between the electronic component to be unbound and the frame number will not be released, and the binding between the electronic component to be unbound and the vehicle will not be released. At this time, repair or replacement of the electronic component is not allowed, and it is prompted that the unbinding requires the vehicle owner or other authorized person to apply in person, and a preset prompt message is pushed to the user terminal (such as the user's mobile phone), if someone is performing an illegal unbinding operation on the vehicle, remind the user to change the password in time, etc., so as to facilitate the user to respond and deal with it in time, thereby improving vehicle safety.

[0080] According to the anti-counterfeiting detection method of vehicle electronic parts of the embodiment of the present invention, it can be used in the server of the vehicle main engine factory. The server receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic parts to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has not passed. Therefore, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic parts through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic parts of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0081] A further embodiment of the present invention proposes a server, which is, for example, a server of a vehicle manufacturer. The server can adopt anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process of the vehicle's electronic components is uncounterfeitable, highly secure, and difficult to crack, thereby making the detection results accurate and reliable. The server performs anti-counterfeiting detection on electronic components through software, and the operation is simple, making the anti-counterfeiting detection process easy to implement, saving time and effort and having high detection efficiency.

[0082] Figure 7 FIG. 1 is a schematic diagram of the structure of a server according to an embodiment of the present invention. Figure 7 As shown, the server 100 includes: a receiving module 110 , an acquiring module 120 , a processing module 130 and a detecting module 140 .

[0083] Specifically, the receiving module 110 is used to receive an anti-counterfeiting detection instruction, where the anti-counterfeiting detection instruction includes the serial number of the electronic component to be tested.

[0084] The acquisition module 120 is used to acquire a first random number and a first ciphertext sent by the electronic component to be tested, wherein the first ciphertext is generated by encrypting the electronic component to be tested according to the first random number.

[0085] The processing module 130 is used to obtain a second ciphertext according to the sequence number and the first random number.

[0086] The detection module 140 is used to determine that the anti-counterfeiting detection of the electronic component to be tested has passed when it is determined that the first ciphertext and the second ciphertext are consistent, otherwise, determine that the anti-counterfeiting detection of the electronic component to be tested has failed.

[0087] Thus, the server 100 receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic component to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has not passed. Thus, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic components through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic components of the vehicle can be simply, conveniently, quickly, and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0088] In one embodiment of the present invention, the process of the processing module 130 obtaining the second ciphertext according to the serial number and the first random number includes: obtaining an anti-counterfeiting key uniquely corresponding to the electronic component to be tested according to the serial number; and encrypting the first random number according to the anti-counterfeiting key to obtain the second ciphertext.

[0089] In one embodiment of the present invention, before the acquisition module 120 acquires the anti-counterfeiting key corresponding to the electronic component under test according to the serial number, the processing module 130 is further used to: generate the anti-counterfeiting key according to the serial number, and write the anti-counterfeiting key into the electronic component under test.

[0090] In one embodiment of the present invention, the process of the processing module 130 generating an anti-counterfeiting key according to the serial number includes: obtaining the length of the serial number, and calculating the message digest algorithm value according to the length; encrypting the first byte group randomly obtained in the message digest algorithm value to obtain a third ciphertext, wherein the first byte group includes N randomly obtained bytes, wherein N is an integer greater than 1; adding 1 to the N bytes in the first byte group and then inverting them to obtain a second byte group, wherein the second byte group includes N new bytes, and encrypting the second byte group to obtain a fourth ciphertext; merging the first ciphertext and the second ciphertext to obtain a first array; extracting odd-numbered bytes in the first array to generate an anti-counterfeiting key.

[0091] It should be noted that, in the embodiment of the present invention, the data length of the anti-counterfeiting key generated by the processing module 130 can be flexibly configured according to actual needs, such as setting the data length of the generated anti-counterfeiting key to 8 bytes, 16 bytes or 32 bytes, etc. The longer the data length of the anti-counterfeiting key, the more difficult it is to crack, and the higher the security of the anti-counterfeiting detection, thereby making the accuracy and reliability of the detection result higher.

[0092] In one embodiment of the present invention, the anti-counterfeiting detection instruction is generated and sent by a preset terminal, and the preset terminal at least includes: at least one of an authorized mobile terminal, a vehicle-mounted terminal and a detection device of a vehicle main engine manufacturer.

[0093] In a specific embodiment, the authorized mobile terminal is, for example, the car owner's mobile phone, tablet computer or smart wearable device. The car owner can send anti-counterfeiting detection instructions to the server 100 through his mobile terminal, and the mobile terminal is easy to carry, so that the car owner can perform anti-counterfeiting detection on electronic components anytime and anywhere.

[0094] The vehicle owner terminal is the vehicle-mounted terminal of the vehicle to be inspected, such as a vehicle-mounted computer or a vehicle-mounted multimedia system. Users, such as vehicle owners or other inspectors, can send anti-counterfeiting detection instructions to the server 100 by operating the vehicle-mounted terminal. Since the vehicle-mounted terminal is placed inside the vehicle, it is convenient for users to operate, thereby facilitating users to perform anti-counterfeiting detection on electronic components simply and quickly, thereby facilitating users, such as vehicle owners or other inspectors, to perform anti-counterfeiting detection on vehicles at any time.

[0095] The detection equipment of the vehicle main manufacturer is a device used to perform anti-counterfeiting detection on the electronic components of the vehicle. The staff of the vehicle main manufacturer can send anti-counterfeiting detection instructions to the server 100 by operating the detection equipment, thereby facilitating the vehicle main manufacturer to perform anti-counterfeiting detection on the vehicle.

[0096] Therefore, the embodiment of the present invention can provide multiple anti-counterfeiting detection methods, and can issue anti-counterfeiting detection instructions through multiple terminal methods, so as to meet the needs of different types of users, and also improve the reliability of anti-counterfeiting detection. For example, the car owner, other inspection personnel or vehicle host manufacturer can conduct anti-counterfeiting detection and monitoring of the vehicle's electronic components ECU anytime and anywhere, and timely grasp the safety of the vehicle, which provides great convenience for users to protect their rights and fight against counterfeiting.

[0097] In one embodiment of the present invention, the detection module 140 is further configured to: after the anti-counterfeiting detection of the electronic component to be detected is completed, send corresponding anti-counterfeiting detection result information to a preset terminal so that the preset terminal displays the anti-counterfeiting detection result information.

[0098] Specifically, after the anti-counterfeiting test of the electronic components to be tested is completed, the server 100 obtains the corresponding anti-counterfeiting test result information and sends the anti-counterfeiting test result information to one or more of the preset terminals, such as the authorized mobile terminal, the vehicle terminal and the vehicle OEM's test equipment, so that the preset terminal displays the anti-counterfeiting test result information, such as displaying the information that the anti-counterfeiting test failed or passed. Thus, the visualization of the anti-counterfeiting test results is achieved, which is convenient for users to view the anti-counterfeiting test results of relevant electronic components in a timely manner.

[0099] In one embodiment of the present invention, the receiving module 110 is further used to receive the frame number corresponding to the vehicle and multiple serial numbers corresponding to all the electronic components of the vehicle before receiving the anti-counterfeiting detection instruction; the detection module 140 is also used to bind the multiple serial numbers to the frame number in a one-to-one correspondence. Specifically, the serial numbers corresponding to all the electronic components of the vehicle are bound to the frame number of the vehicle in advance, so that the serial number of each electronic component has a one-to-one correspondence with the frame number of the vehicle it is in, thereby making it easy to identify whether the electronic component to be tested belongs to the vehicle. Therefore, when electronic components that do not belong to the vehicle, such as second-hand parts or anti-manufacturing parts, are installed in the vehicle, since they have no one-to-one correspondence with the vehicle, the anti-counterfeiting detection will fail, thereby identifying the electronic component as a non-original part, thereby avoiding the situation where the electronic component is disassembled and installed on other vehicles for continued use, thereby improving the reliability and safety of anti-counterfeiting detection.

[0100] In one embodiment of the present invention, the anti-counterfeiting detection instruction also includes a frame number. Before the acquisition module 120 acquires the first random number and the first ciphertext sent by the electronic component to be tested, the detection module 140 is also used to determine whether the frame number corresponds to the serial number of the electronic component to be tested; if so, the first random number and the first ciphertext sent by the electronic component to be tested are acquired; otherwise, the anti-counterfeiting detection failure information is output. Specifically, before the anti-counterfeiting detection is performed, it is first determined whether the serial number of the electronic component to be tested and the frame number have a one-to-one corresponding binding relationship, that is, it is determined whether the electronic component has been bound to the vehicle, that is, it is determined whether the electronic component belongs to the vehicle. If so, the anti-counterfeiting detection process continues to be performed, such as acquiring the first random number and the first ciphertext sent by the electronic component to be tested; otherwise, it is determined that the serial number of the electronic component to be tested and the frame number do not have a one-to-one corresponding binding relationship, and it is considered that the electronic component is not bound to the vehicle, that is, the electronic component does not belong to the vehicle, then the anti-counterfeiting detection cannot be performed, and the anti-counterfeiting detection failure information is output.

[0101] In one embodiment of the present invention, after the receiving module 110 receives the anti-counterfeiting detection instruction, the detection module 140 is also used to: determine the type of the anti-counterfeiting detection instruction; if the anti-counterfeiting detection instruction is a first type of anti-counterfeiting detection instruction, all electronic components of the vehicle are used as electronic components to be tested, so that anti-counterfeiting detection of all electronic components of the whole vehicle can be achieved, thereby achieving one-click anti-counterfeiting detection of the whole vehicle. If the anti-counterfeiting detection instruction is a second type of anti-counterfeiting detection instruction, the pre-selected target electronic components contained in the second type of anti-counterfeiting detection instruction are used as electronic components to be tested, so that selective anti-counterfeiting detection can be achieved, that is, the user customizes the input of the electronic components to be tested, and only the electronic components selected by the user are tested for anti-counterfeiting detection, and there is no need to detect other electronic components, thereby reducing the waiting time for anti-counterfeiting detection and improving the detection efficiency.

[0102] In one embodiment of the present invention, after the detection module 140 binds multiple serial numbers to the frame number one by one, the receiving module 110 is also used to receive an unbinding instruction, which includes the serial number of the electronic component to be unbound and the identity information of the unbinding person, such as determining whether the unbinding person is the vehicle owner or other authorized person; the detection module 140 is used to verify the identity information of the unbinding person according to the unbinding instruction; if the verification is successful, the binding between the serial number of the electronic component to be unbound and the frame number is released, and a corresponding unbinding log is generated to record the unbinding process and the corresponding unbinding information; if the verification fails, the binding between the serial number of the electronic component to be unbound and the frame number is not released, and a preset prompt message is pushed to the user terminal to inform the user that someone is illegally unbinding the vehicle, reminding the user to change the password in time, etc., so as to facilitate the user to respond in time, thereby improving vehicle safety.

[0103] According to the server of the embodiment of the present invention, the anti-counterfeiting detection instruction is received, the first random number and the first ciphertext sent by the electronic component to be tested are obtained, and the second ciphertext is obtained according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has not passed. Therefore, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic components through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic components of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0104] A further embodiment of the present invention provides an anti-counterfeiting detection system for electronic components of a vehicle. The anti-counterfeiting detection system for electronic components of a vehicle includes the server 100 described in any one of the above embodiments of the present invention.

[0105] It should be noted that when conducting anti-counterfeiting detection on vehicle electronic components, the specific implementation method of the anti-counterfeiting detection system for vehicle electronic components is similar to the anti-counterfeiting detection method for vehicle electronic components of any one of the above-mentioned embodiments of the present invention or the specific implementation method of the server 100 of any one of the above-mentioned embodiments of the present invention. Therefore, for a detailed exemplary description of the anti-counterfeiting detection system for vehicle electronic components, please refer to the aforementioned relevant description part of the anti-counterfeiting detection method for vehicle electronic components or the server 100. In order to reduce redundancy, it will not be repeated here.

[0106] According to the anti-counterfeiting detection system of vehicle electronic parts of the embodiment of the present invention, the server receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic parts to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has not passed. Therefore, the server of the system adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server of the system performs anti-counterfeiting detection on the electronic parts through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic parts of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0107] A further embodiment of the present invention also discloses an electronic device, which includes: a processor, a memory, and an anti-counterfeiting detection program for vehicle electronic components stored in the memory and runnable on the processor. When the anti-counterfeiting detection program for vehicle electronic components is executed by the processor, the anti-counterfeiting detection method for vehicle electronic components described in any one of the above embodiments of the present invention is implemented.

[0108] In a specific embodiment, the electronic device is, for example but not limited to, a server of a vehicle OEM.

[0109] It should be noted that when an electronic device performs anti-counterfeiting detection on vehicle electronic components, its specific implementation method is similar to the anti-counterfeiting detection method for vehicle electronic components of any one of the above-mentioned embodiments of the present invention or the specific implementation method of the server 100 of any one of the above-mentioned embodiments of the present invention. Therefore, for a detailed exemplary description of the anti-counterfeiting detection system for vehicle electronic components, please refer to the aforementioned relevant description part of the anti-counterfeiting detection method for vehicle electronic components or the server 100. In order to reduce redundancy, it will not be repeated here.

[0110] According to the electronic device of the embodiment of the present invention, the server receives the anti-counterfeiting detection instruction, obtains the first random number and the first ciphertext sent by the electronic component to be tested, and obtains the second ciphertext according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic component to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic component to be tested has not passed. Therefore, by adopting the anti-counterfeiting key encryption technology and cloud technology computing interaction, the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the electronic components are tested through software. The operation is simple, easy to implement, time-saving and labor-saving, and the detection efficiency is high, so that the electronic components of the vehicle can be simply, conveniently, quickly, and efficiently accurately and reliably anti-counterfeited; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0111] A further embodiment of the present invention also discloses a computer-readable storage medium, on which is stored an anti-counterfeiting detection program for vehicle electronic components. When the anti-counterfeiting detection program for vehicle electronic components is executed by a processor, the anti-counterfeiting detection method for vehicle electronic components as described in any one of the above embodiments of the present invention is implemented.

[0112] According to the computer-readable storage medium of the embodiment of the present invention, when the anti-counterfeiting detection program of the electronic parts of the vehicle stored thereon is executed by the processor, the anti-counterfeiting detection instruction can be received through the server, the first random number and the first ciphertext sent by the electronic parts to be tested are obtained, and the second ciphertext is obtained according to the serial number and the first random number; when the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has passed, otherwise, it is determined that the anti-counterfeiting detection of the electronic parts to be tested has not passed. Therefore, the server adopts anti-counterfeiting key encryption technology and cloud technology computing interaction, so that the anti-counterfeiting detection process is non-counterfeitable, highly secure, and not easy to crack, thereby making the detection result accurate and reliable; on the other hand, there is no need to disassemble the whole vehicle, and the server performs anti-counterfeiting detection on the electronic parts through software, which is simple to operate, easy to implement, time-saving and labor-saving, and has high detection efficiency, so that the electronic parts of the vehicle can be simply, conveniently, quickly and efficiently accurate and reliable anti-counterfeiting detection; on the other hand, the anti-counterfeiting detection process is implemented by the server of the vehicle main engine factory, so there is no need to add additional detection equipment, and there is no need for the intervention of a third-party detection agency, thereby effectively saving detection costs.

[0113] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0114] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for detecting anti-counterfeiting of electronic components of a vehicle, characterized in that: For a server, the method comprises the following steps: Receiving a frame number corresponding to the vehicle and a plurality of serial numbers corresponding to all electronic components of the vehicle; Binding the plurality of serial numbers to the frame numbers in a one-to-one correspondence; Receiving an anti-counterfeiting detection instruction, wherein the anti-counterfeiting detection instruction includes a serial number and a frame number of the electronic component to be tested; If the frame number does not correspond to the serial number of the electronic component to be tested, outputting anti-counterfeiting detection failure information; If the frame number corresponds to the serial number of the electronic component to be tested, obtaining a first random number and a first ciphertext sent by the electronic component to be tested, wherein the first ciphertext is generated by the electronic component to be tested by encryption according to the first random number; Obtain the length of the serial number, and calculate the message digest algorithm value according to the length; encrypt the first byte group randomly obtained in the message digest algorithm value to obtain a third ciphertext, wherein the first byte group includes N randomly obtained bytes, wherein N is an integer greater than 1; add 1 to the N bytes in the first byte group and then invert them to obtain a second byte group, wherein the second byte group includes N new bytes, and encrypt the second byte group to obtain a fourth ciphertext; merge the third ciphertext and the fourth ciphertext to obtain a first array; extract odd-numbered bytes in the first array to generate an anti-counterfeiting key; Writing the anti-counterfeiting key into the electronic component to be tested; Obtaining an anti-counterfeiting key uniquely corresponding to the electronic component to be tested according to the serial number; encrypting the first random number according to the anti-counterfeiting key to obtain a second ciphertext; If the first ciphertext and the second ciphertext are consistent, it is determined that the anti-counterfeiting test of the electronic component to be tested has passed; otherwise, it is determined that the anti-counterfeiting test of the electronic component to be tested has failed.

2. The anti-counterfeiting detection method for vehicle electronic components according to claim 1, characterized in that: The anti-counterfeiting detection instruction is generated and sent by a preset terminal, and the preset terminal at least includes: at least one of an authorized mobile terminal, a vehicle-mounted terminal and a detection device of a vehicle main engine manufacturer.

3. The anti-counterfeiting detection method for vehicle electronic components according to claim 2, characterized in that: The method further comprises: After the anti-counterfeiting detection of the electronic component to be tested is completed, the corresponding anti-counterfeiting detection result information is sent to the preset terminal so that the preset terminal displays the anti-counterfeiting detection result information.

4. The anti-counterfeiting detection method for vehicle electronic components according to claim 1, characterized in that: After receiving the anti-counterfeiting detection instruction, the method further includes: Determining the type of the anti-counterfeiting detection instruction; If the anti-counterfeiting detection instruction is a first type of anti-counterfeiting detection instruction, all electronic components of the vehicle are used as the electronic components to be tested; If the anti-counterfeiting detection instruction is a second type of anti-counterfeiting detection instruction, a pre-selected target electronic component included in the second type of anti-counterfeiting detection instruction is used as the electronic component to be tested.

5. The anti-counterfeiting detection method for vehicle electronic components according to claim 1, characterized in that: After binding the plurality of serial numbers to the frame numbers in a one-to-one correspondence, the method further includes: Receiving an unbinding instruction, wherein the unbinding instruction includes the serial number of the electronic component to be unbound and the identity information of the unbinding person; Verifying the identity information of the unbinding person; If the verification is successful, the binding between the serial number of the electronic component to be unbound and the vehicle frame number is released, and a corresponding unbinding log is generated; If the verification fails, the binding between the serial number of the electronic component to be unbound and the vehicle frame number will not be released, and a preset prompt message will be pushed to the user terminal.

6. A server, characterized in that: include: A receiving module, used for receiving a frame number corresponding to a vehicle and a plurality of serial numbers corresponding to all electronic components of the vehicle; The receiving module is also used to receive an anti-counterfeiting detection instruction, wherein the anti-counterfeiting detection instruction includes the serial number and frame number of the electronic component to be tested; A detection module, used to bind the plurality of serial numbers to the frame number in a one-to-one correspondence, and determine whether the frame number corresponds to the serial number of the electronic component to be tested; The detection module is also used to output anti-counterfeiting detection failure information when the frame number does not correspond to the serial number of the electronic component to be tested; an acquisition module, configured to acquire a first random number and a first ciphertext sent by the electronic component to be tested when the frame number corresponds to the serial number of the electronic component to be tested, wherein the first ciphertext is generated by the electronic component to be tested by encryption according to the first random number; A processing module is configured to obtain the length of the serial number, calculate a message digest algorithm value according to the length; encrypt a first byte group randomly obtained from the message digest algorithm value to obtain a third ciphertext, wherein the first byte group includes N randomly obtained bytes, wherein N is an integer greater than 1; add 1 to the N bytes in the first byte group and then invert them to obtain a second byte group, wherein the second byte group includes N new bytes, encrypt the second byte group to obtain a fourth ciphertext; merge the third ciphertext and the fourth ciphertext to obtain a first array; extract odd-numbered bytes in the first array to generate an anti-counterfeiting key; Writing the anti-counterfeiting key into the electronic component to be tested; Obtaining an anti-counterfeiting key uniquely corresponding to the electronic component to be tested according to the serial number; encrypting the first random number according to the anti-counterfeiting key to obtain a second ciphertext; The detection module is further configured to determine that the anti-counterfeiting detection of the electronic component to be tested has passed when it is determined that the first ciphertext and the second ciphertext are consistent; otherwise, determine that the anti-counterfeiting detection of the electronic component to be tested has failed.

7. An anti-counterfeiting detection system for vehicle electronic components, characterized in that: Comprising a server as claimed in claim 6.

8. An electronic device, characterized in that: include: A processor, a memory, and an anti-counterfeiting detection program for vehicle electronic components stored in the memory and executable on the processor, wherein the anti-counterfeiting detection program for vehicle electronic components, when executed by the processor, implements the anti-counterfeiting detection method for vehicle electronic components as described in any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an anti-counterfeiting detection program for vehicle electronic components, and when the anti-counterfeiting detection program for vehicle electronic components is executed by the processor, the anti-counterfeiting detection method for vehicle electronic components according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Anti-fake method and system of electronic payment terminal

    CN106056378A

  • Anti-counterfeit method based on electronic hangtag, anti-counterfeit electronic hangtag and system

    CN109472624A

  • Anti-counterfeiting detection method, device and equipment for vehicle parts and storage medium

    CN110717770A

  • Article tracing method, electronic equipment and readable storage medium

    CN110728524A

  • Monitoring and tracing method for anti-fake monitoring system of commodity circulation

    CN1248029A