An ECU calibration method based on a serial port protocol

CN121522292BActive Publication Date: 2026-11-03XIAN AISHENG TECH GRP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511509127.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-22
Publication Date
2026-11-03
Estimated Expiration
2045-10-22

AI Technical Summary

Technical Problem

In existing technologies, the fixed serial port protocol during ECU calibration requires frequent changes to both the ECU software and the host computer software, affecting development and debugging efficiency.

Method used

The system sends a command to the ECU to read the master table via serial port protocol, parses the static/dynamic parameters and registers the master table information, modifies the static parameter table content as needed, and reports the dynamic parameter table in real time, thereby realizing real-time monitoring and optimization of ECU parameters.

Benefits of technology

It enables convenient acquisition and online calibration of ECU parameters, and allows for the configuration of real-time response frames according to requirements, thereby improving the efficiency and flexibility of ECU debugging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121522292B_ABST
    Figure CN121522292B_ABST
Patent Text Reader

Abstract

The present disclosure is an ECU calibration method based on a serial port protocol, comprising: sending a read total table command to the ECU using the serial port protocol, receiving and analyzing the static / dynamic parameter registration total table information read by the ECU, the static / dynamic parameter registration total table each comprising a plurality of tables, each table having a corresponding ID number; according to the target ID, sending a read content command to the ECU using the serial port protocol, receiving the table information of the target ID read by the ECU; according to the static parameter modification requirement, sending a command to set the content of the static parameter table to the ECU, and modifying the corresponding static parameter; according to the dynamic parameter reporting requirement, sending a command to report the dynamic parameter table to the ECU, and the ECU reports the dynamic parameter table in real time. The embodiment can conveniently obtain the internal calibration variables of the ECU and perform online calibration through the serial port protocol, the protocol can configure a real-time response frame according to the requirement, realize real-time monitoring of the required ECU parameters, and adjust and optimize the operation and control parameters of the ECU.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ECU calibration technology, and in particular to an ECU calibration method based on a serial port protocol. Background Technology

[0002] The UAV ECU (Electronic Control Unit) is the core component of the UAV engine's electronic control system. It requires adjusting, optimizing, and determining the operating parameters (such as engine speed and throttle position), control parameters (such as injection pulse width and choke opening), and key aspects like the injection MAP, based on various performance requirements of the UAV (such as power and economy), to complete the ECU parameter calibration. This process necessitates real-time acquisition and editing of calibration parameters according to debugging needs. Simultaneously, the operating parameters under scrutiny must be adjusted continuously during debugging. Currently, the product uses a fixed serial port protocol, leading to constant changes to the protocol based on debugging requirements. This necessitates frequent modifications to the ECU software and host computer software, negatively impacting the development and debugging of the ECU. Therefore, an efficient calibration method based on a serial port protocol is needed.

[0003] Therefore, it is necessary to improve one or more of the problems existing in the above-mentioned related technical solutions.

[0004] It should be noted that this section is intended to provide background or context for the technical solutions of this disclosure as set forth in the claims. The description herein does not constitute an admission that it is prior art simply because it is included in this section. Summary of the Invention

[0005] The purpose of this invention is to provide an ECU calibration method based on a serial port protocol, thereby overcoming, to at least some extent, one or more problems caused by the limitations and defects of related technologies.

[0006] According to a first aspect of the present invention, an ECU calibration method based on a serial port protocol is provided, comprising: S1, using the serial port protocol, sends a command to the ECU to read the master table, receives the static / dynamic parameter registration master table information reported by the ECU and parses it. The static / dynamic parameter registration master table includes multiple tables, and each table has a corresponding ID number. S2, based on the target table ID, send a read content command to the ECU using the serial port protocol, and receive the table information of the target ID read by the ECU; S3, send a command to the ECU to set the contents of the static parameter table according to the static parameter table ID to be modified, so that the ECU can modify the corresponding static parameter table according to the command; S4, based on the dynamic parameter reporting requirement, sends a command to the ECU to report the dynamic parameter table, so that the ECU can report the dynamic parameter table in real time according to the command.

[0007] In this invention, the static / dynamic parameter registration master table includes: table base address, data type, number of rows, number of columns, and parameter table name.

[0008] In this invention, the number of rows and columns in the table registered in the dynamic parameter registration summary table is 1.

[0009] In this invention, S1, the process of the host computer reading the static parameter registration summary table includes: S1.1, Create a command frame for obtaining the static parameter registration summary table and send the command frame to the ECU; S1.2, wait to receive the response frame from the ECU; S1.3 Receive the response frame returned by the ECU and determine whether the static parameter table ID number corresponding to the response frame has been reported. If the reporting has ended, the process ends. If the reporting has not ended, proceed to S1.4. S1.4: Parse the static parameter table information from the response frame and display it on the host computer interface, then jump to S1.2 to continue waiting.

[0010] In this invention, S4 includes: S4.1 Select the dynamic parameters that need to be reported in real time; S4.2, Create a command to encapsulate the dynamic parameter setting response frame and send the command frame to the ECU; S4.3 Determine whether the user-selected dynamic parameters have been sent. If yes, end the process; otherwise, jump to S4.2 to continue sending the dynamic parameter setting response frame encapsulation command.

[0011] According to a second aspect of the present invention, an ECU calibration system based on a serial port protocol is provided, the system comprising: The host computer uses a serial port protocol to send a command to the ECU to read the master table, receives the static / dynamic parameter registration master table information read by the ECU, and parses it. Each static / dynamic parameter registration master table contains multiple tables, each with a corresponding ID number. Based on the target ID, the host computer uses a serial port protocol to send a command to the ECU to read the content, receiving the table information for the target ID read by the ECU. Based on static parameter modification requirements, the host computer sends a command to the ECU to set the static parameter table content, enabling the ECU to modify the corresponding static parameters. Based on dynamic parameter reporting requirements, the host computer sends a command to the ECU to report the dynamic parameter table, enabling the ECU to report the dynamic parameter table in real time. The ECU is used to receive commands sent by the host computer via serial port protocol, send the read table information to the host computer, set the static parameter table content according to the commands, and report the dynamic parameter table in real time. The transmission device uses a serial port protocol to enable data transmission between the host computer and the ECU.

[0012] According to a third aspect of the present invention, an electronic device is provided, comprising: Processor; and Memory for storing the executable instructions of the processor; The processor is configured to execute the steps of the ECU calibration method based on the serial port protocol described in any of the above embodiments by executing the executable instructions.

[0013] According to a fourth aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the ECU calibration method based on a serial port protocol as described in any of the above embodiments.

[0014] The technical solution provided by this invention may include the following beneficial effects: This invention discloses an ECU calibration method based on a serial port protocol. The serial port protocol can be used to conveniently obtain the internal calibration variables of the ECU and perform online calibration. The protocol can be configured with real-time response frames as needed to realize real-time monitoring of the required ECU parameters and to adjust and optimize the ECU's operation and control parameters. Attached Figure Description

[0015] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0016] Figure 1 A flowchart illustrating an exemplary embodiment of the present disclosure of an ECU calibration method based on a serial port protocol; Figure 2 This diagram illustrates a flowchart of S1 in an exemplary embodiment of this disclosure; Figure 3 A flowchart illustrating S4 in an exemplary embodiment of this disclosure is shown; Figure 4 This diagram illustrates the organization of static parameters in an exemplary embodiment of this disclosure. Figure 5 This diagram illustrates the organization of dynamic parameters in an exemplary embodiment of this disclosure. Figure 6This diagram illustrates the protocol interaction in an exemplary embodiment of this disclosure. Figure 7 This diagram illustrates a flowchart of reading the static parameter registration master table in an exemplary embodiment of this disclosure. Figure 8 This diagram illustrates a flowchart of reading the contents of a static parameter table in an exemplary embodiment of this disclosure. Figure 9 This diagram illustrates a flowchart of modifying the contents of a static parameter table in an exemplary embodiment of this disclosure. Figure 10 This diagram illustrates a flowchart of changing the encapsulation format of a timing response frame in an exemplary embodiment of this disclosure. Figure 11 This diagram illustrates the structure of an electronic device according to an exemplary embodiment of the present disclosure. Figure 12 This diagram illustrates the structure of a program product for implementing an ECU calibration method based on a serial port protocol, as shown in an exemplary embodiment of this disclosure. Detailed Implementation

[0017] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0018] Furthermore, the accompanying drawings are merely illustrative diagrams of embodiments of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0019] This example implementation first provides an ECU calibration method based on a serial port protocol. From the perspective of the host computer, please refer to [reference needed]. Figure 1 The method includes the following steps: S1, using the serial port protocol, sends a command to the ECU to read the master table, receives the static / dynamic parameter registration master table information reported by the ECU and parses it. The static / dynamic parameter registration master table includes multiple tables, and each table has a corresponding ID number. S2, based on the target table ID, send a read content command to the ECU using the serial port protocol, and receive the table information of the target ID read by the ECU; S3, send a command to the ECU to set the contents of the static parameter table according to the static parameter table ID to be modified, so that the ECU can modify the corresponding static parameter table according to the command; S4, based on the dynamic parameter reporting requirement, sends a command to the ECU to report the dynamic parameter table, so that the ECU can report the dynamic parameter table in real time according to the command.

[0020] In this embodiment, the internal calibration variables of the ECU can be conveniently obtained and calibrated online through the serial port protocol. The protocol can be configured with real-time response frames as needed to realize real-time monitoring of the required ECU parameters and to adjust and optimize the ECU's operation and control parameters.

[0021] The specific process of each step in the above embodiments will be described below.

[0022] In S1, the ECU stores two master parameter registration tables to record information from various parameter tables: one for static parameters and one for dynamic parameters. The static parameter table contains parameters that need to be labeled, such as fuel injection MAP, while the dynamic parameter table contains real-time parameters such as engine speed. In the master parameter registration table, each row represents a parameter table, and the table content includes the ID number of each table. The static parameter organization structure in the ECU is as follows: Figure 4 As shown, the dynamic parameter organization structure in the ECU is as follows: Figure 5 As shown.

[0023] The static / dynamic parameter registration master tables in the ECU each include: table ID, table base address, data type, number of rows, number of columns, and parameter table name. The table base address is the starting address of each table, and the table ID is a unique identifier used in the protocol. In the static parameter registration master table, parameters that need to be calibrated are added as independent tables.

[0024] In the dynamic parameter registration master table, the meaning of each column is the same as in the static parameter registration table. The difference is that the number of rows and columns in the dynamic parameter registration master table is 1.

[0025] This means that space is allocated in the ECU for static and dynamic parameters according to the information in the master registration table, and the specific values ​​of the parameters are filled in. The difference is that the table size for static parameters such as fuel injection MAP is N*M, while the table size for dynamic parameters is 1*1.

[0026] Static parameters determine how the ECU controls the engine, and once the engine is running, they affect the engine's real-time operating parameters (dynamic parameters).

[0027] The purpose of calibration is to optimize engine operation by modifying static parameters. Therefore, during calibration, static parameters are gradually modified while continuously observing the engine's real-time operating parameters to find the optimal static parameters.

[0028] The interaction process between the host computer and the ECU is as follows Figure 6 As shown. The host computer sends a command frame to the ECU. The command frame format is as follows: Figure 3 As shown, there are a total of four commands: (1) 0xA1: Read the static / dynamic parameter registration summary table; (2) 0xA2: Read the contents of the static parameter table; (3) 0xA3: Set the contents of the static parameter table; (4) 0xA4: Dynamic parameter response frame encapsulation.

[0029] The ECU responds to the host computer with burst response frames and timed response frames, with the frame format as follows: Figure 3 As shown. Burst response frames are only reported when the corresponding command is received, while timed response frames are reported automatically at regular intervals. There are a total of three types of commands: (1) 0xB1: Contents of the reported static / dynamic parameter registration summary table; (2) 0xB2: Report the contents of the static parameter table; (3) 0xB3: Report dynamic parameter values.

[0030] At the start of calibration, the host computer first needs to obtain the current static parameter content and display it on the interface. This is accomplished through two processes: reading the static parameter registration summary table and reading the static parameter table. The processes are as follows: Figure 7 , Figure 8 As shown.

[0031] Please refer to the following first. Figure 2 The process of the host computer reading the static parameter registration summary table includes: S1.1, Create a command frame for obtaining the static parameter registration summary table, with CMD set to 0xA1, and send the command frame to the ECU; S1.2, wait to receive the response frame from the ECU; S1.3 Receive the response frame returned by the ECU and determine whether the static parameter table ID number corresponding to the response frame has been reported (i.e., determine whether Data1 is 0x00). If the reporting has ended, the process ends. If the reporting has not ended, proceed to S1.4. S1.4: Parse the static parameter table information from the response frame and display it on the host computer interface, then jump to S1.2 to continue waiting.

[0032] Please refer to Figure 7 The process of the ECU reading the static parameter registration summary table includes: (1) Received the command frame for obtaining the static parameter registration summary table; (2) Read one line from the static parameter registration summary table; (3) Create a response frame, where CMD is 0xB1, Data1 is 0x01, and the other content is the content read in step (2); send the response frame to the host computer; (4) Determine whether the static parameter registration table has been read in step (2); if yes, proceed to step (5); if not, jump to step (2) and continue execution. (5) Create a response frame, CMD is 0xB1 and Data1 is 0x00; send the response frame to the host computer; the process ends.

[0033] After the host computer obtains the master table of static parameters, it continues to obtain the contents of each static parameter table and display them on the interface. Please refer to [link / reference]. Figure 8 The process is as follows: Host computer side: (1) Create a command frame to retrieve the contents of the static parameter table, where CMD is 0xA2, Data1 is the table ID number in the retrieved static parameter table, and the row and column positions to be read and the number of data to be read are specified; send the command frame to the ECU. (2) Wait for the response frame returned by the ECU. After receiving it, proceed to step (3). (3) Determine if Data1 is 0x00. If it is, it means that the static parameter table data has been transmitted and the process ends; otherwise, proceed to step (4). (4) Parse the static parameter table data information from the response frame and display it in the row and column positions of the parameter table; jump to step (2) and continue to wait; ECU end: (1) Received a command frame to retrieve the contents of the static parameter table; (2) Obtain the table's starting address by querying the static parameter registration summary table based on the table number (ID); (3) Based on the table's starting address, and combined with the row and column information in the command frame and the table's data type information, determine the reading position and read the data value; (4) Create a response frame, where CMD is 0xB2, Data1 is 0x01, Data2 and Data3 are the row and column positions read in step (3), and Data4 is the data value read in step (3); send the response frame to the host computer. (5) Determine whether the number of data currently sent to the host computer has reached the number of data specified in the command frame. If yes, proceed to step (6); otherwise, jump to step (3) and continue execution. (6) Create a response frame, CMD is 0xB1 and Data1 is 0x00; send the response frame to the host computer; the process ends.

[0034] host computer based on Figure 7 and Figure 8Two processes are used to acquire all the static calibration parameters in the ECU and present them on the interface.

[0035] During ECU tuning, if you need to change the static parameters, follow the instructions. Figure 9 The flowchart describes how to modify the static parameter table. The specific process is as follows: Host computer side: (1) Create a command frame to set the content of the static parameter table, CMD is 0xA3, Data1 is the table ID number in the set static parameter table, Data2 and Data3 are the row and column positions set, and Data4 is the set value; send the command frame to the ECU. (2) End the process without waiting for ECU response.

[0036] ECU end: (1) Received a command frame to set the content of the static parameter table; (2) Obtain the table's starting address by querying the static parameter registration summary table based on the table number (ID); (3) Based on the table's starting address, and combined with the row and column information in the command frame and the table's data type information, determine the setting location and update the data value; the process ends.

[0037] During ECU tuning, commands need to be encapsulated in dynamic parameter response frames according to tuning requirements. The content of Data1 to DataN in the timed response frame format is determined according to the dynamic parameter information in the command, and the data is actively reported at a certain period without the need for the host computer to query via commands. Furthermore, during ECU tuning, this command frame can be repeatedly issued as needed, allowing for flexible configuration of the content in the timed response frames reported by the ECU.

[0038] Please refer to Figure 3 S4 includes: S4.1 Select the dynamic parameters that need to be reported in real time; S4.2, Create a command to encapsulate the dynamic parameter setting response frame and send the command frame to the ECU; S4.3 Determine whether the user-selected dynamic parameters have been sent. If yes, end the process; otherwise, jump to S4.2 to continue sending the dynamic parameter setting response frame encapsulation command.

[0039] The specific process is as follows: Figure 10 As shown, the steps are as follows: Host computer side: (1) The user selects the dynamic parameters that need to be reported in real time. The number of dynamic parameters selected should take into account the length of the timed response frame. (2) Create a dynamic parameter response frame encapsulation command, which issues the configuration content of a dynamic parameter. CMD is 0xA4, Data1 is the table number ID in the dynamic parameter master table, Data2 and Data3 are both 1, and Data4 is the position to encapsulate the dynamic parameter into the timed response frame; send this command frame to the ECU; (3) Determine whether the dynamic parameters selected by the user have been sent. If yes, end the process; otherwise, jump to step (2) to continue sending the dynamic parameter setting response frame encapsulation command.

[0040] ECU end: (1) Received a command frame to set the content of the static parameter table; (2) Obtain the table's starting address by querying the static parameter registration summary table based on the table number (ID); Based on the table's starting address, and combined with the row and column information in the command frame and the table's data type information, the setting location is determined, and the data value is updated; the process ends.

[0041] The present invention also provides an ECU calibration system based on a serial port protocol, the system comprising: The host computer uses a serial port protocol to send a command to the ECU to read the master table, receives and parses the static / dynamic parameter registration master table information reported by the ECU. Each static / dynamic parameter registration master table contains multiple tables, each with a corresponding ID. Based on the target table ID, the host computer sends a command to the ECU to read the content, receiving the table information for the target ID from the ECU. For static parameter table IDs that need modification, the host computer sends a command to the ECU to set the static parameter table content, enabling the ECU to modify the corresponding static parameter table accordingly. Based on dynamic parameter reporting requirements, the host computer sends a command to the ECU to report the dynamic parameter table, enabling the ECU to report the dynamic parameter table in real time. The ECU is used to receive commands sent by the host computer via serial port protocol, send the read table information to the host computer, set the static parameter table content according to the commands, and report the dynamic parameter table in real time. The transmission device utilizes a serial port protocol to enable data transmission between the host computer and the ECU. The serial port protocol used for ECU calibration in this invention allows for rapid adjustment and optimization of the ECU's operating and control parameters.

[0042] Regarding the system in the above embodiments, the specific manner in which each component performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0043] In current automotive ECUs, CAN is the most common method for ECU calibration. CAN and Ethernet ports are merely physical buses, serving as channels for the XCP calibration protocol. This application designs a new serial port calibration protocol, which is much simpler than XCP, yet still achieves the calibration function. It is also more suitable for serial communication.

[0044] It should be noted that although several modules of the system for executing actions are mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules for embodiment. Components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the present invention according to actual needs. Those skilled in the art can understand and implement this without any inventive effort.

[0045] See Figure 11 The present invention also provides an electronic device 300, which includes at least one memory 310, at least one processor 320, and a bus 330 connecting different platform systems.

[0046] The memory 310 may include a readable medium in the form of volatile memory, such as random access memory (RAM) 311 and / or cache memory 312, and may further include read-only memory (ROM) 313.

[0047] The memory 310 also stores a computer program, which can be executed by the processor 320, causing the processor 320 to perform the steps of the ECU calibration method based on the serial port protocol in any embodiment of the present invention. The specific implementation method is consistent with the implementation method and the technical effect achieved in the above-described embodiments of the ECU calibration method based on the serial port protocol, and some contents will not be repeated.

[0048] The memory 310 may also include a utility 314 having at least one program module 315, such program module 315 including but not limited to: an operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0049] Accordingly, processor 320 can execute the aforementioned computer program, and can also execute utility 314.

[0050] Bus 330 can represent one or more of several bus structures, including a memory bus or memory controller, peripheral bus, graphics acceleration port, processor, or a local bus using any of the various bus structures.

[0051] Electronic device 300 can also communicate with one or more external devices 340, such as keyboards, pointing devices, Bluetooth devices, etc., and with one or more devices capable of interacting with it, and / or with any device that enables it to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be performed via input / output interface 350. Furthermore, electronic device 300 can communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 360. Network adapter 360 can communicate with other modules of electronic device 300 via bus 330. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0052] This invention also provides a computer-readable storage medium for storing a computer program. When the computer program is executed, it implements the steps of the ECU calibration method based on the serial port protocol in this invention. The specific implementation method is consistent with the implementation method and the technical effects achieved in the above-described embodiments of the ECU calibration method based on the serial port protocol, and some details will not be repeated.

[0053] Figure 12The illustration shows a program product 400 for implementing the above-described serial port protocol-based ECU calibration method. This product can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product 400 of this invention is not limited thereto. In this invention, the readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. The program product 400 can employ any combination of one or more readable media. A readable medium can be a readable signal medium or a readable storage medium. A readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0054] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium capable of sending, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, or any suitable combination thereof. Program code for performing the operations of this invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as a standalone software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing devices can be connected to user computing devices via any type of network, including local area networks (LANs) or wide area networks (WANs), or they can be connected to external computing devices (e.g., via the Internet using an Internet service provider).

[0055] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. An ECU calibration method based on a serial port protocol, characterized in that, Includes the following steps: S1, using the serial port protocol, sends a command to the ECU to read the master table, receives the static and dynamic parameter registration master table information reported by the ECU and parses it. The static and dynamic parameter registration master tables each include multiple tables, and each table has a corresponding ID number. S2, based on the target table ID, send a read content command to the ECU using the serial port protocol, and receive the table information of the target ID read by the ECU; S3, send a command to the ECU to set the contents of the static parameter table according to the static parameter table ID to be modified, so that the ECU can modify the corresponding static parameter table according to the command; S4, based on the dynamic parameter reporting requirement, sends a command to the ECU to report the dynamic parameter table, so that the ECU can report the dynamic parameter table in real time according to the command.

2. The ECU calibration method based on serial port protocol according to claim 1, characterized in that, Both the static and dynamic parameter registration master tables include: table base address, data type, number of rows, number of columns, and parameter table name.

3. The ECU calibration method based on serial port protocol according to claim 1, characterized in that, The number of rows and columns in the dynamic parameter registration table is 1.

4. The ECU calibration method based on serial port protocol according to claim 1, characterized in that, In S1, the process of the host computer reading the static parameter registration summary table includes: S1.1, Create a command frame for obtaining the static parameter registration summary table and send the command frame to the ECU; S1.2, wait to receive the response frame from the ECU; S1.3 Receive the response frame returned by the ECU and determine whether the static parameter table ID number corresponding to the response frame has been reported. If the reporting has ended, the process ends. If the reporting has not ended, proceed to S1.

4. S1.4: Parse the static parameter table information from the response frame and display it on the host computer interface, then jump to S1.2 to continue waiting.

5. The ECU calibration method based on serial port protocol according to claim 1, characterized in that, S4 include: S4.1 Select the dynamic parameters that need to be reported in real time; S4.2, Create a command to encapsulate the dynamic parameter setting response frame and send the command frame to the ECU; S4.3 Determine whether the user-selected dynamic parameters have been sent. If yes, end the process; otherwise, jump to S4.2 to continue sending the dynamic parameter setting response frame encapsulation command.

6. An ECU calibration system based on a serial port protocol, characterized in that, The system includes: The host computer uses a serial port protocol to send a command to the ECU to read the master table, receives and parses the static and dynamic parameter registration master table information reported by the ECU. Both the static and dynamic parameter registration master tables contain multiple tables, each with a corresponding ID. Based on the target table ID, the host computer sends a command to the ECU to read the content of the target table, receiving the table information read by the ECU. For static parameter table IDs that need modification, the host computer sends a command to the ECU to set the static parameter table content, enabling the ECU to modify the corresponding static parameter table accordingly. Based on the dynamic parameter reporting requirements, the host computer sends a command to the ECU to report the dynamic parameter table, enabling the ECU to report the dynamic parameter table in real time. The ECU is used to receive commands sent by the host computer via serial port protocol, send the read table information to the host computer, set the static parameter table content according to the commands, and report the dynamic parameter table in real time. The transmission device uses a serial port protocol to enable data transmission between the host computer and the ECU.

7. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the steps of the ECU calibration method based on the serial port protocol according to any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the ECU calibration method based on the serial port protocol as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Parameter setting method, device and multi-rotor drone

    US12409941B1

  • Specially programmed computing systems with associated devices configured to implement secure lockdowns and methods of use thereof

    US20170295182A1