Data writing method and system, electronic device and storage medium
By using server matching and diagnostic interface functions to write data, the problem of cumbersome data writing after ECU upgrades or replacements has been solved, enabling efficient and convenient writing of ECU data and improving user experience and diagnostic efficiency.
Patent Information
- Application Number
- CN202510933838.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-10-28
AI Technical Summary
After an ECU upgrade or replacement, a significant amount of data needs to be rewritten, making the ECU data rewriting process cumbersome and impacting user experience and diagnostic efficiency.
By acquiring vehicle and electronic control information, matching the corresponding data information using the server, and writing the data to the ECU using diagnostic interface functions, the system supports data compression and encrypted transmission, sets the priority writing order, and generates error codes to provide feedback on the writing status.
It reduces manual operations, improves the convenience of ECU data writing and diagnostic efficiency, and ensures the timeliness and accuracy of data.
Smart Images

Figure CN120848919A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive data writing technology, and more particularly to a data writing method, system, electronic device, and storage medium. Background Technology
[0002] With the continuous development of automotive electronics, the functions of ECU (electronic control unit) are becoming increasingly complex, and car owners will have the need to upgrade or replace the ECU.
[0003] After upgrading or replacing the ECU, the ECU data needs to be rewritten. The current common practice is for the user to first read and record the original ECU data, select the corresponding function in the function list, input the original data, and write it into the ECU.
[0004] However, after upgrading or replacing the ECU, a lot of ECU data needs to be rewritten, such as the VIN (vehicle identification number), vehicle model name, network configuration code, and function configuration code, making the rewriting of ECU data quite cumbersome. Summary of the Invention
[0005] This application provides a data writing method, system, electronic device, and storage medium, aiming to effectively solve the technical problem in the prior art that after upgrading or replacing an ECU, a large amount of ECU data needs to be rewritten, making the rewriting of ECU data cumbersome.
[0006] According to a first aspect of this application, this application provides a data writing method, comprising: acquiring vehicle information and electronic control information of an electronic control unit; sending the vehicle information and the electronic control information to a server, the server being used to store data information of vehicles and electronic control units of different models, and matching corresponding data information according to the vehicle information and the electronic control information, and sending the corresponding data information; receiving the data information sent by the server; and writing the data information into the electronic control unit.
[0007] Furthermore, the data information includes: electronic control unit name, diagnostic communication address, number of data to be written, and specific information of the data to be written; wherein, the specific data information includes at least one set of writing information, and each set of writing information includes the data name, data content, and data diagnostic function identifier of the data to be written.
[0008] Further, writing the data information into the electronic control unit includes: if the data quantity is greater than zero, parsing the specific data information to obtain at least one set of writing information; matching a corresponding diagnostic interface function in a preset function library based on the data diagnostic function identifier in the at least one set of writing information, the diagnostic interface function being used to receive external parameters and write the external parameters into the electronic control unit; transmitting the diagnostic communication address and the at least one set of writing information as parameters to the diagnostic interface function; and calling the diagnostic interface function to write the parameters into the electronic control unit corresponding to the name of the electronic control unit.
[0009] Furthermore, the specific data information also includes priority information, which is used to characterize the priority of writing the write information of different groups to the electronic control unit; the step of transmitting the diagnostic communication address and the at least one group of write information as parameters to the diagnostic interface function includes: according to the priority information of the write information of different groups, transmitting the write information of the corresponding group with the priority from high to low and the diagnostic communication address as parameters to the diagnostic interface function.
[0010] Furthermore, the data writing method further includes: if the data information is successfully written to the electronic control unit, the data information is transmitted to the server, and the server is used to update the existing data information according to the uploaded data information.
[0011] Furthermore, the data writing method further includes: if writing the data information to the electronic control unit fails, generating an error code and displaying the error code.
[0012] Furthermore, the data information is transmitted between the server and the electronic control unit in the form of a compressed package, or / and in an encrypted form.
[0013] According to a second aspect of this application, this application also provides a data writing system, comprising: an information acquisition module for acquiring vehicle information and electronic control information of an electronic control unit; an information sending module for sending the vehicle information and the electronic control information to a server, the server being used to store data information of vehicles and electronic control units of different models, and to match corresponding data information according to the vehicle information and the electronic control information, and to send the corresponding data information; an information receiving module for receiving data information sent by the server; and an information writing module for writing the data information into the electronic control unit.
[0014] According to a third aspect of this application, this application also provides a data writing method applied to a server, comprising: receiving vehicle information uploaded by a vehicle and electronic control information of an electronic control unit; matching stored data information of different vehicle models and electronic control units according to the vehicle information and the electronic control information; and sending the matched data information to the vehicle.
[0015] According to a fourth aspect of this application, this application also provides a data writing system applied to a server, comprising: a receiving module for receiving vehicle information uploaded by a vehicle and electronic control information of an electronic control unit; a storage module for storing data information of vehicles and electronic control units of different models; a matching module for matching corresponding data information according to the vehicle information and the electronic control information; and a sending module for sending the matched data information to the vehicle.
[0016] According to a fifth aspect of this application, this application also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements any of the data writing methods described above.
[0017] According to a sixth aspect of this application, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the data writing methods described above.
[0018] According to another aspect of this application, this application also provides a computer program product for performing any of the data writing methods described above.
[0019] Through one or more embodiments of the above embodiments in this application, at least the following technical effects can be achieved:
[0020] In the technical solution disclosed in this application, after the electronic control unit of a car is upgraded or replaced, the corresponding data information of the car can be obtained from the server and written into the upgraded or replaced electronic control unit, thereby reducing manual operation and making it more convenient to rewrite the ECU data. Attached Figure Description
[0021] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.
[0022] Figure 1 A flowchart illustrating the data writing method provided in this application embodiment;
[0023] Figure 2A schematic block diagram illustrating the structure of the data diagnostic function identifier for the data writing method provided in this application embodiment;
[0024] Figure 3 A schematic diagram of the function corresponding to the data diagnostic function identifier of the data writing method provided in the embodiments of this application in the preset function library;
[0025] Figure 4 This is a schematic diagram of data exchange for the data writing method provided in the embodiments of this application;
[0026] Figure 5 A flowchart illustrating the data writing method provided in this application embodiment during the data writing process;
[0027] Figure 6 This is a partial code diagram of the data writing system provided in an embodiment of this application;
[0028] Figure 7 A system framework diagram of the data writing system provided in this application embodiment;
[0029] Figure 8 A schematic block diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0031] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Furthermore, the character " / " in this document, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.
[0032] Currently, cars have more and more configurations, and the corresponding ECU data to be written is becoming more and more complex. Especially after a technician upgrades the software of a certain ECU or replaces a certain ECU, a lot of data and configuration words need to be rewritten.
[0033] The current common practice is to make each piece of data to be written a separate function. Users first read and record the original ECU data, then select the corresponding function from the function list, input the original data, and write it into the ECU. While writing a single piece of data is convenient for users, if the ECU has been upgraded or replaced, multiple ECU data need to be written, such as VIN codes, vehicle names, network configuration codes, and function configuration codes. This requires users to use diagnostic software to perform numerous functions, making the process very cumbersome and demanding a high level of skill from repair technicians. Technicians unfamiliar with this skill are prone to errors, negatively impacting the user experience.
[0034] To address the aforementioned issues, embodiments of this application provide a data writing method, system, electronic device, and storage medium that can conveniently write ECU data.
[0035] Figure 1 The diagram illustrates a data writing method provided in an embodiment of this application. This method can be executed by third-party diagnostic software and may include:
[0036] S101. Obtain vehicle information and electronic control information from the electronic control unit;
[0037] In this embodiment, vehicle information includes one or more of the following: VIN (vehicle identification number), vehicle model name, network configuration code, or function configuration code.
[0038] Electronic control information includes: ECU hardware version number, and / or hardware part number.
[0039] S102. Send vehicle information and electronic control information to the server. The server is used to store data information of vehicles and electronic control units of different models, and matches the corresponding data information according to the vehicle information and electronic control information, and sends the corresponding data information.
[0040] In this implementation, the server stores data information about different vehicle models and electronic control units. The server is deployed by the vehicle OEM, and this data information is updated and maintained by the vehicle OEM in real time.
[0041] When a user needs to replace ECU parts or upgrade ECU software, the server can send the latest data information from the OEM to the user, ensuring that the user receives the most up-to-date data.
[0042] In this embodiment, the vehicle information obtained in S101 includes the VIN code, and the electronic control information includes the ECU hardware version number; then matching the corresponding data information based on the vehicle information and electronic control information includes: matching the data information of the corresponding vehicle model using the VIN code and the ECU hardware version number.
[0043] S103, Receive data information sent by the server;
[0044] The data information includes: electronic control unit name, diagnostic communication address, the amount of data to be written, and the specific information of the data to be written.
[0045] For example, the electronic control unit name can be denoted as `name` (ECU name). The diagnostic communication address can be denoted as `diagnostic_address`. The data quantity can be denoted as `configCount`. The specific data information can be denoted as `configData`.
[0046] It should be noted that a car has more than one electronic control unit, and each electronic control unit has a different name. Therefore, the data information includes the name of the electronic control unit. The server can match the diagnostic communication address, the amount of data to be written, and the specific information of the data to be written with the electronic control unit that needs to be written, and then send it to the user.
[0047] The specific data information includes at least one set of write information, each set of which includes the data name, data content, and data diagnostic function identifier of the data to be written. The preset function library can also be a diagnostic software function library, without restriction. The data diagnostic function identifier can be denoted as Functioncode.
[0048] The data diagnostic function identifier is represented by a string, which can be letters, Arabic numerals, symbols, etc. Figure 2 As shown, the string in this embodiment is Arabic numerals, namely 03010112. This string contains four bytes: the first byte is 03, representing the vehicle model; the second byte is 01, representing the sub-vehicle model; the third byte is 01, representing the ECU model or version; and the fourth byte is 12, representing the function category. Within the fourth byte, 1 represents the data writing function, and 2 represents the network configuration code writing function. In other embodiments, the string can also represent other data, such as VIN, data flashing time, network configuration code, after-sales mode, etc.
[0049] Different data diagnostic function identifiers correspond to different functions, such as... Figure 3 As shown, the algorithm corresponding to the string 03010112 is the WriteNetworkConfigCode() function, while other strings correspond to different functions in the function library.
[0050] The data is transmitted between the server and the electronic control unit in the form of compressed packages and / or encrypted forms.
[0051] For example, the data may be stored in a JSON file, and the server may transmit the JSON file to the user. In other embodiments, the data may also be transmitted encrypted, such as using symmetric encryption, asymmetric encryption, hash algorithm encryption, hybrid encryption, Chinese national cryptographic algorithms, quantum encryption, etc.
[0052] S104. Write the data information into the electronic control unit.
[0053] In this embodiment, as Figure 4 As shown, third-party diagnostic software is used to write data. The diagnostic software has multiple interfaces, and each electronic control unit has a corresponding interface. Each interface has a corresponding communication address and an interface function, which is used to write the specific information of the data to be written into the electronic control unit.
[0054] like Figure 5 As shown, in some embodiments, step S104, writing data information into the electronic control unit, includes:
[0055] S1041. If the data quantity is greater than zero, parse the specific data information to obtain at least one set of write information;
[0056] S1042. Based on the data diagnostic function identifier in at least one set of written information, match the corresponding diagnostic interface function in the preset function library. The diagnostic interface function is used to receive external parameters and write the external parameters into the electronic control unit.
[0057] S1043. Transmit the diagnostic communication address and at least one set of write information as parameters to the diagnostic interface function;
[0058] S1044. Call the diagnostic interface function to write the parameters to the electronic control unit corresponding to the electronic control unit name.
[0059] In this embodiment, the specific data information includes several sets of data names, data content, and data diagnostic function identifiers. If the data quantity is zero, it indicates that there is no data content to be written to the electronic control unit, and the electronic control unit does not need to be written data, thus ending the data writing operation for the electronic control unit. Therefore, only when the data quantity is greater than zero are the data names, data content, and data diagnostic function identifiers in the specific data information parsed out.
[0060] When writing data, you need to first determine which electronic control unit (ECU) to write the data to by using the ECU name, then determine which interface to use to write the specific information of the corresponding data to the ECU based on the diagnostic communication address, and then use the interface function corresponding to that interface to write the data to the ECU.
[0061] When writing data, the user can select the data name to be written according to the data diagnostic function identifier, and pass the data content corresponding to the data name and the diagnostic communication address as parameters to the interface function. The interface function writes the data content to the electronic control unit according to the diagnostic communication address.
[0062] In addition, if the data is transmitted between the server and the electronic control unit in the form of a compressed package, or / and in encrypted form, the data needs to be parsed before it is written to the electronic control unit to obtain the electronic control unit name, diagnostic communication address, the amount of data to be written, and the specific information of the data to be written.
[0063] Therefore, the data writing method provided in this embodiment can obtain the corresponding data information of the car from the server after the car is upgraded or replaced with an electronic control unit, and write the data information into the upgraded or replaced electronic control unit, thereby reducing manual operation and making it more convenient to rewrite the ECU data.
[0064] In some embodiments, the data information further includes priority information, which characterizes the priority of different groups of write information being written to the electronic control unit; transmitting the diagnostic communication address and at least one group of write information as parameters to the diagnostic interface function includes:
[0065] Based on the priority information of the write information of different groups, the write information of the corresponding group with the highest priority and the diagnostic communication address are transmitted as parameters to the diagnostic interface function.
[0066] In this embodiment, since the data information of an electronic control unit contains multiple sets of write information, and each set of write information is written sequentially when writing data, more important data can be set to higher priority. By setting the priority, more important data can be written first.
[0067] In some embodiments, the data writing method further includes:
[0068] If the data information is successfully written to the electronic control unit, it will be transmitted to the server, which will then update the existing data information based on the uploaded data.
[0069] In this embodiment, the user can also generate data for the electronic control unit (ECU) independently. After the user generates the ECU data, the data will be uploaded to the server. In some cases, such as when the manufacturer does not update the server data in a timely manner, the data can be updated based on the uploaded data information to ensure the timeliness of the data on the server.
[0070] In some embodiments, the data writing method further includes:
[0071] If writing data to the electronic control unit fails, an error code is generated and displayed.
[0072] In this embodiment, if the data writing to the electronic control unit fails, it can be intuitively displayed to the user, so that the user knows that the writing has failed and can deal with the situation in a timely manner.
[0073] In summary, the implementation code can be found in [reference needed]. Figure 6 ,exist Figure 6 In the code shown, the information after Vin indicates the vehicle's VIN, the information after VehicleName indicates the vehicle model name, the information after Readtimes indicates the time, and the information after ECU indicates a data entry where name represents the electronic control unit name. Figure 6 The electronic control unit (ECU) is named "GW," which stands for gateway. The information following `diagnostic_address` indicates the diagnostic communication address. The data following `configCount` indicates the amount of data to be written, and the data following `configData` indicates the specific information of the data to be written, containing multiple sets of write information. For example, in... Figure 6 In the first set of write information, configData contains 5 sets of write information. In the first set of write information, the data "VinCode" after configname is the data name, the data "L6T35z541s1362501" after data is the value of the data to be written, which is the data content described in the above embodiment, the data "03010111" after functioncode is the function code, which is the data diagnostic function identifier described in the above embodiment, and the data "1" after priority is the priority information.
[0074] The data writing method provided in this embodiment involves the OEM updating and maintaining the data information of the ECUs for each vehicle model in real time on a server. When a user needs to replace an ECU or upgrade the ECU software, the system first reads the vehicle and ECU information, such as the VIN, ECU hardware version number, and hardware part number, and uploads it to the server. The server then finds the data that needs to be rewritten to the corresponding ECU based on the requested VIN and ECU information. Whenever data is successfully written, the VIN, ECU information, and the written data are transmitted to the server for updating to ensure that the data automatically written to the vehicle ECU is always up-to-date.
[0075] This solution allows OEMs to centrally manage the core data of each ECU in a vehicle using a server. It enables the configuration of data that needs to be written after ECU replacement or upgrade, and automatically updates the server data after a user successfully writes data, ensuring data timeliness and forming a closed loop. This significantly reduces user operations and improves diagnostic efficiency and user experience.
[0076] like Figure 7 As shown in the figure, this application embodiment also provides a data writing system, including: an information acquisition module 1, an information sending module 2, an information receiving module 3, and an information writing module 4; the information acquisition module 1 is used to acquire vehicle information and electronic control information of the electronic control unit; the information sending module 2 is used to send the vehicle information and electronic control information to a server, the server is used to store data information of different vehicle models and electronic control units, and match corresponding data information according to the vehicle information and electronic control information, and send the corresponding data information; the information receiving module 3 is used to receive the data information sent by the server; the information writing module 4 is used to write the data information into the electronic control unit.
[0077] The data writing system provided in this embodiment can obtain the corresponding data information of the car from the server after the car's electronic control unit is upgraded or replaced, and write the data information into the upgraded or replaced electronic control unit, thereby reducing manual operation and making it more convenient to rewrite the ECU data.
[0078] In some embodiments, the data information includes: electronic control unit name, diagnostic communication address, amount of data to be written, and specific information of the data to be written; wherein, the specific information of the data includes at least one set of writing information, each set of writing information including the data name, data content, and data diagnostic function identifier of the data to be written.
[0079] In some embodiments, the information writing module 4 includes: an information parsing unit, an interface function matching unit, a parameter transmission unit, and an interface function calling unit; the parsing unit is used to parse the specific information of the data if the data quantity is greater than zero, and obtain at least one set of writing information; the interface function matching unit is used to match the corresponding diagnostic interface function in a preset function library according to the data diagnostic function identifier in the at least one set of writing information, and the diagnostic interface function is used to receive external parameters and write the external parameters into the electronic control unit; the parameter transmission unit is used to transmit the diagnostic communication address and at least one set of writing information as parameters to the diagnostic interface function; the interface function calling unit is used to call the diagnostic interface function and write the parameters into the electronic control unit corresponding to the name of the electronic control unit.
[0080] In some embodiments, the data specific information also includes priority information, which is used to characterize the priority of writing write information of different groups to the electronic control unit.
[0081] The parameter transmission unit is specifically used to transmit the write information of the corresponding group and the diagnostic communication address as parameters to the diagnostic interface function according to the priority information of the write information of different groups from high to low.
[0082] In some embodiments, the information sending module 2 is further configured to transmit the data information to the server if the information writing module 4 successfully writes the data information to the electronic control unit, and the server is configured to update the existing data information according to the uploaded data information.
[0083] In some embodiments, the data writing system further includes: a writing error code generation module, used to generate and display an error code if the information writing module 4 fails to write the data information to the electronic control unit.
[0084] In some embodiments, the data information is further transmitted between the server and the electronic control unit in the form of a compressed package, and / or in encrypted form.
[0085] This application also provides a data writing method applied to a server, comprising: receiving vehicle information and electronic control information of an electronic control unit uploaded by a vehicle; matching stored data information of different vehicle models and electronic control units based on the vehicle information and electronic control information; and sending the matched data information to the vehicle.
[0086] The data writing method provided in this embodiment can send data information to the user so that the user can update the data of the electronic control unit according to the data information.
[0087] This application also provides a data writing system applied to a server, comprising: a receiving module for receiving vehicle information and electronic control information of an electronic control unit uploaded by a vehicle; a storage module for storing data information of vehicles and electronic control units of different models; a matching module for matching corresponding data information according to the vehicle information and electronic control information; and a sending module for sending the matched data information to the vehicle.
[0088] like Figure 8 As shown, this application provides an electronic device, which includes a memory 601, a processor 602, and a computer program stored in the memory 601 and executable on the processor 602. When the processor 602 executes the computer program, it implements the data writing method described above.
[0089] Furthermore, the electronic device also includes at least one input device 603 and at least one output device 604.
[0090] The aforementioned memory 601, processor 602, input device 603, and output device 604 are connected via bus 605.
[0091] The input device 603 can specifically be a camera, touch panel, physical buttons, or mouse, etc. The output device 604 can specifically be a display screen.
[0092] The memory 601 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 601 is used to store a set of executable program code, and the processor 602 is coupled to the memory 601.
[0093] This application also provides a computer-readable storage medium, which may be an electronic device disposed in the above embodiments, and may be the memory 601 in the foregoing embodiments. The computer-readable storage medium stores a computer program, which, when executed by the processor 602, implements the data writing method described in the foregoing method embodiments.
[0094] Furthermore, the storage medium of this computer can also be a USB flash drive, a portable hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk, or any other medium that can store program code.
[0095] This application also provides a computer program product for executing the data writing method described in any of the above embodiments.
[0096] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0097] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0098] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0099] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0100] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0101] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0102] In summary, although the present application has disclosed the preferred embodiments as described above, the above preferred embodiments are not intended to limit the present application. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be determined by the scope defined in the claims.
Claims
1. A data writing method, characterized in that, include: Obtain vehicle information and electronic control unit information; The vehicle information and the electronic control information are sent to the server. The server is used to store data information of vehicles and electronic control units of different models, match the corresponding data information according to the vehicle information and the electronic control information, and send the corresponding data information. Receive data information sent by the server; The data information is written into the electronic control unit.
2. The data writing method as described in claim 1, characterized in that, The data information includes: electronic control unit name, diagnostic communication address, the amount of data to be written, and specific information about the data to be written; The specific data information includes at least one set of write information, each set of write information including the data name, data content and data diagnostic function identifier of the data to be written.
3. The data writing method as described in claim 2, characterized in that, The step of writing the data information into the electronic control unit includes: If the amount of data is greater than zero, parse the specific information of the data to obtain the at least one set of write information; Based on the data diagnostic function identifier in the at least one set of written information, a corresponding diagnostic interface function is matched in the preset function library. The diagnostic interface function is used to receive external parameters and write the external parameters into the electronic control unit. The diagnostic communication address and the at least one set of write information are transmitted as parameters to the diagnostic interface function; The diagnostic interface function is invoked to write the parameters into the electronic control unit corresponding to the name of the electronic control unit.
4. The data writing method as described in claim 3, characterized in that, The specific data information also includes priority information, which is used to characterize the priority of writing the write information of different groups into the electronic control unit; The step of transmitting the diagnostic communication address and the at least one set of write information as parameters to the diagnostic interface function includes: Based on the priority information of the write information of different groups, the write information of the corresponding group with the priority from high to low and the diagnostic communication address are transmitted as parameters to the diagnostic interface function.
5. The data writing method according to any one of claims 1-4, characterized in that, The data writing method further includes: If the data information is successfully written to the electronic control unit, the data information is transmitted to the server, and the server is used to update the existing data information based on the uploaded data information.
6. The data writing method according to any one of claims 1-5, characterized in that, The data writing method further includes: If writing the data information to the electronic control unit fails, an error code is generated and displayed.
7. The data writing method according to any one of claims 1-6, characterized in that, The data information is transmitted between the server and the electronic control unit in the form of a compressed package and / or in encrypted form.
8. A data writing system, characterized in that, include: The information acquisition module is used to acquire vehicle information and electronic control information from the electronic control unit; The information sending module is used to send the vehicle information and the electronic control information to the server. The server is used to store data information of vehicles and electronic control units of different models, match the corresponding data information according to the vehicle information and the electronic control information, and send the corresponding data information. The information receiving module is used to receive data information sent by the server; An information writing module is used to write the data information into the electronic control unit.
9. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.