Vehicle remote ECU diagnosis flashing method and device
By dynamically configuring the diagnostic flash sequence in vehicle remote ECU diagnostic flash sequences using diagnostic flash sequence templates and wildcards in vehicle remote ECU diagnostic flash sequences, the high development cost and long update cycle problems caused by changes in diagnostic flash specifications in the prior art are solved, and high efficiency and scalable diagnostic flash sequences are achieved.
Patent Information
- Application Number
- CN202510062937.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-09
AI Technical Summary
The existing technology has the high customization and diversification of diagnostic and flashing requirements in vehicle remote ECU diagnostic flashing, resulting in constant changes in diagnostic flashing specifications, and OTA programs need to be re-written and released, resulting in high development costs, long update cycles and low efficiency.
The diagnostic flash write command is configured through the diagnostic flash write sequence template, and the diagnostic flash write sequence is dynamically configured by wildcard characters, which improves the efficiency and scalability of diagnostic flash write.
It realizes the high efficiency and scalability of vehicle remote ECU diagnostic flashing, avoids the long update cycle of flashing sequence information solidification in OTA programs, and is adapted to different types of diagnostic specifications.
Smart Images

Figure CN119960803A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent networked vehicles, and in particular relates to a vehicle remote ECU diagnostic flashing method and device. Background Art
[0002] With the continuous development of intelligent connected vehicle technology, the complexity of vehicle electronic systems is constantly increasing. In order to meet the different intelligent needs of users, automobile manufacturers need to remotely diagnose and flash the vehicle's ECU (Electronic Control Unit), which involves the UDS (Unified Diagnostic Services) diagnostic sequence and remote OTA (Over-The-Air) program.
[0003] At present, the flash sequence information is usually solidified in the OTA program on the vehicle side, and then the diagnostic flashing of the ECU is performed according to the solidified flashing sequence, the diagnostic flashing instructions in the UDS diagnostic sequence, and the upgrade file. However, due to the high customization and diversification trend of the diagnosis and flashing requirements of various ECUs, the current diagnostic flashing specifications are constantly changing, and thus, each time the ECU is flashed, the vehicle-side OTA program needs to be rewritten and released, which requires high development costs and a long update cycle, resulting in low efficiency and low scalability of vehicle remote ECU diagnostic flashing; and due to the differentiated diagnostic specifications between different models and ECU suppliers, standardized adaptation becomes extremely complicated, which further reduces the diagnostic flashing efficiency of vehicle remote ECU. Therefore, there is an urgent need for a vehicle remote ECU diagnostic flashing method, device, equipment and storage medium to solve the defects of the prior art. Summary of the invention
[0004] The present invention aims to provide a vehicle remote ECU diagnostic flashing method and device to solve the above-mentioned technical problems. The diagnostic flashing instructions are configured by a diagnostic flashing sequence template, and the dynamic configuration of the diagnostic flashing sequence is realized by wildcards and diagnostic flashing instructions, thereby improving the diagnostic flashing efficiency of the vehicle remote ECU.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a vehicle remote ECU diagnostic flashing method, comprising:
[0006] Obtain the vehicle-side upgrade package and vehicle-side ECU flashing requirements, and parse the vehicle-side upgrade package according to a preset upgrade package parsing tool to obtain an initial diagnostic flashing sequence;
[0007] Generate a diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template;
[0008] Determine the wildcard required for the vehicle-side ECU flashing according to the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirement, and generate a diagnostic flashing sequence file according to the wildcard and the diagnostic flashing instruction;
[0009] The vehicle-side upgrade package and the diagnostic flashing sequence file are associated to generate a task package, so that the vehicle-side performs diagnostic flashing on the vehicle-side ECU according to the task package.
[0010] It can be understood that, compared with the prior art, the present invention parses the vehicle-side upgrade package through a preset upgrade package parsing tool, can efficiently obtain the initial diagnostic flash sequence, generate diagnostic flash instructions through a preset diagnostic flash sequence template, and determine the wildcard required for the vehicle-side ECU flash with the initial diagnostic flash sequence and the vehicle-side ECU flash requirement, thereby generating a diagnostic flash sequence file and realizing the diagnostic flash of the vehicle-side ECU. The present invention generates diagnostic instructions by introducing a diagnostic flash sequence template, and then generates a diagnostic flash sequence file in combination with wildcards, which can dynamically generate corresponding flash sequence information according to the actual upgrade requirements of the vehicle-side ECU, avoiding the long update cycle caused by solidifying the flash sequence information in the vehicle-side OTA program in the prior art, and improving the diagnostic flash efficiency of the vehicle remote ECU; by adding wildcards in the diagnostic flash sequence file, it can adapt to different types of diagnostic specifications, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0011] As a preferred solution, the step of obtaining the vehicle-side upgrade package and parsing the vehicle-side upgrade package according to a preset upgrade package parsing tool to obtain the initial diagnostic flashing sequence specifically includes:
[0012] Identify the format of the upgrade file in the vehicle-side upgrade package, and select the first upgrade file in the preset format set;
[0013] Performing syntax analysis on the first upgrade file according to a preset upgrade package parsing tool to extract addresses, data segments and verification information in the first upgrade file;
[0014] An initial diagnostic flash sequence is generated according to the address, data segment and verification information.
[0015] This preferred solution can quickly identify the required upgrade files by identifying the format of the upgrade files in the vehicle-side upgrade package, and then can generate the initial diagnostic flash sequence more quickly, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0016] As a preferred solution, the generating of the diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template specifically includes:
[0017] Generate an erase instruction, a download trigger instruction, a data download instruction, and a download end instruction according to the upgrade file in the vehicle-side upgrade package, and generate a standard diagnostic instruction according to the erase instruction, the download trigger instruction, the data download instruction, and the download end instruction;
[0018] Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to generate a flash instruction;
[0019] A diagnostic flashing instruction is generated according to the standard diagnostic instruction and the flashing instruction.
[0020] This preferred solution can reduce the risk of errors or data corruption that may occur during the vehicle-side ECU upgrade process by generating standard diagnostic instructions, and maps the initial diagnostic flash sequence according to a preset diagnostic flash sequence template, so that corresponding flash instructions can be dynamically generated according to the actual upgrade requirements of the vehicle-side ECU, thereby improving the diagnostic flash efficiency of the vehicle's remote ECU.
[0021] As a preferred solution, mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to generate a flash instruction specifically includes:
[0022] Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to determine ECU flash attributes, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID, and module start address and length;
[0023] Generate a flashing instruction according to the ECU flashing attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module starting address and length.
[0024] This preferred solution maps the initial diagnostic flash sequence according to a preset diagnostic flash sequence template, so that corresponding flash instructions can be dynamically generated according to the actual upgrade requirements of the vehicle-side ECU, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0025] As a preferred solution, the wildcard required for the vehicle-side ECU flashing is determined according to the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirement, and a diagnostic flashing sequence file is generated according to the wildcard and the diagnostic flashing instruction, specifically including:
[0026] Determine a wildcard required for flashing the vehicle-side ECU according to the flashing requirement of the vehicle-side ECU, and insert the wildcard into the initial diagnostic flashing sequence to generate a first diagnostic flashing sequence;
[0027] The first diagnosis writing sequence, the diagnosis flashing instruction and the preset diagnosis flashing sequence template are combined to generate a diagnosis flashing sequence file.
[0028] This preferred solution determines the wildcard required for vehicle-side ECU flashing through the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirements. It can solve problems that cannot be configured in advance, such as 27 service authentication, 34 service address resolution, and 36 service file resolution. It can adapt to different types of diagnostic specifications, thereby improving the diagnostic flashing efficiency of the vehicle's remote ECU.
[0029] As a preferred solution, the vehicle-side upgrade package is associated with the diagnostic flashing sequence file to generate a task package, so that the vehicle-side performs diagnostic flashing on the vehicle-side ECU according to the task package, specifically including:
[0030] Associating the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package;
[0031] The task package is sent to the vehicle side, so that the vehicle side extracts the flash file and the diagnostic flash sequence file in the task package, and then the vehicle side generates a diagnostic flash instruction set according to the flash file and the diagnostic flash sequence file, so that the vehicle side performs diagnostic flash on the vehicle side ECU according to the diagnostic flash instruction set.
[0032] This preferred solution realizes diagnostic flashing of the vehicle-side ECU by sending the task package to the vehicle-side so that the vehicle-side extracts the flashing file and diagnostic flashing sequence file in the task package, avoiding the long update cycle caused by solidifying the flashing sequence information in the vehicle-side OTA program in the prior art, and improving the diagnostic flashing efficiency of the vehicle's remote ECU.
[0033] Accordingly, an embodiment of the present invention provides a vehicle remote ECU diagnostic flashing device, comprising: an upgrade package parsing module, a diagnostic flashing instruction generating module, a diagnostic flashing sequence file generating module and a vehicle-side ECU diagnostic flashing module;
[0034] The upgrade package parsing module is used to obtain the vehicle-side upgrade package and the vehicle-side ECU flashing requirement, and parse the vehicle-side upgrade package according to the preset upgrade package parsing tool to obtain the initial diagnosis flashing sequence;
[0035] The diagnostic flashing instruction generation module is used to generate a diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template;
[0036] The diagnostic flash sequence file generation module is used to determine the wildcard required for the vehicle-side ECU flash according to the initial diagnostic flash sequence and the vehicle-side ECU flash requirement, and generate a diagnostic flash sequence file according to the wildcard and the diagnostic flash instruction;
[0037] The vehicle-side ECU diagnostic flashing module is used to associate the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package so that the vehicle-side can perform diagnostic flashing on the vehicle-side ECU according to the task package.
[0038] As a preferred solution, the upgrade package parsing module includes: an upgrade package parsing unit;
[0039] The upgrade package parsing unit is used to identify the format of the upgrade file in the vehicle-side upgrade package and filter out the first upgrade file in the preset format set;
[0040] Performing syntax analysis on the first upgrade file according to a preset upgrade package parsing tool to extract addresses, data segments and verification information in the first upgrade file;
[0041] An initial diagnostic flash sequence is generated according to the address, data segment and verification information.
[0042] As a preferred solution, the diagnostic flashing instruction generation module includes: a diagnostic flashing instruction generation unit;
[0043] The diagnostic flashing instruction generating unit is used to generate an erase instruction, a trigger download instruction, a data download instruction and a download end instruction according to the upgrade file in the vehicle-side upgrade package, and generate a standard diagnostic instruction according to the erase instruction, the trigger download instruction, the data download instruction and the download end instruction;
[0044] Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to generate a flash instruction;
[0045] A diagnostic flashing instruction is generated according to the standard diagnostic instruction and the flashing instruction.
[0046] As a preferred solution, the diagnostic flashing instruction generating unit comprises: a flashing instruction generating subunit;
[0047] The flash instruction generation subunit is used to map the initial diagnostic flash sequence according to the preset diagnostic flash sequence template, determine the ECU flash attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module start address and length;
[0048] Generate a flashing instruction according to the ECU flashing attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module starting address and length.
[0049] It can be understood that, compared with the prior art, this device parses the vehicle-side upgrade package through a preset upgrade package parsing tool, can efficiently obtain the initial diagnostic flash sequence, generate diagnostic flash instructions through a preset diagnostic flash sequence template, and determine the wildcard required for the vehicle-side ECU flash with the initial diagnostic flash sequence and the vehicle-side ECU flash requirement, thereby generating a diagnostic flash sequence file and realizing the diagnostic flash of the vehicle-side ECU. This device generates diagnostic instructions by introducing a diagnostic flash sequence template, and then generates a diagnostic flash sequence file in combination with wildcards. It can dynamically generate corresponding flash sequence information according to the actual upgrade requirements of the vehicle-side ECU, avoiding the long update cycle caused by solidifying the flash sequence information in the vehicle-side OTA program in the prior art, and improving the diagnostic flash efficiency of the vehicle remote ECU; by adding wildcards to the diagnostic flash sequence file, it can adapt to different types of diagnostic specifications, thereby improving the diagnostic flash efficiency of the vehicle remote ECU. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 :A flow chart of the steps of a vehicle remote ECU diagnostic flashing method provided by an embodiment of the present invention;
[0051] Figure 2 : A parameter diagram of a preset diagnostic flash sequence template provided in an embodiment of the present invention;
[0052] Figure 3 : A business flow chart of a vehicle remote ECU diagnostic flashing provided by an embodiment of the present invention;
[0053] Figure 4 : A schematic diagram of the structure of a vehicle remote ECU diagnostic flash writing device provided by an embodiment of the present invention;
[0054] Among them, 201: upgrade package parsing module; 202: diagnostic flashing instruction generation module; 203: diagnostic flashing sequence file generation module; 204: vehicle-side ECU diagnostic flashing module. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Embodiment 1
[0057] Please refer to Figure 1, is a flowchart of a vehicle remote ECU diagnostic flashing method provided by an embodiment of the present invention, including steps S101 to S104.
[0058] It should be noted that in the current vehicle-side ECU diagnostic flashing technology, the vehicle-side usually downloads the corresponding upgrade file from the cloud, and then performs diagnostic flashing on the vehicle-side ECU in combination with the flashing sequence information in its own OTA program. Therefore, the vehicle remote ECU diagnostic flashing method described in the embodiment of the present invention can be specifically applied to the cloud, that is, the cloud is used as the main body for executing the vehicle remote ECU diagnostic flashing method.
[0059] Step S101: Obtain a vehicle-side upgrade package and a vehicle-side ECU flashing requirement, and parse the vehicle-side upgrade package according to a preset upgrade package parsing tool to obtain an initial diagnostic flashing sequence.
[0060] In this embodiment, the step of obtaining the vehicle-side upgrade package and parsing the vehicle-side upgrade package according to a preset upgrade package parsing tool to obtain the initial diagnostic flashing sequence specifically includes:
[0061] Identify the format of the upgrade file in the vehicle-side upgrade package, and select the first upgrade file in the preset format set;
[0062] Performing syntax analysis on the first upgrade file according to a preset upgrade package parsing tool to extract addresses, data segments and verification information in the first upgrade file;
[0063] An initial diagnostic flash sequence is generated according to the address, data segment and verification information.
[0064] This embodiment recognizes the format of the upgrade file in the vehicle-side upgrade package, so that the required upgrade file can be quickly identified, and the initial diagnostic flash sequence can be generated more quickly, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0065] It should be noted that the preset upgrade package parsing tool can be WinOLS or HPTuners VCM editor, and the preset format sets include: S19, HEX and BIN formats.
[0066] Step S102: Generate a diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template.
[0067] In this embodiment, the generating of the diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template specifically includes:
[0068] Generate an erase instruction, a download trigger instruction, a data download instruction, and a download end instruction according to the upgrade file in the vehicle-side upgrade package, and generate a standard diagnostic instruction according to the erase instruction, the download trigger instruction, the data download instruction, and the download end instruction;
[0069] Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to generate a flash instruction;
[0070] A diagnostic flashing instruction is generated according to the standard diagnostic instruction and the flashing instruction.
[0071] In an optional embodiment, the erase instruction is erase (31), the trigger download instruction is trigger download (34), the data download instruction is data download (36), and the download end instruction is download end (37), which are all standard diagnostic instructions commonly used in vehicle-side ECU diagnostic flashing, and will not be described in detail here.
[0072] This embodiment can reduce the risk of errors or data corruption that may occur during the vehicle-side ECU upgrade process by generating standard diagnostic instructions, and maps the initial diagnostic flash sequence according to a preset diagnostic flash sequence template, so that corresponding flash instructions can be dynamically generated according to the actual upgrade requirements of the vehicle-side ECU, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0073] In this embodiment, mapping the initial diagnostic flash sequence according to the preset diagnostic flash sequence template to generate a flash instruction specifically includes:
[0074] Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to determine ECU flash attributes, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID, and module start address and length;
[0075] Generate a flashing instruction according to the ECU flashing attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module starting address and length.
[0076] In an alternative embodiment, please refer to Figure 2 , is a parameter diagram of a preset diagnostic flash sequence template provided in an embodiment of the present invention; Figure 2 As shown, the preset diagnostic flash sequence template includes ECU flash attributes, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module start address and length;
[0077] Specifically, the ECU flashing attribute defines the flashing type of the ECU, including docan (CAN device) and doip (ETHERNET device); the address length format identifier is used to define the length of the address field during the transmission process; the ECU's memory address is used to ensure that the address can be correctly decoded during data transmission; the exit transmission format defines the sending of command information with or without parameters to the ECU during the flashing process; when the flashing is completed or needs to be terminated due to an abnormal situation, the exit transmission format determines how to stop data transmission and notify the ECU to enter normal operation; the ECU request ID is used to distinguish messages from different ECUs or diagnostic devices to ensure that the target device of data transmission is clear; the ECU request ID defines the identifier of the request sent by the ECU during the flashing or diagnostic process to ensure that the diagnostic device can recognize and process requests from a specific ECU; the ECU response ID is used to identify the identifier of a specific routine (Routine) during the ECU flashing process. Identifier; In the process of flashing ECU, multiple different routines are often involved, such as memory erasing, data writing and other operations. The ECU response ID is used to distinguish these routines; ECU response ID defines the identifier used by ECU when returning a response message after receiving a request from the diagnostic device; ECU response ID ensures that the diagnostic device can associate the response with the previously sent request; Functional addressing ID is an identifier for the functional addressing mode in diagnostic communication. In the functional addressing mode, a single diagnostic command can be sent to multiple devices in the entire ECU network, and these devices use the functional addressing ID to distinguish whether they need to respond; Module start address and length These parameters define the memory start address and data length of different types of data (app application, flash_driver driver, cal calibration data and other modules) that need to be written during the flashing process. By specifying these parameters, it can be ensured that the data is correctly written to the target storage area of ECU.
[0078] This embodiment maps the initial diagnostic flash sequence according to a preset diagnostic flash sequence template, so that corresponding flash instructions can be dynamically generated according to the actual upgrade requirements of the vehicle-side ECU, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0079] Step S103: Determine the wildcard required for the vehicle-side ECU flashing according to the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirement, and generate a diagnostic flashing sequence file according to the wildcard and the diagnostic flashing instruction.
[0080] In this embodiment, the wildcard required for the vehicle-side ECU flashing is determined according to the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirement, and a diagnostic flashing sequence file is generated according to the wildcard and the diagnostic flashing instruction, specifically including:
[0081] Determine a wildcard required for flashing the vehicle-side ECU according to the flashing requirement of the vehicle-side ECU, and insert the wildcard into the initial diagnostic flashing sequence to generate a first diagnostic flashing sequence;
[0082] The first diagnosis writing sequence, the diagnosis flashing instruction and the preset diagnosis flashing sequence template are combined to generate a diagnosis flashing sequence file.
[0083] In an optional embodiment, the vehicle-side ECU flashing requirement may be determined by the vehicle-side ECU flashing specification, thereby determining the wildcard required for the vehicle-side ECU flashing according to the vehicle-side ECU flashing requirement, and the wildcard includes {flash_driver}, {cal} and {app};
[0084] The wildcard {flash_driver} is defined as the return content of the preset upgrade package parsing tool on the cloud. Find the corresponding string and edit and add erase (31) + trigger download (34) + download (36) + download end (37) + check (31) above and below the string for replacement. In particular, the flash writing process for flash_driver can be empty, that is, flash_driver does not need to be flashed; the wildcard {app} is defined as the return content of the preset upgrade package parsing tool on the cloud. Find the corresponding character and add it to the string. The string can be edited to add erase (31) + trigger download (34) + download (36) + download end (37) + check (31) for replacement. It is used for the app flashing process. Depending on the different ECUs, the sequence of adding the string will be different. It includes 31 erase instructions and 34-36-37 write processes. In particular, this field must be replaced and cannot be empty. The wildcard {cal} is defined as the return content of the preset upgrade package parsing tool in the cloud. Find the corresponding string. The method is the same as the wildcard {app}. It is used for the calibration flashing process and can be empty.
[0085] It should be noted that erasing (31) + triggering download (34) + downloading (36) + downloading end (37) + verification (31) is a relatively common process for the corresponding ECU diagnostic flashing, wherein 31, 34, 36 and 37 are the corresponding operation codes for each stage.
[0086] This embodiment determines the wildcard required for vehicle-side ECU flashing through the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirements. It can solve problems that cannot be configured in advance, such as 27 service authentication, 34 service address resolution, and 36 service file resolution. It can adapt to different types of diagnostic specifications, thereby improving the diagnostic flashing efficiency of the vehicle's remote ECU.
[0087] Step S104: Associating the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package, so that the vehicle-side performs diagnostic flashing on the vehicle-side ECU according to the task package.
[0088] In this embodiment, the vehicle-side upgrade package and the diagnostic flashing sequence file are associated to generate a task package, so that the vehicle-side performs diagnostic flashing on the vehicle-side ECU according to the task package, specifically including:
[0089] Associating the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package;
[0090] The task package is sent to the vehicle side, so that the vehicle side extracts the flash file and the diagnostic flash sequence file in the task package, and then the vehicle side generates a diagnostic flash instruction set according to the flash file and the diagnostic flash sequence file, so that the vehicle side performs diagnostic flash on the vehicle side ECU according to the diagnostic flash instruction set.
[0091] In an optional embodiment, after receiving the task package, the vehicle side parses the task package, extracts the flash file and the diagnostic flash sequence file, and then extracts the flash data, address information and related verification parameters from the flash file. At the same time, the vehicle side parses the UDS instruction set in the diagnostic flash sequence file, and then the vehicle side identifies and parses the wildcard and replaces it with specific parameters in the actual flash process; the vehicle side combines the parsed flash data and diagnostic sequence to generate a diagnostic flash instruction set to perform diagnostic flash on the vehicle-side ECU.
[0092] In an optional embodiment, in the process of sending the task package to the vehicle end, the PKI system authentication and signature verification functions are integrated.
[0093] In an optional embodiment, the vehicle side also processes special UDS services in the UDS instruction set, and the special UDS services include: 27 services, 2E services, 34 services, 36 services and 31 services;
[0094] Among them, the authentication string required in the 27 service 27 03 / 05 instruction is calculated by the local algorithm on the vehicle side and cannot be pre-configured on the cloud side; the fingerprint information required by the 2E service is real-time generated data and cannot be pre-configured on the cloud side; the 34 service needs to use the address and length parameters obtained by file parsing and cannot be manually configured through the cloud side; the 36 service part data is obtained after parsing on the vehicle side and cannot be configured through the cloud side; the verification function of the 31 service needs to be generated based on the flashing data, and the address and length information of the erase function requires file parsing on the vehicle side; when the vehicle side encounters the above-mentioned special UDS services, it will be additionally processed to ensure the smooth progress of the ECU diagnostic flashing process. At present, there are relatively mature technologies for processing special UDS services, which will not be elaborated here.
[0095] This embodiment realizes the diagnostic flashing of the vehicle-side ECU by sending the task package to the vehicle-side so that the vehicle-side extracts the flashing file and the diagnostic flashing sequence file in the task package, avoiding the long update cycle caused by solidifying the flashing sequence information in the vehicle-side OTA program in the prior art, and improving the diagnostic flashing efficiency of the vehicle remote ECU.
[0096] In an alternative embodiment, please refer to Figure 3 , is a business flow chart of a vehicle remote ECU diagnostic flashing provided by an embodiment of the present invention, such as Figure 3 As shown, the user first edits and configures the diagnostic parameters and UDS specification template related to the ECU in the cloud, then uploads the upgrade package, calls the upgrade package parsing tool in the cloud to parse the upgrade file, and generates a diagnostic sequence file; then the vehicle side accepts the upgrade task, downloads the diagnostic sequence file from the cloud, and the vehicle side parses and processes the diagnostic sequence file through its own UDS parsing module. Then the vehicle side executes the diagnostic flash in sequence through the UDS processing module.
[0097] The above-mentioned embodiments realize highly flexible management of ECU diagnosis and flash instruction sequences, greatly simplify the update process of diagnostic specifications, reduce the workload of software development, and shorten the product iteration cycle; by introducing cloud-based diagnostic sequence template editing and parameter configuration functions, it supports customized personalized diagnostic sequences according to different vehicle models and their ECU characteristics, enhances the adaptability and scalability of the system, and meets the needs of diversified application scenarios; by transferring the flash sequence generation and management mechanism of the UDS protocol stack to the cloud, the diagnosis and flash operations of ECUs of different models and versions are realized in a dynamic configuration manner, thus breaking through the limitations of the traditional flash mode; by improving the flexibility and adaptability of sequence generation during vehicle remote upgrades, the protocol adaptation process between ECU and OEM is significantly simplified, the OTA upgrade efficiency is optimized, and the efficiency of vehicle-side ECU diagnostic flashing is improved.
[0098] This embodiment parses the vehicle-side upgrade package through a preset upgrade package parsing tool, and can efficiently obtain the initial diagnostic flash sequence, generate diagnostic flash instructions through a preset diagnostic flash sequence template, and determine the wildcard required for the vehicle-side ECU flash with the initial diagnostic flash sequence and the vehicle-side ECU flash requirement, thereby generating a diagnostic flash sequence file and realizing the diagnostic flash of the vehicle-side ECU. This embodiment generates diagnostic instructions by introducing a diagnostic flash sequence template, and then generates a diagnostic flash sequence file in combination with wildcards. It can dynamically generate corresponding flash sequence information according to the actual upgrade requirements of the vehicle-side ECU, avoiding the long update cycle caused by solidifying the flash sequence information in the vehicle-side OTA program in the prior art, and improving the diagnostic flash efficiency of the vehicle remote ECU; by adding wildcards in the diagnostic flash sequence file, it can adapt to different types of diagnostic specifications, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0099] Embodiment 2
[0100] Please refer to Figure 4 , is a structural diagram of a vehicle remote ECU diagnostic flashing device provided by an embodiment of the present invention, comprising: an upgrade package parsing module 201, a diagnostic flashing instruction generating module 202, a diagnostic flashing sequence file generating module 203 and a vehicle-side ECU diagnostic flashing module 204;
[0101] The upgrade package parsing module 201 is used to obtain the vehicle-side upgrade package and the vehicle-side ECU flashing requirement, and parse the vehicle-side upgrade package according to a preset upgrade package parsing tool to obtain an initial diagnostic flashing sequence.
[0102] In this embodiment, the upgrade package parsing module 201 includes: an upgrade package parsing unit;
[0103] The upgrade package parsing unit is used to identify the format of the upgrade file in the vehicle-side upgrade package and filter out the first upgrade file in the preset format set;
[0104] Performing syntax analysis on the first upgrade file according to a preset upgrade package parsing tool to extract addresses, data segments and verification information in the first upgrade file;
[0105] An initial diagnostic flash sequence is generated according to the address, data segment and verification information.
[0106] The diagnostic flashing instruction generating module 202 is used to generate a diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template.
[0107] In this embodiment, the diagnostic flashing instruction generation module 202 includes: a diagnostic flashing instruction generation unit;
[0108] The diagnostic flashing instruction generating unit is used to generate an erase instruction, a trigger download instruction, a data download instruction and a download end instruction according to the upgrade file in the vehicle-side upgrade package, and generate a standard diagnostic instruction according to the erase instruction, the trigger download instruction, the data download instruction and the download end instruction;
[0109] Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to generate a flash instruction;
[0110] A diagnostic flashing instruction is generated according to the standard diagnostic instruction and the flashing instruction.
[0111] In this embodiment, the diagnostic flashing instruction generating unit includes: a flashing instruction generating subunit;
[0112] The flash instruction generation subunit is used to map the initial diagnostic flash sequence according to the preset diagnostic flash sequence template, determine the ECU flash attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module start address and length;
[0113] Generate a flashing instruction according to the ECU flashing attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module starting address and length.
[0114] The diagnostic flash sequence file generation module 203 is used to determine the wildcard required for vehicle-side ECU flashing according to the initial diagnostic flash sequence and vehicle-side ECU flashing requirements, and generate a diagnostic flash sequence file according to the wildcard and diagnostic flash instruction.
[0115] In this embodiment, the diagnostic flash sequence file generation module 203 includes: a diagnostic flash sequence file generation unit;
[0116] The diagnostic flashing sequence file generating unit is used to determine the wildcard required for the vehicle-side ECU flashing according to the vehicle-side ECU flashing requirement, and insert the wildcard into the initial diagnostic flashing sequence to generate a first diagnostic flashing sequence;
[0117] The first diagnostic flash sequence, the diagnostic flash instruction and the preset diagnostic flash sequence template are combined to generate a diagnostic flash sequence file.
[0118] The vehicle-side ECU diagnostic flashing module 204 is used to associate the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package so that the vehicle-side can perform diagnostic flashing on the vehicle-side ECU according to the task package.
[0119] In this embodiment, the vehicle-side ECU diagnostic flashing module 204 includes: a vehicle-side ECU diagnostic flashing unit;
[0120] The vehicle-side ECU diagnostic flashing unit is used to associate the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package;
[0121] The task package is sent to the vehicle side, so that the vehicle side extracts the flash file and the diagnostic flash sequence file in the task package, and then the vehicle side generates a diagnostic flash instruction set according to the flash file and the diagnostic flash sequence file, so that the vehicle side performs diagnostic flash on the vehicle side ECU according to the diagnostic flash instruction set.
[0122] This embodiment parses the vehicle-side upgrade package through a preset upgrade package parsing tool, and can efficiently obtain the initial diagnostic flash sequence, generate diagnostic flash instructions through a preset diagnostic flash sequence template, and determine the wildcard required for the vehicle-side ECU flash with the initial diagnostic flash sequence and the vehicle-side ECU flash requirement, thereby generating a diagnostic flash sequence file and realizing the diagnostic flash of the vehicle-side ECU. This embodiment generates diagnostic instructions by introducing a diagnostic flash sequence template, and then generates a diagnostic flash sequence file in combination with wildcards. It can dynamically generate corresponding flash sequence information according to the actual upgrade requirements of the vehicle-side ECU, avoiding the long update cycle caused by solidifying the flash sequence information in the vehicle-side OTA program in the prior art, and improving the diagnostic flash efficiency of the vehicle remote ECU; by adding wildcards in the diagnostic flash sequence file, it can adapt to different types of diagnostic specifications, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0123] In summary, the embodiment of the present invention parses the vehicle-side upgrade package through a preset upgrade package parsing tool, can efficiently obtain the initial diagnostic flash sequence, generate diagnostic flash instructions through a preset diagnostic flash sequence template, and determine the wildcard required for the vehicle-side ECU flash with the initial diagnostic flash sequence and the vehicle-side ECU flash requirement, thereby generating a diagnostic flash sequence file and realizing the diagnostic flash of the vehicle-side ECU. The embodiment of the present invention generates diagnostic instructions by introducing a diagnostic flash sequence template, and then generates a diagnostic flash sequence file in combination with wildcards, which can dynamically generate corresponding flash sequence information according to the actual upgrade requirements of the vehicle-side ECU, avoiding the long update cycle caused by solidifying the flash sequence information in the vehicle-side OTA program in the prior art, and improving the diagnostic flash efficiency of the vehicle remote ECU; by adding wildcards in the diagnostic flash sequence file, it can adapt to different types of diagnostic specifications, thereby improving the diagnostic flash efficiency of the vehicle remote ECU.
[0124] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A vehicle remote ECU diagnostic flashing method, characterized in that: include: Obtain the vehicle-side upgrade package and vehicle-side ECU flashing requirements, and parse the vehicle-side upgrade package according to a preset upgrade package parsing tool to obtain an initial diagnostic flashing sequence; Generate a diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template; Determine the wildcard required for the vehicle-side ECU flashing according to the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirement, and generate a diagnostic flashing sequence file according to the wildcard and the diagnostic flashing instruction; The vehicle-side upgrade package and the diagnostic flashing sequence file are associated to generate a task package, so that the vehicle-side performs diagnostic flashing on the vehicle-side ECU according to the task package.
2. A vehicle remote ECU diagnostic flashing method as claimed in claim 1, characterized in that: The obtaining of the vehicle-side upgrade package and parsing the vehicle-side upgrade package according to a preset upgrade package parsing tool to obtain the initial diagnostic flashing sequence specifically includes: Identify the format of the upgrade file in the vehicle-side upgrade package, and select the first upgrade file in the preset format set; Performing syntax analysis on the first upgrade file according to a preset upgrade package parsing tool to extract addresses, data segments and verification information in the first upgrade file; An initial diagnostic flash sequence is generated according to the address, data segment and verification information.
3. A vehicle remote ECU diagnostic flashing method as claimed in claim 1 or 2, characterized in that: The generating of the diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template specifically includes: Generate an erase instruction, a download trigger instruction, a data download instruction, and a download end instruction according to the upgrade file in the vehicle-side upgrade package, and generate a standard diagnostic instruction according to the erase instruction, the download trigger instruction, the data download instruction, and the download end instruction; Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to generate a flash instruction; A diagnostic flashing instruction is generated according to the standard diagnostic instruction and the flashing instruction.
4. A vehicle remote ECU diagnostic flashing method as claimed in claim 3, characterized in that: The mapping of the initial diagnostic flash sequence according to the preset diagnostic flash sequence template to generate a flash instruction specifically includes: Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to determine ECU flash attributes, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID, and module start address and length; Generate a flashing instruction according to the ECU flashing attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module starting address and length.
5. A vehicle remote ECU diagnostic flashing method as claimed in claim 1, characterized in that: The step of determining the wildcard required for the vehicle-side ECU flashing according to the initial diagnostic flashing sequence and the vehicle-side ECU flashing requirement, and generating a diagnostic flashing sequence file according to the wildcard and the diagnostic flashing instruction, specifically includes: Determine a wildcard required for flashing the vehicle-side ECU according to the flashing requirement of the vehicle-side ECU, and insert the wildcard into the initial diagnostic flashing sequence to generate a first diagnostic flashing sequence; The first diagnostic flash sequence, the diagnostic flash instruction and the preset diagnostic flash sequence template are combined to generate a diagnostic flash sequence file.
6. A vehicle remote ECU diagnostic flashing method as claimed in claim 4, characterized in that: The step of associating the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package, so that the vehicle-side performs diagnostic flashing on the vehicle-side ECU according to the task package, specifically includes: Associating the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package; The task package is sent to the vehicle side, so that the vehicle side extracts the flash file and the diagnostic flash sequence file in the task package, and then the vehicle side generates a diagnostic flash instruction set according to the flash file and the diagnostic flash sequence file, so that the vehicle side performs diagnostic flash on the vehicle side ECU according to the diagnostic flash instruction set.
7. A vehicle remote ECU diagnostic flashing device, characterized in that: include: Upgrade package parsing module, diagnostic flashing instruction generation module, diagnostic flashing sequence file generation module and vehicle-side ECU diagnostic flashing module; The upgrade package parsing module is used to obtain the vehicle-side upgrade package and the vehicle-side ECU flashing requirement, and parse the vehicle-side upgrade package according to the preset upgrade package parsing tool to obtain the initial diagnosis flashing sequence; The diagnostic flashing instruction generation module is used to generate a diagnostic flashing instruction according to the vehicle-side upgrade package and the initial diagnostic flashing sequence in combination with a preset diagnostic flashing sequence template; The diagnostic flash sequence file generation module is used to determine the wildcard required for the vehicle-side ECU flash according to the initial diagnostic flash sequence and the vehicle-side ECU flash requirement, and generate a diagnostic flash sequence file according to the wildcard and the diagnostic flash instruction; The vehicle-side ECU diagnostic flashing module is used to associate the vehicle-side upgrade package with the diagnostic flashing sequence file to generate a task package so that the vehicle-side can perform diagnostic flashing on the vehicle-side ECU according to the task package.
8. A vehicle remote ECU diagnostic flashing device as claimed in claim 7, characterized in that: The upgrade package parsing module includes: an upgrade package parsing unit; The upgrade package parsing unit is used to identify the format of the upgrade file in the vehicle-side upgrade package and filter out the first upgrade file in the preset format set; Performing syntax analysis on the first upgrade file according to a preset upgrade package parsing tool to extract addresses, data segments and verification information in the first upgrade file; An initial diagnostic flash sequence is generated according to the address, data segment and verification information.
9. A vehicle remote ECU diagnostic flashing device as claimed in claim 7 or 8, characterized in that: The diagnostic flashing instruction generation module comprises: a diagnostic flashing instruction generation unit; The diagnostic flashing instruction generating unit is used to generate an erase instruction, a trigger download instruction, a data download instruction and a download end instruction according to the upgrade file in the vehicle-side upgrade package, and generate a standard diagnostic instruction according to the erase instruction, the trigger download instruction, the data download instruction and the download end instruction; Mapping the initial diagnostic flash sequence according to a preset diagnostic flash sequence template to generate a flash instruction; A diagnostic flashing instruction is generated according to the standard diagnostic instruction and the flashing instruction.
10. A vehicle remote ECU diagnostic flashing device as claimed in claim 9, characterized in that: The diagnostic flashing instruction generating unit comprises: a flashing instruction generating subunit; The flash instruction generation subunit is used to map the initial diagnostic flash sequence according to the preset diagnostic flash sequence template, determine the ECU flash attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module start address and length; Generate a flashing instruction according to the ECU flashing attribute, address length format identifier, exit transmission format, ECU request ID, ECU response ID, function search ID and module starting address and length.
Citation Information
Cited By
Dynamic configuration design method and system for UDS diagnosis flash sequence of vehicle remote OTA upgrade
CN122239675A