Electronic control unit, control method therefor, electronic device and storage medium

By using random seed messages and authentication request messages in the automotive network management system for identity authentication, the problem of insufficient identity authentication capabilities of the ECU is solved, security and power management are improved, and the driving safety of new energy vehicles is ensured.

WO2024174973A1PCT designated stage expired Publication Date: 2024-08-29HOZON NEW ENERGY AUTOMOBILE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/077679
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2024-02-20
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In new energy vehicles, the network management system only relies on specific field identification of wake-up messages during ECU identity authentication, resulting in poor identity recognition capabilities and easily leading to malicious wake-up of the ECU and increased power consumption, affecting driving safety.

Method used

In the network management system of the automotive open system architecture, the second electronic control unit sends a random seed message to the first electronic control unit after being awakened, and performs identity authentication based on the random seed message and authentication request message to ensure identity. Enter the working mode only after the authentication is successful, otherwise perform the power-off process.

Benefits of technology

It improves the identity authentication capability of the ECU, reduces the risk of identity authentication parameters being forged, saves power consumption, improves driving safety, and reduces the exposure of application messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024077679_29082024_PF_FP_ABST
    Figure CN2024077679_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present invention are an electronic control unit and a control method therefor, which are applied to network management systems of automotive open system architectures. The method comprises: after being awakened by a first electronic control unit, a second electronic control unit sends a random seed message to the first electronic control unit, receives an authentication request message from the first electronic control unit, and performs identity authentication on the first electronic control unit according to the random seed message and the authentication request message; when the authentication succeeds, the second electronic control unit enters a working mode; and when the authentication fails, the second electronic control unit executes a power-off process. The embodiments of the present invention reduce the risk of forging of identity authentication parameters, improve the identity authentication capability, and avoid malicious calling of the second electronic control unit, thus saving the electric quantity consumption of the second electronic control unit, improving driving safety, protecting application messages of the second electronic control unit, and reducing exposure of the application messages.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic control unit, control method thereof, electronic device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 21, 2023, with application number 202310160394.6 and application name “Electronic control unit and its control method, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of automobile safety technology, and in particular to a control method for an electronic control unit, an electronic control unit, an electronic device, and a computer-readable storage medium. Background Art

[0003] The Automotive Open System Architecture (AUTOSAR) is an open automotive electronic system architecture used to standardize the design and development of automotive electronic systems. It is a cross-vendor, cross-domain open standard designed to unify the design, development, integration, and testing methods of automotive electronic systems. AUTOSAR aims to reduce the development cycle and cost of automotive electronic systems by providing a unified architecture and interfaces, while ensuring scalability and maintainability. It also provides a flexible architecture for software development in automotive electronic systems, supporting rapid feature development and upgrades. Consequently, AUTOSAR has brought higher efficiency and more stable quality to the automotive electronics industry, driving the development of automotive technology.

[0004] New energy vehicles are equipped with a variety of electronic control units (ECUs), all of which consume electrical energy. ECUs are typically powered by batteries, but battery capacity is limited. For new energy vehicles, excessive battery power consumption will undoubtedly have a significant impact on vehicle range. Therefore, to conserve battery power as much as possible, AUTOSAR has developed a network management system. Within AUTOSAR, the network management system manages communications between multiple ECUs in a vehicle. It does this by sending commands across the network connecting each ECU to establish a set of rules for coordinated sleep and wakeup. One of the goals of a network management system is to ensure orderly sleep and wakeup of ECUs within the network. ECUs sleep when there is no need for communication and wake up when communication is required, thus conserving energy.

[0005] However, when the network management system authenticates the ECU, only the awakened ECU recognizes specific fields in the wake-up message. The identity recognition capability is poor, which can easily lead to the ECU being maliciously awakened, increasing power consumption, and even being attacked by external forces, thus causing driving safety problems.

[0006] Summary of the Invention

[0007] In view of the above problems, embodiments of the present invention are proposed to provide a control method of an electronic control unit, an electronic control unit, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0008] In order to solve the above problems, according to a first aspect of an embodiment of the present invention, a control method for an electronic control unit is disclosed, which is applied to a network management system of an automotive open system architecture, wherein the network management system includes a first electronic control unit and a second electronic control unit, and the method includes: after being awakened by the first electronic control unit, the second electronic control unit sends a random seed message to the first electronic control unit; the second electronic control unit receives an authentication request message generated according to the random seed message from the first electronic control unit; the second electronic control unit authenticates the first electronic control unit according to the random seed message and the authentication request message; when the identity authentication of the first electronic control unit is successful, the second electronic control unit enters an operating mode; when the identity authentication of the first electronic control unit fails, the second electronic control unit executes a power-off process.

[0009] Optionally, the second electronic control unit performs identity authentication on the first electronic control unit based on the random seed message and the authentication request message, including: the second electronic control unit generates an authentication verification message based on the random seed message; the second electronic control unit performs identity authentication on the first electronic control unit based on the authentication verification message and the authentication request message.

[0010] Optionally, the second electronic control unit generates an authentication verification message according to the random seed message, comprising: the second electronic control unit encrypts the random seed message according to a preset encryption algorithm to obtain the authentication verification message.

[0011] Optionally, the second electronic control unit performs identity authentication on the first electronic control unit based on the authentication verification message and the authentication request message, including: the second electronic control unit compares the authentication verification message with the authentication request message; if the authentication verification message is the same as the authentication request message, the second electronic control unit confirms that the identity authentication of the first electronic control unit is successful; if the authentication verification message is different from the authentication request message, the second electronic control unit confirms that the identity authentication of the first electronic control unit has failed.

[0012] According to a second aspect of an embodiment of the present invention, a control method for an electronic control unit is also disclosed, which is applied to a network management system of an automotive open system architecture, wherein the network management system includes a first electronic control unit and a second electronic control unit, and the method includes: after waking up the second electronic control unit, the first electronic control unit receives a random seed message from the second electronic control unit; the first electronic control unit generates an authentication request message based on the random seed message, and sends the authentication request message to the second electronic control unit, so that the second electronic control unit performs identity authentication on the first electronic control unit based on the random seed message and the authentication request message; when the identity authentication of the first electronic control unit is successful, the second electronic control unit enters the working mode; when the identity authentication of the first electronic control unit fails, the second electronic control unit executes the power-off process.

[0013] Optionally, the first electronic control unit generates an authentication request message according to the random seed message, comprising: the first electronic control unit encrypts the random seed message according to a preset encryption algorithm to obtain the authentication request message.

[0014] According to a third aspect of an embodiment of the present invention, an electronic control unit is also disclosed, which is applied to a network management system of an automotive open system architecture. The network management system includes a first electronic control unit and a second electronic control unit, and the second electronic control unit includes: a seed message sending module, which is used to send a random seed message to the first electronic control unit after the second electronic control unit is awakened by the first electronic control unit; a request message receiving module, which is used to receive an authentication request message generated according to the random seed message from the first electronic control unit; an identity authentication module, which is used to authenticate the first electronic control unit based on the random seed message and the authentication request message; an authentication processing module, which is used to enter the working mode of the second electronic control unit when the identity authentication of the first electronic control unit is successful; and execute the power-off process of the second electronic control unit when the identity authentication of the first electronic control unit fails.

[0015] Optionally, the identity authentication module includes: an authentication verification message generation module, used to generate an authentication verification message based on the random seed message; and an ECU identity authentication module, used to authenticate the first electronic control unit based on the authentication verification message and the authentication request message.

[0016] Optionally, the authentication verification message generation module is configured to encrypt the random seed message according to a preset encryption algorithm to obtain the authentication verification message.

[0017] Optionally, the ECU identity authentication module includes: a message comparison module, used to compare the authentication verification message with the authentication request message; an identity authentication confirmation module, used to confirm that the identity authentication of the first electronic control unit is successful if the authentication verification message is the same as the authentication request message; if the authentication verification message is different from the authentication request message, confirm that the identity authentication of the first electronic control unit has failed.

[0018] According to a fourth aspect of an embodiment of the present invention, an electronic control unit is also disclosed, which is applied to a network management system of an automotive open system architecture. The network management system includes a first electronic control unit and a second electronic control unit. The first electronic control unit includes: a seed message receiving module, which is used to receive a random seed message from the second electronic control unit after the first electronic control unit wakes up the second electronic control unit; a request message sending module, which is used to generate an authentication request message based on the random seed message and send the authentication request message to the second electronic control unit, so that the second electronic control unit performs identity authentication on the first electronic control unit based on the random seed message and the authentication request message. When the identity authentication of the first electronic control unit is successful, the second electronic control unit enters the working mode; when the identity authentication of the first electronic control unit fails, the second electronic control unit executes the power-off process.

[0019] Optionally, the request message sending module is configured to enable the first electronic control unit to encrypt the random seed message according to a preset encryption algorithm to obtain the authentication request message.

[0020] According to the fifth aspect of an embodiment of the present invention, an electronic device is also disclosed, comprising a memory, a processor, and a computer program stored on the memory and runnable on the processor, wherein when the processor executes the computer program, a control method of an electronic control unit described in the first aspect or the second aspect is implemented.

[0021] According to a sixth aspect of an embodiment of the present invention, a computer-readable storage medium is further disclosed, on which a computer program is stored. When the program is executed by a processor, the control method of an electronic control unit described in the first aspect or the second aspect is implemented.

[0022] According to the seventh aspect of an embodiment of the present invention, a computer program product is also disclosed, comprising a computer-readable code. When the computer-readable code runs on an electronic device, the electronic device executes a control method of an electronic control unit as described in the first aspect or the second aspect.

[0023] Compared with the prior art, the technical solution provided by the embodiment of the present invention has the following advantages:

[0024] A control scheme for an electronic control unit provided by an embodiment of the present invention is applied to a network management system of an automotive open system architecture, wherein the network management system includes a first electronic control unit and a second electronic control unit. After being awakened by the first electronic control unit, the second electronic control unit sends a random seed message to the first electronic control unit. The second electronic control unit receives an authentication request message generated by the first electronic control unit based on the random seed message from the first electronic control unit, and then performs identity authentication on the first electronic control unit based on the random seed message and the authentication request message. If the identity authentication of the first electronic control unit is successful, the second electronic control unit enters a functional mode. If the identity authentication of the first electronic control unit fails, the second electronic control unit executes a power-off process.

[0025] In the embodiment of the present invention, after the second electronic control unit is awakened by the first electronic control unit, and before the second electronic control unit enters the working mode, the first electronic control unit can be authenticated based on the random seed message and the authentication request message from the first electronic control unit. When the identity authentication of the first electronic control unit is successful, it indicates that the first electronic control unit is a safe electronic control unit and the second electronic control unit can enter the working mode. When the identity authentication of the first electronic control unit fails, it indicates that the first electronic control unit is an unsafe electronic control unit and the second electronic control unit does not enter the working mode, but executes the power-off process of the second electronic control unit. In the embodiment of the present invention, after the second electronic control unit is awakened and before entering the working mode, a process of authenticating the wake-up source (first electronic control unit) of the second electronic control unit is added. The authentication process is not simply to identify a specific field in the wake-up message, but the second electronic control unit first sends a random seed message to the wake-up source, and then receives an authentication request message from the wake-up source, and then uses the random seed message and the authentication request message to authenticate the wake-up source. That is to say, the identity authentication process requires at least two identity authentication parameters, namely the random seed message and the authentication request message. Compared with simply identifying specific fields in the wake-up message, the embodiment of the present invention adds identity authentication parameters for identity authentication, reduces the risk of identity authentication parameters being forged, improves identity authentication capabilities, and avoids the second electronic control unit from being maliciously called. On the one hand, it saves the power consumption of the second electronic control unit and improves driving safety. On the other hand, it protects the application message of the second electronic control unit (the application message is only sent out when the second electronic control unit is in working mode) and reduces the exposure of the application message.

[0026] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0028] FIG1 schematically shows a flow chart of steps of a control method of an electronic control unit according to an embodiment of the present invention;

[0029] FIG2 schematically shows a flow chart of an ECU access authorization solution according to an embodiment of the present invention;

[0030] FIG3 schematically shows a flow chart of steps of another control method of an electronic control unit according to an embodiment of the present invention;

[0031] FIG4 schematically shows a workflow diagram of an electronic control unit according to an embodiment of the present invention;

[0032] FIG5 schematically shows a schematic diagram of an electronic control unit according to an embodiment of the present invention;

[0033] FIG6 schematically shows a structural block diagram of an electronic control unit according to an embodiment of the present invention;

[0034] FIG7 schematically shows a structural block diagram of another electronic control unit according to an embodiment of the present invention;

[0035] FIG8 schematically shows a structural block diagram of an electronic device according to an embodiment of the present invention. Specific embodiments

[0036] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Referring to FIG1 , a flowchart of a method for controlling an electronic control unit according to an embodiment of the present invention is shown. The method for controlling an electronic control unit can be applied to a network management system of an automotive open system architecture, wherein the network management system includes a first electronic control unit and a second electronic control unit. The method for controlling the electronic control unit may specifically include the following steps:

[0037] Step 101: After being awakened by the first electronic control unit, the second electronic control unit sends a random seed message to the first electronic control unit.

[0038] In an embodiment of the present invention, both the first electronic control unit and the second electronic control unit may be electronic control units disposed within the vehicle. Furthermore, the first electronic control unit may send a Network Management Frame (NMF) to the second electronic control unit to wake up the second electronic control unit. In practical applications, the first electronic control unit may periodically send NMFs to the second electronic control unit to wake up the second electronic control unit. In other words, the second electronic control unit needs to periodically receive NMFs from the first electronic control unit in order to be awakened.

[0039] After the second electronic control unit is awakened by the first electronic control unit (the first electronic control unit is the wake-up source of the second electronic control unit), a random seed message can be generated. In practical applications, the random seed message is usually a random number of a specific byte length. The second control unit can generate a unique random seed message based on the current timestamp. The random seed message only needs to ensure randomness and uniqueness in a power-on cycle. Then, the second electronic control unit sends the random seed message to the first electronic control unit.

[0040] In network management systems, electronic control units (ECUs) typically transmit messages to each other. Messages are data that conform to a specific format and contain information about the data's source, destination, and content. In the automotive software field, ECUs communicate over the network using specific protocols, such as the Controller Area Network (CAN) protocol. Messages can contain control information, status information, fault information, and more.

[0041] Step 102: The second electronic control unit receives an authentication request message generated according to the random seed message from the first electronic control unit.

[0042] In an embodiment of the present invention, after waking up the second electronic control unit, the first electronic control unit can generate an authentication request message based on the random seed message and send the authentication request message to the second electronic control unit. In practical applications, the authentication request message can be a message, a command, a data packet, etc. This embodiment of the present invention does not specifically limit the content, format, type, etc. of the authentication request message sent by the first electronic control unit to the second electronic control unit.

[0043] Step 103: The second electronic control unit performs identity authentication on the first electronic control unit according to the random seed message and the authentication request message.

[0044] In an embodiment of the present invention, after being awakened by the first electronic control unit, the second electronic control unit does not immediately enter the operating mode. Instead, it needs to authenticate the identity of the first electronic control unit, which is the awakening source. In actual applications, the second electronic control unit can authenticate the identity of the first electronic control unit based on the random seed message generated by itself and the authentication request message sent by the first electronic control unit.

[0045] When the identity authentication of the first electronic control unit succeeds, step 104 is executed; when the identity authentication of the first electronic control unit fails, step 105 is executed.

[0046] Step 104: The second electronic control unit enters a working mode.

[0047] In an embodiment of the present invention, if the identity authentication of the first electronic control unit is passed, it may indicate that the first electronic control unit is a safe wakeup source, and the second electronic control unit may enter the working mode after being awakened by the safe wakeup source.

[0048] Step 105 : The second electronic control unit executes a power-off process.

[0049] In an embodiment of the present invention, if the identity authentication of the first electronic control unit fails, it may indicate that the first electronic control unit is an unsafe wake-up source. Moreover, after the second electronic control unit is awakened by the unsafe wake-up source, it executes the power-off process. On the one hand, it can save power consumption, and on the other hand, it can protect the application message of the second electronic control unit (the application message is only sent out when the second electronic control unit is in working mode), thereby reducing the exposure of the application message.

[0050] A control scheme for an electronic control unit provided by an embodiment of the present invention is applied to a network management system of an automotive open system architecture, wherein the network management system includes a first electronic control unit and a second electronic control unit. After being awakened by the first electronic control unit, the second electronic control unit sends a random seed message to the first electronic control unit. The second electronic control unit receives an authentication request message generated by the first electronic control unit based on the random seed message from the first electronic control unit, and then performs identity authentication on the first electronic control unit based on the random seed message and the authentication request message. If the identity authentication of the first electronic control unit is successful, the second electronic control unit enters a functional mode. If the identity authentication of the first electronic control unit fails, the second electronic control unit executes a power-off process.

[0051] In the embodiment of the present invention, after the second electronic control unit is awakened by the first electronic control unit, and before the second electronic control unit enters the working mode, the first electronic control unit can be authenticated based on the random seed message and the authentication request message from the first electronic control unit. When the identity authentication of the first electronic control unit is successful, it indicates that the first electronic control unit is a safe electronic control unit, and the second electronic control unit can enter the working mode. When the identity authentication of the first electronic control unit fails, it indicates that the first electronic control unit is an unsafe electronic control unit, and the second electronic control unit does not enter the working mode, but executes the order process of the second electronic control unit. In the embodiment of the present invention, after the second electronic control unit is awakened and before entering the working mode, a process of authenticating the wake-up source (first electronic control unit) of the second electronic control unit is added. The authentication process is not simply to identify a specific field in the wake-up message, but the second electronic control unit first sends a random seed message to the wake-up source, and then receives an authentication request message from the wake-up source, and then uses the random seed message and the authentication request message to authenticate the wake-up source. That is to say, the identity authentication process requires at least two identity authentication parameters, namely the random seed message and the authentication request message. Compared with simply identifying specific fields in the wake-up message, the embodiment of the present invention adds identity authentication parameters for identity authentication, reduces the risk of identity authentication parameters being forged, improves identity authentication capabilities, and avoids the second electronic control unit from being maliciously called. On the one hand, it saves the power consumption of the second electronic control unit and improves driving safety. On the other hand, it protects the application message of the second electronic control unit (the application message is only sent out when the second electronic control unit is in working mode) and reduces the exposure of the application message.

[0052] In a preferred embodiment of the present invention, a second electronic control unit authenticates the first electronic control unit based on a random seed message and an authentication request message. The second electronic control unit generates an authentication verification message based on the random seed message, and then authenticates the first electronic control unit based on the authentication verification message and the authentication request message. When generating the authentication verification message based on the random seed message, the second electronic control unit may encrypt the random seed message according to a preset encryption algorithm to obtain the authentication verification message. In practical applications, the preset encryption algorithm includes, but is not limited to, symmetric encryption algorithms, asymmetric encryption algorithms, hash algorithms, and the like. The preset encryption algorithm can be understood as an encryption algorithm agreed upon between the second electronic control unit and its secure, legitimate wakeup source. An unsecure, illegitimate wakeup source cannot obtain the agreed upon encryption algorithm. Even if the random seed message is intercepted by an unsecure, illegitimate electronic control unit, the generated authentication request message cannot pass identity authentication if it cannot obtain the encryption algorithm agreed upon with the second electronic control unit. When authenticating the first electronic control unit based on the authentication verification message and the authentication request message, the second electronic control unit may compare the authentication verification message with the authentication request message. If the authentication verification message is the same as the authentication request message, the first electronic control unit's identity authentication is confirmed to be successful; if the authentication verification message is different from the authentication request message, the first electronic control unit's identity authentication is confirmed to have failed. It should be noted that to ensure successful wake-up source identity authentication, the encryption algorithm used by the second electronic control unit to encrypt the random seed message must be consistent with the encryption algorithm used by the first electronic control unit to encrypt the random seed message. Therefore, the encryption algorithm used by the first and second electronic control units to encrypt the random seed message can be agreed in advance.

[0053] Referring to Figure 2, a flow chart illustrating an ECU access authorization scheme according to an embodiment of the present invention is shown. The aforementioned control scheme for an electronic control unit is applied to ECU access authorization. This ECU access authorization scheme may involve both ECU1 and ECU2. After ECU2 is awakened by ECU1, ECU2 sends a random seed message to ECU1. The random seed message is typically a random number of a specific byte length. ECU2 can generate a unique random seed message based on a timestamp. The random seed message only needs to maintain randomness and uniqueness within a power-on cycle. ECU1 encrypts the random seed message using an encryption algorithm agreed upon with ECU2 to obtain a first encrypted file Key (this first encrypted file is the authentication verification message). ECU2 also encrypts the random seed message using an encryption algorithm agreed upon with ECU1 to obtain a second encrypted file Key' (this second encrypted file is the authentication request message). ECU1 then sends the first encrypted file Key to ECU2. ECU2 then determines whether the first encrypted file Key and the second encrypted file Key' are identical. If the first encrypted file Key and the second encrypted file Key' are the same, ECU1 is deemed to have been authorized to access, and ECU2 enters the functional mode (working mode). If the first encrypted file Key and the second encrypted file Key' are different, ECU1 is deemed to have been denied authorization to access, and ECU2 enters the power-off process.

[0054] In the control scheme of the electronic control unit described above in the embodiment of the present invention, the first electronic control unit encrypts the random seed message to obtain an authentication request message. When the second electronic control unit authenticates the first electronic control unit, it primarily uses the random seed message and the authentication request message. However, in actual applications, the first electronic control unit can use a pre-configured Public Key Infrastructure (PKI) interface to sign the authentication request message. Signing is the process of digitally signing data to ensure data integrity and non-repudiation. In PKI, electronic control units can use public and private keys to perform digital signatures. During the digital signature process, the electronic control unit uses its private key to sign the data to be transmitted, and then verifies the signature using the public key. This allows the recipient to confirm the source of the data and ensure its integrity. By using PKI signature processing, the electronic control unit can ensure data security and reliability and prevent data tampering or loss during data transmission. During the production phase of the first electronic control unit, the private key can be stored within the first electronic control unit. The first electronic control unit can obtain the private key using the pre-configured PKI interface and use it to sign the data to be transmitted to obtain the authentication request message.

[0055] The second electronic control unit can use the PKI interface to obtain the public key from within the second electronic control unit and use the obtained public key to verify the authentication request message from the first electronic control unit. If the verification passes, it means that the identity authentication of the first electronic control unit is successful; if the verification fails, it means that the identity authentication of the first electronic control unit has failed.

[0056] In addition, the first ECU can also encrypt the authentication request message through Secure Onboard Communication (SecOC). SecOC is a mechanism for secure communication between ECUs. Through SecOC, ECUs can perform identity verification as follows: In SecOC, ECUs pre-share a key for message encryption and decryption. When two ECUs communicate, they need to verify each other's identity. Each ECU can verify the identity of the other by decrypting the message sent by the other. During communication, the ECU can decide whether to grant access based on the other's identity. Through SecOC, ECUs can communicate and verify their identities while ensuring security, thereby ensuring vehicle safety. In practical applications, the data structure of the authentication request message encrypted by SecOC may include, but is not limited to: data to be protected (authentication request message), authentication information (typically using a message authentication code (MAC)), an optional header, and an optional freshness value. The freshness value and MAC may require longer data to improve security, but this consumes significant bandwidth and other resources, so interception is often used to balance this. Both the freshness value and the MAC are generated based on the complete value, but only a portion is intercepted during transmission and authentication.

[0057] The second electronic control unit can perform SecOC decryption on the SecOC-encrypted authentication request message. If the decryption of the SecOC-encrypted authentication request message succeeds, the first electronic control unit's identity authentication is considered successful. If the decryption of the SecOC-encrypted authentication request message fails, the first electronic control unit's identity authentication is considered to have failed.

[0058] 3 shows a flowchart of another method for controlling an electronic control unit according to an embodiment of the present invention. The method for controlling an electronic control unit can be applied to a network management system of an automotive open system architecture, wherein the network management system includes a first electronic control unit and a second electronic control unit. The method for controlling an electronic control unit can specifically include the following steps:

[0059] Step 301: After waking up the second electronic control unit, the first electronic control unit receives a random seed message from the second electronic control unit.

[0060] In step 302 , the first electronic control unit generates an authentication request message according to the random seed message, and sends the authentication request message to the second electronic control unit.

[0061] In an embodiment of the present invention, the first electronic control unit may encrypt the random seed message according to a preset encryption algorithm to obtain an authentication request message.

[0062] The second electronic control unit can authenticate the first electronic control unit based on the random seed message and the authentication request message. When the identity authentication of the first electronic control unit is successful, the second electronic control unit enters the working mode; when the identity authentication of the first electronic control unit fails, the second electronic control unit executes the power-off process.

[0063] The introduction of step 301 and step 302 is relatively simple, and the details can be referred to the relevant contents in the above embodiment, which will not be repeated here.

[0064] Based on the above description of an embodiment of a control method for an electronic control unit, with reference to FIG4 , the following describes a schematic diagram of the workflow of an electronic control unit according to an embodiment of the present invention. FIG4 illustrates ECU1 and ECU2. In the first phase, both ECU1 and ECU2 are in sleep mode. At the end of the first phase, ECU1 begins sending network management frames (NM frames) to ECU2. Furthermore, ECU1 periodically sends multiple NM frames to ECU2 to wake up ECU2. ECU1 then serves as the wakeup source for ECU2. The process of ECU1 periodically sending NM frames to ECU2 constitutes the second phase. In the second phase, both ECU1 and ECU2 are in repeating message mode. Starting with the last NM frame sent by ECU1 to ECU2, the third phase begins. In the third phase, both ECU1 and ECU2 are in access authorization mode. In the third phase, ECU1 sends the last NM frame to ECU2. ECU2 sends a random seed message to ECU1. ECU1 encrypts the random seed message to obtain a first encryption file key, which it then sends to ECU2. ECU2 encrypts the random seed message to obtain the second encrypted file Key', compares the first encrypted file Key and the second encrypted file Key', performs identity authentication on ECU1 to obtain an authentication result (Authentication Result), and sends the authentication result to ECU1. If the authentication result indicates that ECU1's identity authentication is successful, the fourth stage is entered. In the fourth stage, both ECU1 and ECU2 are in normal state, that is, ECU1 and ECU2 enter working mode. In the fourth stage, ECU1 sends partial network cluster (Partial Network Cluster, PNC for short) information to ECU2. If ECU2 receives different PNC information, the application message returned to ECU1 is also different. For example, ECU1 sends a PNC1 message to ECU2's application 1 (App1), and ECU2's application 1 returns an application 1 message (App1frames) to ECU1 based on the PNC1 message. Similarly, ECU1 sends a PNC2 message to ECU2's application 2 (App2), and ECU2's application 2 returns an application 2 message (App2frames) to ECU1 based on the PNC2 message. ECU1 sends a PNC3 message to ECU2's application 3 (App3), and ECU2's application 3 returns an application 3 message (App3frames) to ECU1 based on the PNC3 message.

[0065] An embodiment of the present invention adds an access authorization mode to the electronic control unit. The access authorization mode is located between the wake-up mode and the normal working mode of the electronic control unit. Referring to Figure 5, a mode schematic diagram of an electronic control unit according to an embodiment of the present invention is shown. After the electronic control unit is awakened, it enters the wake-up mode. After the wake-up mode, the electronic control unit authenticates the wake-up source and enters the access authorization mode. If the identity authentication of the wake-up source is successful, the electronic control unit enters the normal working mode. If the identity authentication of the wake-up source fails, the electronic control unit executes the power-off process. On the one hand, the power consumption of the electronic control unit is saved, and on the other hand, the application messages of the electronic control unit are protected (the application messages are sent out only when the electronic control unit is in the working mode), reducing the exposure of the application messages.

[0066] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0067] 6 , a block diagram of an electronic control unit according to an embodiment of the present invention is shown. The electronic control unit is applied to a network management system of an automotive open system architecture. The network management system includes a first electronic control unit and a second electronic control unit. The second electronic control unit includes:

[0068] a seed message sending module 61, configured to send a random seed message to the first electronic control unit after the second electronic control unit is awakened by the first electronic control unit;

[0069] a request message receiving module 62, configured to receive an authentication request message generated according to the random seed message from the first electronic control unit;

[0070] an identity authentication module 63, configured to perform identity authentication on the first electronic control unit according to the random seed message and the authentication request message;

[0071] The authentication processing module 64 is configured to enter the working mode of the second electronic control unit when the identity authentication of the first electronic control unit succeeds; and execute the power-off process of the second electronic control unit when the identity authentication of the first electronic control unit fails.

[0072] In a preferred embodiment of the present invention, the identity authentication module 63 includes:

[0073] An authentication verification message generation module, configured to generate an authentication verification message based on the random seed message;

[0074] The ECU identity authentication module is used to perform identity authentication on the first electronic control unit according to the authentication verification message and the authentication request message.

[0075] In a preferred embodiment of the present invention, the authentication verification message generation module is configured to encrypt the random seed message according to a preset encryption algorithm to obtain the authentication verification message.

[0076] In a preferred embodiment of the present invention, the ECU identity authentication module includes:

[0077] A message comparison module, configured to compare the authentication verification message with the authentication request message;

[0078] An identity authentication confirmation module is configured to confirm that the identity authentication of the first electronic control unit is successful if the authentication verification message is identical to the authentication request message; and to confirm that the identity authentication of the first electronic control unit is unsuccessful if the authentication verification message is different from the authentication request message.

[0079] 7 , a block diagram of another electronic control unit according to an embodiment of the present invention is shown. The electronic control unit is applied to a network management system of an automotive open system architecture. The network management system includes a first electronic control unit and a second electronic control unit. The first electronic control unit includes:

[0080] a seed message receiving module 71, configured to receive a random seed message from the second electronic control unit after the first electronic control unit wakes up the second electronic control unit;

[0081] The request message sending module 72 is used to generate an authentication request message based on the random seed message, and send the authentication request message to the second electronic control unit, so that the second electronic control unit can authenticate the first electronic control unit based on the random seed message and the authentication request message. When the identity authentication of the first electronic control unit is successful, the second electronic control unit enters the working mode; when the identity authentication of the first electronic control unit fails, the second electronic control unit executes the power-off process.

[0082] In a preferred embodiment of the present invention, the request message sending module 72 is configured for the first electronic control unit to encrypt the random seed message according to a preset encryption algorithm to obtain the authentication request message.

[0083] An embodiment of the present invention also provides an electronic device, see Figure 8, including: a processor 801, a memory 802, and a computer program 8021 stored in the memory 802 and executable on the processor 801. When the processor 801 executes the program 8021, the control method of the electronic control unit of the aforementioned embodiment is implemented.

[0084] An embodiment of the present invention further provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method of the electronic control unit of the aforementioned embodiment.

[0085] An embodiment of the present invention further discloses a computer program product, comprising computer-readable code. When the computer-readable code is run on an electronic device, the electronic device is caused to execute the control method of the electronic control unit of the aforementioned embodiment.

[0086] As for the electronic control unit embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0087] It should be noted that, in the embodiments of the present invention, all actions of acquiring signals, information or data are performed in compliance with the corresponding data protection laws and policies of the country where the device is located and with authorization from the owner of the corresponding device.

[0088] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0089] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0090] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0091] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0093] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0094] References herein to "one embodiment," "an embodiment," or "one or more embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Furthermore, please note that instances of the phrase "in one embodiment" do not necessarily all refer to the same embodiment.

[0095] In the description provided herein, numerous specific details are described. However, it is understood that embodiments of the present invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.

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

[0097] The electronic control unit and control method thereof provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A control method for an electronic control unit, wherein: A network management system applied to an automotive open system architecture, the network management system comprising a first electronic control unit and a second electronic control unit, the method comprising: After being awakened by the first electronic control unit, the second electronic control unit sends a random seed message to the first electronic control unit; The second electronic control unit receives, from the first electronic control unit, an authentication request message generated according to the random seed message; The second electronic control unit performs identity authentication on the first electronic control unit according to the random seed message and the authentication request message; When the identity authentication of the first electronic control unit is successful, the second electronic control unit enters a working mode; When the identity authentication of the first electronic control unit fails, the second electronic control unit executes a power-off process.

2. The method according to claim 1, wherein: The second electronic control unit performs identity authentication on the first electronic control unit according to the random seed message and the authentication request message, including: The second electronic control unit generates an authentication verification message according to the random seed message; The second electronic control unit performs identity authentication on the first electronic control unit according to the authentication verification message and the authentication request message.

3. The method according to claim 2, wherein: The second electronic control unit generates an authentication verification message according to the random seed message, including: The second electronic control unit encrypts the random seed message according to a preset encryption algorithm to obtain the authentication verification message.

4. The method according to claim 3, wherein: The second electronic control unit performs identity authentication on the first electronic control unit according to the authentication verification message and the authentication request message, including: The second electronic control unit compares the authentication verification message with the authentication request message; If the authentication verification message is the same as the authentication request message, the second electronic control unit confirms that the identity authentication of the first electronic control unit is successful; If the authentication verification message is different from the authentication request message, the second electronic control unit confirms that the identity authentication of the first electronic control unit has failed.

5. A control method for an electronic control unit, wherein: A network management system applied to an automotive open system architecture, the network management system comprising a first electronic control unit and a second electronic control unit, the method comprising: After waking up the second electronic control unit, the first electronic control unit receives a random seed message from the second electronic control unit; The first electronic control unit generates an authentication request message according to the random seed message, and sends the authentication request message to the second electronic control unit, so that the second electronic control unit performs identity authentication on the first electronic control unit according to the random seed message and the authentication request message, and when the identity authentication of the first electronic control unit succeeds, the second electronic control unit enters a working mode; when the identity authentication of the first electronic control unit fails, the second electronic control unit performs a power-off process; The random seed message is the same as or different from the random seed message.

6. The method according to claim 5, wherein: The first electronic control unit generates an authentication request message according to the random seed message, including: The first electronic control unit encrypts the random seed message according to a preset encryption algorithm to obtain the authentication request message.

7. An electronic control unit, wherein: A network management system applied to an automotive open system architecture, the network management system comprising a first electronic control unit and a second electronic control unit, the second electronic control unit comprising: A seed message sending module, configured to send a random seed message to the first electronic control unit after the second electronic control unit is awakened by the first electronic control unit; A request message receiving module, used for receiving an authentication request message generated according to the random seed message from the first electronic control unit; an identity authentication module, used for performing identity authentication on the first electronic control unit according to the random seed message and the authentication request message; The authentication processing module is used to enter the working mode of the second electronic control unit when the identity authentication of the first electronic control unit succeeds; when the identity authentication of the first electronic control unit fails, execute the power-off process of the second electronic control unit.

8. An electronic control unit, wherein: A network management system applied to an automotive open system architecture, the network management system comprising a first electronic control unit and a second electronic control unit, the first electronic control unit comprising: A seed message receiving module, configured to receive a random seed message from the second electronic control unit after the first electronic control unit wakes up the second electronic control unit; A request message sending module is used to generate an authentication request message according to the random seed message, and send the authentication request message to the second electronic control unit, so that the second electronic control unit performs identity authentication on the first electronic control unit according to the random seed message and the authentication request message. When the identity authentication of the first electronic control unit is successful, the second electronic control unit enters a working mode; when the identity authentication of the first electronic control unit fails, the second electronic control unit executes a power-off process.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the control method of the electronic control unit according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the control method of the electronic control unit according to any one of claims 1 to 6 is implemented.

11. A computer program product, comprising computer readable codes, which, when executed on an electronic device, cause the electronic device to execute the control method of an electronic control unit according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Vehicle electronic control unit (ECU) authentication method, device and equipment

    CN109286500A

  • ECU conforming to AUSTOSAR architecture and sleep / wake-up management method of ECU

    CN111885173A

  • Awakening method and device for ECU (Electronic Control Unit) of trip computer, vehicle and storage medium

    CN114116028A

  • Electronic control unit, control method thereof, electronic apparatus, and storage medium

    CN116318896A

  • Control system

    JP6207652B2