Method and System for Verifying the Consistency of Motor Initial Angle, Motor Number, and Vehicle VIN
By upgrading the software algorithm in new energy vehicles, providing a consistency verification method for the motor initial angle, number and VIN code, the problem of inaccurate torque output caused by inconsistent rotation angle of the permanent magnet synchronous motor is solved, ensuring the safety and reliability of the vehicle.
Patent Information
- Application Number
- CN202510338125.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2045-03-21
AI Technical Summary
In new energy vehicles, inconsistent initial rotation angle of permanent magnet synchronous motors will lead to inaccurate torque output, affecting the safety and reliability of the vehicle. Especially when replacing the motor controller or driving the motor, potential safety risks need to be solved urgently.
Through the upgrade of software algorithms, a method and system for verification of initial motor angle, motor number and whole vehicle VIN consistency are provided. The diagnostic instrument is used to read and write the initial angle, number and VIN code of the drive motor, and three-code binding and dynamic verification are performed in the motor controller to ensure the consistency of these parameters.
Without increasing product costs, the software upgrades can accurately identify and verify the initial angle, number and VIN code of the motor, ensuring the safety and reliability of the motor controller and drive motor, and avoiding potential safety risks.
Smart Images

Figure CN119863251B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile control, and in particular to a method and system for checking the consistency of a motor initial angle, a motor number and a vehicle VIN. Background Art
[0002] In new energy vehicles, the smoothness and accuracy of the torque output of the permanent magnet synchronous motor are closely related to the comfort of the whole vehicle, and the installation position of the permanent magnet synchronous motor resolver (i.e., the resolver of the permanent magnet synchronous motor) and the degree of correction of the angle deviation (corresponding to the initial angle of the motor resolver) directly affect the torque output accuracy of the motor. Therefore, the initial angle of the motor resolver is a very important signal input in the motor controller. In the after-sales scenario, when the drive motor or drive motor controller needs to be replaced, the operation process of the after-sales personnel may not be standardized, which may easily lead to inconsistent matching of the resolver initial angle between the drive motor controller and the drive motor. This inconsistency will further cause unexpected torque output, thereby endangering the safety of the vehicle. At present, when replacing the motor controller or drive motor, if the resolver initial angle signal in the motor controller is inaccurate, there will be potential safety risks. This problem needs to be solved urgently to ensure the safety and reliability of new energy vehicles. Summary of the invention
[0003] In view of the defects in the prior art, the purpose of the present invention is to provide a method and system for checking the consistency of the motor initial angle, motor number and vehicle VIN. Without increasing the product cost and under the premise of borrowing existing hardware resources, only by upgrading the software algorithm, the motor controller can identify whether the initial angle of the drive motor, the drive motor number and the vehicle VIN have changed. If there are changes, safety processing and protection are performed, thus ensuring the safety of after-sales replacement of the motor controller and drive motor.
[0004] In order to achieve the above technical effects, the present invention adopts the following technical solutions:
[0005] According to a first aspect of the present invention, a method for checking the consistency of a motor initial angle, a motor number and a vehicle VIN is provided, comprising the following steps:
[0006] Step S1: The diagnostic instrument reads the initial angle of the drive motor, the motor number and the vehicle VIN code;
[0007] Step S2: The diagnostic instrument writes the initial angle, motor number and vehicle VIN code into the motor controller, and verifies the accuracy of the written data, which specifically includes the following steps:
[0008] 2.1. After the host computer sends the self-session mode to the DCM module and passes the security access, it sends the zero angle data and check value to the DCM module;
[0009] 2.2. After the DCM module receives the zero position angle and the check value, it compares the check value. If the check fails, it feeds back a negative response.
[0010] 2.3. If the check value is correct, the zero position angle data is sent to the NVM layer. The NVM layer calls the FLS storage interface to write the zero position angle data into the memory.
[0011] 2.4. After writing the zero position angle data, the NVM layer and / or the DCM module reads the written zero position angle value from the memory and compares it with the original data sent by the host computer. If it is correct, it responds with a positive response.
[0012] Step S3: The motor controller binds the initial angle, the motor number, and the vehicle VIN code in a three-code manner.
[0013] Step S4: The diagnostic instrument determines whether to update the motor controller or the drive motor. If an update is required, it executes the zero-angle routine service to clear the initial angle information stored in the motor controller, and then enters Step S5 after completion. If no update is required, it directly enters Step S5.
[0014] Step S5: When the motor controller powers down, it checks whether the current initial angle, the motor number, and the vehicle VIN code are consistent with the bound information. If the check is consistent, the motor controller sets the three-code check flag to 1 and the angle status to 1, allowing the motor controller to perform torque control. If the check is inconsistent, the binding is released and the binding information is cleared, and torque control is prohibited. Specifically, it includes: setting the three-code check status of the current initial angle, the motor number, and the vehicle VIN code to failed, the motor controller reporting a level 3 fault, and prohibiting the motor controller from entering the torque mode. Trigger the re-binding process and return to Step S1.
[0015] Optionally, the zero-angle routine service includes the following steps:
[0016] Step 4.1: The vehicle powers down, and the diagnostic instrument requests the motor controller to enter the extended mode and receives a response confirmation.
[0017] Step 4.2: Unlock the motor controller through the security access protocol, including sending a random seed value and verifying the key.
[0018] Step 4.3: The diagnostic instrument sends an instruction to clear the motor initial angle value in the motor controller and verifies the clearing result.
[0019] Step 4.4: Exit the extended mode and end the zero-angle service.
[0020] Optionally, the execution of the security access protocol in Step 4.2 includes:
[0021] The diagnostic instrument sends a security access request instruction and receives a random seed value returned by the motor controller; the diagnostic instrument generates and sends a key instruction based on the random seed value to complete security unlocking.
[0022] According to a second aspect of the present invention, a motor initial angle, motor number and vehicle VIN consistency verification system is provided, which is used to implement the above-mentioned motor initial angle, motor number and vehicle VIN consistency verification method, including:
[0023] Diagnostic instrument, used to read and write the initial angle of the drive motor, motor number and vehicle VIN code;
[0024] The motor controller is configured to perform the binding operation and verify the consistency of the initial angle, motor number and vehicle VIN code at power-on;
[0025] The motor controller is further configured to automatically unbind and clear binding information when a change in the initial angle, motor number or vehicle VIN code is detected.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The method for checking the consistency of the motor initial angle, motor number and vehicle VIN provided by the present invention does not increase the product cost. Under the premise of borrowing existing hardware resources, only through the upgrade of the software algorithm, the motor controller can identify whether the initial angle of the drive motor, the drive motor number and the vehicle VIN have changed. If they have changed, safety processing and protection are performed, thereby ensuring the safety of after-sales replacement of the motor controller and the drive motor. The present invention can also identify the scenario of replacing the motor controller after the whole vehicle is offline, and actively clear the angle and unbind the action. At the same time, the constraint relationship management of the whole machine-component in the after-sales scenario is realized by the multi-parameter binding method of three-code binding. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0029] Figure 1 It is a flowchart of the steps of the method for checking the consistency of the motor initial angle, motor number and vehicle VIN described in the embodiment;
[0030] Figure 2 It is a flow chart of the corner clearing routine service steps described in the embodiment;
[0031] Figure 3 It is a schematic diagram of a process of verifying the accuracy of written data described in an embodiment;
[0032] Figure 4Schematic diagram of the module for verifying the accuracy of written data in the embodiments. Detailed implementation manners
[0033] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations.
[0034] Therefore, the detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope of protection of the present application. Further, the descriptions involving "first", "second", etc. in the application are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features.
[0035] The first embodiment
[0036] As Figure 1 shown, this embodiment provides a method for verifying the consistency of the initial angle of the motor, the motor number, and the vehicle VIN, which is applied to the binding of the motor controller, the drive motor, and the vehicle during vehicle off-line. After binding, if the motor controller recognizes changes in the initial angle of the motor, the drive motor number, and the vehicle VIN (Vehicle Identification Number), it will actively unbind and clear the binding information. On the premise of not increasing the product cost and borrowing the existing hardware resources, only through the upgrade of the software algorithm, the motor controller can identify whether the initial angle of the drive motor, the drive motor number, and the vehicle VIN have changed. If a change occurs, safety processing and protection are performed to ensure the safety of replacing the motor controller and the drive motor after-sales. The method includes the following steps:
[0037] Step S1: The diagnostic instrument reads the label initial angle, motor number, and vehicle VIN of the drive motor.
[0038] Step S2: The diagnostic instrument writes the initial angle, motor number, and vehicle VIN of the drive motor into the motor controller, and at the same time verifies the accuracy of the written data. As Figure 3 , 4 shown, it specifically includes the following steps:
[0039] 2.1. After the host computer sends the self - session mode 10 03 to the DCM module at the BSW layer and passes the security access of the USD service, it sends the zero - position angle data and the check value to the DCM module. The BSW layer is the basic software layer that provides standardized services such as diagnosis, storage, and communication. The UDS service is a diagnostic protocol running on the BSW layer (DCM module).
[0040] 2.2. After the DCM module (Diagnostic Communication Manager) receives the zero - position angle and the check value, it compares the check value. If the check fails, it feedbacks a negative response through the BSW layer. The negative response can cover scenarios such as check error, write failure, or verification inconsistency.
[0041] 2.3. If the check value is correct, it sends the zero - position angle data to the NVM layer (Non - Volatile Storage layer). The NVM layer calls the FLS storage interface to write the zero - position angle data into the non - volatile memory (such as Flash).
[0042] 2.4. After writing the zero - position angle data, the NVM layer or the DCM module reads the written zero - position angle value from the memory and compares it with the original data sent by the host computer. If it is correct, it responds with a positive response.
[0043] Step S2 significantly improves the accuracy and reliability of motor parameter writing through a multi - data verification and secure writing mechanism. First, it uses dual verification of security access authentication (step 2.1) and check value (step 2.2) to build a security barrier at the communication link level, effectively preventing unauthorized tampering and data transmission errors. Second, through a hierarchical writing architecture (from the DCM module to the NVM layer and then calling the FLASH interface), it realizes the physical isolation of data persistent storage, reducing the risk of data loss. Finally, the active read - back verification after writing (step 2.4) forms a closed - loop verification mechanism, combining information security, data integrity, and storage reliability, and solving the problem of control failure caused by data errors during the vehicle motor parameter solidification process.
[0044] Step S3: The motor controller binds the motor initial angle, motor number, and vehicle VIN code in three - code binding. Through three - code binding and dynamic verification, it realizes the unique constraint of the motor controller, drive motor, and vehicle, avoiding the risk of torque out - of - control caused by illegal replacement of components, and realizing the management of the whole - machine - component constraint relationship in the after - sales scenario. Step S4: The diagnostic instrument judges whether to update the motor controller or the drive motor. If it is updated, the diagnostic instrument performs the angle - clearing routine service as shown, clearing the motor initial angle information in the controller. After the routine service is completed, it enters step S5. If the motor controller or the drive motor is not updated, it directly enters step S5. Among them, as shown, the angle - clearing routine service includes the following steps: Figure 2 shown, clearing the motor initial angle information in the controller. After the routine service is completed, it enters step S5. If the motor controller or the drive motor is not updated, it directly enters step S5. Among them, as shown Figure 2 shown, the angle - clearing routine service includes the following steps:
[0045] Step 4.1. Power down the vehicle and start the low-voltage power supply system of the vehicle to supply power to the MCU (Motor Control Unit) and the diagnostic instrument. The diagnostic instrument sends an instruction (10 03) to the MCU to request it to enter the extended mode, and the MCU responds (50 03 00 32 01F4) to confirm entering the extended mode.
[0046] Step 4.2. Establish secure communication: The diagnostic instrument sends an instruction (27 01) to the MCU to request secure access, and the MCU responds (67 01 S1 S2 S3 S4) to return a random seed value. The diagnostic instrument sends the key (2702 K1 K2 K3 K4) generated based on the random seed value to the MCU, and the MCU responds (67 02) to indicate successful unlocking.
[0047] Step 4.3. Clear the initial angle value of the motor: The diagnostic instrument sends an instruction (31 01 C0 00 01) to request clearing the initial angle value of the motor, and the MCU responds (71 01 C0 00) to confirm the operation request for clearing the initial angle value of the motor.
[0048] Step 4.4. View the clearing result: The diagnostic instrument sends an instruction (31 01 C0 00 00) to request viewing the result of the initial angle information of the motor, and the MCU responds (71 01 C0 00) to return "Result correct".
[0049] Step 4.5. End the angle clearing service: The diagnostic instrument sends an end instruction (10 01), and the MCU responds (50 01 00 32 01F4) to exit the extended mode and end the service.
[0050] Step S5. When the motor controller powers on low voltage, it determines whether the initial angle of the motor, the motor number, and the vehicle VIN three codes are consistent with the binding information in Step S3. If they are consistent, go to Step S6. If they are not consistent, go to Step S7.
[0051] Step S6. The three-code verification is successful. The motor controller sets the three-code verification flag to 1 and the angle status to 1. The motor controller eliminates the fault and allows torque control.
[0052] Step S7. The three-code verification fails. The motor controller cancels the three-code binding and clears the binding information.
[0053] Step S8. After completing Step S7, set the three-code verification status to 0, set the angle status of the motor controller to 0, the motor controller reports a level 3 fault, and it is impossible to enter the torque mode. After completion, return to Step S1 again.
[0054] The Second Embodiment
[0055] This embodiment provides a system for verifying the consistency of the initial angle of the motor, the motor number, and the vehicle VIN, which is used to implement the method for verifying the consistency of the initial angle of the motor, the motor number, and the vehicle VIN described in the first embodiment, including:
[0056] A diagnostic instrument for reading and writing the initial angle of the drive motor, the motor number, and the vehicle VIN code;
[0057] A motor controller configured to perform a binding operation and verify the consistency of the initial angle, the motor number, and the vehicle VIN code when powered on;
[0058] The motor controller is further configured to: automatically release the binding and clear the binding information when a change in the initial angle, the motor number, or the vehicle VIN code is detected.
[0059] The specific embodiments of the present invention have been described above. Through the above description, relevant staff can make various changes and modifications without departing from the technical idea of the present invention.
Claims
1. A method for checking the consistency of the motor initial angle, motor number and vehicle VIN, characterized in that: The following steps are involved: Step S1: The diagnostic instrument reads the initial angle of the drive motor, the motor number and the vehicle VIN code; Step S2: The diagnostic instrument writes the initial angle, motor number and vehicle VIN code into the motor controller, and verifies the accuracy of the written data. The following steps are involved: 2.
1. After the host computer sends the self-session mode to the DCM module and passes the security access, it sends the zero angle data and check value to the DCM module; 2.
2. After receiving the zero angle and the check value, the DCM module compares the check value and feedbacks a negative response if the check fails; 2.
3. If the check value is correct, the zero angle data is sent to the NVM layer, and the NVM layer calls the FLS storage interface to write the zero angle data into the memory; 2.
4. After writing the zero angle data, the NVM layer and / or DCM module reads the written zero angle value from the memory and compares it with the original data sent by the host computer. If there is no error, a positive response is responded; Step S3: the motor controller binds the initial angle, motor number and vehicle VIN code; Step S4: the diagnostic instrument determines whether to update the motor controller or the drive motor; if it needs to be updated, the angle clearing routine service is executed to clear the initial angle information stored in the motor controller, and then the process proceeds to step S5; if it does not need to be updated, the process directly proceeds to step S5; Step S5: When the motor controller is powered on at low voltage, it verifies whether the current initial angle, motor number and vehicle VIN code are consistent with the binding information; If the verification is consistent, the motor controller sets the three-code verification flag to 1 and the angle state to 1, allowing the motor controller to perform torque control; If the verification is inconsistent, the binding is untied and the binding information is cleared, and torque control is prohibited, specifically including: setting the three-code verification status of the current initial angle, motor number and vehicle VIN code to failure, the motor controller reports a level 3 fault, and prohibits the motor controller from entering the torque mode; triggering the rebinding process and returning to step S1.
2. The method for checking the consistency of the motor initial angle, motor number and vehicle VIN according to claim 1, wherein the angle clearing routine service comprises the following steps: Step 4.1: The vehicle is low voltage, the diagnostic tool requests the motor controller to enter the extended mode, and receives a response confirmation; Step 4.2: Unlock the motor controller through the secure access protocol, including sending the random seed value and verification key; Step 4.3: The diagnostic instrument sends a command to clear the initial angle value of the motor in the motor controller and verifies the clearing result; Step 4.4: Exit the extended mode and end the corner clearing service.
3. The method for checking the consistency of the motor initial angle, motor number and vehicle VIN according to claim 2, characterized in that: The execution of the security access protocol in step 4.2 includes: the diagnostic instrument sends a security access request instruction and receives a random seed value returned by the motor controller; the diagnostic instrument generates and sends a key instruction based on the random seed value to complete security unlocking.
4. A motor initial angle, motor number and vehicle VIN consistency verification system, characterized in that: The method for verifying the consistency of the motor initial angle, motor number and vehicle VIN described in any one of claims 1 to 3 of the embodiment includes: Diagnostic instrument, used to read and write the initial angle of the drive motor, motor number and vehicle VIN code; The motor controller is configured to perform the binding operation and verify the consistency of the initial angle, motor number and vehicle VIN code at power-on; The motor controller is further configured to automatically unbind and clear binding information when a change in the initial angle, motor number or vehicle VIN code is detected.
Citation Information
Patent Citations
Tire braking performance multi-dimensional verification method and system
CN112557065A
ID card management system and management method based on induction
CN116862117A