A method and system for generating a host computer interface
The signal transmission channel is generated through the client and the CAN tool interface, initializing and obtaining programs, and generating a host computer interface, which solves the complex problem of changing electrical configuration variables in the automotive electronic control system and realizes more efficient configuration variable management.
Patent Information
- Application Number
- CN202111493303.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2041-12-08
AI Technical Summary
The existing automotive electronic control system is complex in the process of changing electrical configuration variables, and requires professionals to manually use diagnostic tools for safety algorithm verification, resulting in wasted time and manpower.
The client calls the interface function of the CAN tool to generate a signal delivery channel, sends initialization instructions for initialization, receives parameter information input by the user, obtains the corresponding program, and generates a host computer interface to simplify the operation steps of changing electrical configuration variables.
The operation steps of electrical configuration variable changes are simplified, and the functions of different ECU electrical configuration variables are realized, saving time and labor for electrical configuration variable changes.
Smart Images

Figure CN114153544B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile manufacturing, and particularly to a method and a system for generating a host computer interface.
Background Art
[0002] The electronic control system of modern automobiles is becoming more and more complex, the degree of centralized automation control is getting higher and higher, and various data buses are adopted to connect each electronic control module for communication. Before mass production of automobiles, the diagnostic instrument has not been developed yet, and professional personnel need to use a Controller Area Network (CAN) tool to complete the change of electrical configuration variables. In this process, professional personnel need to manually perform a series of complex operations such as passing through a security algorithm and manually updating the data field using a diagnostic tool. Moreover, when changing the electrical configuration variables of different automotive electronic control units (ECUs), different security algorithms need to be verified, and the operation is complex. Obviously, it is becoming more and more inconvenient to use traditional diagnostic methods and diagnostic tools.
[0003] Currently, traditional diagnostic methods and diagnostic tools are still used for automotive parameter configuration, resulting in the complication of the operation steps for changing electrical configuration variables, and wasting time and manpower.
Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method and a system for generating a host computer interface, which are used to simplify the operation steps for changing electrical configuration variables and save time and manpower for changing electrical configuration variables.
[0005] In a first aspect, an embodiment of the present invention provides a method for generating a host computer interface, and the method includes:
[0006] The client calls the interface function of the CAN tool to generate a signal transmission channel;
[0007] The client sends an initialization instruction to the CAN tool through the signal transmission channel, so that the CAN tool is initialized according to the initialization instruction;
[0008] The client receives parameter information input by the user;
[0009] The client obtains a program according to the parameter information;
[0010] The client generates a host computer interface according to the program.
[0011] Optionally, the client calls the interface function of the CAN tool to generate a signal transmission channel, including:
[0012] The client sends a call instruction input by the user to the CAN tool;
[0013] The CAN tool calls the interface function according to the call instruction;
[0014] The CAN tool generates the signal transmission channel with the client according to the interface function.
[0015] Optionally, the parameter information includes electrical configuration parameter information; the program includes a configuration program; the client obtains the program according to the parameter information, including:
[0016] The client parses the electrical configuration parameter information to generate a configuration program.
[0017] Optionally, the parameter information includes time-related parameters; the program includes a parameter program; the client obtains the program according to the parameter information, including:
[0018] The client parses the time-related parameters to generate a parameter program.
[0019] Optionally, the parameter information includes security data; the program includes a security program; the client obtains the program according to the parameter information, including:
[0020] The ECU obtains the security data through the CAN tool;
[0021] The ECU parses the security data through a security algorithm instruction to generate a security algorithm, and sends the security algorithm to the client through the CAN tool;
[0022] The client parses the security algorithm to generate a security program.
[0023] Optionally, the client generates a host computer interface according to the program, including:
[0024] The client parses the program to generate a visual message;
[0025] The client generates a host computer interface according to the visual message.
[0026] Optionally, after the client generates a host computer interface according to the visual message, it includes:
[0027] The client selects the type of the CAN tool;
[0028] The client loads the configuration parameter table input by the user, diagnoses the configuration parameter table, and generates a diagnostic message, where the configuration parameter table includes a function identification number and a configuration variable name;
[0029] The client encapsulates the diagnostic message to generate a diagnostic request message and sends the diagnostic request message to the ECU;
[0030] The ECU sends a diagnostic response message to the client in response to the diagnostic request message;
[0031] The client parses the diagnostic response message and generates the current configuration variable value according to the function identification number and the configuration variable name;
[0032] The client displays the current configuration variable value on the host computer interface.
[0033] Optionally, after the client displays the current configuration variable value on the host computer interface, it includes:
[0034] The client encapsulates the changed configuration variable value according to the changed configuration variable value input by the user, and sends an access instruction and a diagnostic request message to the ECU through the CAN tool;
[0035] The ECU sends a security algorithm verification to the client in response to the access instruction sent by the client for the client to unlock the secure access of the ECU;
[0036] The ECU sends a diagnostic response message to the client in response to the diagnostic request message;
[0037] The client parses the diagnostic response message to generate the current changed configuration variable value.
[0038] In a second aspect, an embodiment of the present invention provides a system for generating a host computer interface, and the system includes:
[0039] A client, configured to call an interface function of the CAN tool to generate a signal transmission channel; send an initialization instruction to the CAN tool through the signal transmission channel;
[0040] The CAN tool is configured to perform initialization according to the initialization instruction;
[0041] The client is further configured to receive parameter information input by the user; obtain a program according to the parameter information; and generate a host computer interface according to the program.
[0042] Optionally, the ECU is configured to obtain the security data through the CAN tool; parse the security data through security algorithm instructions to generate a security algorithm.
[0043] The CAN tool is further configured to send the security algorithm to the client.
[0044] The client is specifically configured to parse the security algorithm to generate a security program.
[0045] In the technical solution provided by the embodiment of the present invention, the client calls the interface function of the CAN tool to generate a signal transmission channel. The client sends an initialization instruction to the CAN tool through the signal transmission channel, so that the CAN tool is initialized according to the initialization instruction. The client receives the parameter information input by the user. The client obtains a program according to the parameter information, and the client generates a host computer interface according to the program, thereby simplifying the operation steps for changing the electrical configuration variables, realizing the function of changing the electrical configuration variables of different ECUs, and saving the time and manpower for changing the electrical configuration variables.
Description of the Drawings
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0047] Figure 1 It is a flowchart of a method for generating a host computer interface provided by an embodiment of the present invention.
[0048] Figure 2 It is a flowchart of another method for generating a host computer interface provided by an embodiment of the present invention.
[0049] Figure 3 It is a schematic diagram of a host computer interface provided by an embodiment of the present invention.
[0050] Figure 4 It is a flowchart of generating configuration variable values for a host computer interface provided by an embodiment of the present invention.
[0051] Figure 5 It is a schematic structural diagram of a system for generating a host computer interface provided by an embodiment of the present invention.
Detailed Embodiments
[0052] In order to better understand the technical solutions of the present invention, the embodiments of the present invention will be described in detail below with reference to the drawings.
[0053] It should be clear that the described embodiments are only a part of the embodiments of the present invention, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0054] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0055] It should be understood that the term "and / or" used herein is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.
[0056] Depending on the context, the word "if" as used herein can be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".
[0057] The embodiments of the present invention provide a method for generating a host computer interface. Figure 1 It is a flowchart of a method for generating a host computer interface provided by the embodiments of the present invention, as Figure 1 shown. The method includes:
[0058] Step 101, the client calls the interface function of the CAN tool to generate a signal transmission channel.
[0059] The interface function includes the DLL file of the CAN tool. After the client calls the interface function through the USB interface, the client and the CAN tool generate a signal transmission channel, and signals can be transmitted between the client and the CAN tool.
[0060] Step 102, the client sends an initialization instruction to the CAN tool through the signal transmission channel so that the CAN tool is initialized according to the initialization instruction.
[0061] After signals are transmitted between the client and the CAN tool, the CAN tool receives the initialization instruction sent by the client through the signal transmission channel for initialization. After the CAN tool completes the initialization, the client can communicate with the ECU through the CAN tool.
[0062] Step 103: The client receives the parameter information input by the user.
[0063] The parameter information includes at least one of electrical configuration parameter information, time-related parameters in the network transmission protocol ISO15765-2, or the security data of the ECU. Among them, the electrical configuration parameter information includes at least one of the electrical configuration code table format, Byteorder, start byte / bit, or bit length.
[0064] Step 104: The client obtains the program according to the parameter information.
[0065] The program includes a configuration program, a parameter program, and a security program. The client obtains the corresponding program according to different parameter information. For example, when the parameter information includes electrical configuration parameter information, the obtained corresponding program includes a configuration program; when the parameter information includes time-related parameters, the obtained corresponding program includes a parameter program; when the parameter information includes security data, the obtained corresponding program includes a security program.
[0066] Step 105: The client generates a host computer interface according to the program.
[0067] In the technical solution of a method for generating a host computer interface provided by an embodiment of the present invention, the client calls the interface function of the CAN tool to generate a signal transmission channel; the client sends an initialization instruction to the CAN tool through the signal transmission channel so that the CAN tool is initialized according to the initialization instruction; the client receives the parameter information input by the user; the client obtains the program according to the parameter information; the client generates a host computer interface according to the program, thereby simplifying the operation steps for changing electrical configuration variables, realizing the function of changing electrical configuration variables of different ECUs, and saving time and manpower for changing electrical configuration variables.
[0068] Figure 2 It is a flowchart of another method for generating a host computer interface provided by an embodiment of the present invention. As Figure 2 shown, the method includes:
[0069] Step 201: The client sends a call instruction input by the user to the CAN tool.
[0070] The user inputs a call instruction to the client through the virtual keys displayed on the client interface, and the client sends the call instruction input by the user to the CAN tool through the USB interface.
[0071] Step 202: The CAN tool calls the interface function according to the call instruction.
[0072] Step 203: The CAN tool generates a signal transmission channel with the client according to the interface function.
[0073] The signal transmission channel is the channel for signal transmission between the client and the CAN tool. Through the signal transmission channel, the client can send signal instructions to the CAN tool. Among them, the signal instructions include initialization instructions.
[0074] Step 204: The client sends an initialization instruction to the CAN tool through the signal transmission channel, so that the CAN tool is initialized according to the initialization instruction.
[0075] The CAN tool receives the initialization instruction sent by the client through the signal transmission channel for initialization. After the CAN tool completes the initialization, the client can implement the communication function with the ECU through the CAN tool.
[0076] Step 205: The client receives the parameter information input by the user.
[0077] The parameter information includes at least one of electrical configuration parameter information, time-related parameters, or safety data. Among them, the electrical configuration parameter information includes at least one of the electrical configuration code table format, Byte order, start byte / bit, or bit length; the time-related parameters are the time-related parameters in the network transmission protocol ISO15765-2.
[0078] Step 206: The client parses the electrical configuration parameter information to generate a configuration program.
[0079] The electrical configuration parameter information is the excel table information input by the user. The configuration program is the program for displaying the electrical configuration parameters in the upper computer interface. The client can convert the excel table information into a configuration program to display the electrical configuration parameter information in the upper computer interface. The excel table information includes, but is not limited to, the drive form. The client converts the drive form into a configuration program. For example, the drive form is 2-wheel drive.
[0080] Step 207: The client parses the time-related parameters to generate a parameter program.
[0081] Time-related parameters include the standard time value and the response time value in the communication protocol. The parameter program is a program that displays the response time value in the upper computer interface or a program that displays an error prompt in the upper computer interface. The client can compare the response time value with the standard time value. When the response time value is within the range of the standard time value, a program that displays the response time value in the upper computer interface is generated; when the response time value is not within the range of the standard time value, a program that displays an error prompt in the upper computer interface is generated. For example, the range of the standard time value is from 1 second to 15 seconds, and the response time value is 7 seconds. Since the response time value is within the range of the standard time value, the response time value of 7 seconds is displayed in the upper computer interface; when the response time value is 34 seconds and the response time value is not within the range of the standard time value, an error is prompted in the upper computer interface.
[0082] Step 208: The ECU obtains security data through the CAN tool.
[0083] The CAN tool is connected to the ECU through a DB9 cable. The ECU sends a signal acquisition instruction to the CAN tool through the DB9 wire. In response to the signal acquisition instruction, the CAN tool acquires the security data in the client parameter information through the USB interface and sends the security data to the ECU. Among them, the signal acquisition instruction is an instruction to acquire parameter information.
[0084] Step 209: The ECU analyzes the security data through the security algorithm instruction to generate a security algorithm, and sends the security algorithm to the client through the CAN tool.
[0085] The security algorithm instruction includes a mask and a controller seed. The ECU analyzes the security data according to the mask and the controller seed to generate a security algorithm.
[0086] Step 210: The client analyzes the security algorithm to generate a security program.
[0087] The security program is a program for successfully unlocking the upper computer interface or a program for failing to unlock the upper computer interface. The client converts the security algorithm into a security coefficient and compares the converted security coefficient with the algorithm value inside the controller. When the security coefficient is the same as the algorithm value inside the controller, a program for successfully unlocking the upper computer interface is generated; when the security coefficient is different from the algorithm value inside the controller, a program for failing to unlock the upper computer interface is generated.
[0088] Step 211: The client analyzes the program to generate a visual message.
[0089] The program includes a configuration program, a parameter program, and a security program. The visualized message includes a configuration variable name, a configuration variable value, a function identification number, a percentage of the progress of electrical code loading, a time response value, and the type of ECU. For example, when the client parses the configuration program, it can obtain the configuration variable name, the configuration variable value, and the function identification number; when the client parses the parameter program, it can obtain the percentage of the progress of electrical code loading and the time response value; when the client parses the security program, it can obtain the type of ECU.
[0090] Step 212: The client generates a host computer interface according to the visualized message.
[0091] As Figure 3 shown, Figure 3 FIG. is a schematic diagram of a host computer interface provided in an embodiment of the present invention. The host computer interface includes a type sub-interface 11 of ECU, a change configuration sub-interface 12, a code configuration sub-interface 13, a read / write configuration sub-interface 14, and a response sub-interface 15. Among them, the type sub-interface of ECU includes an electronic control unit (ECU), the type of CAN tool (CAN_Chan), a function diagnostic request ID (F_Req_ID), a physical diagnostic request ID (P_Req_ID), a diagnostic response ID (Req_ID), and a CAN signal transmission baud rate (BandRate); P_Req_ID is the request ID sent to the ECU, and Req_ID is the response ID replied by the ECU to the CAN tool. The change configuration interface is an interface for changing the controller configuration. Among them, the change configuration sub-interface includes Change Config. The code configuration sub-interface includes electrical code loading, a configuration variable name, and a configuration variable value. The read / write configuration sub-interface includes read configuration, write configuration, read DID, save, clear, and stop; the DID read by the read DID is the function identification number (DID Num). The response sub-interface includes the response value of the controller and the request value of the host computer.
[0092] In the technical solution of the method for generating a host computer interface provided in the embodiments of the present invention, the client sends a call instruction input by the user to the CAN tool, and the CAN tool calls an interface function according to the call instruction. The CAN tool generates a signal transmission channel with the client according to the interface function. The client sends an initialization instruction to the CAN tool through the signal transmission channel so that the CAN tool is initialized according to the initialization instruction. The client receives the parameter information input by the user. The client parses the electrical configuration parameter information to generate a configuration program, and the client parses the time-related parameters to generate a parameter program. The ECU obtains security data through the CAN tool, the ECU parses the security data through a security algorithm instruction to generate a security algorithm, and sends the security algorithm to the client through the CAN tool. The client parses the security algorithm to generate a security program. The client parses the program to generate a visual message, and the client generates a host computer interface according to the visual message, thereby simplifying the operation steps for changing electrical configuration variables, realizing the function of changing electrical configuration variables of different ECUs, and saving time and manpower for changing electrical configuration variables.
[0093] Figure 4 It is a flowchart of generating a configuration variable value for a host computer interface provided in the embodiments of the present invention. As Figure 4 shown, after step 212, it includes:
[0094] Step 301: The client selects the type of the CAN tool.
[0095] The user selects the type of the CAN tool through virtual buttons displayed on the client interface according to the used tool. Before selecting the type of the CAN tool, the user needs to set up a test environment and run the client. Among them, the test environment includes the need for a diagnostic tool to manually pass through a security algorithm environment or the environment of different ECUs..
[0096] Step 302: The client loads the configuration parameter table input by the user, diagnoses the configuration parameter table, and generates a diagnostic message. Among them, the configuration parameter table includes a function identification number and a configuration variable name.
[0097] The diagnostic message includes a CAN channel, an ID, and a baud rate. The client generates corresponding diagnostic messages according to different configuration parameters. As Figure 3 shown, in step 302, the user can view the function identification number of the ECU through the host computer interface.
[0098] Step 303: The client encapsulates the diagnostic message to generate a diagnostic request message, and sends the diagnostic request message to the ECU.
[0099] The diagnostic request message includes a diagnostic request ID (Identity Document), the type parameters of the CAN tool, and the content of the configuration parameter table. Among them, the diagnostic request ID includes a functional diagnostic request ID and a physical diagnostic request ID.
[0100] Step 304: In response to the diagnostic request message, the ECU sends a diagnostic response message to the client.
[0101] The diagnostic response message includes a diagnostic response ID and the configured variable value. The ECU receives the diagnostic request message sent by the client through the CAN tool.
[0102] Step 305: The client parses the diagnostic response message and generates the current configured variable value according to the function identification number and the configured variable name.
[0103] Step 306: The client displays the current configured variable value according to the upper computer interface.
[0104] As Figure 3 shown, the read configuration module in the upper computer interface can display the current configured variable value. In step 306, the user can view the current configured variable value through the upper computer interface of the client.
[0105] Step 307: The client encapsulates the changed configured variable value according to the configured variable value changed by the user input, and sends an access instruction and a diagnostic request message to the ECU through the CAN tool.
[0106] As Figure 3 shown, the user writes the configured variable value to be changed in the write configuration module of the upper computer interface, and the client encapsulates the changed configured variable input by the user into a diagnostic request message and sends it to the ECU.
[0107] Step 308: In response to the access instruction sent by the client, the ECU sends a security algorithm verification to the client for the client to unlock the secure access of the ECU.
[0108] The ECU sends a security algorithm verification to the client through the CAN tool. After the client unlocks the secure access, the user can write the changed configured variable value to the ECU.
[0109] Step 309: In response to the diagnostic request message, the ECU sends a diagnostic response message to the client.
[0110] The diagnostic response message includes a diagnostic response ID and the changed configured variable value.
[0111] Step 310: The client parses the diagnostic response message and generates the current changed configured variable value.
[0112] As Figure 3As shown, in step 310, the host computer interface can display the currently changed configuration variable value, and the user can view the changed configuration variable value and the corresponding response value of the changed configuration variable value through the host computer interface of the client.
[0113] In the technical solution for generating a configuration variable value provided by the embodiment of the present invention, the client selects the type of CAN tool, loads the configuration parameter table input by the user, diagnoses the configuration parameter table, and generates a diagnostic message. Among them, the configuration parameter table includes a function identification number and a configuration variable name. The client encapsulates the diagnostic message to generate a diagnostic request message and sends the diagnostic request message to the ECU. The ECU responds to the diagnostic request message and sends a diagnostic response message to the client. The client parses the diagnostic response message, generates the current configuration variable value according to the function identification number and the configuration variable name, and the client displays the current configuration variable value according to the host computer interface. The client encapsulates the changed configuration variable value according to the changed configuration variable value input by the user, sends an access instruction to the ECU through the CAN tool and sends a diagnostic request message. The ECU responds to the access instruction sent by the client and sends a security algorithm verification to the client for the client to unlock the secure access of the ECU. The ECU responds to the diagnostic request message and sends a diagnostic response message to the client. The client parses the diagnostic response message to generate the currently changed configuration variable value, thereby simplifying the operation steps for changing the electrical configuration variable, realizing the function of changing the electrical configuration variable of different ECUs, and saving the time and manpower for changing the electrical configuration variable.
[0114] The embodiment of the present invention provides a system for generating a host computer interface. Figure 5 It is a schematic structural diagram of a system for generating a host computer interface provided by an embodiment of the present invention. As Figure 5 shown, the system includes: a client 1, a Controller Area Network (CAN) tool 2, and an ECU 3. The client 1 is connected to the CAN tool 2; the CAN tool 2 is connected to the ECU 3.
[0115] The client 1 is used to call the interface function of the CAN tool 2 to generate a signal transmission channel; send an initialization instruction to the CAN tool 2 through the signal transmission channel; the CAN tool 2 is used to perform initialization according to the initialization instruction; the client 1 is also used to receive the parameter information input by the user; obtain a program according to the parameter information; generate a host computer interface according to the program.
[0116] Specifically, the client 1 is used to send a call instruction input by the user to the CAN tool; specifically, the CAN tool 2 is used to call the interface function according to the call instruction; and generate a signal transmission channel with the client 1 according to the interface function.
[0117] Client 1 is specifically configured to generate a configuration program according to the parsed electrical configuration parameter information.
[0118] Client 1 is specifically configured to parse time-related parameters and generate a parameter program.
[0119] ECU 3 is used to obtain security data through CAN tool 2; parse the security data through security algorithm instructions to generate a security algorithm; CAN tool 2 is specifically configured to send the security algorithm to the client; Client 1 is specifically configured to parse the security algorithm and generate a security program.
[0120] Client 1 is specifically configured to parse the program to generate a visual message; generate a host computer interface according to the visual message.
[0121] Client 1 is specifically configured to select the type of CAN tool 2; load the configuration parameter table input by the user, and diagnose the configuration parameter table to generate a diagnostic message, where the configuration parameter table includes a function identification number and a configuration variable name; encapsulate the diagnostic message to generate a diagnostic request message and send the diagnostic request message to ECU 3; ECU 3 is specifically configured to respond to the diagnostic request message and send a diagnostic response message to Client 1; Client 1 is specifically configured to parse the diagnostic response message and generate the current configuration variable value according to the function identification number and the configuration variable name; display the current configuration variable value according to the host computer interface.
[0122] Client 1 is specifically configured to encapsulate the changed configuration variable value according to the changed configuration variable value input by the user; CAN tool 2 is specifically configured to send an access instruction and a diagnostic request message to ECU 3; ECU 3 is specifically configured to send a security algorithm verification to Client 1 in response to the access instruction sent by Client 1; Client 1 is specifically configured to unlock the security access of ECU 3; ECU 3 is specifically configured to send a diagnostic response message to Client 1 in response to the diagnostic request message; Client 1 is specifically configured to parse the diagnostic response message and generate the current changed configuration variable value.
[0123] In the technical solution provided by the embodiment of the present invention, the client calls the interface function of the CAN tool to generate a signal transmission channel; the client sends an initialization instruction to the CAN tool through the signal transmission channel so that the CAN tool is initialized according to the initialization instruction; the client receives the parameter information input by the user; the client obtains a program according to the parameter information; the client generates a host computer interface according to the program, thereby simplifying the operation steps for changing electrical configuration variables, realizing the function of changing electrical configuration variables of different ECUs, and saving time and manpower for changing electrical configuration variables.
[0124] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A method for generating a host computer interface, characterized in that, Including: The client calls the interface function of the CAN tool to generate a signal transmission channel; The client sends an initialization instruction to the CAN tool through the signal transmission channel, so that the CAN tool is initialized according to the initialization instruction; The client receives parameter information input by the user; The client obtains a program according to the parameter information; The client generates a host computer interface according to the program; The client selects the type of the CAN tool; The client loads a configuration parameter table input by the user, diagnoses the configuration parameter table, and generates a diagnostic message, where the configuration parameter table includes a function identification number and a configuration variable name; The client encapsulates the diagnostic message to generate a diagnostic request message and sends the diagnostic request message to the ECU; The ECU responds to the diagnostic request message and sends a diagnostic response message to the client; The client parses the diagnostic response message and generates a current configuration variable value according to the function identification number and the configuration variable name; The client displays the current configuration variable value according to the host computer interface; The client encapsulates the changed configuration variable value according to the configuration variable value changed by the user input, and sends an access instruction and a diagnostic request message to the ECU through the CAN tool; The ECU responds to the access instruction sent by the client and sends a security algorithm verification to the client for the client to unlock the secure access of the ECU; The ECU responds to the diagnostic request message and sends a diagnostic response message to the client; The client parses the diagnostic response message and generates a current changed configuration variable value.
2. The method according to claim 1, characterized in that, The client calls the interface function of the CAN tool to generate a signal transmission channel, including: The client sends a call instruction input by the user to the CAN tool; The CAN tool calls the interface function according to the call instruction; The CAN tool generates the signal transmission channel with the client according to the interface function.
3. The method according to claim 1, characterized in that, The parameter information includes electrical configuration parameter information; the program includes a configuration program; the client obtains a program according to the parameter information, including: The client parses the electrical configuration parameter information to generate a configuration program.
4. The method according to claim 1, characterized in that, The parameter information includes time-related parameters; the program includes a parameter program; the client obtains a program according to the parameter information, including: The client parses the time-related parameters to generate a parameter program.
5. The method according to claim 1, characterized in that The parameter information includes security data; the program includes a security program; the client obtains a program according to the parameter information, including: The ECU obtains the security data through the CAN tool; The ECU parses the security data through a security algorithm instruction to generate a security algorithm, and sends the security algorithm to the client through the CAN tool; The client parses the security algorithm to generate a security program.
6. The method according to claim 1, wherein The client generates a host computer interface according to the program, including: The client parses the program to generate a visualized message. The client generates a host computer interface based on the visualized message.
7. A generating system for a host computer interface, characterized in that, It includes: A client, which is used to call the interface function of the CAN tool to generate a signal transmission channel; Send an initialization instruction to the CAN tool through the signal transmission channel; The CAN tool is used to perform initialization according to the initialization instruction; The client is also used to receive parameter information input by the user; obtain a program according to the parameter information; generate a host computer interface according to the program; The client is also used to select the type of the CAN tool; load the configuration parameter table input by the user, and diagnose the configuration parameter table to generate a diagnostic message, where the configuration parameter table includes a function identification number and a configuration variable name; encapsulate the diagnostic message to generate a diagnostic request message, and send the diagnostic request message to the ECU; The ECU is used to respond to the diagnostic request message and send a diagnostic response message to the client; The client is also used to parse the diagnostic response message, generate the current configuration variable value according to the function identification number and the configuration variable name; display the current configuration variable value according to the host computer interface; encapsulate the changed configuration variable value input by the user according to the change, and send an access instruction and a diagnostic request message to the ECU through the CAN tool; The ECU is also used to respond to the access instruction sent by the client, and send a security algorithm verification to the client for the client to unlock the secure access of the ECU; respond to the diagnostic request message and send a diagnostic response message to the client; The client is also used to parse the diagnostic response message to generate the current changed configuration variable value.
8. The system according to claim 7, wherein The ECU is used to obtain security data through the CAN tool; parse the security data through a security algorithm instruction to generate a security algorithm; The CAN tool is also used to send the security algorithm to the client; The client is specifically used to parse the security algorithm to generate a security program.
Citation Information
Patent Citations
Analysis method and system for direct current charging of electric vehicle
CN110015085A
Debugging method and device of electronic control unit, electronic equipment and storage medium
CN110737557A
Diagnostic method of automobile electronic control unit, electronic equipment and storage medium
CN113126598A