Debugging method and device of vehicle controller
By using the vehicle service cloud's key encryption processing and root key matching in the vehicle controller, the problem of low security and flexibility caused by personnel diversity and scene complexity in vehicle controller debugging is solved, and high security is achieved A robust and flexible debugging solution.
Patent Information
- Application Number
- CN202410943182.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-15
AI Technical Summary
The development and debugging of vehicle controllers involves many people and complex scenarios. The safety and flexibility of debugging are low, and it is difficult to guarantee the safety debugging methods with the existing methods.
By implementing a debugging method in the vehicle controller, the key sent in advance by the vehicle service cloud is used for encryption processing, and compared with the preset root key. If consistent, debugging is performed to ensure security and flexibility. This method includes the user inputting the key on the interface, performing encryption processing, and matching it with the root key generated by the cloud. If the match is successful, debugging is performed.
It improves the safety and flexibility of vehicle controller debugging, is compatible with existing safety debugging solutions, is suitable for development, production, testing and after-sales stages, and has high security and flexible configuration.
Smart Images

Figure CN118778607A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of vehicle controllers, and in particular to a debugging method and device for a vehicle controller. Background Art
[0002] A vehicle includes multiple electronic control units (ECUs), which require debugging during both the R&D and after-sales stages. Safe debugging methods for vehicle controllers usually include debugging solutions from vehicle manufacturers and ECU suppliers.
[0003] However, the current development and debugging of vehicle controllers involves a large number of people and complex scenarios, and the security and flexibility of debugging are low.
[0004] Therefore, there is an urgent need for a vehicle controller debugging method that can improve the safety and flexibility of vehicle controller debugging. Summary of the invention
[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a debugging method and device for a vehicle controller.
[0006] The present disclosure provides a debugging method for a vehicle controller, which is applied to the vehicle controller and includes:
[0007] Responding to a user's debugging request for the vehicle controller, and displaying the vehicle controller interface according to the debugging request;
[0008] Obtaining a first key input by a user on the vehicle controller interface, performing a first encryption process on the first key to obtain a first encrypted value; wherein the first key is sent to the user in advance by the vehicle service cloud;
[0009] Obtaining a preset root key from a preset storage location, and performing a first encryption process on the preset root key to obtain a second encrypted value; wherein the preset root key represents a security identification code of the vehicle controller;
[0010] The first encrypted value and the second encrypted value are compared, and if the first encrypted value and the second encrypted value are consistent, the vehicle controller is debugged according to the first key.
[0011] In one example, obtaining a preset root key from a preset storage location and performing a first encryption process on the preset root key to obtain a second encrypted value includes:
[0012] Obtaining a preset root key from a preset storage location, and obtaining a vehicle identification code and current time information corresponding to the vehicle controller; wherein the current time information represents the time range information that the vehicle controller is allowed to access;
[0013] Performing a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller and the current time information to obtain a second key; wherein the second key is used to represent a standard debugging key of the vehicle controller;
[0014] A first encryption process is performed on the second key to obtain a second encrypted value.
[0015] In one example, before obtaining the preset root key from the preset storage location, the method further includes:
[0016] Determining whether the preset root key exists in the preset storage location;
[0017] If not, a root key request message is sent to the vehicle service cloud; wherein the vehicle service cloud is used to generate the preset root key according to the root key request message, and send the preset root key to the vehicle controller;
[0018] The preset root key is received, and the preset root key is stored in the preset storage location.
[0019] The disclosed embodiment also provides a debugging method for a vehicle controller, which is applied to a vehicle service cloud, and includes:
[0020] Responding to a root key request message and acquiring a random key according to the root key request message; wherein the root key request message is sent by the vehicle controller; and the random key is randomly generated in the vehicle service cloud;
[0021] Generate a preset root key according to the random key, a vehicle identification code corresponding to the vehicle controller and a salt value of the vehicle controller;
[0022] The preset root key is stored in the vehicle service cloud, and the preset root key is sent to the vehicle controller.
[0023] In one example, the method further includes:
[0024] In response to a first key query request from a user, the first key query request from the user is parsed to obtain a vehicle identification code corresponding to the vehicle controller, query time information, and a salt value of the vehicle controller; wherein the query time information is determined according to current time information;
[0025] Retrieving the preset root key in the vehicle service cloud according to the salt value of the vehicle controller;
[0026] Performing a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller, and the query time information to obtain a first key;
[0027] The first key is sent to the user.
[0028] In one example, before sending the preset root key to the vehicle controller, the method further includes:
[0029] The preset root key is subjected to a third encryption process to obtain an encrypted preset root key.
[0030] The embodiment of the present disclosure also provides a debugging device for a vehicle controller, which is applied to the vehicle controller and includes:
[0031] A display module, used to respond to a user's debugging request for the vehicle controller and display the vehicle controller interface according to the debugging request;
[0032] A first processing module, used for obtaining a first key input by a user on the vehicle controller interface, performing a first encryption process on the first key to obtain a first encrypted value; wherein the first key is sent to the user in advance by the vehicle service cloud;
[0033] A second processing module is used to obtain a preset root key from a preset storage location, and perform a first encryption process on the preset root key to obtain a second encrypted value; wherein the preset root key represents a security identification code of the vehicle controller;
[0034] The debugging module is used to compare the first encrypted value and the second encrypted value, and if the first encrypted value and the second encrypted value are consistent, debug the vehicle controller according to the first key.
[0035] The embodiment of the present disclosure also provides a debugging device for a vehicle controller, which is applied to a vehicle service cloud, including:
[0036] an acquisition module, configured to respond to a root key request message and acquire a random key according to the root key request message; wherein the root key request message is sent by the vehicle controller; and the random key is randomly generated in the vehicle service cloud;
[0037] A generation module, used to generate a preset root key according to the random key, a vehicle identification code corresponding to the vehicle controller and a salt value of the vehicle controller;
[0038] The first sending module is used to store the preset root key in the vehicle service cloud and send the preset root key to the vehicle controller.
[0039] The present disclosure also provides a vehicle controller, the vehicle controller comprising:
[0040] processor;
[0041] a memory for storing instructions executable by the processor;
[0042] The processor is used to read the executable instructions from the memory and execute the instructions to implement the debugging method of the vehicle controller described in any one of the above embodiments.
[0043] The embodiment of the present disclosure further provides a vehicle service cloud, the vehicle service cloud comprising:
[0044] processor;
[0045] a memory for storing instructions executable by the processor;
[0046] The processor is used to read the executable instructions from the memory and execute the instructions to implement the debugging method of the vehicle controller described in the above embodiment.
[0047] The embodiment of the present disclosure also provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the debugging method of the vehicle controller provided by the embodiment of the present disclosure.
[0048] The disclosed embodiment provides a debugging method and device for a vehicle controller, which is applied to a vehicle controller, and the method includes: responding to a debugging request of the vehicle controller by a user, and displaying the vehicle controller interface according to the debugging request; obtaining a first key input by the user in the vehicle controller interface, performing a first encryption process on the first key, and obtaining a first encrypted value; wherein the first key is pre-sent to the user by the vehicle service cloud; obtaining a preset root key from a preset storage location, and performing a first encryption process on the preset root key, and obtaining a second encrypted value; wherein the preset root key represents the security identification code of the vehicle controller; comparing the first encrypted value and the second encrypted value, and if the first encrypted value and the second encrypted value are consistent, debugging the vehicle controller according to the first key. The adoption of this technical solution can improve the security and flexibility of vehicle controller debugging. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1 A schematic diagram of a vehicle controller debugging process in the related art;
[0052] Figure 2 A flow chart of a method for debugging a vehicle controller provided by an embodiment of the present disclosure;
[0053] Figure 3 A flow chart of a method for debugging a vehicle controller provided by an embodiment of the present disclosure;
[0054] Figure 4 A flow chart of a method for debugging a vehicle controller provided by an embodiment of the present disclosure;
[0055] Figure 5 A schematic diagram of a first key query interface provided by an embodiment of the present disclosure;
[0056] Figure 6 A schematic diagram of a debugging process of a vehicle controller provided by an embodiment of the present disclosure;
[0057] Figure 7 A schematic diagram of another debugging process of a vehicle controller provided by an embodiment of the present disclosure;
[0058] Figure 8 A schematic diagram of interaction between a vehicle controller, a vehicle service cloud and a user provided in an embodiment of the present disclosure;
[0059] Fig. 9 A schematic diagram of the structure of a debugging device for a vehicle controller provided in an embodiment of the present disclosure;
[0060] Fig.10 A schematic diagram of the structure of a debugging device for a vehicle controller provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0061] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0062] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0063] The security debugging methods for different vehicle controllers vary, usually including the debugging solutions of the vehicle manufacturer and the ECU supplier.
[0064] For example, Figure 1 Schematic diagram of the vehicle controller debugging process in the related art, such as Figure 1 As shown, before the user performs security debugging on the vehicle controller, the first layer is the vehicle manufacturer (Original Equipment Manufacturer, referred to as OEM), which can provide security access requirements for ECU from the perspective of vehicle development and maintenance. It is usually defined in security diagnosis and used for functions such as Over-The-Air Technology (OTA) upgrades and secure debugging access. Furthermore, the OEM can define the type of security diagnosis and the security diagnosis algorithm. When the vehicle is filled with ECU software on the factory production line, random diagnostic codes based on different functions can be written to each ECU through the Public Key Infrastructure (PKI) system. These random diagnostic codes are one-machine and one-secret, and serve as credentials for secure access to the vehicle ECU.
[0065] The second layer is the security debugging solution provided by the ECU supplier, which is optional. Some ECU suppliers will make ECU security debugging solutions based on the security diagnosis defined by the OEM. Some manufacturers will further design security debugging solutions based on the previous ones to better protect the debugging security of ECUs. In short, for each ECU or different projects of the same ECU, different suppliers have different security debugging solutions, and security is difficult to guarantee.
[0066] The development and debugging of vehicle controllers involves many people and complex scenarios, such as supplier developers, vehicle after-sales personnel, vehicle testers, and factory personnel. There are many debugging tools, such as after-sales diagnostic instruments and specific diagnostic tools. In addition, it relies on a random diagnostic code written by the OEM factory production line, which has a unique machine and a unique password. The security control and traceability of the random diagnostic code are difficult to guarantee, and the password is permanent. The security and flexibility of debugging are low and need to be improved.
[0067] In order to solve the above problems, an embodiment of the present disclosure provides a debugging method for a vehicle controller, which is introduced below in conjunction with a specific embodiment.
[0068] Figure 2 The present invention provides a flow chart of a debugging method for a vehicle controller, which can be executed by a vehicle controller. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 2 As shown, the method includes:
[0069] S201, responding to a user's debugging request for a vehicle controller, and displaying a vehicle controller interface according to the debugging request.
[0070] In one example, the debugging request is used to debug the vehicle controller. Specifically, after receiving the debugging request from the user, the vehicle controller will display the content required to be filled in the debugging request on the vehicle controller interface.
[0071] In one example, the debugging method of the vehicle controller can be executed by the vehicle controller or the debugging tool. The embodiment of the disclosure takes the vehicle controller as an example for explanation. The debugging tool can include a diagnostic instrument, a diagnostic and software flashing tool, etc. The debugging tool can communicate with the vehicle controller to obtain relevant information; the vehicle controller can be an ECU in the vehicle that needs to be debugged. The embodiment of the disclosure does not limit the function and number of the vehicle controller.
[0072] S202, obtaining a first key input by the user in the vehicle controller interface, performing a first encryption process on the first key, and obtaining a first encrypted value; wherein the first key is pre-sent to the user by the vehicle service cloud.
[0073] In one example, the vehicle controller interface may be a display interface or a diagnostic tool. Specifically, if the vehicle controller has a display interface, the user may input the first key through the display interface. For example, the cockpit ECU may obtain the first key through the display interface. If the vehicle controller does not have a display interface, the first key may be obtained through a diagnostic tool, and the diagnostic tool may obtain the first key of the vehicle controller input by the user after the vehicle controller enters the extended mode security diagnosis.
[0074] In one example, for the sake of clarity, the first key can be recorded as DebugKey. In this embodiment, the DebugKey is encrypted for the first time to obtain a first encrypted value, which is recorded as DebugKeyHash. Furthermore, the algorithm used for the first encryption process can be the SHA256 algorithm. Among them, the SHA256 algorithm is an algorithm subdivided from the SHA2 series of algorithms, where SHA is the abbreviation of Secure Hash Algorithm, and the 256 value in the name represents the final hash value summary. The hash value is usually represented by a hexadecimal string of length 64 (consisting of random letters and numbers), which is equivalent to an array of length 32 bytes, where 1 byte = 8 bits.
[0075] In this embodiment, the first key input by the user in the vehicle controller interface may be obtained in advance from the vehicle service cloud.
[0076] S203, obtaining a preset root key from a preset storage location, and performing a first encryption process on the preset root key to obtain a second encrypted value; wherein the preset root key represents a security identification code of the vehicle controller.
[0077] In one example, the preset storage location may be an ECU secure storage area, in which a preset root key is pre-stored. For the sake of clarity, the preset root key may be recorded as ECURootDebugKey. The preset root key is then encrypted for the first time to obtain a second encrypted value, where the second encrypted value is recorded as DebugKeyHash'. The algorithm used for the first encryption process may be the SHA256 algorithm. In this embodiment, the preset root key is generated in the vehicle service cloud, and then stored in the preset storage location after interaction between the vehicle service cloud and the vehicle controller.
[0078] S204, comparing the first encrypted value and the second encrypted value, if the first encrypted value and the second encrypted value are consistent, debugging the vehicle controller according to the first key.
[0079] In one example, the first encrypted value DebugKeyHash and the second encrypted value DebugKeyHash' are compared. If the two values are consistent, it means that the first key input by the user meets the debugging conditions of the vehicle controller, and the vehicle controller can be debugged.
[0080] The disclosed embodiment provides a debugging method for a vehicle controller, which is applied to the vehicle controller, and includes: responding to a debugging request of the vehicle controller by a user, and displaying a vehicle controller interface according to the debugging request; obtaining a first key input by the user in the vehicle controller interface, performing a first encryption process on the first key, and obtaining a first encrypted value; wherein the first key is pre-sent to the user by the vehicle service cloud; obtaining a preset root key from a preset storage location, and performing a first encryption process on the preset root key, and obtaining a second encrypted value; wherein the preset root key represents a security identification code of the vehicle controller; comparing the first encrypted value and the second encrypted value, and if the first encrypted value and the second encrypted value are consistent, debugging the vehicle controller according to the first key. The adoption of this technical solution can improve the security and flexibility of debugging the vehicle controller.
[0081] Figure 3 The present invention provides a flow chart of a method for debugging a vehicle controller, which can be executed by the vehicle controller. Figure 3 As shown, the method includes:
[0082] S301, responding to a user's debugging request for a vehicle controller, and displaying a vehicle controller interface according to the debugging request.
[0083] In an example, this step may refer to the content of step S201.
[0084] S302, obtaining a first key input by the user in the vehicle controller interface, performing a first encryption process on the first key, and obtaining a first encrypted value; wherein the first key is pre-sent to the user by the vehicle service cloud.
[0085] In an example, this step may refer to the content of step S202.
[0086] S303: Determine whether there is a preset root key in the preset storage location.
[0087] In one example, when the vehicle controller is started, it can be determined whether there is a preset root key in a preset storage location. The preset storage location can be an ECU security storage area. That is, when the vehicle controller is started, the preset root key ECURootDebugKey is searched in the ECU security storage area.
[0088] S304: If not, send a root key request message to the vehicle service cloud; wherein the vehicle service cloud is used to generate a preset root key according to the root key request message, and send the preset root key to the vehicle controller.
[0089] In one example, if the preset root key ECURootDebugKey is not found in the ECU secure storage area, it means that the preset root key ECURootDebugKey cannot be obtained in the ECU secure storage area. Then a root key request message is sent to the vehicle service cloud, and the vehicle service cloud generates a preset root key based on the root key request message. Specifically, the root key request message carries the vehicle identification code corresponding to the vehicle controller and the salt value of the vehicle controller. The salt value of the vehicle controller can be recorded as ECU-Salt here for a clearer explanation. The salt value of the vehicle controller is a parameter value, which is used to distinguish different vehicle controllers, that is, different vehicle controllers have different salt values.
[0090] Further, the vehicle service cloud obtains a random key according to the root key request message, wherein the random key may be a RootDebugKey, wherein the RootDebugKey is 128 bits. The random key is a unique key generated by the vehicle controller, and the random key is used to debug the security of the vehicle controller. Specifically, different vehicle controllers of different vehicles have different random keys. Further, the random key is randomly generated and securely stored in an encryption machine in the vehicle service cloud. After the preset root key is generated in the vehicle service cloud, the preset root key is sent to the vehicle controller.
[0091] S305: Receive a preset root key, and store the preset root key in a preset storage location.
[0092] In one example, a preset root key sent from a vehicle service cloud is received, and then the preset root key is stored in a preset storage location.
[0093] S306. Obtain a preset root key from a preset storage location, and obtain a vehicle identification code and current time information corresponding to the vehicle controller; wherein the current time information represents the time range information allowed to be accessed by the vehicle controller.
[0094] In one example, the vehicle identification number (VIN) is a serial number used to uniquely identify a vehicle. It consists of 17 characters, including numbers and uppercase letters. The vehicle identification number may include information such as the manufacturer, year, model, and code, engine code, and assembly location of the vehicle. The current time information may be the time range information that the vehicle controller allows access to. For example, if the time range information that the vehicle controller allows access to is June 2024, the current time information may be June 2024.
[0095] S307, performing a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller and the current time information to obtain a second key; wherein the second key is used to represent a standard debugging key of the vehicle controller.
[0096] In one example, the algorithm used for the second encryption process may be AES-128-CMAC, and specifically, the second key may be Debug Key'. Specifically, Debug Key'=AES-128-CMAC (ECURootDebugKey, VIN|current time information). ECURootDebugKey is a preset root key, and VIN represents a vehicle identification code.
[0097] S308, performing a first encryption process on the second key to obtain a second encrypted value, wherein the preset root key represents the security identification code of the vehicle controller.
[0098] In one example, the second key may be Debug Key' and encryption processing is performed using the SHA256 algorithm. Specifically, DebugKeyHash'=SHA256(Debug Key').
[0099] S309, comparing the first encrypted value and the second encrypted value, if the first encrypted value and the second encrypted value are consistent, debugging the vehicle controller according to the first key.
[0100] In one example, if the first encrypted value is inconsistent with the second encrypted value, a prompt is popped up through the vehicle controller interface or the diagnosis returns an error code.
[0101] The disclosed embodiment provides a debugging method for a vehicle controller, which is applied to the vehicle controller, and the method includes: obtaining a preset root key from a preset storage location, and obtaining a vehicle identification code and current time information corresponding to the vehicle controller; wherein the current time information represents the time range information that the vehicle controller is allowed to access. Perform a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller, and the current time information to obtain a second key; wherein the second key is used to represent the standard debugging key of the vehicle controller. Perform a first encryption process on the second key to obtain a second encrypted value. wherein the preset root key represents the security identification code of the vehicle controller. Compare the first encrypted value and the second encrypted value, if the first encrypted value and the second encrypted value are consistent, debug the vehicle controller according to the first key. The technical solution has good compatibility. Taking into account the existing security debugging solution of the vehicle, it can be used as an enhanced solution for the existing security debugging solution, or as an independent security solution.
[0102] Figure 4The flowchart of a vehicle controller debugging method provided by the embodiment of the present disclosure is shown in FIG. 1 , which can be executed by the vehicle service cloud. Figure 4 As shown, the method includes:
[0103] S401. Respond to a root key request message and obtain a random key according to the root key request message; wherein the root key request message is sent by a vehicle controller; and the random key is randomly generated in the vehicle service cloud.
[0104] In one example, the root key request message is sent by a vehicle controller.
[0105] The root key request message is used to request a preset root key. The process of generating the random key can refer to the content of step S304.
[0106] In one example, the vehicle service cloud (Telematics Service Provider, TSP for short) can be a platform that provides remote communication and data services for vehicles. Through TSP, automobile manufacturers can provide vehicles with real-time data exchange, vehicle status monitoring, remote control, intelligent navigation and other services.
[0107] S402: Generate a preset root key according to the random key, the vehicle identification code corresponding to the vehicle controller and the salt value of the vehicle controller.
[0108] In one example, the vehicle identification code corresponding to the vehicle controller and the salt value of the vehicle controller are obtained from the root key request message. Then the preset root key ECURootDebugKey can be specifically generated as follows:
[0109] ECURootDebugKey=AES-256-CMAC(RootDebugKey, VIN|ECU-Salt). Among them, ECU-Salt is the salt value of the vehicle controller. AES-256-CMAC is an algorithm. AES (Advanced Encryption Standard) is a symmetric encryption algorithm that is widely used to protect the security of sensitive data. AES-256 uses a 256-bit key. CMAC (Cipher-based Message Authentication Code) is a password-based message authentication code algorithm. It is a deterministic key-related function used to calculate the authentication code of a message to verify the integrity and authenticity of the message. A specific implementation of CMAC is to use the AES algorithm, so CMAC is also called AES-CMAC.
[0110] S403: Store the preset root key in the vehicle service cloud, and send the preset root key to the vehicle controller.
[0111] In one example, the ECURootDebugKey is stored in the vehicle service cloud, and the preset root key is sent to the vehicle controller.
[0112] In one example, before sending the preset root key to the vehicle controller, the method further includes:
[0113] The preset root key is subjected to a third encryption process to obtain an encrypted preset root key.
[0114] In one example, the algorithm of the third encryption processing may be the EC EIGamal algorithm. Specifically, the encrypted preset root key Encrypted ECU Root Debug Key = ECEIGamal-256 (ECU public key, TSP private key, ECU RootDebug Key), where the ECU public key is the vehicle controller public key, the TSP private key is the vehicle service cloud private key, and the ECU RootDebug Key is the preset root key. Further, if the encrypted preset root key is sent to
[0115] After the vehicle controller, when the vehicle controller decrypts the encrypted preset root key, the specific preset root key ECURootDebugKey = ECEIGamal-256 (TSP public key, ECU private key, EncryptedECURootDebugKey), where the ECU private key is the vehicle controller private key and the TSP public key is the vehicle service cloud public key. After the vehicle controller decrypts the encrypted preset root key, the ECURootDebugKey is stored in the preset storage location.
[0116] The above-mentioned ElGamal algorithm is established based on the discrete logarithm problem and is an asymmetric encryption algorithm. ElGamal can be used for both encryption and digital signature.
[0117] In the above scheme, the vehicle service cloud and the vehicle controller can communicate based on Hypertext Transfer Protocol Secure (HTTPS), and use two-way Transport Layer Security (TLS) authentication to further ensure the security of data transmission.
[0118] In one example, the method further includes:
[0119] In response to the user's first key query request, the user's first key query request is parsed to obtain a vehicle identification code corresponding to the vehicle controller, query time information, and a salt value of the vehicle controller; wherein the query time information is determined according to the current time information;
[0120] According to the salt value of the vehicle controller, the preset root key is retrieved from the vehicle service cloud;
[0121] Performing a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller, and the query time information to obtain a first key;
[0122] The first key is sent to the user.
[0123] In an example, to make it clearer, see Figure 5 A schematic diagram of a first key query interface is shown. Figure 5 It can be seen that the first key query request requires the user to input the vehicle identification code corresponding to the vehicle controller, the query time information, the salt value of the vehicle controller and the debugging password. Among them, the query time information can be determined by the user after querying the current time information. For example, the current time information can be June 2024, and the query time information is determined according to the time granularity. Among them, the time granularity can be year, month and day. If the time granularity is year, when the current time information is June 2024, the time range allowed to be accessed by the vehicle controller is 2024, and the query time information can be 2024.
[0124] For example, the expression of time granularity can be shown as follows:
[0125] Year: AES-128-CMAC(ECURootDebugKey, VIN|2028);
[0126] month: AES-128-CMAC(ECURootDebugKey, VIN|202801);
[0127] Day: AES-128-CMAC(ECURootDebugKey, VIN|20280128);
[0128] Among them, ECU Root Debug Key represents the preset root key, VIN represents the vehicle identification code corresponding to the vehicle controller, and 2028, 202801, and 20280128 represent query time information determined at different time granularities.
[0129] Specifically, when the user inputs, the query time information can be any time between January 1, 2024 and December 31, 2024. If the time granularity is empty, it means that the preset root key of the vehicle controller is permanently valid. The calculation process of the first key DebugKey can be referred to the following formula: DebugKey = AES-128-CMAC (ECURootDebugKey, VIN | query time information), where Debug Key represents the first key, ECU Root Debug Key represents the preset root key, and VIN represents the vehicle identification code corresponding to the vehicle controller.
[0130] After the first key is obtained, the first key is displayed on the first key query interface.
[0131] The disclosed embodiment provides a debugging method for a vehicle controller, which is applied to a vehicle service cloud, and the method includes: responding to a root key request message, and obtaining a random key according to the root key request message, generating a preset root key according to the random key, the vehicle identification code corresponding to the vehicle controller and the salt value of the vehicle controller, storing the preset root key in the vehicle service cloud, and sending the preset root key to the vehicle controller. With this technical solution, one vehicle, one vehicle controller, and one key have extremely high security, and the algorithm can be flexibly adjusted. The debugging is effective within the specified time limit, the configuration is flexible, and the vehicle service cloud has secure password security storage, independent account management and log tracking, high security, and can be used as an independent security solution, not limited to security debugging. The debugging solution of the vehicle controller of this solution can meet high security while taking into account the debugging needs of the vehicle controller in various scenarios, such as the development stage, production stage, testing stage, and after-sales stage.
[0132] For a clearer explanation, see Figure 6 A schematic diagram of a debugging process of a vehicle controller is shown.
[0133] To explain more clearly, Figure 7 A schematic diagram of a debugging process of another vehicle controller provided in an embodiment of the present disclosure.
[0134] To explain more clearly, Figure 8 A schematic diagram of the interaction between a vehicle controller, a vehicle service cloud and a user is shown.
[0135] Fig. 9 The present invention provides a schematic diagram of the structure of a vehicle controller debugging device, which is applied to the vehicle controller. Fig. 9 As shown, the device 90 comprises:
[0136] The display module 901 is used to respond to the user's debugging request for the vehicle controller and display the vehicle controller interface according to the debugging request;
[0137] The first processing module 902 is used to obtain a first key input by the user in the vehicle controller interface, perform a first encryption process on the first key, and obtain a first encrypted value; wherein the first key is sent to the user in advance by the vehicle service cloud;
[0138] The second processing module 903 is used to obtain a preset root key from a preset storage location and perform a first encryption process on the preset root key to obtain a second encrypted value; wherein the preset root key represents a security identification code of the vehicle controller;
[0139] The debugging module 904 is used to compare the first encrypted value and the second encrypted value, and if the first encrypted value and the second encrypted value are consistent, debug the vehicle controller according to the first key.
[0140] In one example, the second processing module 903 is specifically configured to:
[0141] Obtaining a preset root key from a preset storage location, and obtaining a vehicle identification code and current time information corresponding to the vehicle controller; wherein the current time information represents the time range information that the vehicle controller is allowed to access;
[0142] Performing a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller and the current time information to obtain a second key; wherein the second key is used to represent a standard debugging key of the vehicle controller;
[0143] The first encryption process is performed on the second key to obtain a second encrypted value.
[0144] In one example, the apparatus 90 further includes:
[0145] The determination module 905 is used to determine whether there is a preset root key in the preset storage location;
[0146] The second sending module 906 is used for sending a root key request message to the vehicle service cloud if no; wherein the vehicle service cloud is used for generating a preset root key according to the root key request message and sending the preset root key to the vehicle controller;
[0147] The storage module 907 is used to receive a preset root key and store the preset root key in a preset storage location.
[0148] The debugging device for the vehicle controller provided in the embodiments of the present disclosure can execute the method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0149] Fig.10 The schematic diagram of the structure of a debugging device for a vehicle controller provided by an embodiment of the present disclosure is applied to a vehicle service cloud. Fig.10 As shown, the device 100 includes:
[0150] The acquisition module 1001 is used to respond to the root key request message and acquire the random key according to the root key request message; wherein the root key request message is sent by the vehicle controller; the random key is randomly generated in the vehicle service cloud;
[0151] A generating module 1002, for generating a preset root key according to a random key, a vehicle identification code corresponding to the vehicle controller and a salt value of the vehicle controller;
[0152] The first sending module 1003 is used to store the preset root key in the vehicle service cloud and send the preset root key to the vehicle controller.
[0153] In one example, the apparatus 100 further includes:
[0154] The parsing module 1004 is used to respond to the user's first key query request, parse the user's first key query request, and obtain the vehicle identification code corresponding to the vehicle controller, the query time information and the salt value of the vehicle controller; wherein the query time information is determined according to the current time information;
[0155] The retrieval module 1005 is used to retrieve a preset root key in the vehicle service cloud according to the salt value of the vehicle controller;
[0156] The third processing module 1006 is used to perform a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller and the query time information to obtain the first key;
[0157] The third sending module 1007 is used to send the first key to the user.
[0158] In one example, the apparatus 100 further includes:
[0159] The fourth processing module 1008 is used to perform a third encryption process on the preset root key to obtain an encrypted preset root key.
[0160] The debugging device for the vehicle controller provided in the embodiments of the present disclosure can execute the method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0161] The embodiment of the present disclosure further provides a vehicle controller, the vehicle controller comprising:
[0162] processor;
[0163] a memory for storing processor-executable instructions;
[0164] The processor is used to read executable instructions from the memory and execute the instructions to implement any of the vehicle controller debugging methods in the above embodiments.
[0165] The embodiment of the present disclosure further provides a vehicle service cloud, which includes:
[0166] processor;
[0167] a memory for storing processor-executable instructions;
[0168] The processor is used to read executable instructions from the memory and execute the instructions to implement any of the vehicle controller debugging methods in the above embodiments.
[0169] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0170] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0171] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0172] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.
[0173] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0174] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0175] The embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.
[0176] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0177] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for debugging a vehicle controller, characterized in that: Applied to vehicle controllers, including: responding to a user's debugging request for the vehicle controller and displaying the vehicle controller interface according to the debugging request; Obtaining a first key input by a user on the vehicle controller interface, performing a first encryption process on the first key to obtain a first encrypted value; wherein the first key is sent to the user in advance by the vehicle service cloud; Obtaining a preset root key from a preset storage location, and performing a first encryption process on the preset root key to obtain a second encrypted value; wherein the preset root key represents a security identification code of the vehicle controller; The first encrypted value and the second encrypted value are compared, and if the first encrypted value and the second encrypted value are consistent, the vehicle controller is debugged according to the first key.
2. The method according to claim 1, characterized in that The step of obtaining a preset root key from a preset storage location and performing a first encryption process on the preset root key to obtain a second encrypted value includes: Obtaining a preset root key from a preset storage location, and obtaining a vehicle identification code and current time information corresponding to the vehicle controller; wherein the current time information represents the time range information that the vehicle controller is allowed to access; Performing a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller and the current time information to obtain a second key; wherein the second key is used to represent a standard debugging key of the vehicle controller; A first encryption process is performed on the second key to obtain a second encrypted value.
3. The method according to claim 2, characterized in that Before obtaining the preset root key from the preset storage location, the method further includes: Determining whether the preset root key exists in the preset storage location; If not, a root key request message is sent to the vehicle service cloud; wherein the vehicle service cloud is used to generate the preset root key according to the root key request message, and send the preset root key to the vehicle controller; The preset root key is received, and the preset root key is stored in the preset storage location.
4. A method for debugging a vehicle controller, characterized in that: Applied to vehicle service cloud, including: Responding to a root key request message and acquiring a random key according to the root key request message; wherein the root key request message is sent by the vehicle controller; and the random key is randomly generated in the vehicle service cloud; Generate a preset root key according to the random key, a vehicle identification code corresponding to the vehicle controller and a salt value of the vehicle controller; The preset root key is stored in the vehicle service cloud, and the preset root key is sent to the vehicle controller.
5. The method according to claim 4, characterized in that The method further comprises: In response to a first key query request from a user, the first key query request from the user is parsed to obtain a vehicle identification code corresponding to the vehicle controller, query time information, and a salt value of the vehicle controller; wherein the query time information is determined according to current time information; Retrieving the preset root key in the vehicle service cloud according to the salt value of the vehicle controller; Performing a second encryption process on the preset root key, the vehicle identification code corresponding to the vehicle controller, and the query time information to obtain a first key; The first key is sent to the user.
6. The method according to claim 4, characterized in that Before sending the preset root key to the vehicle controller, the method further includes: The preset root key is subjected to a third encryption process to obtain an encrypted preset root key.
7. A debugging device for a vehicle controller, characterized in that: Applied to vehicle controllers, including: A display module, used to respond to a user's debugging request for the vehicle controller and display the vehicle controller interface according to the debugging request; A first processing module, used for obtaining a first key input by a user on the vehicle controller interface, performing a first encryption process on the first key to obtain a first encrypted value; wherein the first key is sent to the user in advance by the vehicle service cloud; A second processing module is used to obtain a preset root key from a preset storage location, and perform a first encryption process on the preset root key to obtain a second encrypted value; wherein the preset root key represents a security identification code of the vehicle controller; The debugging module is used to compare the first encrypted value and the second encrypted value, and if the first encrypted value and the second encrypted value are consistent, debug the vehicle controller according to the first key.
8. A debugging device for a vehicle controller, characterized in that: Applied to vehicle service cloud, including: an acquisition module, configured to respond to a root key request message and acquire a random key according to the root key request message; wherein the root key request message is sent by the vehicle controller; and the random key is randomly generated in the vehicle service cloud; A generation module, used to generate a preset root key according to the random key, a vehicle identification code corresponding to the vehicle controller and a salt value of the vehicle controller; The first sending module is used to store the preset root key in the vehicle service cloud and send the preset root key to the vehicle controller.
9. A vehicle controller, characterized in that: The vehicle controller comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the debugging method of the vehicle controller described in any one of claims 1-3 above.
10. A vehicle service cloud, characterized in that: The vehicle service cloud includes: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the debugging method of the vehicle controller described in any one of claims 4-6.
Citation Information
Patent Citations
Vehicle controller debugging method, device and equipment and readable storage medium
CN116820974A
In-vehicle infotainment debugging method, server, in-vehicle infotainment equipment and computer readable storage medium
CN117479152A
Access verification method and system of domain controller
CN118041628A
Reuse system, key generation device, data security device, in-vehicle computer, reuse method, and computer program
US20190245691A1
Secure cloud storage and retrieval of client-side encrypted files
US20230421370A1
