Vehicle diagnostic data writing method and system, readable storage medium and equipment

By configuring the writing rules of the fault control unit and the data identifier encrypted reading script on the database cloud, combined with gateway transmission and message conversion, the problems of high labor cost and inflexibility in the data writing process of existing automobile diagnostic instruments are solved. , achieving efficient diagnostic data writing and reducing dependence on diagnostic instruments.

CN118655874APending Publication Date: 2024-09-17JIANGLING MOTORS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410685782.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing automotive diagnostic instruments require a lot of labor costs when writing diagnostic data, and the process is inflexible and maintenance costs are high. Customized ECU data writing programs are usually required.

Method used

By configuring the writing rules of the fault control unit on the database cloud, issuing the data identifier encrypted reading script, transmitting the diagnostic command to the fault control unit through the gateway, uploading the original network management message for conversion, and generating a diagnostic network management message. , cooperate with the writing script to complete data writing.

Benefits of technology

It reduces the dependence on the diagnostic instrument, improves the efficiency of remote diagnosis, realizes the writing of data to different control units of the vehicle, and improves the flexibility and security of writing diagnostic data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655874A
    Figure CN118655874A
Patent Text Reader

Abstract

The invention discloses a vehicle diagnosis data writing method and system, a readable storage medium and equipment. The method comprises the steps that a fault control unit writing rule is configured, and a data identifier encryption reading script is issued; a data identifier encryption reading script is obtained, a diagnosis mode is set, and a diagnosis command is issued to the fault control unit; uploading an original network management message based on the diagnosis command, and converting the original network management message; converting the changed network management message needing to be written, diagnosing the original network management message, and generating a diagnosis network management message; and assembling the write-in script, and issuing a diagnosis network management message by matching with the data identifier encryption read script. According to the data writing implementation scheme of different control units of the vehicle based on the database remote diagnosis system, the database assembly sends the writing instruction to the fault control unit through the gateway, data writing of the control units is completed, the working efficiency of remote diagnosis is improved, and the degree of dependence of a service scene on a diagnostic instrument is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle configuration information processing, and in particular to a vehicle diagnostic data writing method, system, readable storage medium and device. Background Art

[0002] With the rapid development of the intelligent connected vehicle industry, various technologies, including electronic technology, communication technology, network technology, etc., are continuously integrated into the automotive ecosystem, resulting in increasingly complex automotive structures and higher levels of automation. Users are also increasingly demanding safety and comfort in their vehicles, and need to monitor the vehicle's operation status anytime and anywhere to detect potential faults and eliminate them as soon as possible.

[0003] At present, the industry basically uses diagnostic instruments for automobile health diagnosis. The diagnostic instrument is connected to the vehicle, quickly reads the faults in the vehicle's electronic control system, and displays the fault information through the LCD screen. The location and cause of the fault are quickly identified, and specific data is written to diagnose the faulty ECU.

[0004] However, using diagnostic instruments for diagnosis requires a lot of manpower costs. There are many disadvantages for diagnosis that requires writing data. It is very inflexible and usually requires the diagnostic instrument to customize the data writing program for a specific ECU, which has a high maintenance cost. Summary of the invention

[0005] Based on this, the purpose of the present invention is to provide a vehicle diagnostic data writing method, system, readable storage medium and device to solve the problem that the current use of diagnostic instruments for diagnosis requires a lot of manpower costs, has many disadvantages for diagnoses that require data writing, is very inflexible, and usually requires the diagnostic instrument to customize the data writing program for a specific ECU, resulting in high maintenance costs.

[0006] To achieve the above object, the present invention proposes a method for writing vehicle diagnostic data, the method comprising:

[0007] Configure the fault control unit write rules and issue the data identifier encryption reading script;

[0008] Obtaining a data identifier encrypted reading script, setting a diagnostic mode, and issuing a diagnostic command to the fault control unit;

[0009] Based on the diagnostic command, uploading the original network management message and converting the original network management message;

[0010] Convert the modified network management message to be written, diagnose the original network management message, and generate a diagnostic network management message;

[0011] Assemble the write script, and send the diagnostic network management message in cooperation with the data identifier encrypted read script.

[0012] In summary, according to the vehicle diagnostic data writing method provided by the present invention, the writing rules of the fault control unit are configured on the database cloud, and the data identifier encrypted reading script is sent to the database component to ensure the security of the writing process. After receiving the data identifier encrypted reading script, the database component sets the diagnostic mode and sends the diagnostic command to the fault control unit through the gateway. The fault control unit uploads the original network management message, and converts the original network management message on the database cloud, and converts the network management message to be written and changed at the same time, and generates a diagnostic network management message. After the writing script is matched with the data identifier encrypted reading script, the diagnostic network management message is sent to complete the writing of diagnostic data. The present application provides a data writing implementation scheme for different control units of a vehicle based on a database remote diagnosis system. The Internet of Vehicles protocol is used to send write instructions from the database cloud to the database component. The database component sends the write instructions to the fault control unit through the gateway, and finally completes the data writing of the control unit, thereby improving the working efficiency of remote diagnosis and reducing the dependence of this business scenario on the diagnostic instrument.

[0013] According to one aspect of the above technical solution, the step of configuring the fault control unit to write rules and issuing the data identifier encrypted reading script specifically includes:

[0014] Configure the dynamic data identifier of the fault control unit and the writing and reading rules of the static data identifier on the database cloud, and send the data identifier encryption reading script to the database component;

[0015] The data identifier encryption reading script generates a word protection key ciphertext, verification data, a first key and a second key, wherein the word protection key ciphertext is used to protect bytes in a network management message, and the verification data is used to calibrate the first key and the second key;

[0016] The first key is retained in the database cloud, the word protection key ciphertext, the verification data, and the second key are all sent to the database component, and the first key is also sent to the fault control unit.

[0017] According to one aspect of the above technical solution, the step of obtaining the data identifier encrypted reading script, setting the diagnostic mode, and issuing the diagnostic command to the fault control unit specifically includes:

[0018] The database component obtains the word protection key ciphertext, the verification data and the second key, sets the fault control unit diagnostic mode, and sends the diagnostic command to the fault control unit through the gateway;

[0019] The diagnostic mode at least includes byte deletion, byte replacement or byte addition.

[0020] According to one aspect of the above technical solution, the step of uploading the original network management message based on the diagnostic command and converting the original network management message specifically includes:

[0021] Based on the diagnostic command, the fault control unit uploads the original network management message and the first key to the database component through the gateway;

[0022] The database component matches the second key and the first key according to the verification data. If the match is successful, the database component uploads the original network management message to the database cloud.

[0023] According to one aspect of the above technical solution, after obtaining the original network management message,

[0024] The original network management message is saved, the original network management message is parsed, and the original network management message is converted according to the data type and marked as the first type of data.

[0025] According to one aspect of the above technical solution, the steps of converting the required written modified network management message, diagnosing the original network management message, and generating a diagnostic network management message specifically include:

[0026] Convert the changed network management message to be written according to the data type and mark it as the second type of data;

[0027] According to the configured write rule, if there is a byte missing fault in the first type of data, compare the first type of data with the second type of data, and add the bytes in the second type of data to the first type of data to generate the third type of data;

[0028] If there is a byte disorder fault in the first type of data, compare the first type of data with the second type of data, and replace the erroneous bytes in the first type of data with the correct bytes in the second type of data to generate the third type of data;

[0029] If there is a byte addition fault in the first type of data, compare the first type of data with the second type of data, and delete the excess bytes in the second type of data in accordance with the first type of data to generate the third type of data;

[0030] According to the generated third type of data, it is reversely converted into a diagnostic network management message.

[0031] According to one aspect of the above technical solution, the step of assembling the writing script and cooperating with the data identifier encryption reading script to issue the diagnostic network management message specifically includes:

[0032] Assemble the writing script, send the diagnostic network management message and the first key, the database component matches the second key and the first key according to the verification data, if the match is successful, the database component sends the diagnostic network management message to the fault control unit via the gateway to complete the writing of the diagnostic data.

[0033] The present invention also provides a vehicle diagnostic data writing system, the system comprising:

[0034] Configuration rule script module, used to configure the fault control unit writing rules and issue data identifier encrypted reading script;

[0035] A diagnostic command issuing module, used to obtain a data identifier encrypted reading script, set a diagnostic mode, and issue a diagnostic command to the fault control unit;

[0036] An original message conversion module, used to upload the original network management message based on the diagnostic command and convert the original network management message;

[0037] A diagnostic message generation module, used for converting the modified network management message to be written, diagnosing the original network management message, and generating a diagnostic network management message;

[0038] The diagnostic message sending module is used to assemble a write script and send the diagnostic network management message in cooperation with the data identifier encrypted read script.

[0039] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned vehicle diagnostic data writing method is implemented.

[0040] The present invention also proposes a vehicle diagnostic data writing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the vehicle diagnostic data writing method as described above when executing the program.

[0041] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of a vehicle diagnostic data writing method according to a first embodiment of the present invention;

[0043] Figure 2 This is a schematic diagram of network management message conversion in the first embodiment of the present invention;

[0044] Figure 3It is a structural schematic diagram of a vehicle diagnostic data writing system in a second embodiment of the present invention;

[0045] Figure 4 It is a schematic structural diagram of a vehicle diagnostic data writing device in the fourth embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0047] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0049] Embodiment 1

[0050] like Figure 1 FIG. 1 is a flow chart of a method for writing vehicle diagnostic data in the present invention. The method for writing vehicle diagnostic data includes the following steps S01 to S05, wherein:

[0051] S01. Configure the fault control unit writing rules and issue the data identifier encrypted reading script.

[0052] The dynamic data identifier and static data identifier writing and reading rules of the fault control unit are configured in the database cloud system, including data identifier symbol, byte, read bit, precision, offset, data type, etc., to achieve visual parsing of the network management message reported by the fault control unit through the CAN bus. Combined with the data writing rules configured in the database cloud, including the data identifier symbol to be written, start byte, start bit, length, data type, etc., the data writing business scenario of the entire vehicle fault control unit is completed.

[0053] The database cloud initiates real-time diagnosis and reads the data identifier of the fault control unit to obtain the fault type of the fault control unit. The data identifier encryption reading script is sent to the database component, and the data identifier encryption reading script generates a word protection key ciphertext, verification data, a first key and a second key, wherein the word protection key ciphertext is used to protect the bytes in the network management message, and the verification data is used to calibrate the first key and the second key; the first key is retained in the database cloud, the word protection key ciphertext, verification data, and the second key are all sent to the database component, and the first key is also sent to the fault control unit.

[0054] S02, obtaining a data identifier encrypted reading script, setting a diagnostic mode, and sending a diagnostic command to the fault control unit.

[0055] The database component obtains the word protection key ciphertext, the verification data and the second key, sets the fault control unit diagnostic mode, and sends the diagnostic command to the fault control unit through the gateway;

[0056] The diagnostic mode at least includes byte deletion, byte replacement or byte addition.

[0057] S03. Upload the original network management message based on the diagnosis command, and convert the original network management message.

[0058] After the fault control unit obtains the diagnostic command, it uploads the original network management message and the first key to the database component through the gateway;

[0059] The database component encrypts and protects the bytes in the original network management message through the word protection key ciphertext, and matches the first key and the second key according to the verification data. If the match is successful, the database component uploads the original network management message to the database cloud;

[0060] If the match fails, the first key is reissued until it matches the second key successfully.

[0061] After the database cloud obtains the original network management message, it saves the original network management message, parses it, and converts it into a readable message according to the corresponding data type.

[0062] In this embodiment, the database cloud converts the hexadecimal message of the original network management message into binary and marks it as the first type of data.

[0063] S04. Convert the modified network management message to be written, diagnose the original network management message, and generate a diagnostic network management message.

[0064] like Figure 2The database cloud shown converts the changed network management message to be written according to the data type, and also converts it into binary accordingly and marks it as the second type of data.

[0065] According to the write rules configured in the database cloud, if there is a byte missing fault in the first type of data, the first type of data is compared with the second type of data, and the bytes in the second type of data are added to the first type of data to generate the third type of data;

[0066] If there is a byte disorder fault in the first type of data, compare the first type of data with the second type of data, and replace the erroneous bytes in the first type of data with the correct bytes in the second type of data to generate the third type of data;

[0067] If there is a byte addition fault in the first type of data, compare the first type of data with the second type of data, and delete the excess bytes in the second type of data in accordance with the first type of data to generate the third type of data;

[0068] According to the generated third type of data, it is reversely converted into a diagnostic network management message.

[0069] S05. Assemble the write script, and send the diagnostic network management message in cooperation with the data identifier encrypted read script.

[0070] Assemble the write script, send the diagnostic network management message and the first key, the database component encrypts and protects the bytes in the diagnostic network management message through the word protection key ciphertext, and matches the second key and the first key according to the verification data. If the match is successful, the database component will send the diagnostic network management message to the fault control unit via the gateway to complete the writing of the diagnostic data; if the match fails, update the first key until it matches the second key successfully.

[0071] In summary, according to the vehicle diagnostic data writing method provided by the present invention, the writing rules of the fault control unit are configured on the database cloud, and the data identifier encrypted reading script is sent to the database component to ensure the security of the writing process. After receiving the data identifier encrypted reading script, the database component sets the diagnostic mode and sends the diagnostic command to the fault control unit through the gateway. The fault control unit uploads the original network management message, and converts the original network management message on the database cloud, and converts the network management message to be written and changed at the same time, and generates a diagnostic network management message. After the writing script is matched with the data identifier encrypted reading script, the diagnostic network management message is sent to complete the writing of diagnostic data. The present application provides a data writing implementation scheme for different control units of a vehicle based on a database remote diagnosis system. The Internet of Vehicles protocol is used to send write instructions from the database cloud to the database component. The database component sends the write instructions to the fault control unit through the gateway, and finally completes the data writing of the control unit, thereby improving the working efficiency of remote diagnosis and reducing the dependence of this business scenario on the diagnostic instrument.

[0072] Embodiment 2

[0073] Another aspect of the present invention is to provide a vehicle diagnostic data writing system, please refer to Figure 3 , which is a schematic diagram of the structure of a vehicle diagnostic data writing system in a second embodiment of the present invention, wherein the vehicle diagnostic data writing system comprises:

[0074] Configuration rule script module 11, used to configure the fault control unit writing rules and issue data identifier encrypted reading script;

[0075] The diagnostic command issuing module 12 is used to obtain the data identifier encryption reading script, set the diagnostic mode, and issue the diagnostic command to the fault control unit;

[0076] The original message conversion module 13 is used to upload the original network management message based on the diagnostic command and convert the original network management message;

[0077] The diagnostic message generation module 14 is used to convert the modified network management message to be written, diagnose the original network management message, and generate a diagnostic network management message;

[0078] The diagnostic message sending module 15 is used to assemble a write script and send the diagnostic network management message in cooperation with the data identifier encrypted read script.

[0079] Furthermore, in some optional embodiments, the configuration rule script module 11 further includes:

[0080] A configuration rule script unit is used to configure the dynamic data identifier of the fault control unit and the writing and reading rules of the static data identifier in the database cloud, and send the data identifier encrypted reading script to the database component;

[0081] The data identifier encryption reading script generates a word protection key ciphertext, verification data, a first key and a second key, wherein the word protection key ciphertext is used to protect bytes in a network management message, and the verification data is used to calibrate the first key and the second key;

[0082] The first key is retained in the database cloud, the word protection key ciphertext, the verification data, and the second key are all sent to the database component, and the first key is also sent to the fault control unit.

[0083] Furthermore, in some optional embodiments, the diagnosis command issuing module 12 further includes:

[0084] A diagnostic command issuing unit is used for the database component to obtain the word protection key ciphertext, verification data and the second key, and to set the fault control unit diagnostic mode, and to issue the diagnostic command to the fault control unit through the gateway;

[0085] The diagnostic mode at least includes byte deletion, byte replacement or byte addition.

[0086] Furthermore, in some optional embodiments, the original message conversion module 13 further includes:

[0087] An original message conversion unit, configured to cause the fault control unit to upload the original network management message and the first key to the database component through a gateway based on the diagnostic command;

[0088] The database component matches the second key and the first key according to the verification data. If the match is successful, the database component uploads the original network management message to the database cloud.

[0089] After obtaining the original network management message,

[0090] The original network management message is saved, the original network management message is parsed, and the original network management message is converted according to the data type and marked as the first type of data.

[0091] Furthermore, in some optional embodiments, the diagnostic message generating module 14 further includes:

[0092] A diagnostic message generation unit, used for converting the network management message to be written according to the data type and marking it as the second type of data;

[0093] According to the configured write rule, if there is a byte missing fault in the first type of data, compare the first type of data with the second type of data, and add the bytes in the second type of data to the first type of data to generate the third type of data;

[0094] If there is a byte disorder fault in the first type of data, compare the first type of data with the second type of data, and replace the erroneous bytes in the first type of data with the correct bytes in the second type of data to generate the third type of data;

[0095] If there is a byte addition fault in the first type of data, compare the first type of data with the second type of data, and delete the excess bytes in the second type of data in accordance with the first type of data to generate the third type of data;

[0096] According to the generated third type of data, it is reversely converted into a diagnostic network management message.

[0097] Furthermore, in some optional embodiments, the diagnostic message sending module 15 further includes:

[0098] The diagnostic message sending unit is used to assemble the writing script, send the diagnostic network management message and the first key, and the database component matches the second key and the first key according to the verification data. If the match is successful, the database component sends the diagnostic network management message to the fault control unit via the gateway to complete the writing of the diagnostic data.

[0099] Embodiment 3

[0100] Another aspect of the present invention further provides a computer-readable storage medium having one or more computer programs stored thereon, which implement the above-mentioned vehicle diagnostic data writing method when executed by a processor.

[0101] Those skilled in the art will appreciate that the logic or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0102] More specific examples of computer-readable storage media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or processing in another suitable manner as necessary, and then stored in a computer memory.

[0103] Embodiment 4

[0104] Another aspect of the present invention also provides a vehicle diagnostic data writing device, see Figure 4 , shown is a vehicle diagnostic data writing device according to a fourth embodiment of the present invention, comprising a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein the processor 10 implements the vehicle diagnostic data writing method as described above when executing the computer program 30.

[0105] Among them, the vehicle diagnostic data writing device can specifically be a computer, a whole vehicle testing equipment, etc., and the processor 10 in some embodiments can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, which is used to run the program code stored in the memory 20 or process data, such as executing access restriction programs, etc.

[0106] The memory 20 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 20 may be an internal storage unit of a vehicle diagnostic data writing device, such as a hard disk of the vehicle diagnostic data writing device. In other embodiments, the memory 20 may also be an external storage device of a vehicle diagnostic data writing device, such as a plug-in hard disk equipped on the vehicle diagnostic data writing device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 20 may also include both an internal storage unit and an external storage device of the vehicle diagnostic data writing device. The memory 20 may be used not only to store application software and various types of data installed in the vehicle diagnostic data writing device, but also to temporarily store data that has been output or is to be output.

[0107] It should be pointed out that Figure 4 The structure shown does not constitute a limitation on the vehicle diagnostic data writing device. In other embodiments, the vehicle diagnostic data writing device may include Figure 4 Fewer or more components may be shown, or certain components may be combined, or arranged differently.

[0108] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0109] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0110] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for writing vehicle diagnostic data, characterized in that: The method comprises: Configure the fault control unit write rules and issue the data identifier encryption reading script; Obtaining a data identifier encrypted reading script, setting a diagnostic mode, and issuing a diagnostic command to the fault control unit; Based on the diagnostic command, uploading the original network management message and converting the original network management message; Convert the modified network management message to be written, diagnose the original network management message, and generate a diagnostic network management message; Assemble the write script, and send the diagnostic network management message in cooperation with the data identifier encrypted read script.

2. The vehicle diagnostic data writing method according to claim 1, characterized in that: The step of configuring the fault control unit to write rules and issuing the data identifier encrypted reading script specifically includes: Configure the dynamic data identifier of the fault control unit and the writing and reading rules of the static data identifier on the database cloud, and send the data identifier encryption reading script to the database component; The data identifier encryption reading script generates a word protection key ciphertext, verification data, a first key and a second key, wherein the word protection key ciphertext is used to protect bytes in a network management message, and the verification data is used to calibrate the first key and the second key; The first key is retained in the database cloud, the word protection key ciphertext, the verification data, and the second key are all sent to the database component, and the first key is also sent to the fault control unit.

3. The vehicle diagnostic data writing method according to claim 1, characterized in that: The step of obtaining the data identifier encrypted reading script, setting the diagnostic mode, and sending the diagnostic command to the fault control unit specifically includes: The database component obtains the word protection key ciphertext, the verification data and the second key, sets the fault control unit diagnostic mode, and sends the diagnostic command to the fault control unit through the gateway; The diagnostic mode at least includes byte deletion, byte replacement or byte addition.

4. The vehicle diagnostic data writing method according to claim 1, characterized in that: The step of uploading the original network management message based on the diagnostic command and converting the original network management message specifically includes: Based on the diagnostic command, the fault control unit uploads the original network management message and the first key to the database component through the gateway; The database component matches the second key and the first key according to the verification data. If the match is successful, the database component uploads the original network management message to the database cloud.

5. The vehicle diagnostic data writing method according to claim 4, characterized in that: After obtaining the original network management message, The original network management message is saved, the original network management message is parsed, and the original network management message is converted according to the data type and marked as the first type of data.

6. The vehicle diagnostic data writing method according to claim 1, characterized in that: The steps of converting the required written modified network management message, diagnosing the original network management message, and generating a diagnostic network management message specifically include: Convert the changed network management message to be written according to the data type and mark it as the second type of data; According to the configured write rule, if there is a byte missing fault in the first type of data, compare the first type of data with the second type of data, and add the bytes in the second type of data to the first type of data to generate the third type of data; If there is a byte disorder fault in the first type of data, compare the first type of data with the second type of data, and replace the erroneous bytes in the first type of data with the correct bytes in the second type of data to generate the third type of data; If there is a byte addition fault in the first type of data, compare the first type of data with the second type of data, and delete the excess bytes in the second type of data in accordance with the first type of data to generate the third type of data; According to the generated third type of data, it is reversely converted into a diagnostic network management message.

7. The vehicle diagnostic data writing method according to claim 1, characterized in that: The step of assembling the writing script and cooperating with the data identifier encryption reading script to issue the diagnostic network management message specifically includes: Assemble the writing script, send the diagnostic network management message and the first key, the database component matches the second key and the first key according to the verification data, if the match is successful, the database component sends the diagnostic network management message to the fault control unit via the gateway to complete the writing of the diagnostic data.

8. A vehicle diagnostic data writing system, characterized in that: The system comprises: Configuration rule script module, used to configure the fault control unit writing rules and issue data identifier encrypted reading script; A diagnostic command issuing module, used to obtain a data identifier encrypted reading script, set a diagnostic mode, and issue a diagnostic command to the fault control unit; An original message conversion module, used to upload the original network management message based on the diagnostic command and convert the original network management message; A diagnostic message generation module, used for converting the modified network management message to be written, diagnosing the original network management message, and generating a diagnostic network management message; The diagnostic message sending module is used to assemble a write script and send the diagnostic network management message in cooperation with the data identifier encrypted read script.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle diagnostic data writing method as described in any one of claims 1 to 7 is implemented.

10. A vehicle diagnostic data writing device, characterized in that: The device comprises a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, the vehicle diagnostic data writing method described in any one of claims 1-7 is implemented.