Safety method based on CAN bus electric steering gear software interaction
By adopting a two-layer software interaction security mechanism in the electric steering gear system, and using event-based response mode and random token algorithm, the problem that the CAN bus network is susceptible to intrusion is solved, and the security and operational stability of the system are significantly improved.
Patent Information
- Application Number
- CN202410967896.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-10
AI Technical Summary
The CAN bus network in intelligent connected cars is easily intruded, leading to security risks and parameter leakage of the electric steering system. Illegal data may cause abnormal software operation and failure of control functions.
A two-layer software interaction security mechanism is adopted: the first layer establishes a handshake session through event response mode and number comparison, and the second layer uses random tokens and digital analog + key algorithms for identity authentication to ensure interaction security.
It effectively reduces software operation abnormalities caused by illegal data, ensures smooth operation, and can intuitively identify the causes of operation problems, significantly improving the safety of the electric steering system.
Smart Images

Figure CN118631473A
Abstract
Description
Technical Field
[0001] The invention relates to an electric steering device software interaction technology, and in particular to a safety method for electric steering device software interaction based on a CAN bus. Background Art
[0002] The electric steering system is an important part of modern cars, and its performance directly affects the car's handling and safety. In the electric steering system, the CAN bus is used to achieve real-time and efficient communication between electronic control units (ECUs). Through the CAN bus, the EHPS can receive information from vehicle speed sensors, steering wheel sensors, etc., and adjust the speed of the motor based on this information to provide appropriate assistance.
[0003] As the degree of interconnection between smart connected vehicles and external networks continues to increase, the CAN bus network in the car can be invaded through the on-board diagnostic unit (OBD), Bluetooth, cellular network, etc. Once the CAN bus network is successfully invaded, they can control the electric steering device nodes by eavesdropping on bus messages, analyzing the actual meaning of messages, replaying or forging messages, etc., thereby causing unexpected steering actions and causing security risks; or stealing the internal parameters of the EHPS, causing the leakage of design indicators. Summary of the invention
[0004] The purpose of the present invention is to provide a safety method for software interaction of an electric steering device based on a CAN bus to solve the above-mentioned technical problems.
[0005] The technical solution adopted by the present invention is as follows: A safe method for software interaction of electric steering device based on CAN bus, including: The first layer of software interaction security: event-based response mode instructions, and the second layer of software interaction security: token interaction instructions are pre-written.
[0006] In the initial stage of configuration calibration flashing, a numbered response mode request command is sent, and the EHPS returns a numbered request command. The terminal and the EHPS compare the numbers and establish a handshake session mechanism.
[0007] After the handshake session is successful, the terminal sends a token request command and EHPS returns a random token.
[0008] The terminal calculates the card key through the solidified digital model + key and sends it to the EHPS. The EHPS uses the same digital model + key to calculate its own card key, compares the received card key to confirm the identity authentication, and feedbacks information to establish interactive security authentication.
[0009] After the interactive security authentication is successful, the terminal sends an operation instruction, and EHPS enters the execution phase of configuration calibration and flashing after receiving it.
[0010] The first-layer software security interaction and the second-layer software security interaction respectively include content that needs to be executed by the control unit and information that needs to be returned by the control unit.
[0011] The instruction protocol includes a check code, and the solidified calculation formula is consistent to check the consistency of the instruction.
[0012] In the first layer of software security interaction, the numbers are mutually verified and a handshake session mechanism is established.
[0013] In the second-layer software security interaction, the security algorithm of the digital model + key is solidified in the program. The digital model has no restrictions, but the calculation result cannot be 0 or all FFs, thus establishing a secure authentication mechanism.
[0014] The control unit includes an EHPS or a terminal device.
[0015] The advantages of the present invention are: 1. In the initial stage of configuration calibration flashing, the present invention establishes a secure session mechanism and an authentication security mechanism through the preset first-layer software interaction security and second-layer software interaction security mechanisms. The above method can greatly reduce software operation anomalies caused by illegal data, and effectively avoid operation failures, device damage or control function abnormalities.
[0016] 2. The present invention is applicable to EHPS controllers. Through pre-written first-layer and second-layer software interaction safety mechanisms, the original functions are converted into targeted functional requests for different control units and EHPS related to software interaction safety operations. According to the feedback of the control unit to the preset information, the results of the functional request or condition monitoring can be clarified, thereby ensuring the smooth operation on the one hand and more intuitively identifying the causes of the operation problems on the other. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The present invention is a flowchart of an embodiment of the present invention. DETAILED DESCRIPTION
[0018] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0019] CAN bus is a universal bus transmission method in the automotive electronic ECU environment. Vehicles and diagnostic tools on the market all enable the physical lines associated with the CAN serial communication protocol bus. The idea of the present invention is to use the CAN bus protocol to perform specific function deployment and requests before the EHPS control unit software configuration calibration is flashed, so that the terminal device can safely complete the operation according to the EHPS to be executed.
[0020] Therefore, the present invention proposes an embodiment of a safety method for software interaction of an electric steering device based on a CAN bus. Specifically, Figure 1 shown, including: Step S1, requesting a session, answering a session, and establishing a first-layer software interaction security mechanism; The terminal sends [CANID:0x18018811][07, 10,03 , 01,02,03,04 ,83],CANID sending node,07 data length, 10,03 is the function code, 01,02,03,04 is the terminal number and 83 is the check code.
[0021] EHPS receives the request instruction and determines whether the terminal number matches and the check code is correct based on the length function code.
[0022] EHPS feedback [CANID: 0x18011188] [07, 50,03 , 33,00,D7,DD ,65】,CANID receiving node,07 data length, 50,03 is the function code, 33,00,D7,DD is the terminal number and 65 is the check code.
[0023] The terminal receives the request and responds, judging whether the EHPS number matches and the checksum is correct based on the length function code.
[0024] The terminal and EHPS numbers are pre-agreed and fixed in the corresponding controller software, and the algorithm terminal of the verification code is consistent with the EHPS (refer to the following table, where Table 1 corresponds to the digital-analog format of the verification code for the first layer of software interaction security). If the return is correct, the next step is executed; if the return is incorrect, the execution is stopped, and the fault information is returned, and the session is exited.
[0025] The checksum ensures the consistency of instruction transmission. Conventional algorithms such as CRC8 are used.
[0026] Table 1
[0027] The purpose of the above steps is to achieve the first layer of software interaction security and mutual identification.
[0028] The disadvantage is that the fixed number of the controller can be captured through the bus, and the checksum can be detected with probability. Illegal data can pass through this security mechanism with probability.
[0029] Step S2: In the initial stage of configuration and calibration, establish the second layer software interaction security mechanism, request a token, and respond with a random token.
[0030] The terminal sends [CANID:0x18018811][07, 27,01 ,0,0,0,0,62], CANID sending node, 07 data length, 27,01 is the function code, and 62 is the check code.
[0031] EHPS feedback [CANID: 0x18011188] [07, 67,01 , 14,23,73,E1 ,38],CANID receiving node,07 data length, 67,01 is the function code, 14,23,73,E1 is a random token, and 38 is a check code.
[0032] Step S3: After obtaining the random token, the card key is calculated through the data model + secret key security algorithm solidified by both parties, and the terminal sends it to the EHPS. The EHPS controller compares the card key calculated by itself with the received one to establish interactive security authentication.
[0033] The terminal sends [CANID:0x18018811][07, 27,02 , 27,18,D3,43 ,71],CANID sending node,07 data length, 27,01 is the function code, 27,18,D3,43 is the calculated card key, and 71 is the check code.
[0034] EHPS feedback [CANID: 0x18011188] [07, 67,02 ,0,0,0,0,45], CANID receiving node, 07 data length, 67,02 is the function code, and 45 is the check code.
[0035] The security algorithm is embedded in the software of both parties, and the EHPS controller key recognition is consistent. If the return is correct, the next step will be executed; if the return is incorrect, the execution will be stopped, and the fault information will be returned, and the session will be exited.
[0036] The security algorithm is a digital module + secret key defined by both parties. The digital module can be made into a function library call, and the secret key is provided in the form of a file. The algorithm digital module can be specified arbitrarily, such as CRC, AES, etc. (refer to the table below, where Table 2 corresponds to the interface of the second-layer software interaction security algorithm).
[0037] Table 2
[0038] The purpose of the above steps is to achieve the second-layer software interaction security mechanism, EHPS identification, and feedback of correct authentication information.
[0039] Step S4, after obtaining the EHPS security certification, the terminal software sends a configuration calibration and flashing operation instruction, and after receiving it, the EHPS enters the execution phase of the calibration and configuration flashing.
[0040] To sum up, the main design concept of the present invention is that there are two layers of software interaction security interaction mechanism in the calibration configuration flashing. The first layer of software interaction security capability is insufficient, and the second layer of enhanced software interaction security mechanism makes up for the first deficiency, forming a double software interaction security guarantee.
[0041] If the expressions expressing orientation are mentioned in the embodiments of the present invention, they are relative concepts based on the embodiments. In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, wherein a, b, c can be single or multiple.
[0042] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.
Claims
1. A safety method for software interaction of electric steering device based on CAN bus, characterized by: include: Pre-program the first layer of software interaction security: event-based response mode instructions, and the second layer of software interaction security: token interaction instructions; In the initial stage of configuration calibration flash writing, a numbered response mode request command is sent, and the EHPS returns a numbered request command. The terminal and the EHPS compare the numbers and establish a handshake session mechanism; After the handshake session is successful, the terminal sends a token request command, and EHPS returns a random token; The terminal calculates the card key through the solidified digital model + key and sends it to the EHPS. The EHPS uses the same digital model + key to calculate its own card key, compares the received card key to confirm the identity authentication, and feedbacks information to establish interactive security authentication.
2. A safety method for software interaction of electric steering device based on CAN bus according to claim 1, characterized in that: After the interactive security authentication is successful, the terminal sends an operation instruction, and EHPS enters the execution phase of configuration calibration and flashing after receiving it.
3. A safety method for software interaction of electric steering device based on CAN bus according to claim 1, characterized in that: The first-layer software security interaction and the second-layer software security interaction respectively include content that needs to be executed by the control unit and information that needs to be returned by the control unit.
4. A safety method for software interaction of electric steering device based on CAN bus according to claim 1, characterized in that: All instruction protocols contain check codes, and the solidified calculation formulas are consistent to check instruction consistency.
5. A safety method for software interaction of electric steering device based on CAN bus according to claim 3, characterized in that: In the first layer of software security interaction, the numbers are mutually verified and a handshake session mechanism is established.
6. A safety method for software interaction of electric steering device based on CAN bus according to claim 3, characterized in that: In the second-layer software security interaction, the security algorithm of the digital model + key is solidified in the program. The digital model has no restrictions, but the calculation result cannot be 0 or all FFs, thus establishing a secure authentication mechanism.
7. A safety method for software interaction of electric steering device based on CAN bus according to any one of claims 1 to 6, characterized in that: The control unit includes an EHPS or a terminal device.
