Vehicle machine encryption method, device, equipment, storage medium and vehicle

By using the vehicle identification number (VIN) on the vehicle assembly line to generate a key for encrypting the vehicle's infotainment system, the problems of low efficiency and low security in traditional vehicle infotainment encryption methods are solved, thus improving the flexibility and security of vehicle infotainment encryption.

CN116232571BActive Publication Date: 2026-01-02SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211710522.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2026-01-02
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

Traditional vehicle infotainment encryption methods cannot meet the system security requirements, resulting in low password efficiency and low security. Furthermore, during the production line testing phase, each vehicle infotainment system requires a different password, which affects production efficiency and poses a risk of password leakage.

Method used

By detecting the Vehicle Identification Number (VIN), a key corresponding to the VIN is generated on the vehicle assembly line to encrypt the vehicle's infotainment system. The SN (Signature Number) password used when the vehicle left the factory is automatically invalidated, and the key generated from the VIN is used as the final password, thus achieving hierarchical encryption of the vehicle's infotainment system.

Benefits of technology

It improves the flexibility and security of vehicle-mounted system encryption, reduces password input steps in production line testing, increases production efficiency, and reduces the risk of password leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232571B_ABST
    Figure CN116232571B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a vehicle machine encryption method, device, equipment, storage medium and vehicle, the method comprises: in response to the vehicle machine starting, detecting the vehicle identification code VIN code of the vehicle machine;Wherein, the vehicle identification code VIN code is generated when the vehicle machine is installed to the vehicle on the vehicle pipeline;In the case that the vehicle identification code VIN code is detected on the vehicle pipeline, the product serial number SN code of the vehicle machine is deleted, and the secret key corresponding to the vehicle identification code VIN code is generated according to the vehicle identification code VIN code and the preset password algorithm, and the vehicle machine is encrypted.The application does not encrypt the vehicle machine on the vehicle machine pipeline, improves the production line efficiency, automatically enables encryption when leaving the production pipeline, generates the secret key by using the VIN code when the vehicle machine is installed to the vehicle, automatically deletes the SN code when the vehicle machine leaves the factory, uses the secret key generated by the VIN code as the final password, realizes the vehicle machine encryption, improves the flexibility of the vehicle machine encryption, and meets the safety requirement of the vehicle machine.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of vehicle safety technology, and provides a vehicle machine encryption method, device, equipment, storage medium and vehicle. BACKGROUND

[0002] With the development of vehicle intelligence, there are more and more services on the vehicle system, and the services are more and more core, and higher requirements are put forward for the safety of the vehicle system. At present, the vehicle machine is often encrypted after leaving the factory. Many enterprises generally choose a foundry to produce in batches after the vehicle machine is developed. The safety of the vehicle machine is particularly important in this process. In order to avoid direct contact of the factory with the internal system of the vehicle machine, an encryption project is established on the vehicle machine to encrypt and protect the burning file.

[0003] The traditional vehicle machine system uses no password or a unified password for encryption protection. This encryption method cannot meet the needs of system safety. Moreover, in the production line test stage, the traditional one-machine-one-secret vehicle machine system requires inputting different passwords for each vehicle machine, which seriously affects the production efficiency of the factory. At the same time, there is still a risk of password leakage from the vehicle machine production line. Therefore, the current one-machine-one-secret vehicle machine encryption method cannot meet the needs of vehicle machine encryption, resulting in low password use efficiency and low safety. SUMMARY

[0004] The embodiments of the present application provide a vehicle machine encryption method, device, equipment, storage medium and vehicle, so as to make the vehicle machine hierarchical encryption and ensure the safety of the vehicle machine.

[0005] In order to solve the above problems, in a first aspect, the embodiments of the present application disclose a vehicle machine encryption method, which comprises:

[0006] In response to the start of the vehicle machine, detecting the vehicle identification code VIN code of the vehicle machine; wherein the vehicle identification code VIN code is generated when the vehicle machine is installed to the vehicle on the vehicle assembly line;

[0007] In the case that the vehicle identification code VIN code is detected on the vehicle assembly line, deleting the product serial number SN code of the vehicle machine, and generating a secret key corresponding to the vehicle identification code VIN code according to the vehicle identification code VIN code and a preset password algorithm to encrypt the vehicle machine.

[0008] Optionally, after detecting the vehicle identification code VIN of the vehicle machine in response to the start of the vehicle machine, the method further comprises:

[0009] In the case that the vehicle identification code VIN is not detected on the vehicle assembly line, determining whether the vehicle machine has a password-free flag;

[0010] If the vehicle machine has the password-free flag, the vehicle machine does not enable encryption.

[0011] If the head unit does not have the password-free flag, detecting whether the head unit generates a product serial number (SN) code;

[0012] If the head unit has the product serial number (SN) code, encrypting the head unit according to a secret key corresponding to the product serial number (SN) code and a preset password algorithm.

[0013] Optionally, before detecting the vehicle identification number (VIN) code of the head unit in response to the start of the head unit, the method further comprises:

[0014] Presetting the password-free flag when the head unit is burned in a production line, wherein the password-free flag is formatted when the head unit is restored to factory settings.

[0015] Pre-installing a vehicle identification number (VIN) code generated when the head unit is installed on a vehicle in a production line to the head unit through an instruction;

[0016] Recording and storing the vehicle identification number (VIN) code to the head unit.

[0017] Optionally, in the case where the vehicle identification number (VIN) code is detected in the production line, deleting the product serial number (SN) code of the head unit, and encrypting the head unit according to a secret key corresponding to the vehicle identification number (VIN) code and a preset password algorithm, comprises:

[0018] Listening to and obtaining a vehicle identification number (VIN) code of the head unit and a first secret key generated according to a preset password algorithm;

[0019] Encrypting the head unit according to the first secret key to obtain a vehicle identification number (VIN) ciphertext of the head unit.

[0020] Optionally, in the case where the vehicle identification number (VIN) code is detected in the production line, deleting the product serial number (SN) code of the head unit, and encrypting the head unit according to a secret key corresponding to the vehicle identification number (VIN) code and a preset password algorithm, further comprises:

[0021] Receiving a picture uploaded by a user, and identifying a vehicle identification number (VIN) code in the picture;

[0022] Decrypting the head unit according to a secret key corresponding to the vehicle identification number (VIN) code and a preset password algorithm, and logging in a remote diagnosis server to analyze and process head unit faults.

[0023] In a second aspect, the embodiments of the present application further disclose a head unit encryption device, which comprises:

[0024] The first detection module is configured to, in response to the start of the car machine, detect a vehicle identification code (VIN) of the car machine, wherein the vehicle identification code (VIN) is generated when the car machine is installed on a vehicle on a vehicle assembly line.

[0025] The first encryption module is configured to, in a case where the vehicle identification code (VIN) is detected on the vehicle assembly line, delete a product serial number (SN) of the car machine, and generate a secret key corresponding to the vehicle identification code (VIN) according to the vehicle identification code (VIN) and a preset encryption algorithm, and encrypt the car machine by using the secret key.

[0026] Optionally, the apparatus further comprises:

[0027] The second encryption module is configured to, in a case where the vehicle identification code (VIN) is not detected on the vehicle assembly line, determine whether the car machine has a password-free flag, and if the car machine has the password-free flag, the car machine is not enabled for encryption, and if the car machine does not have the password-free flag, detect whether the car machine generates a product serial number (SN).

[0028] The third encryption module is configured to, in a case where the car machine has the product serial number (SN), generate a secret key corresponding to the product serial number (SN) according to the product serial number (SN) and a preset encryption algorithm, and encrypt the car machine by using the secret key.

[0029] In a third aspect, an electronic device is also disclosed, comprising:

[0030] at least one processor; and

[0031] a memory connected with the at least one processor; wherein

[0032] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the car machine encryption method described above.

[0033] In a fourth aspect, a computer readable storage medium is also disclosed, which stores a computer program, and the computer program is executed by a processor to implement the car machine encryption method described above.

[0034] In a fifth aspect, a vehicle is also disclosed, which comprises the car machine encryption apparatus described above.

[0035] Embodiments of the present application have the following advantages:

[0036] The embodiment of the present application detects the vehicle identification code VIN code of the car machine in response to the start of the car machine; wherein the vehicle identification code VIN code is generated when the car machine is installed on the vehicle pipeline; in the case that the vehicle identification code VIN code is detected on the vehicle pipeline, the product serial number SN code of the car machine is deleted, and the secret key corresponding to the vehicle identification code VIN code is generated according to the vehicle identification code VIN code and the preset password algorithm, and the car machine is encrypted. That is, the present application does not perform car machine encryption on the car machine pipeline, improves the production line efficiency, automatically enables encryption when leaving the production pipeline, generates a secret key using the VIN code when the car machine is installed on the vehicle, automatically invalidates the SN code password of the car machine when leaving the factory, generates a secret key using the VIN code as the final password, realizes car machine encryption, improves the flexibility of car machine encryption, and meets the safety requirements of the car machine. BRIEF DESCRIPTION OF DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0038] Figure 1 One of the step flowcharts of the car machine encryption method provided by the embodiment of the present application;

[0039] Figure 2 The second step flowchart of the car machine encryption method provided by the embodiment of the present application;

[0040] Figure 3 The third step flowchart of the car machine encryption method provided by the embodiment of the present application;

[0041] Figure 4 The fourth step flowchart of the car machine encryption method provided by the embodiment of the present application;

[0042] Figure 5 One of the flowcharts of the car machine encryption method provided by another embodiment of the present application;

[0043] Figure 6 The second flowchart of the car machine encryption method provided by another embodiment of the present application;

[0044] Figure 7 The structural schematic diagram of the car machine encryption device provided by the embodiment of the present application;

[0045] Figure 8 The schematic diagram of an electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION

[0046] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments of the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0047] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments of the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application. Figure 1 , a step flow chart of a vehicle machine encryption method provided by the embodiment of the present application is shown, and the method can include:

[0048] Step 101, in response to the start of the vehicle machine, detecting the vehicle identification code VIN code of the vehicle machine.

[0049] In the embodiment of the present application, in order to realize vehicle machine encryption and improve the flexibility of vehicle machine encryption to meet the safety requirements of the vehicle machine, the vehicle machine is not enabled for encryption on the vehicle machine production line, the production line efficiency is improved, and the vehicle machine is enabled for encryption by using the product serial number SN code of the vehicle machine after leaving the vehicle machine production line. When the vehicle machine is installed to the vehicle on the vehicle production line, the vehicle identification code VIN code of each vehicle machine is used as a seed to generate a secret key, and the password of the vehicle machine when leaving the factory is automatically invalidated. The password is used as the final password to realize vehicle machine encryption.

[0050] It should be noted that, in the embodiment, in response to the start of the vehicle machine, the vehicle identification code VIN code of the vehicle machine is detected to determine whether the vehicle machine is on the vehicle production line, so as to determine whether to use the SN code or the VIN code to encrypt the vehicle machine. The vehicle identification code VIN code is generated when the vehicle machine is installed to the vehicle on the vehicle production line, and is used to identify that the vehicle machine reaches the vehicle production line, so that the vehicle machine can be encrypted when the vehicle identification code of the vehicle machine is detected.

[0051] Step 102, in the case that the vehicle identification code VIN code is detected on the vehicle production line, deleting the product serial number SN code of the vehicle machine, and generating a secret key corresponding to the vehicle identification code VIN code according to the vehicle identification code VIN code and a preset password algorithm to encrypt the vehicle machine.

[0052] In the embodiment, in the case that the vehicle identification code VIN code is detected on the vehicle production line, it indicates that the vehicle reaches the vehicle production line, and the vehicle machine is installed to the vehicle. Therefore, the product serial number SN code of the current vehicle machine is deleted, the vehicle identification code VIN code is used as a seed, the secret key corresponding to the vehicle identification code VIN code is generated according to the vehicle identification code VIN code and a preset password algorithm, and the vehicle machine is encrypted.

[0053] It should be noted that the preset password algorithm in the embodiment is used for encrypting / decrypting the vehicle identification code VIN code, thereby realizing the encryption tamper-proof function of the car machine. The preset password algorithm in the embodiment can be any encryption algorithm capable of generating a secret key corresponding to the vehicle identification code VIN code, which is not limited here.

[0054] Specifically, the car machine generates a product serial number SN code in the car machine production line, and encrypts the car machine by using the secret key corresponding to the SN code according to the SN code in the last process of the car machine production line, so as to ensure the security of the car machine before it is installed in a vehicle. In the case that the vehicle identification code VIN code is detected in the vehicle production line, the product serial number SN code of the car machine is cleared, and the car machine is encrypted by using the secret key corresponding to the vehicle identification code VIN code according to the vehicle identification code VIN code and the preset password algorithm.

[0055] The embodiment of the application responds to the start of the car machine to detect the vehicle identification code VIN code of the car machine. The vehicle identification code VIN code is generated when the car machine is installed in a vehicle in the vehicle production line. In the case that the vehicle identification code VIN code is detected in the vehicle production line, the product serial number SN code of the car machine is deleted, and the car machine is encrypted by using the secret key corresponding to the vehicle identification code VIN code according to the vehicle identification code VIN code and the preset password algorithm. That is, the car machine is not encrypted in the car machine production line, the production line efficiency is improved, the encryption is automatically enabled when the car machine leaves the production line, the secret key generated by using the VIN code is used when the car machine is installed in a vehicle, the SN code password of the car machine when it leaves the factory is automatically invalidated, the secret key generated by using the VIN code is used as the final password, the car machine encryption is realized, the flexibility of the car machine encryption is improved, and the safety requirement of the car machine is met.

[0056] Referring to Figure 2 , a second step flowchart of the car machine encryption method provided by the embodiment of the application is shown, and the method can include:

[0057] Step 103, in the case that the vehicle identification code VIN is not detected in the vehicle production line, it is determined whether the car machine has a no password flag.

[0058] Specifically, in the embodiment, the car machine generates a no password flag in the data area in the factory burning version, wherein the no password flag No-Encrypt flag is used to mark that the car machine does not enable encryption in the car machine production line, so as to improve the production efficiency of the car machine in the production line.

[0059] Step 104, if the car machine has the no password flag, the car machine does not enable encryption.

[0060] Step 105, if the car machine does not have the no password flag, it is detected whether the car machine generates a product serial number SN code.

[0061] In the embodiment, if the car machine does not exist the passwordless mark, it is detected whether the car machine generates the product serial number SN code, wherein the car machine generates the product serial number SN code at the last process of the car machine flow line, and the product serial number SN code is encrypted to realize the encryption of the car machine from the car machine flow line to the vehicle.

[0062] In step 106, in the case that the car machine exists the product serial number SN code, the SN code corresponding secret key is generated according to the product serial number SN code and the preset password algorithm, and the car machine is encrypted.

[0063] In the embodiment, in the case that the car machine exists the product serial number SN code, it indicates that the car machine reaches the last process of the car machine flow line, the product serial number SN code is used as a seed, the SN code corresponding secret key is generated according to the SN code and the preset password algorithm, and the car machine is encrypted.

[0064] It should be noted that the preset password algorithm in the embodiment is used to encrypt the product serial number SN, and then the car machine encryption anti-tamper function is realized. The preset password algorithm in the embodiment of the application can be any encryption algorithm capable of generating the secret key corresponding to the product serial number SN code, which is not limited here.

[0065] The embodiment of the application detects the vehicle identification code VIN code of the car machine in response to the start of the car machine, wherein the vehicle identification code VIN code is generated when the car machine is installed to the vehicle on the vehicle flow line; in the case that the vehicle identification code VIN is not detected on the vehicle flow line, it is determined whether the car machine exists the passwordless mark; if the car machine exists the passwordless mark, the car machine does not enable encryption; if the car machine does not exist the passwordless mark, it is detected whether the car machine generates the product serial number SN code, and in the case that the car machine exists the product serial number SN code, the SN code corresponding secret key is generated according to the product serial number SN code and the preset password algorithm, and the car machine is encrypted. That is, the car machine encryption is not performed on the car machine flow line, the production line efficiency is improved, the encryption is automatically enabled when leaving the production flow line, the flexibility of the car machine encryption is improved, and the safety requirement of the car machine is met.

[0066] Referring to Figure 3 , a third step flow chart of the car machine encryption method provided by the embodiment of the application is shown, and the method can include:

[0067] In step 107, the passwordless mark is preset when the version is burned on the car machine flow line, wherein the passwordless mark is formatted when the car machine is restored to the factory.

[0068] In step 108, the vehicle identification code VIN code generated when the car machine is installed to the vehicle on the vehicle flow line is sent to the car machine by an instruction in advance.

[0069] In step 109, the vehicle identification code VIN code is recorded and stored to the car machine.

[0070] In steps 107-109, in response to the head unit starting, before detecting the vehicle identification code VIN code of the head unit, a no password flag is preset when the head unit is burned in the head unit production line, wherein the no password flag is formatted when the head unit is recovered from the factory, and the head unit can be further implemented without encryption in the head unit production line, and the no password flag is deleted for factory setting formatting. The vehicle identification code VIN code is pre-stored when the head unit is installed on the vehicle production line, for enabling encryption, specifically, the vehicle identification code VIN code generated when the head unit is installed on the vehicle in the vehicle production line can be sent to the head unit by instruction in advance, and the vehicle identification code VIN code is recorded and stored in the head unit.

[0071] Referring to Figure 4 , a fourth step flow chart of the head unit encryption method provided by the embodiment of the application is shown, which can include:

[0072] Step 110, receiving a picture uploaded by a user, and identifying a vehicle identification code VIN code in the picture.

[0073] Step 111, generating a secret key corresponding to the VIN code according to a preset password algorithm to decrypt the head unit, and logging in a remote diagnosis server to analyze and process head unit faults.

[0074] It should be noted that in steps 110-111, a picture uploaded by a user is received, a vehicle identification code VIN code in the picture is identified, a secret key corresponding to the VIN code is generated according to a preset password algorithm to decrypt the head unit, and a remote diagnosis server is logged in to analyze and process head unit faults. Specifically, if the head unit fails during use by a user, the user uploads a picture of the vehicle identification code VIN code to the vehicle TSP platform, the TSP platform queries (the corresponding relationship between the VIN code and the head unit device number recorded when the head unit is installed) in the background to obtain the VIN code corresponding to the head unit by identifying the picture, generates a secret key corresponding to the VIN code according to the head unit device number, the current system time and other parameters, and a preset password algorithm, decrypts the head unit, and logs in to a remote diagnosis server to analyze and process head unit faults.

[0075] Referring to Figure 5 , a first flow chart of the head unit encryption method provided by the embodiment of the application is shown, which can include:

[0076] S201, presetting a no password flag when a version is burned in a head unit production line.

[0077] Specifically, in this embodiment, the head unit generates a no password flag in the data area in the factory version, wherein the no password flag No-Encrypt flag is used to mark that the head unit does not enable encryption in the head unit production line, so as to improve the production efficiency of the head unit in the production line.

[0078] S202, the vehicle machine generates a product serial number SN code.

[0079] Specifically, the vehicle machine generates a product serial number SN code at the last process of the vehicle machine pipeline, enters step S202, and encrypts the product serial number SN code to realize vehicle machine encryption from the vehicle machine pipeline to the vehicle.

[0080] S203, the SN code corresponding key is generated to encrypt the vehicle machine.

[0081] Specifically, in the case that the vehicle machine has a product serial number SN code, it indicates that the vehicle machine reaches the last process of the vehicle machine pipeline, the product serial number SN code is used as a seed, and the SN code corresponding key is generated according to the SN code and a preset password algorithm to encrypt the vehicle machine.

[0082] S204, the vehicle identification code VIN code corresponding key is generated to encrypt the vehicle machine.

[0083] Specifically, in the case that the vehicle identification code VIN code is detected in the vehicle pipeline, it indicates that the vehicle reaches the vehicle pipeline, and the vehicle machine is installed to the vehicle, then the product serial number SN code of the current vehicle machine is deleted, the vehicle identification code VIN code is used as a seed, and the VIN code corresponding key is generated according to the vehicle identification code VIN code and a preset password algorithm to encrypt the vehicle machine.

[0084] S205, the vehicle identification code VIN code in the picture is recognized, and the VIN code corresponding key is generated to decrypt the vehicle machine.

[0085] In the embodiment, the TSP platform queries and obtains the VIN code corresponding to the vehicle machine by recognizing the picture uploaded by the user, generates the VIN code corresponding key according to the preset password algorithm, and decrypts the vehicle machine to log in the remote diagnosis server to analyze and process the vehicle machine fault.

[0086] The embodiment of the application detects the vehicle identification code VIN code of the vehicle machine in response to the start of the vehicle machine, wherein the vehicle identification code VIN code is generated when the vehicle machine is installed to the vehicle in the vehicle pipeline, and in the case that the vehicle identification code VIN code is detected in the vehicle pipeline, the product serial number SN code of the vehicle machine is deleted, and the vehicle identification code VIN code corresponding key is generated according to the vehicle identification code VIN code and a preset password algorithm to encrypt the vehicle machine. That is, the vehicle machine is not encrypted in the vehicle machine pipeline, the production line efficiency is improved, the encryption is automatically enabled when leaving the production pipeline, the SN code password of the vehicle machine when leaving the factory is automatically invalidated when the vehicle machine is installed to the vehicle, the VIN code is used to generate the key as the final password, the vehicle machine encryption is realized, the flexibility of the vehicle machine encryption is improved, and the safety requirement of the vehicle machine is met.

[0087] Referring toFigure 6 Fig. 2 shows a flowchart of a vehicle machine encryption method according to an embodiment of the present application, which can include the following steps:

[0088] S301, starting the vehicle machine system.

[0089] S302, detecting the vehicle identification code (VIN code) of the vehicle machine.

[0090] It should be noted that when the vehicle identification code (VIN code) is detected by the vehicle pipeline, it indicates that the vehicle reaches the vehicle pipeline and the vehicle machine is installed to the vehicle, then step S303 is performed to detect whether the product serial number (SN code) of the vehicle machine is generated, if yes, the product serial number (SN code) of the current vehicle machine is deleted, the vehicle identification code (VIN code) is used as a seed, and a secret key corresponding to the vehicle identification code (VIN code) is generated according to the vehicle identification code (VIN code) and a preset password algorithm to encrypt the vehicle machine. Otherwise, if the vehicle identification code (VIN code) is not detected, step S304 is performed to determine whether the vehicle machine has a password-free flag.

[0091] S303, detecting whether the product serial number (SN code) of the vehicle machine is generated.

[0092] It should be noted that the product serial number (SN code) of the vehicle machine is generated when the vehicle machine is in the vehicle pipeline, and the secret key corresponding to the SN code is generated according to the product serial number (SN code) at the last process of the vehicle pipeline to encrypt the vehicle machine to ensure the security of the vehicle machine before it is installed to the vehicle, and then step S305 is performed to delete the product serial number (SN code) of the vehicle machine.

[0093] S304, determining whether the vehicle machine has a password-free flag.

[0094] Specifically, after step S302, if the vehicle identification code (VIN code) is not detected, step S304 is performed to determine whether the vehicle machine has a password-free flag, if yes, step S307 is performed to disable the encryption of the vehicle machine.

[0095] S305, deleting the product serial number (SN code) of the vehicle machine.

[0096] S306, encrypting the vehicle machine according to the vehicle identification code (VIN code) and a preset password algorithm to generate a secret key corresponding to the VIN code.

[0097] Specifically, when the vehicle identification code (VIN code) is detected by the vehicle pipeline, it indicates that the vehicle reaches the vehicle pipeline and the vehicle machine is installed to the vehicle, then the product serial number (SN code) of the current vehicle machine is deleted, the vehicle identification code (VIN code) is used as a seed, and a secret key corresponding to the vehicle identification code (VIN code) is generated according to the vehicle identification code (VIN code) and a preset password algorithm to encrypt the vehicle machine.

[0098] S307, disabling the encryption of the vehicle machine.

[0099] S308, detecting whether the product serial number SN code of the car machine is generated.

[0100] Specifically, in the case that the product serial number SN code of the car machine exists, it indicates that the car machine reaches the last process of the car machine production line, and the step S309 is entered, that is, the product serial number SN code is used as a seed, and the SN code and a preset password algorithm are used to generate a secret key corresponding to the SN code to encrypt the car machine.

[0101] S309, according to the product serial number SN code and the preset password algorithm, the SN code corresponding secret key is generated to encrypt the car machine.

[0102] The embodiment of the application detects the vehicle identification code VIN code of the car machine in response to the start of the car machine; in the case that the vehicle identification code VIN code is detected on the vehicle production line, the product serial number SN code of the car machine is deleted, and the vehicle identification code VIN code and the preset password algorithm are used to generate a secret key corresponding to the vehicle identification code VIN code to encrypt the car machine. The car machine is not encrypted on the car machine production line, the production line efficiency is improved, the encryption is automatically enabled when leaving the production line, the VIN code is used to generate a secret key when the car machine is installed on the vehicle, the SN code password of the car machine when leaving the factory is automatically invalidated, the VIN code is used to generate a secret key as the final password, the car machine encryption is realized, the flexibility of the car machine encryption is improved, and the safety requirement of the car machine is met.

[0103] Referring to Figure 7 , a device block diagram of a car machine encryption device provided by the embodiment of the application is shown, and the device can include:

[0104] The first detection module 401 is configured to detect the vehicle identification code VIN code of the car machine in response to the start of the car machine, and the vehicle identification code VIN code is generated when the car machine is installed on the vehicle on the vehicle production line.

[0105] The first encryption module 402 is configured to delete the product serial number SN code of the car machine in the case that the vehicle identification code VIN code is detected on the vehicle production line, and generate a secret key corresponding to the vehicle identification code VIN code to encrypt the car machine according to the vehicle identification code VIN code and the preset password algorithm.

[0106] Optionally, the device further includes:

[0107] The second encryption module is configured to determine whether the car machine has a password-free flag in the case that the vehicle identification code VIN is not detected on the vehicle production line, and if the car machine has the password-free flag, the car machine does not enable encryption, and if the car machine does not have the password-free flag, it is detected whether the product serial number SN code of the car machine is generated.

[0108] The third encryption module is configured to, in the case that the product serial number SN code exists in the car machine, generate a secret key corresponding to the SN code according to the product serial number SN code and a preset encryption algorithm, and encrypt the car machine by using the secret key.

[0109] Optionally, the device further comprises:

[0110] The generation module is configured to preset a password-free flag when the car machine is burned in a production line, and the password-free flag is used to format the car machine when the car machine is restored to factory settings.

[0111] The sending module is configured to send a vehicle identification code VIN code generated when the car machine is installed on a vehicle in a production line to the car machine by using an instruction.

[0112] The storage module is configured to record and store the vehicle identification code VIN code to the car machine.

[0113] Optionally, the first encryption module 402 comprises:

[0114] The acquisition sub-module is configured to listen to and acquire a vehicle identification code VIN code of the car machine and a first secret key generated according to a preset encryption algorithm.

[0115] The encryption sub-module is configured to encrypt the car machine according to the first secret key, and obtain a vehicle identification code ciphertext of the car machine.

[0116] Optionally, the device further comprises:

[0117] The receiving module is configured to receive a picture uploaded by a user, and identify a vehicle identification code VIN code in the picture.

[0118] The diagnosis module is configured to decrypt the car machine according to a secret key corresponding to the VIN code generated according to the preset encryption algorithm, and log in a remote diagnosis server to analyze and process car machine faults.

[0119] The car machine encryption device provided by the embodiment of the application comprises a first detection module, a first encryption module, a second encryption module, a generation module, a sending module, a storage module, a receiving module and a diagnosis module.

[0120] The embodiment of the present application further provides an electronic device, such as Figure 8 As shown in the figure, the electronic device comprises a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,

[0121] The memory 503 is used for storing a computer program.

[0122] The processor 501 is used for executing the program stored in the memory 503, and the following steps can be realized.

[0123] In response to starting of the car machine, a vehicle identification code VIN code of the car machine is detected; wherein the vehicle identification code VIN code is generated when the car machine is installed to the vehicle on a vehicle assembly line; in the case that the vehicle identification code VIN code is detected on the vehicle assembly line, a product serial number SN code of the car machine is deleted, and the car machine is encrypted according to the vehicle identification code VIN code and a preset password algorithm.

[0124] The communication bus mentioned above can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0125] The communication interface is used for communication between the terminal and other devices.

[0126] The memory can comprise a random access memory (RAM) and can also comprise a non-volatile memory, for example at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.

[0127] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; or can be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0128] In yet another embodiment provided by the present application, a computer readable storage medium is provided, which stores instructions, when executed on a computer, cause the computer to perform the head unit encryption method according to any one of the above embodiments.

[0129] In yet another embodiment provided by the present application, a computer program product is provided, which contains instructions, when executed on a computer, cause the computer to perform the head unit encryption method according to any one of the above embodiments.

[0130] In the above embodiments, the implementation can be achieved entirely or partially by software, hardware, firmware or any combination thereof. When implemented by software, the implementation can be achieved entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the flow or function described in the embodiments of the present application is entirely or partially generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, solid state disk (SSD)) and the like.

[0131] Although the preferred embodiments of the application have been described, those skilled in the art will understand that there are many modifications and variations that can be made to the embodiments without departing from the spirit and scope of the application. Accordingly, the appended claims are intended to encompass all such modifications and variations as falling within the scope of the application.

[0132] Finally, it should be noted that the terms "first" and "second" and the like are used merely to distinguish one entity or action from another, without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a... " does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0133] Each of the embodiments in the specification is described in a related manner, and the same or similar parts of each of the embodiments can be referred to each other. Each of the embodiments focuses on the difference from other embodiments. In particular, for the system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiments.

[0134] The above describes in detail the vehicle machine playing control method, device, electronic equipment, storage medium and vehicle provided by the application. The principles and implementation manners of the application are described by using specific examples. The above embodiment descriptions are only used to help understand the method of the application and its core idea. Meanwhile, for those skilled in the art, according to the idea of the application, the specific implementation manners and application ranges can be changed. In summary, the content of the specification should not be understood as limiting the application.

[0135] The above only describes the preferred embodiments of the application, and is not used to limit the protection scope of the application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application is included in the protection scope of the application.

Claims

1. A method for encrypting a car kit, characterized by, The method comprises: in response to the start of the car machine, detecting the vehicle identification code VIN code of the car machine; wherein the vehicle identification code VIN code is generated when the car machine is installed on the vehicle pipeline; in the case that the vehicle identification code VIN code is detected on the vehicle pipeline, deleting the product serial number SN code of the car machine, and generating a secret key corresponding to the vehicle identification code VIN code according to the vehicle identification code VIN code and a preset password algorithm to encrypt the car machine.

2. The method of claim 1, wherein, After the response to the start of the car machine, the method further comprises: in the case that the vehicle identification code VIN code is not detected on the vehicle pipeline, determining whether the car machine has a password-free flag; if the car machine has the password-free flag, the car machine does not enable encryption; if the car machine does not have the password-free flag, detecting whether the car machine generates a product serial number SN code; in the case that the car machine has the product serial number SN code, generating a secret key corresponding to the SN code according to the product serial number SN code and a preset password algorithm to encrypt the car machine.

3. The method of claim 2, wherein, Before the response to the start of the car machine, the method further comprises: presetting a password-free flag when the car machine is burned on the vehicle pipeline, wherein the password-free flag is formatted when the car machine is restored to factory settings; previously sending the vehicle identification code VIN code generated when the car machine is installed on the vehicle pipeline to the car machine through instructions; storing the vehicle identification code VIN code record to the car machine.

4. The method of claim 1, wherein, In the case that the vehicle identification code VIN code is detected on the vehicle pipeline, deleting the product serial number SN code of the car machine, and generating a secret key corresponding to the vehicle identification code VIN code according to the vehicle identification code VIN code and a preset password algorithm to encrypt the car machine, comprising: listening to and obtaining the vehicle identification code VIN code of the car machine and the first secret key generated according to the preset password algorithm; encrypting the car machine according to the first secret key to obtain the vehicle identification code ciphertext of the car machine.

5. The method of claim 1, wherein, After the vehicle identification code VIN code is detected on the vehicle pipeline, the product serial number SN code of the car machine is deleted, and a secret key corresponding to the vehicle identification code VIN code is generated according to the vehicle identification code VIN code and a preset password algorithm to encrypt the car machine, further comprising: receiving a picture uploaded by a user, and identifying the vehicle identification code VIN code in the picture; decrypting the car machine according to the secret key corresponding to the VIN code according to the preset password algorithm, and logging in to a remote diagnosis server for car machine fault analysis and processing.

6. A car kit encryption device, characterized by, The device comprises: a first detection module for detecting the vehicle identification code VIN code of the car machine in response to the start of the car machine; wherein the vehicle identification code VIN code is generated when the car machine is installed on the vehicle pipeline; a first encryption module for deleting the product serial number SN code of the car machine in the case that the vehicle identification code VIN code is detected on the vehicle pipeline, and generating a secret key corresponding to the vehicle identification code VIN code according to the vehicle identification code VIN code and a preset password algorithm to encrypt the car machine.

7. The apparatus of claim 6, wherein, The device further comprises: a second encryption module, configured to determine whether the vehicle machine has a password-free flag in a case where the vehicle pipeline does not detect a vehicle identification code (VIN); if the vehicle machine has the password-free flag, the vehicle machine is not enabled for encryption; and if the vehicle machine does not have the password-free flag, it is detected whether the vehicle machine generates a product serial number (SN) code; a third encryption module, configured to generate a secret key corresponding to the product serial number (SN) code according to the product serial number (SN) code and a preset password algorithm to encrypt the vehicle machine in a case where the vehicle machine has the product serial number (SN) code.

8. An electronic device, comprising: The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; The memory is used for storing a computer program. The processor is used for executing the program stored on the memory to realize the steps of the vehicle machine encryption method according to any one of claims 1 to 5.

9. A readable storage medium, characterized by, The computer program stored on the readable storage medium is executed by the processor to realize the steps of the vehicle machine encryption method according to any one of claims 1 to 5.

10. A vehicle characterized by comprising: The vehicle comprises the vehicle machine encryption device according to any one of claims 6 to 7.

Citation Information

Patent Citations

  • Vehicle machine system and encryption method thereof

    CN111030808A

  • Offline detection method, industrial personal computer, ETC antenna device and system

    CN112232130A