Vehicle measurement data conversion processing method, system, device and medium

By automating the processing of vehicle measurement data, generating unique identifiers and aligning time series, the problem of low efficiency in manual operations in existing technologies is solved, and the convenience of automated data collection and simulation analysis is achieved, thereby reducing costs.

CN119938763BActive Publication Date: 2025-11-21SINO TRUK JINAN POWER CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510071271.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-11-21
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

The existing vehicle measurement data processing process requires a lot of manual work, resulting in low work efficiency.

Method used

The system uses automated processing methods to obtain the channel group and number of channels in the MDF file corresponding to the CAN bus, generate unique identifiers, create temporary variables, perform time series alignment, and automatically add signal input modules to the MATLAB workspace, reducing manual operations.

Benefits of technology

It has enabled the automated collection and import of vehicle measurement data, which has improved work efficiency, reduced human error, improved data accuracy and the convenience of simulation analysis, and reduced labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938763B_ABST
    Figure CN119938763B_ABST
Patent Text Reader

Abstract

The application discloses a kind of vehicle measurement data conversion processing method, system, equipment and medium, mainly related to measurement data conversion technical field, to solve the problem of low efficiency of existing vehicle data processing process needing manual operation. Including: according to the number of channel signal units in channel group, traversing reading the measurement data of each channel signal unit in the current sampling period;The aligned data is imported into matlab workspace, and the name is updated to character variable name simultaneously;Corresponding signal input module is automatically added in the application software to be simulated, and the data associated in matlab workspace of each signal input module is set;The input interface module is replaced by the signal input module with the same name;The sampling time interval and the maximum time parameter of the amount of time in matlab workspace are extracted, and then the simulation step and the simulation time parameter in the application software to be simulated are adjusted, to obtain the adjusted application software.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of measurement data conversion, and particularly relates to a vehicle measurement data conversion processing method, system, device and medium. BACKGROUND

[0002] When testing a vehicle electronic control system, an engineer measures and collects real-time working data of the electronic control system through a professional data monitoring device and records the data, and the engineer verifies the effect of the control software running and locates problems by simulating and analyzing the recorded data in detail.

[0003] At present, vehicle data collection mainly depends on a CAN bus device, which is responsible for collecting and recording files with extensions of dat or mdf. In the development stage of the vehicle electronic control system, the control application software usually adopts a model-based development method. This method is based on matlab, develops a control strategy by constructing a model, automatically generates application code, and then realizes specific control functions of the vehicle.

[0004] However, when the engineer obtains the measurement record files, the engineer needs to analyze the data by means of a special device software and convert the data into excel or other formats for export. Subsequently, the data needs to be imported through the application software matlab, and the engineer needs to manually compare signal variables and set a complex test environment to perform simulation analysis. This process not only involves a large amount of manual operation, but also is time-consuming and lengthy, which greatly reduces the work efficiency. Therefore, a vehicle measurement data conversion processing method, system, device and medium are urgently needed to solve the technical problems of manual operation and low work efficiency in the above vehicle data processing process. SUMMARY

[0005] In view of the above problems of the prior art, the present application provides a vehicle measurement data conversion processing method, system, device and medium to solve the problems of manual operation and low work efficiency in the existing vehicle data processing process.

[0006] In a first aspect, the present application provides a vehicle measurement data conversion processing method, which comprises the following steps:

[0007] The channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle are acquired; each channel signal unit under each channel group is traversed according to the number of channel groups; a unique identification name of the current channel signal unit is generated according to the channel group name and the channel signal unit name, the identification name is assigned to a character variable, and a character variable set is obtained; the measurement data of each channel signal unit in the current sampling period is read and traversed according to the number of channel signal units in the current channel group; a temporary variable tempData of the current channel signal unit in the current channel group is created, the time quantity of the measurement data is assigned to a time variable tempData.Time in tempData, and the data quantity of the measurement data is assigned to a data variable tempData.Data in tempData; the data in the temporary variable tempData read in the current sampling period is time series aligned according to the time quantity; the aligned temporary variable tempData is imported into a matlab workspace, and the name of the temporary variable tempData is updated as the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups is read; according to the temporary variable tempData in the matlab workspace, a corresponding signal input module is automatically added in the application software to be simulated, and the temporary variable tempData associated with each signal input module in the matlab workspace is set; the input interface module in the application software to be simulated is replaced by the signal input module with the same name; the sampling time interval and the maximum time parameter of the time quantity in the matlab workspace are extracted, and then the simulation step and the simulation time parameters in the application software to be simulated are adjusted, to obtain the adjusted application software, run the application software, obtain test data through the input interface module, and then obtain a simulation result.

[0008] In an implementation form of the present application, the unique identification name of the current channel signal unit is generated according to the channel group name and the channel signal unit name, and the identification name is assigned to a character variable, specifically including:

[0009] The name character of the channel signal unit is extracted;

[0010] Only preset character types in the name character are reserved to obtain an initial channel signal unit name; wherein the preset character types at least include: uppercase and lowercase letters, and an underscore;

[0011] Then the unique identification name of the current channel signal unit is generated in the form of: channel group serial number + initial channel signal unit name;

[0012] The identification name is assigned to a character variable ChanneLName.

[0013] In an implementation form of the present application, the data in the temporary variable tempData read in the current sampling period is time series aligned according to the time amount, specifically comprising:

[0014] The time amount in the current temporary variable tempData is read to obtain the time amount at the initial time;

[0015] When the time amount at the initial time is not 0, the time amount of the time series in the temporary variable tempData is corrected to start from the 0 time.

[0016] In an implementation form of the present application, in the matlab workspace according to the temporary variable tempData, the corresponding signal input module is automatically added in the application software to be simulated, and the method further comprises:

[0017] The number of temporary variables tempData imported into the matlab workspace and the name of the temporary variable tempData are automatically counted;

[0018] The empty data and data conversion problems generated by importing the temporary variable tempData into the matlab workspace are obtained at the same time;

[0019] The number of temporary variables tempData, the name of the temporary variable tempData, the empty data and the data conversion problem are output and displayed in the matlab window.

[0020] In a second aspect, the present application provides a vehicle measurement data conversion processing system, the system comprising:

[0021] The acquisition component is used to acquire a channel group and a channel group quantity of an mdf file corresponding to a CAN bus in a vehicle; a character variable obtaining component is used to traverse a channel signal unit under each channel group according to the channel group quantity; a unique identification name of a current channel signal unit is generated according to a channel group name and a channel signal unit name, the identification name is assigned to a character variable, and a character variable set is obtained; a temporary variable traversing obtaining component is used to traverse and read measurement data of each channel signal unit in a current sampling period according to a quantity of channel signal units in a current channel group; a temporary variable tempData of the current channel signal unit of the current channel group is created, a time quantity of the measurement data is assigned to a time variable tempData.Time in tempData, and a data quantity of the measurement data is assigned to a data variable tempData.Data in tempData; a data importing component is used to perform time sequence alignment on data in the temporary variable tempData read in the current sampling period according to the time quantity; the aligned temporary variable tempData is imported into a matlab workspace, and a name of the temporary variable tempData is updated as a character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups is read; a module replacing component is used to automatically add a corresponding signal input module in application software to be simulated according to the temporary variable tempData in the matlab workspace, and set the temporary variable tempData associated with each signal input module in the matlab workspace; an input interface module in the application software to be simulated is replaced by a signal input module with the same name; a simulation component is used to extract a sampling time interval and a maximum time parameter of the time quantity in the matlab workspace, and then adjust a simulation step and a simulation time parameter in the application software to be simulated, obtain adjusted application software, run the application software, obtain test data through the input interface module, and then obtain a simulation result.

[0022] In an implementation form of the present application, the character variable obtaining component comprises an identification assigning unit configured to extract a name character of the channel signal unit; only a preset character type in the name character is reserved to obtain an initial channel signal unit name; wherein the preset character type at least comprises: uppercase and lowercase letters, and an underscore; and then a unique identification name of the current channel signal unit is generated in the form of: a channel group serial number + the initial channel signal unit name; and the identification name is assigned to the character variable ChanneLName.

[0023] In an implementation form of the present application, the data importing component comprises a time alignment unit,

[0024] configured to read a time quantity in the current temporary variable tempData to obtain a time quantity of an initial time point;

[0025] When the time amount of the initial moment is not 0, the time amount of the time sequence in the temporary variable tempData is corrected to start from the 0 moment.

[0026] In an implementation form of the present application, the system further comprises a workspace display component for automatically counting the number of temporary variables tempData imported into the matlab workspace and the names of the temporary variables tempData; simultaneously obtaining the null data and data conversion problems generated by importing the temporary variables tempData into the matlab workspace; and outputting and displaying the number of temporary variables tempData, the names of the temporary variables tempData, the null data and the data conversion problems in the matlab window.

[0027] In a third aspect, the present application provides a vehicle measurement data conversion processing device, comprising: a processor; and a memory having executable code stored thereon, when the executable code is executed, causing the processor to perform any one of the vehicle measurement data conversion processing methods described above.

[0028] In a fourth aspect, the present application provides a non-volatile computer storage medium having computer instructions stored thereon, when the computer instructions are executed, implementing any one of the vehicle measurement data conversion processing methods described above.

[0029] Those skilled in the art can understand that the present application has at least the following beneficial effects:

[0030] The present application provides a vehicle measurement data conversion processing method, system, device and medium, which can automatically analyze test data, extract each data information in the test data, align with the time axis, optimize the information variable name, generate time sequence measurement data variables and automatically export to the workspace of the application software simulation. Then in the control model, automatically create a signal input module according to the workspace variable, and associate it to the control model strategy module, so as to automatically introduce the vehicle collected data into the simulation test environment.

[0031] Specifically,

[0032] 1. Automatic processing is realized: the present application automatically acquires the channel group and the number of channel groups of the mdf file corresponding to the CAN bus, and traverses the channel signal unit under each channel group, realizing automatic collection of data. By generating a unique identifier, creating a temporary variable, aligning the time sequence, etc., the measurement data is automatically imported into the matlab workspace, reducing manual operation.

[0033] 2. Improved work efficiency: Traditional data processing methods require engineers to manually compare signal variables and set up test environments, which is time-consuming and lengthy. The method in this application can automatically complete these steps, improving work efficiency. Automated processing reduces human error and improves the accuracy and reliability of data.

[0034] 3. Facilitates Simulation Analysis: This application can automatically add corresponding signal input modules and set associated variables in the application software to be simulated based on temporary variables in the MATLAB workspace. By extracting time parameters from the MATLAB workspace, it automatically adjusts the simulation step size and simulation time parameters in the application software to be simulated, making simulation analysis more convenient and accurate.

[0035] 4. Reduced costs: Automated processing reduces the need for manual operations, thereby lowering labor costs. Improved work efficiency and accuracy also indirectly reduce additional costs incurred due to errors or delays. Attached Figure Description

[0036] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is a flowchart of a vehicle measurement data conversion and processing method provided in an embodiment of this application.

[0038] Figure 2 This is a schematic diagram of the internal structure of a vehicle measurement data conversion and processing system provided in an embodiment of this application.

[0039] Figure 3 This is a schematic diagram of the internal structure of a vehicle measurement data conversion and processing device provided in an embodiment of this application. Detailed Implementation

[0040] Those skilled in the art should understand that the embodiments described below are merely preferred embodiments of this disclosure and do not imply that this disclosure can only be implemented through these preferred embodiments. These preferred embodiments are merely used to explain the technical principles of this disclosure and are not intended to limit the scope of protection of this disclosure. Based on the preferred embodiments provided by this disclosure, all other embodiments obtained by those skilled in the art without creative effort should still fall within the scope of protection of this disclosure.

[0041] It is also important to note that the terms "comprises" and / or "comprising," or other variations such as "includes," "including" or "contains," "containing," etc., shall not be construed as the use of an exclusive or exhaustive listing of the recited elements, but rather shall be read to mean that not all elements are listed and that additional elements that are neither enumerated nor more general can be present in the process, method, article, or apparatus. Additionally, it is understood that the use of "a" or "an", "the" or similar referents in the context of describing components that can comprise one or more elements will not be construed to mean there is only one of the element present, but rather that a single or a combination of the elements can be present. Further, unless specified otherwise, the use of "about" or "approximately" in conjunction with a reference to a value or a dimension is inclusive of variations that can exist in manufacturing, shipping, and other processes associated with the manufacture of the components under discussion, as well as variations that exist during the use of such components.

[0042] The current vehicle data acquisition mainly acquires and records the files with extensions of dat or mdf through CAN bus equipment for data analysis. MDF (Measurement Data Format) is defined by the Automation and Measurement System Standards Association. The measurement data recorded by professional tools such as INCA and CANape are in MDF format. INCA changes the file suffix to.dat, but the essence is still MDF. Therefore, the analysis of measurement data is mainly the analysis of mdf format data.

[0043] In the present application, the conversion processing of vehicle measurement data can be realized by using the matlab script language in combination with the above steps. Matlab is a mainstream tool for model development based on application software, which facilitates the integration of tool chain software. The use of the script language for analysis can reduce the difficulty of generation and processing of vehicle test data files, and unify with the application software development tool, thereby facilitating the development of engineers to carry out the work of test data processing and simulation environment building.

[0044] The technical solutions of the embodiments of the present application will be described in detail below with reference to the drawings.

[0045] The embodiment provides a vehicle measurement data conversion processing method, as shown in Figure 1 The method provided by the embodiment of the present application mainly comprises the following steps:

[0046] Step 110, acquiring the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle.

[0047] It should be noted that the mdf value contains multiple channel groups, and each channel group has multiple channel information units.

[0048] Step 120, traversing the channel signal unit under each channel group according to the number of channel groups; generating a unique identification name of the current channel signal unit according to the channel group name and the channel signal unit name, assigning the identification name to a character variable, and obtaining a character variable set.

[0049] It should be noted that the unique identification name of the current channel signal unit is generated to avoid the problem of repeated variable name error of the same channel name in different channel groups.

[0050] According to the channel group name and the channel signal unit name, the unique identification name of the current channel signal unit is generated, and the identification name is assigned to the character variable. Specifically, the unique identification name of the current channel signal unit can be generated in the following manner:

[0051] The name character of the channel signal unit is extracted; only the preset character type in the name character is retained to obtain an initial channel signal unit name; wherein the preset character type at least includes: uppercase and lowercase letters, and underscore; and then the unique identification name of the current channel signal unit is generated in the form of channel group serial number + initial channel signal unit name; and the identification name is assigned to the character variable ChanneLName.

[0052] In step 130, according to the number of channel signal units in the current channel group, the measurement data of each channel signal unit in the current sampling period is read and traversed; a temporary variable tempData of the current channel signal unit of the current channel group is created, the time amount of the measurement data is assigned to the time variable tempData.Time in tempData, and the data amount of the measurement data is assigned to the data variable tempData.Data in tempData.

[0053] It should be noted that the measurement data is composed of a data sequence (data amount) and a time sequence (time amount).

[0054] In step 140, according to the time amount, the data in the temporary variable tempData read in the current sampling period is time sequence aligned; the aligned temporary variable tempData is imported into the matlab workspace, and the name of the temporary variable tempData is updated to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups is read.

[0055] In some embodiments, according to the time amount, the data in the temporary variable tempData read in the current sampling period is time sequence aligned, and the aligned temporary variable tempData is imported into the matlab workspace, and the name of the temporary variable tempData is updated to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups is read.

[0056] The time amount in the current temporary variable tempData is read to obtain the time amount of the initial time; when the time amount of the initial time is not 0, the time amount of the time sequence in the temporary variable tempData is corrected to start from 0 time.

[0057] It needs to be explained that in the actually recorded test data, the read channel time sequence is generally not from 0 time, and sometimes there is a large value at the initial time, which is not convenient for subsequent data processing and simulation. Therefore, the obtained tempData.Time time sequence data needs to be processed to correct the time sequence to start from 0 time, and the sampling period is unchanged.

[0058] Step 150, according to the temporary variable tempData in the matlab workspace, automatically add corresponding signal input modules in the application software to be simulated, and set the temporary variable tempData associated with each signal input module in the matlab workspace; replace the input interface module in the application software to be simulated with the signal input module of the same name.

[0059] In addition, after the above channel group loop traversal, the number of exported workspace variables and the variable names corresponding to each channel group are counted, and the channel null data or other conversion problems are recorded in the log file and also output and displayed in the matlab window. As an example, the step can be specifically:

[0060] The number of temporary variables tempData imported into the matlab workspace and the name of the temporary variable tempData are automatically counted; the null data and data conversion problems generated by importing the temporary variable tempData into the matlab workspace are obtained; the number of temporary variables tempData, the name of the temporary variable tempData, the null data and the data conversion problems are output and displayed in the matlab window.

[0061] Step 160, extract the sampling time interval and the maximum time parameter of the matlab workspace, and then adjust the simulation step and the simulation time parameter in the application software to be simulated, obtain the adjusted application software, run the application software, obtain the test data through the input interface module, and then obtain the simulation result.

[0062] In addition, the application Figure 2 A vehicle measurement data conversion processing system is provided for the embodiment of the application. As shown in Figure 2 The system provided by the embodiment of the application mainly comprises:

[0063] The acquisition component 210 is configured to acquire the channel groups and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle.

[0064] The character variable obtaining component 220 is configured to traverse the channel signal units under each channel group according to the number of channel groups; generate a unique identification name of the current channel signal unit according to the channel group name and the channel signal unit name, and assign the identification name to a character variable to obtain a character variable set.

[0065] The character variable obtaining component 220 includes an identification assigning unit,

[0066] The name character of the channel signal unit is extracted, only the preset character type in the name character is reserved, and an initial channel signal unit name is obtained; wherein, the preset character type at least includes: uppercase and lowercase letters, and an underscore; and then a unique identification name of the current channel signal unit is generated in the form of: channel group serial number + initial channel signal unit name; and the identification name is assigned to the character variable ChanneLName.

[0067] The temporary variable traversal obtaining component 230 is used for traversing and reading the measurement data of each channel signal unit in the current sampling period according to the number of channel signal units in the current channel group; a temporary variable tempData of the current channel signal unit of the current channel group is created, the time amount of the measurement data is assigned to the time variable tempData.Time in tempData, and the data amount of the measurement data is assigned to the data variable tempData.Data in tempData.

[0068] The data importing component 240 is used for time sequence alignment of the data in the temporary variable tempData read in the current sampling period according to the time amount; the aligned temporary variable tempData is imported into the matlab workspace, and meanwhile, the name of the temporary variable tempData is updated as the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups is read.

[0069] The data importing component 240 includes a time alignment unit, which is used for reading the time amount in the current temporary variable tempData, obtaining the time amount of the initial time; when the time amount of the initial time is not 0, the time amount of the time sequence in the temporary variable tempData is corrected to start from 0 time.

[0070] The module replacing component 250 is used for automatically adding corresponding signal input modules in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and setting the temporary variable tempData associated with each signal input module in the matlab workspace; and the input interface module in the application software to be simulated is replaced by the signal input module with the same name.

[0071] The running simulation component 260 is used for extracting the sampling time interval and the maximum time parameter of the time amount in the matlab workspace, adjusting the simulation step length and the simulation time parameter in the application software to be simulated, obtaining the adjusted application software, running the application software, obtaining the test data through the input interface module, and then obtaining the simulation result.

[0072] The system further comprises a workspace display component for automatically counting the number of temporary variables tempData imported into the matlab workspace and the names of the temporary variables tempData; simultaneously obtaining the null data and data conversion problems generated by importing the temporary variables tempData into the matlab workspace; and outputting and displaying the number of temporary variables tempData, the names of the temporary variables tempData, the null data, and the data conversion problems in the matlab window.

[0073] The above is a method embodiment in the present application, based on the same inventive concept, the present embodiment also provides a vehicle measurement data conversion processing device. As shown in the figure, Figure 3 The device comprises a processor and a memory having executable code stored thereon, which, when executed, causes the processor to perform a vehicle measurement data conversion processing method as described in one of the above embodiments.

[0074] Specifically, the server end obtains the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle; traverses the channel signal units under each channel group according to the number of channel groups; generates a unique identifier name for the current channel signal unit according to the channel group name and the channel signal unit name, assigns the identifier name to a character variable, and obtains a character variable set; traverses and reads the measurement data of each channel signal unit in the current sampling period according to the number of channel signal units in the current channel group; creates a temporary variable tempData for the current channel signal unit of the current channel group, assigns the time amount of the measurement data to the time variable tempData.Time in tempData, and assigns the data amount of the measurement data to the data variable tempData.Data in tempData; performs time sequence alignment on the data in the temporary variable tempData read in the current sampling period according to the time amount; imports the aligned temporary variable tempData into the matlab workspace, and updates the name of the temporary variable tempData to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups is read; automatically adds corresponding signal input modules in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and sets the temporary variable tempData associated with each signal input module in the matlab workspace; replaces the input interface module in the application software to be simulated with a signal input module of the same name; extracts the sampling time interval and the maximum time parameter of the time amount in the matlab workspace, and then adjusts the simulation step and the simulation time parameter in the application software to be simulated to obtain the adjusted application software, runs the application software, obtains test data through the input interface module, and then obtains the simulation result.

[0075] In addition, the embodiment of the present application further provides a nonvolatile computer storage medium, which has executable instructions stored thereon, and the executable instructions, when executed, realize the vehicle measurement data conversion processing method.

[0076] So far, the technical solutions of the present disclosure have been described in combination with the foregoing embodiments, but those skilled in the art can easily understand that the protection scope of the present disclosure is not limited to these specific embodiments. Without deviating from the technical principles of the present disclosure, those skilled in the art can split and combine the technical solutions in the above-described embodiments, or make equivalent changes or replacements to the related technical features, and any changes, equivalent replacements, improvements, etc. made within the technical concept and / or technical principles of the present disclosure will fall within the protection scope of the present disclosure.

Claims

1. A vehicle measurement data conversion processing method characterized by comprising: The method comprises: Obtaining the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle; According to the number of channel groups, traversing each channel signal unit under each channel group; according to the channel group name and the channel signal unit name, generating a unique identification name of the current channel signal unit, assigning the identification name to a character variable, and obtaining a character variable set; According to the number of channel signal units in the current channel group, traversing and reading the measurement data of each channel signal unit in the current sampling period; creating a temporary variable tempData of the current channel signal unit of the current channel group, assigning the time amount of the measurement data to the time variable tempData.Time in tempData, and assigning the data amount of the measurement data to the data variable tempData.Data in tempData; According to the time amount, time series alignment is performed on the data in the temporary variable tempData read in the current sampling period; the aligned temporary variable tempData is imported into the matlab workspace, and the name of the temporary variable tempData is updated to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups is read; According to the temporary variable tempData in the matlab workspace, automatically adding a corresponding signal input module in the application software to be simulated, and setting the temporary variable tempData associated with each signal input module in the matlab workspace; replacing the input interface module in the application software to be simulated with the signal input module with the same name; Extracting the sampling time interval and the maximum time parameter of the time amount in the matlab workspace, and then adjusting the simulation step and the simulation time parameter in the application software to be simulated, obtaining the adjusted application software, running the application software, obtaining the test data through the input interface module, and then obtaining the simulation result.

2. The vehicle measurement data conversion processing method according to claim 1, characterized by, According to the channel group name and the channel signal unit name, a unique identification name of the current channel signal unit is generated, and the identification name is assigned to a character variable, which specifically comprises: Extracting the name characters of the channel signal unit; Only the preset character type in the name characters is retained to obtain the initial channel signal unit name; wherein the preset character type at least includes: uppercase and lowercase letters, and underscore; Further generating the unique identification name of the current channel signal unit: the form of channel group serial number+initial channel signal unit name; The identification name is assigned to the character variable ChanneLName.

3. The vehicle measurement data conversion processing method according to claim 1, characterized by, According to the time amount, the data in the temporary variable tempData read in the current sampling period is time series aligned, which specifically comprises: Reading the time amount in the current temporary variable tempData to obtain the initial time amount; When the initial time amount is not 0, the time amount of the time series in the temporary variable tempData is corrected to start from 0.

4. The vehicle measurement data conversion processing method according to claim 1, characterized by, The method further comprises the following steps before automatically adding corresponding signal input modules in the application software to be simulated according to the temporary variable tempData in the matlab workspace and setting the temporary variable tempData associated with each signal input module in the matlab workspace: The number of temporary variables tempData imported into the matlab workspace and the names of the temporary variables tempData are automatically counted; The null data and data conversion problems generated when the temporary variables tempData are imported into the matlab workspace are simultaneously obtained; The number of temporary variables tempData, the names of the temporary variables tempData, the null data and the data conversion problems are output and displayed in the matlab window.

5. A vehicle measurement data conversion processing system characterized by comprising: The system comprises: An acquisition component is configured to acquire a channel group and a channel group number of an mdf file corresponding to a CAN bus in a vehicle; A character variable obtaining component is configured to traverse a channel signal unit under each channel group according to the channel group number, and generate a unique identification name of the current channel signal unit according to the channel group name and the channel signal unit name, and assign the identification name to a character variable to obtain a character variable set; A temporary variable traversing obtaining component is configured to traverse and read measurement data of each channel signal unit in a current sampling period according to the number of channel signal units in the current channel group, and create a temporary variable tempData of the current channel signal unit of the current channel group, and assign a time amount of the measurement data to a time variable tempData.Time in the tempData, and assign a data amount of the measurement data to a data variable tempData.Data in the tempData; A data importing component is configured to perform time sequence alignment on data in the temporary variable tempData read in the current sampling period according to the time amount, import the aligned temporary variable tempData into the matlab workspace, and update the name of the temporary variable tempData to the name of the character variable corresponding to the channel signal unit, until the measurement data of all channel signal units in all channel groups is read; A module replacing component is configured to automatically add corresponding signal input modules in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and set the temporary variable tempData associated with each signal input module in the matlab workspace, and replace an input interface module in the application software to be simulated with a signal input module with the same name; A simulation running component is configured to extract a sampling time interval and a maximum time parameter of the time amount in the matlab workspace, adjust a simulation step and a simulation time parameter in the application software to be simulated, obtain an adjusted application software, run the application software, obtain test data through the input interface module, and obtain a simulation result.

6. The vehicle measurement data conversion processing system according to claim 5, characterized by, The character variable obtaining component comprises an identification assigning unit, configured to extract a name character of the channel signal unit; Only the preset character type in the name character is reserved to obtain an initial channel signal unit name; wherein the preset character type at least includes: capital and small letter, underscore; Further generate a unique identification name of the current channel signal unit: the form of channel group serial number + initial channel signal unit name; Assign the identification name to the character variable ChanneLName.

7. The vehicle measurement data conversion processing system according to claim 5, characterized by, The data import component includes a time alignment unit, For reading the time amount in the current temporary variable tempData, obtaining the time amount of the initial time; When the time amount of the initial time is not 0, correct the time amount of the time sequence in the temporary variable tempData to start from the 0 time.

8. The vehicle measurement data conversion processing system according to claim 5, characterized by, The system further includes a workspace display component, For automatically counting the number of temporary variables tempData imported into the matlab workspace and the name of the temporary variable tempData; At the same time, obtain the empty data and data conversion problem generated by importing the temporary variable tempData into the matlab workspace; Output and display the number of temporary variables tempData, the name of the temporary variable tempData, the empty data and the data conversion problem in the matlab window.

9. A vehicle measurement data conversion processing apparatus characterized by comprising: The device comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a vehicle measurement data conversion processing method according to any one of claims 1-4.

10. A non-transitory computer storage medium, comprising, having computer instructions stored thereon, which when executed, implement a vehicle measurement data conversion processing method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Data conversion method and device

    CN113254412A

  • Data conversion method and device, vehicle, electronic equipment and storage medium

    CN118158294A