Dynamic baud rate communication-based electronic control unit (ECU) unauthorized swiping prevention method, device and equipment and medium

By negotiating dynamic CAN baud rate in ECU anti-theft brushing, the problem of ECU being easily stolen in the prior art is solved, the security of ECU is improved, and unauthorized access and data tampering are prevented.

CN119484407APending Publication Date: 2025-02-18WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411373680.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing ECU anti-theft and security access algorithms have the risk of being brute-forced, resulting in low security and easy-to-crack problems.

Method used

By negotiating the CAN baud rate before data flushing, dynamically determining the communication baud rate between the ECU and the host computer, it increases the difficulty of external personnel in brute-force cracking through exhaustive methods and other means.

Benefits of technology

It significantly improves the security of the ECU, prevents unauthorized access and data tampering, and protects the ECU's firmware and data from malicious modifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484407A_ABST
    Figure CN119484407A_ABST
Patent Text Reader

Abstract

The invention discloses an ECU unauthorized swiping prevention method, device and equipment based on dynamic baud rate communication and a medium. The method comprises the steps that after a data flashing instruction is received, an upper computer is in communication connection with an ECU based on a first baud rate; after the upper computer is successfully connected with the ECU, the upper computer and the ECU carry out baud rate negotiation to obtain a successfully negotiated second baud rate; and the upper computer performs security access and data flashing on the ECU based on the second baud rate. According to the method and the device, the Baud rate of CAN communication is negotiated before data flashing is performed on the ECU by using the CAN bus, and if the communication Baud rate of the ECU cannot be determined by the upper computer, external personnel cannot violently crack a security access algorithm of the ECU through an exhaustion method and the like, so that the security of the ECU is greatly improved, and the situation that the ECU is stolen after entering the market can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile safety technology, and in particular to an ECU anti-theft method, device, equipment and medium based on dynamic baud rate communication. Background Art

[0002] In modern cars, electronic control units (ECUs) play a vital role, controlling multiple functions of the vehicle, including engine management, braking, steering, etc. As cars become more intelligent and connected, the information security protection of ECUs becomes particularly important. Currently, the security protection measures for ECU anti-theft mainly rely on the use of secure access algorithms to calculate secret keys to ensure that only authorized devices can perform critical operations such as firmware updates or reprogramming.

[0003] However, existing security access algorithms may be at risk of being cracked by brute force. Brute force is an attack method that tries all possible password combinations to gain access rights. It can be done through automated tools or scripts, trying repeatedly until the correct password combination is found. Therefore, current security access algorithms have problems such as low security and easy cracking. Summary of the invention

[0004] The embodiments of the present application provide an ECU anti-fraud method, device, equipment and medium based on dynamic baud rate communication, so as to at least solve the technical problem that ECU is easily fraudulently flashed in the related art.

[0005] According to one aspect of an embodiment of the present application, a method for preventing ECU theft based on dynamic baud rate communication is provided, comprising:

[0006] After receiving the data flashing instruction, the host computer communicates with the ECU based on the first baud rate;

[0007] After the host computer and the ECU are successfully connected, the host computer and the ECU negotiate the baud rate and obtain the second baud rate that is successfully negotiated;

[0008] The host computer securely accesses and flashes data to the ECU based on the second baud rate.

[0009] In an optional implementation manner, the host computer and the ECU perform baud rate negotiation to obtain a successfully negotiated second baud rate, including:

[0010] The ECU generates encrypted negotiated baud rate information, and sends the encrypted negotiated baud rate information to the host computer;

[0011] The ECU switches the baud rate of the CAN communication to the negotiated baud rate;

[0012] The host computer decrypts the encrypted negotiated baud rate information using a decryption algorithm to obtain the negotiated baud rate, and communicates with the ECU based on the negotiated baud rate;

[0013] If the communication connection is successful within the preset time period, it is determined that the baud rate negotiation is successful, and the negotiated baud rate is used as the second baud rate.

[0014] In an optional implementation manner, before the ECU generates the encrypted negotiation baud rate information, the process further includes:

[0015] The host computer sends a negotiation baud rate command to the ECU;

[0016] After receiving the negotiation baud rate instruction, the ECU randomly generates a candidate baud rate through a hash algorithm;

[0017] Calculate the negotiated baud rate and sampling point based on the baud rate calculation formula and the candidate baud rates; write the negotiated baud rate and sampling point information into a byte array;

[0018] Encrypt the negotiated baud rate information array using the encryption algorithm and the preset key.

[0019] In an optional embodiment, it also includes:

[0020] Within the preset time period, if the communication connection between the ECU and the host computer is unsuccessful, the ECU automatically resets to the first baud rate.

[0021] In an optional embodiment, it also includes:

[0022] Calculate the number of failed communication connections between the host computer and the ECU within the preset time period;

[0023] When the number of failures is greater than a preset threshold, the ECU automatically resets to the first baud rate and exits the negotiation of the baud rate.

[0024] In an optional implementation manner, after obtaining the successfully negotiated second baud rate, the method further includes:

[0025] The host computer sends a command to the ECU to jump to the bootloader mode;

[0026] The ECU receives the jump instruction and enters the bootloader mode.

[0027] In an optional implementation manner, the host computer securely accesses and flashes data to the ECU based on the second baud rate, including:

[0028] In the bootloader mode, the host computer sends a security access request to the ECU;

[0029] ECU verifies the host computer's security access request;

[0030] If the security access request is verified, the host computer will perform data flashing on the ECU;

[0031] The host computer communicates with the ECU based on the second baud rate.

[0032] According to another aspect of the embodiment of the present application, there is also provided an ECU anti-theft device based on dynamic baud rate communication, comprising:

[0033] The communication connection module is used for the host computer to communicate with the ECU based on the first baud rate after receiving the data flashing instruction;

[0034] The baud rate negotiation module is used for the host computer and the ECU to negotiate the baud rate after the host computer and the ECU are successfully connected, and obtain the second baud rate that is successfully negotiated;

[0035] The data flashing module is used for the host computer to securely access and flash the data to the ECU based on the second baud rate.

[0036] According to another aspect of the embodiment of the present application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-mentioned ECU anti-theft method based on dynamic baud rate communication through the computer program.

[0037] According to another aspect of the embodiment of the present application, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned ECU anti-theft method based on dynamic baud rate communication when running.

[0038] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0039] This application significantly improves the security of the ECU by negotiating the CAN baud rate before using the CAN bus to flash data to the ECU (electronic control unit). Specific beneficial effects include:

[0040] Prevent brute force cracking: Since the host computer cannot predetermine the communication baud rate of the ECU, it increases the difficulty for outsiders to brute force the ECU's security access algorithm through means such as exhaustive methods, thereby effectively preventing unauthorized access and data tampering.

[0041] Enhanced data security: The baud rate determined through negotiation increases the uncertainty of ECU communication, making the data transmission process more secure and reducing the risk of data being intercepted and cracked during transmission.

[0042] Protect ECU from unauthorized flashing: After the ECU enters the market, due to the uncertainty of the communication baud rate, it is difficult for outsiders to flash the ECU data in an unauthorized manner, thereby protecting the ECU's firmware and data from malicious modification.

[0043] To sum up, this application provides an additional security protection layer for the ECU through the method of dynamically negotiating the CAN baud rate, effectively improving the overall security of the ECU, preventing unauthorized access and data flashing, and ensuring the safety and stability of the vehicle control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0045] Figure 1 It is a flow chart of an ECU anti-theft method based on dynamic baud rate communication according to an embodiment of the present application;

[0046] Figure 2 It is a flowchart of another ECU anti-theft method based on dynamic baud rate communication according to an embodiment of the present application;

[0047] Figure 3 is a schematic diagram of an ECU anti-theft device based on dynamic baud rate communication according to an embodiment of the present application;

[0048] Figure 4 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0051] The following is combined with Figure 1 The ECU anti-theft method based on dynamic baud rate communication in the embodiment of the present application is introduced in detail. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this regard. On the contrary, the implementation of the present application can be applied to any applicable scenario.

[0052] This application uses a secure dynamic baud rate CAN communication method to prevent the communication between the fraud tool and the ECU, effectively avoiding brute force cracking of the ECU security access algorithm. This application changes the ECU's CAN communication baud rate from static to dynamic. Each time before writing data, the host computer and the ECU first negotiate and calculate the CAN communication baud rate through a specific encryption algorithm. The host computer and the ECU communicate using the baud rate after successful negotiation. Through the dynamic baud rate method, the ECU is physically protected at the communication level, effectively preventing the fraud tool from stealing the ECU.

[0053] like Figure 1 As shown, the method mainly includes the following steps:

[0054] S101 After receiving the data flashing instruction, the host computer communicates with the ECU based on the first baud rate.

[0055] In CAN (Controller Area Network) communication, baud rate refers to the rate of data transmission, that is, the number of signal changes transmitted per unit time. Baud rate is an important parameter to measure the speed of network communication. Among them, the first baud rate refers to the default baud rate for data transmission between ECU and host computer.

[0056] After receiving the command to start flashing, the host computer will try to connect to the ECU using the default first baud rate of the ECU. After successful communication, it will negotiate the CAN communication baud rate with the ECU.

[0057] S102 After the host computer and the ECU are successfully connected, the host computer and the ECU negotiate a baud rate to obtain a second baud rate that is successfully negotiated.

[0058] After the host computer and ECU are successfully connected, the host computer sends a negotiation baud rate instruction to the ECU; after receiving the negotiation baud rate instruction, the ECU randomly generates candidate baud rates through a hash algorithm; calculates the negotiation baud rate and sampling point based on the baud rate calculation formula and the candidate baud rate; writes the negotiation baud rate and sampling point information into a byte array; and encrypts the negotiation baud rate information array using an encryption algorithm and a preset key.

[0059] Specifically, after starting to negotiate the baud rate, the host computer sends a negotiation baud rate instruction to the ECU. After receiving the instruction, the ECU randomly generates a 4-byte integer as the CAN candidate baud rate through a hash algorithm. The candidate baud rate range is 5k~1000k, and the baud rate calculation deviation is allowed to be 1%. The ECU calculates the negotiated baud rate baud_c, sampling point sample_s and other information according to the baud rate calculation formula, and writes this information into the byte array baud_arr. The ECU encrypts the baud rate information array baud_arr using an encryption algorithm. The secret key used by the encryption algorithm is determined by the developer and burned into the ECU in advance.

[0060] Furthermore, the ECU generates encrypted negotiated baud rate information and sends the encrypted negotiated baud rate information to the host computer; the ECU switches the baud rate of CAN communication to the negotiated baud rate; the host computer decrypts the encrypted negotiated baud rate information using a decryption algorithm to obtain the negotiated baud rate, and communicates with the ECU based on the negotiated baud rate; if the communication connection is successful within a preset time period, it is determined that the baud rate negotiation is successful, and the negotiated baud rate is used as the second baud rate.

[0061] The ECU uses the default first baud rate to communicate with the host computer and sends the encrypted baud rate information array baud_arr to the host computer. Then the ECU needs to switch the CAN baud rate to the negotiated baud rate baud_c.

[0062] In order to prevent the ECU's baud rate from being unable to recover automatically when communication fails, the ECU will start a timer when the CAN baud rate switches to baud_c. If the host computer fails to successfully communicate with the ECU within a preset time period, such as 5S, the ECU will automatically reset to the default baud rate.

[0063] After receiving the data, the host computer also uses the AES algorithm to decrypt and obtain the CAN baud rate baud_c. The host computer uses baud_c to try to communicate with the ECU. If the communication is successful within 5 seconds, the baud rate negotiation step is completed. The negotiated baud rate baud_c is the second baud rate that is successfully negotiated.

[0064] In an optional embodiment, the method further includes: if the ECU fails to communicate with the host computer within a preset time period, the ECU automatically resets to the first baud rate. For example, if the communication fails within 5 seconds, the ECU automatically resets to the default baud rate and repeats the above baud rate negotiation operation.

[0065] In an optional implementation, it also includes: calculating the number of failed communication connections between the host computer and the ECU within a preset time period; when the number of failures is greater than a preset threshold, the ECU automatically resets to the first baud rate and exits the negotiation baud rate.

[0066] In an exemplary scenario, to prevent baud_c from being obtained by brute force attempts by outsiders, the ECU can only be attempted to connect three times within 5 seconds. If more than three attempts fail, the ECU will automatically reset and exit the baud rate negotiation process.

[0067] The S103 host computer performs secure access and data flashing to the ECU based on the second baud rate.

[0068] In an optional implementation manner, after obtaining the successfully negotiated second baud rate, the method further includes: the host computer sends a command to the ECU to jump to the bootloader mode; and the ECU receives the jump command and enters the Bootloader mode.

[0069] Furthermore, in the bootloader mode, the host computer sends a security access request to the ECU; the ECU verifies the security access request of the host computer. If the security access request is verified, the host computer performs a data flashing operation on the ECU.

[0070] Specifically, the host computer first sends a security access request to the ECU. This request may contain specific authentication information, such as a password, key, or digital certificate, to verify the identity and access rights of the host computer.

[0071] After receiving a security access request, the ECU prepares to verify the request based on built-in security policies and algorithms. This may include checking whether the authentication information in the request meets the security requirements of the ECU. The ECU verifies the authentication information provided by the host computer. This process may involve encryption and decryption operations, as well as comparison with the key or certificate stored inside the ECU.

[0072] Once the ECU completes the verification, it will take appropriate actions based on the verification results. If the verification is successful, the ECU will grant access rights to the host computer, allowing the host computer to perform subsequent operations, such as reading data, writing data, or executing diagnostic commands. If the verification fails, the ECU will deny the host computer's access request and may record this unauthorized access attempt for subsequent analysis and auditing.

[0073] In one implementation, the baud rate is negotiated using the UDS protocol, the baud rate negotiation process is performed using the 27 service, and the sub-function subfunc is defined to implement specific instructions. After the negotiation is successful, the host computer communicates with the ECU based on the second baud rate.

[0074] In order to facilitate understanding of the ECU anti-theft method provided in the embodiment of the present application, the following is combined with the attached Figure 2 Further description, such as Figure 2 As shown, the method includes:

[0075] After starting the flash, the host computer tries to connect to the ECU using the initial default baud rate to determine whether the connection is successful. If the communication is successful, it will negotiate the CAN communication baud rate with the ECU. If the connection fails, it will return to continue trying to connect. After the CAN communication baud rate negotiation is successful, the ECU enters the BootLoader mode, and the host computer sends a security access request to the ECU. If the request is successful, the data is flashed. If the request is unsuccessful, the flashing is terminated without flashing.

[0076] The process of negotiating the baud rate includes: after starting to negotiate the baud rate, the host computer sends a negotiating baud rate instruction to the ECU. After receiving the instruction, the ECU generates a random number and calculates the baud rate and sampling point information. The ECU encrypts the baud rate information through an encryption algorithm to obtain a byte array and sends the byte array to the host computer.

[0077] ECU switches the CAN baud rate to the negotiated baud rate, and the host computer uses the decryption algorithm to decrypt the ECU baud rate. The host computer attempts to communicate using the decrypted baud rate. If the communication attempts do not exceed 3 times and the connection is successful within 5S, the negotiated baud rate is successful. If the communication attempts exceed 3 times or the communication fails within 5S, the negotiated baud rate fails and the ECU is reset. The number of times and time limits are used to further ensure the security of the ECU.

[0078] This application negotiates the CAN baud rate before using the CAN bus to flash data to the ECU. If the host computer cannot determine the communication baud rate of the ECU, outsiders cannot brute-force the ECU's security access algorithm through exhaustive methods, etc., which greatly improves the security of the ECU and can effectively prevent the ECU from being stolen after entering the market.

[0079] According to another aspect of the embodiment of the present application, there is also provided an ECU anti-theft device based on dynamic baud rate communication for implementing the above-mentioned ECU anti-theft method based on dynamic baud rate communication. Figure 3 As shown, the device comprises:

[0080] The communication connection module 301 is used for the host computer to communicate with the ECU based on the first baud rate after receiving the data flashing instruction;

[0081] The baud rate negotiation module 302 is used for performing baud rate negotiation between the host computer and the ECU after the host computer and the ECU are successfully connected to obtain a second baud rate that is successfully negotiated;

[0082] The data flashing module 303 is used for the host computer to perform secure access and data flashing on the ECU based on the second baud rate.

[0083] It should be noted that the ECU anti-theft device based on dynamic baud rate communication provided in the above embodiment only uses the division of the above functional modules as an example when executing the ECU anti-theft method based on dynamic baud rate communication. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the ECU anti-theft device based on dynamic baud rate communication provided in the above embodiment and the ECU anti-theft method based on dynamic baud rate communication belong to the same concept. The implementation process is detailed in the method embodiment, which will not be repeated here.

[0084] According to another aspect of the embodiment of the present application, an electronic device corresponding to the ECU anti-theft method based on dynamic baud rate communication provided in the above embodiment is also provided to execute the above ECU anti-theft method based on dynamic baud rate communication.

[0085] Please refer to Figure 4 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 4 As shown, the electronic device includes: a processor 400, a memory 401, a bus 402 and a communication interface 403, and the processor 400, the communication interface 403 and the memory 401 are connected via the bus 402; the memory 401 stores a computer program that can be run on the processor 400, and when the processor 400 runs the computer program, it executes the ECU anti-theft method based on dynamic baud rate communication provided in any of the aforementioned embodiments of the present application.

[0086] The memory 401 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0087] The bus 402 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 401 is used to store programs, and the processor 400 executes the program after receiving the execution instruction. The ECU anti-theft method based on dynamic baud rate communication disclosed in any of the embodiments of the present application can be applied to the processor 400, or implemented by the processor 400.

[0088] The processor 400 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 400. The above processor 400 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.

[0089] The electronic device provided in the embodiment of the present application and the ECU anti-theft method based on dynamic baud rate communication provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0090] According to another aspect of the embodiments of the present application, a computer-readable storage medium corresponding to the ECU anti-theft method based on dynamic baud rate communication provided in the aforementioned embodiments is also provided, on which a computer program (i.e., a program product) is stored. When the computer program is run by the processor, it will execute the ECU anti-theft method based on dynamic baud rate communication provided in any of the aforementioned embodiments.

[0091] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0092] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the ECU anti-theft method based on dynamic baud rate communication provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0093] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0094] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.

Claims

1. An ECU anti-theft method based on dynamic baud rate communication, characterized in that: include: After receiving the data flashing instruction, the host computer communicates with the ECU based on the first baud rate; After the host computer and the ECU are successfully connected, the host computer and the ECU negotiate the baud rate and obtain the second baud rate that is successfully negotiated; The host computer securely accesses and flashes data to the ECU based on the second baud rate.

2. The method according to claim 1, characterized in that The host computer negotiates the baud rate with the ECU and obtains the second baud rate that is successfully negotiated, including: The ECU generates encrypted negotiated baud rate information, and sends the encrypted negotiated baud rate information to the host computer; The ECU switches the baud rate of the CAN communication to the negotiated baud rate; The host computer decrypts the encrypted negotiated baud rate information using a decryption algorithm to obtain the negotiated baud rate, and communicates with the ECU based on the negotiated baud rate; If the communication connection is successful within the preset time period, it is determined that the baud rate negotiation is successful, and the negotiated baud rate is used as the second baud rate.

3. The method according to claim 2, characterized in that Before the ECU generates the encrypted negotiation baud rate information, it also includes: The host computer sends a negotiation baud rate command to the ECU; After receiving the negotiation baud rate instruction, the ECU randomly generates a candidate baud rate through a hash algorithm; Calculate the negotiated baud rate and sampling point based on the baud rate calculation formula and the candidate baud rates; write the negotiated baud rate and sampling point information into a byte array; Encrypt the negotiated baud rate information array using the encryption algorithm and the preset key.

4. The method according to claim 2, characterized in that: Also includes: Within the preset time period, if the communication connection between the ECU and the host computer is unsuccessful, the ECU automatically resets to the first baud rate.

5. The method according to claim 2, characterized in that: Also includes: Calculate the number of failed communication connections between the host computer and the ECU within the preset time period; When the number of failures is greater than a preset threshold, the ECU automatically resets to the first baud rate and exits the negotiation of the baud rate.

6. The method according to claim 1, characterized in that After the second baud rate is successfully negotiated, the following steps are also included: The host computer sends a command to the ECU to jump to the bootloader mode; The ECU receives the jump instruction and enters the bootloader mode.

7. The method according to claim 6, characterized in that The host computer securely accesses and flashes data to the ECU based on the second baud rate, including: In the bootloader mode, the host computer sends a security access request to the ECU; ECU verifies the host computer's security access request; If the security access request is verified, the host computer will perform data flashing on the ECU; The host computer communicates with the ECU based on the second baud rate.

8. An ECU anti-theft device based on dynamic baud rate communication, characterized in that: include: The communication connection module is used for the host computer to communicate with the ECU based on the first baud rate after receiving the data flashing instruction; The baud rate negotiation module is used for the host computer and the ECU to negotiate the baud rate after the host computer and the ECU are successfully connected, and obtain the second baud rate that is successfully negotiated; The data flashing module is used for the host computer to securely access and flash the data to the ECU based on the second baud rate.

9. An electronic device, characterized in that: It comprises a processor and a memory storing program instructions, wherein the processor is configured to execute the ECU anti-theft method based on dynamic baud rate communication as claimed in any one of claims 1 to 7 when executing the program instructions.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and the computer-readable instructions are executed by a processor to implement an ECU anti-theft method based on dynamic baud rate communication as described in any one of claims 1 to 7.