Data conversion method and device, electronic equipment and storage medium

By constructing a descriptive structure for NVH test data and integrating channel data, the problem of inconsistent data formats generated by different devices was solved, data format unification was achieved, and data quality and analysis efficiency were improved.

CN120804192APending Publication Date: 2025-10-17GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510868200.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

The data formats generated by different NVH test equipment are diverse, which makes data analysis inconvenient.

Method used

By constructing a description structure of the test data and integrating the channel data, the data format is unified, including the construction of file description information and channel description information, and resampling is performed to adjust the sampling rate when necessary.

Benefits of technology

It improves data quality, simplifies data analysis process, and improves data analysis efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120804192A_ABST
    Figure CN120804192A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data conversion method and device, electronic equipment and a storage medium, and relates to the technical field of data processing.The method comprises the steps that first test data collected by all test equipment is obtained, and the test equipment is provided with at least one channel connected with a collection sensor; the first test data comprises first main body data and first description information; constructing a first description structure body corresponding to the first test data according to the first description information; extracting first channel data corresponding to each channel from the first main body data; and integrating the first description structural body and the first channel data to obtain the first target test data, so that data conversion is realized, the data format of the test data is unified, the data quality is improved, and the analysis efficiency of subsequent data is favorably improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, in particular to a data conversion method, a data conversion device, an electronic device and a computer readable storage medium. BACKGROUND

[0002] NVH (Noise, Vibration, Harshness) refers to the comprehensive performance evaluation index of noise, vibration and sound roughness generated by vehicles, machines or other industrial products during operation, and is an important standard for measuring product comfort and quality. For vehicles, noise refers to unnecessary sound that can be heard by the human ear, which can usually be measured in decibels, such as engine noise, wind noise and road noise; vibration refers to periodic oscillation generated by motion or force transmission during vehicle driving, which can be perceived by the human body through components such as steering wheels and seats; sound roughness can be used to describe the "uncomfortable feeling" caused by the combination of noise and vibration, such as low-frequency booming sound or sudden impact.

[0003] Among them, the NVH test is a key link to ensure product research and development and quality control, which can directly affect the use comfort, user experience, etc. However, in the process of performing the NVH test on the product, different test equipment will cause the NVH test data to have format diversification, thereby bringing inconvenience to the analysis of the NVH test data. SUMMARY

[0004] The embodiments of the present application provide a data conversion method, device, electronic device and computer readable storage medium to solve or partially solve the problem of non-uniform format of test data.

[0005] The embodiments of the present application disclose a data conversion method, comprising:

[0006] Obtaining first test data collected by each test equipment, the test equipment being configured with at least one channel connected with a collection sensor, the first test data comprising first main body data and first description information;

[0007] Constructing a first description structure corresponding to the first test data according to the first description information;

[0008] Extracting first channel data corresponding to each channel from the first main body data;

[0009] Integrating the first description structure and the first channel data to obtain first target test data.

[0010] In the embodiment of the present application, for the original test data, a description structure body with unified format is constructed based on the description information corresponding to the test data, then the channel data corresponding to each channel is obtained based on the dimension of the channel, and the description structure body and the channel data are integrated to realize data conversion, unify the data format of the test data, improve the data quality, and facilitate improving the analysis efficiency of subsequent data.

[0011] In some possible implementation manners, the first description information at least includes file description information and first channel description information, the first description structure body at least includes a file description structure body corresponding to the file description information and a first channel description structure body corresponding to the first channel description information, and the constructing the first description structure body corresponding to the first test data according to the first description information includes:

[0012] constructing a file description structure body corresponding to the first test data by using the file description information;

[0013] constructing a first channel description structure body corresponding to the first test data by using the channel description information.

[0014] In the embodiment of the present application, the first description structure body corresponding to the first test data is constructed based on the first description information, the corresponding description structure body is constructed under the condition of ensuring data consistency, data format conversion is realized, and test data in different data formats is converted into test data in the same format.

[0015] In some possible implementation manners, the file description information at least includes a file name, test time and channel quantity, and the constructing the file description structure body corresponding to the first test data by using the file description information includes:

[0016] constructing a file description structure body corresponding to the first test data by using the file name, test time and channel quantity.

[0017] In the embodiment of the present application, the corresponding file description structure body is constructed based on the file name, test time and channel quantity, which not only ensures data consistency and data integrity, but also converts data in different formats into a structure body with unified format, facilitating subsequent data analysis.

[0018] In some possible implementation manners, the first channel description information at least includes a channel name, a channel unit, a channel sampling rate, a first data length and an amplitude recovery coefficient, and the constructing the first channel description structure body corresponding to the first test data by using the channel description information includes:

[0019] The first test data corresponding to the first channel description structure is constructed by using the channel name, the channel unit, the channel sampling rate, the first data length, and the amplitude recovery coefficient.

[0020] In the embodiments of the present application, the corresponding channel description structure is constructed based on the channel name, the channel unit, the channel sampling rate, the first data length, and the amplitude recovery coefficient, which not only ensures the consistency and integrity of the data, but also converts the data of different formats into a structure with unified format, facilitating subsequent data analysis.

[0021] In some possible implementation manners, the method further includes:

[0022] If it is determined according to the first description information that the first test data needs to be resampled, a target sampling rate for the first test data is determined;

[0023] The first channel data is resampled according to the target sampling rate to obtain second channel data, and the first description information is updated based on the target sampling rate to obtain second description information;

[0024] The first description structure is updated by using the second description information to obtain a second description structure;

[0025] The second description structure and the second channel data are integrated to obtain second target test data.

[0026] In the embodiments of the present application, the standardization of data is realized by dynamically adjusting the sampling rate and resampling based on the adjusted sampling rate. For example, different types of signals can be standardized according to categories, avoiding redundancy caused by excessive sampling, thereby unifying the analysis standard of data.

[0027] In some possible implementation manners, the first description information at least includes first channel description information, and the first channel description information at least includes a channel name, a channel unit, and a channel sampling rate. If it is determined according to the first description information that the first test data needs to be resampled, a target sampling rate for the first test data is determined, including:

[0028] According to the channel unit, a standard sampling rate corresponding to a channel to which each channel name belongs is obtained;

[0029] If the channel sampling rate is greater than the standard sampling rate, the standard sampling rate is taken as a target sampling rate of a target channel to which the channel name belongs.

[0030] In the embodiment of the present application, by comparing the sampling rates, and in the case that the channel sampling rate is greater than the standard sampling rate, the standard sampling rate is taken as the actual sampling rate of the channel, the sampling rate is reduced, and based on the sampling mode of the reduced sampling rate, the high-frequency signal can be reduced and the calculation load can be reduced.

[0031] In some possible implementation manners, the first channel description information further includes a second data duration and an amplitude recovery coefficient, the second description information includes second channel description information, and the updating of the first description information based on the target sampling rate to obtain the second description information includes:

[0032] obtaining acquisition time information corresponding to the second channel data;

[0033] calculating the acquisition time information and the target sampling rate to obtain a second data duration;

[0034] updating the channel sampling rate in the first channel description information to the target sampling rate and updating the first data duration to the second data duration;

[0035] integrating the channel name, the channel unit, the target sampling rate, the second data duration and the amplitude recovery coefficient to obtain corresponding second channel description information.

[0036] In the embodiment of the present application, after the sampling rate is reduced, data is updated based on the result of resampling,

[0037] The embodiment of the present application further discloses a data conversion device, including:

[0038] a data acquisition module configured to acquire first test data collected by each test device, wherein the test device is configured with at least one channel connected to a collection sensor, and the first test data includes first main body data and first description information;

[0039] a structure construction module configured to construct a first description structure corresponding to the first test data according to the first description information;

[0040] a data extraction module configured to extract first channel data corresponding to each channel from the first main body data;

[0041] a data integration module configured to integrate the first description structure and the first channel data to obtain first target test data.

[0042] In some possible implementation manners, the first description information at least includes file description information and first channel description information, the first description structure at least includes a file description structure corresponding to the file description information and a first channel description structure corresponding to the first channel description information, and the structure construction module is specifically configured to:

[0043] construct the file description structure corresponding to the first test data by using the file description information;

[0044] construct the first channel description structure corresponding to the first test data by using the channel description information.

[0045] In some possible implementation manners, the file description information at least includes a file name, an experiment time and a channel number, and the structure construction module is specifically configured to:

[0046] construct the file description structure corresponding to the first test data by using the file name, the experiment time and the channel number.

[0047] In some possible implementation manners, the first channel description information at least includes a channel name, a channel unit, a channel sampling rate, a first data length and an amplitude recovery coefficient, and the structure construction module is specifically configured to:

[0048] construct the first channel description structure corresponding to the first test data by using the channel name, the channel unit, the channel sampling rate, the first data length and the amplitude recovery coefficient.

[0049] In some possible implementation manners, the method further includes:

[0050] a judgment module configured to determine a target sampling rate for the first test data if it is determined according to the first description information that the first test data needs to be resampled;

[0051] a resampling module configured to resample the first channel data according to the target sampling rate to obtain second channel data, and update the first description information based on the target sampling rate to obtain second description information;

[0052] a structure updating module configured to update the first description structure by using the second description information to obtain a second description structure;

[0053] a data processing module configured to integrate the second description structure and the second channel data to obtain second target test data.

[0054] In some possible implementation manners, the first description information at least includes first channel description information, and the first channel description information at least includes a channel name, a channel unit and a channel sampling rate. The determining module is specifically configured to:

[0055] acquire a standard sampling rate corresponding to a channel to which the channel name belongs according to the channel unit;

[0056] if the channel sampling rate is greater than the standard sampling rate, the standard sampling rate is taken as a target sampling rate of a target channel to which the channel name belongs.

[0057] In some possible implementation manners, the first channel description information further includes a second data duration and an amplitude recovery coefficient, and the second description information includes second channel description information. The resampling module is specifically configured to:

[0058] acquire acquisition time information corresponding to the second channel data;

[0059] perform calculation by using the acquisition time information and the target sampling rate to obtain a second data duration;

[0060] update the channel sampling rate in the first channel description information to the target sampling rate, and update the first data duration to the second data duration;

[0061] integrate the channel name, the channel unit, the target sampling rate, the second data duration and the amplitude recovery coefficient to obtain corresponding second channel description information.

[0062] Embodiments of the present application further disclose an electronic device, including:

[0063] one or more processors; and

[0064] one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the electronic device to perform the method according to the embodiments of the present application.

[0065] Embodiments of the present application further disclose a computer-readable storage medium having instructions stored thereon, when executed by one or more processors, cause the processors to perform the method according to the embodiments of the present application.

[0066] Embodiments of the present application have the following advantages:

[0067] In the embodiment of the present application, in the process of managing test data, the first test data collected by each test device can be acquired, wherein the test device is configured with at least one channel connected to a collection sensor, the first test data includes first main data and first description information, then the first description structure corresponding to the first test data can be constructed according to the first description information, then the first channel data corresponding to each channel is extracted from the first main data, and then the first description structure and the first channel data are integrated to obtain the first target test data, so that for the original test data, the description structure with unified format is constructed based on the description information corresponding to the test data, then the channel data corresponding to each channel is acquired based on the dimension of the channel, and then the description structure and the channel data are integrated to realize data conversion, unify the data format of the test data, improve the data quality, and facilitate to improve the analysis efficiency of subsequent data. BRIEF DESCRIPTION OF DRAWINGS

[0068] Figure 1 is a step flow chart of a data conversion method provided in the embodiment of the present application;

[0069] Figure 2 is a schematic diagram of a file description structure provided in the embodiment of the present application;

[0070] Figure 3 is a schematic diagram of a channel description structure provided in the embodiment of the present application;

[0071] Figure 4 is a schematic diagram of data format conversion provided in the embodiment of the present application;

[0072] Figure 5 is a schematic diagram of data format conversion provided in the embodiment of the present application;

[0073] Figure 6 is a schematic diagram of data format conversion provided in the embodiment of the present application;

[0074] Figure 7 is a structural block diagram of a data conversion device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0075] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.

[0076] As an example, there are different NVH test equipment suppliers, even if the NVH test equipment of the same enterprise, it can come from different suppliers, and during the process of NVH test, the NVH test equipment generated by different suppliers has the problem of different data formats, at the same time, with the upgrading iteration of the test software, the data format is easy to change, and then the NVH test data is various, which brings great inconvenience to the data analysis of NVH.

[0077] To this end, in the present application, in the process of managing test data, the first test data collected by each test equipment can be obtained, wherein the test equipment is configured with at least one channel connected to the acquisition sensor, the first test data includes first main data and first description information, then the first description structure corresponding to the first test data can be constructed according to the first description information, then the first channel data corresponding to each channel is extracted from the first main data, and then the first description structure and the first channel data are integrated to obtain the first target test data, so that for the original test data, the description structure with unified format is constructed based on the description information corresponding to the test data, then the channel data corresponding to each channel is obtained based on the dimension of the channel, and then the description structure and the channel data are integrated to realize data conversion, unify the data format of the test data, improve the data quality, and facilitate to improve the analysis efficiency of subsequent data.

[0078] In order for those skilled in the art to better understand the technical solutions in the embodiments of the present application, some technical features involved in the embodiments of the present application are explained and described as follows:

[0079] The number of channels can be the total number of signal paths that can be independently measured by the data acquisition system simultaneously, for example, a 32-channel system can simultaneously connect 32 sensors and collect corresponding data through 32 sensors.

[0080] The channel unit can be the physical quantity unit of the original signal collected by each channel after conversion, such as acceleration: g or m / s 2 , sound pressure: Pa or dB, etc.

[0081] The channel amplitude data can be the amplitude of the time domain or frequency domain signal collected by the channel, such as vibration acceleration peak value 5g, noise sound pressure 0.1Pa, etc.

[0082] An amplitude recovery coefficient, which can be the percentage of the recovery ability of the data acquisition system to the true signal amplitude, different channels, in the channel unit corresponding to the channel, determine the corresponding amplitude recovery coefficient, for example, assuming that the channel unit is g or m / s2, the corresponding amplitude recovery coefficient can be 0.98-1.02 (i.e. 98%-102%); Assuming that the channel unit is Pa or dB, the corresponding amplitude recovery coefficient can be 0.99-1.01 (i.e. 99%-101%); Assuming that the channel unit is a composite index (such as a weighted combination between vibration and sound pressure), the corresponding amplitude recovery coefficient can be 0.9-1.1 (due to the difference in human ear sensitivity) and the like.

[0083] Channel sampling rate, which can be the number of data collected per second for a single channel. With the change of the sampling rate, the corresponding data length of the collected data also changes linearly. In the case of constant sampling time, if the sampling rate increases, the data length increases; if the sampling rate decreases, the data length decreases.

[0084] Reference Figure 1 A step flow chart of a data conversion method provided by an embodiment of the present application is shown, which can specifically include the following steps:

[0085] Step 101, obtaining first test data collected by each test device, the test device being configured with at least one channel connected to a collection sensor, the first test data including first main data and first description information;

[0086] In the embodiments of the present application, during the process of NVH testing of related products, related data in the NVH test process can be collected by different test devices, so as to perform the test based on the collected data. However, during the management of the NVH test data, the data collected by different test devices may have the problem of non-uniform data format, which brings great inconvenience to the data analysis of NVH. In this regard, the test data collected by different test devices can be converted in the corresponding data format to obtain test data with uniform format, which is not only conducive to data management, but also conducive to data analysis.

[0087] Among them, for each test device, it can be configured with at least one channel connected to a collection sensor, so as to collect data based on connecting different collection sensors, for example, assuming that the test product is a vehicle, during the process of testing the vehicle for outdoor wind noise, the test for the external microphone array and the surface pressure sensor can be configured with 32-128 channels, such as 24 channels (6 external microphones x 4 directions), 48 channels (12 surface pressure sensors x 4 measuring points), so as to effectively capture the corresponding noise source by reasonably configuring the number of channels and ensure the appropriate amount of data for data analysis.

[0088] In addition, for the test data, it can include subject data and descriptive information, wherein the subject data can be time domain data (or referred to as time domain signal) collected from the sensor and converted into engineering physical quantity, the time domain data can be the core result of the test, bearing the real physical response of the measured object; and the descriptive information can be metadata associated with the time domain data, used to explain the background information such as the source of the data, the test condition, the equipment parameter, etc., such as test condition information (such as working condition parameter, environment parameter, test time stamp, etc.), equipment configuration information (such as sensor parameter, acquisition system configuration parameter, channel parameter, etc.), data processing information (such as calibration record, filtering setting, and unit conversion, etc.), etc., which is not limited in the present application.

[0089] In step 102, a first description structure corresponding to the first test data is constructed according to the first description information.

[0090] When the first test data requiring format conversion is determined, the corresponding first description information can be extracted from the first test data, respectively, so as to construct the first description structure corresponding to the first test data based on the first description information, to realize the conversion of the data format under the condition of ensuring the consistency of the data, so as to convert the test data in different data formats into the test data in the same format.

[0091] In some possible implementation manners, the first description information can at least include file description information and first channel description information, the file description information can be used to describe the background information of the entire time domain data file, used to explain the global attribute and storage structure of the test (such as test time, channel number, and file name, etc.), through the file description information, the traceability of the data file and the support for joint analysis of multiple files can be determined; and the channel description information can be used to describe the sensor attribute, signal type, and acquisition parameter of a single channel, etc., through the channel description information, the physical meaning of the signal can be determined, and the inter-channel correlation analysis can be supported.

[0092] The first description structure constructed can include a file description structure corresponding to the file description information and a first channel description structure corresponding to the first channel description information, and in the process of constructing the first description structure, the file description information can be used to construct the file description structure corresponding to the first test data, and the channel description information can be used to construct the first channel description structure corresponding to the first test data, under the condition of ensuring the consistency of the data, based on the construction of the file description structure and the channel description structure, the readability, analyzability, and reproducibility of the NVH data can be ensured, and the conversion of the data format is realized, so as to convert the test data in different data formats into the test data in the same format.

[0093] In some possible implementation manners, assuming that the file description information at least includes the file name, the test time, and the number of channels, the file name, the test time, and the number of channels can be used to construct a file description structure corresponding to the first test data. For example, referring to Figure 2 FIG. 1 shows a schematic diagram of a file description structure provided in an embodiment of the present application. The file description information can be extracted from the first description information, and then the test time (Date), the number of channels (Number_Of_Channels), the file name (File_Name), and the like can be extracted from the file description information and saved to the file description structure. The field can be File_Header, so as to realize the unification of data formats by extracting the file description information from test data in different data formats and constructing the file description structure corresponding to the file description information.

[0094] Correspondingly, assuming that the first channel description information at least includes the channel name, the channel unit, the channel sampling rate, the first data length, and the amplitude recovery coefficient, the channel name, the channel unit, the channel sampling rate, the first data length, and the amplitude recovery coefficient can be used to construct a first channel description structure corresponding to the first test data. For example, referring to Figure 3 FIG. 2 shows a schematic diagram of a channel description structure provided in an embodiment of the present application. After the corresponding channel description information is extracted from the first description information, the channel name (Channel_Name), the channel unit (Channel_Unit), the channel sampling rate (Sample Frequency), the first data length (Number_Of_Samples_PerChannel), and the amplitude recovery coefficient (Correction), and the like can be extracted from the channel description information, and then saved to the channel description structure. The field can be Channel_Header, so as to realize the unification of data formats by extracting the file description information from test data in different data formats and constructing the file description structure corresponding to the file description information.

[0095] In step 103, the first channel data corresponding to each channel is extracted from the first main body data;

[0096] After the corresponding description structure is constructed, the first channel data corresponding to each channel also needs to be extracted from the first main body data. The first channel data can be the time-domain physical quantity signal after the engineering unit conversion, that is, the physical quantity time sequence directly converted from the original voltage of the sensor, so as to define the test background and the corresponding physical meaning based on the description structure describing the "identity card" of the test data, and the first channel data is used as the "original observation value" of the NVH test. Through the mutual cooperation between the description structure and the first channel data, the corresponding test data can be effectively reproduced.

[0097] For example, the first channel data corresponding to each channel can be extracted from the first body data, and then the amplitude data corresponding to the first channel data can be determined and stored in the corresponding channel array. The field can be Channel_i_Data, where i can be the sequence label of the channel. Optionally, the time data can be calculated from the sampling rate and data length, based on which the time data can be omitted.

[0098] Step 104 : Integrate the first description structure and the first channel data to obtain first target test data.

[0099] After constructing the file description structure, the first channel description structure, and the channel array corresponding to the first channel data through the above process, the file description structure, the first channel description structure, and the channel array can be integrated to obtain the first target test data corresponding to the test data. Thus, for the original test data, based on the description information corresponding to the test data, a description structure with a unified format is constructed, and then based on the dimension of the channel, the channel data corresponding to each channel is obtained, and then the description structure and the channel data are integrated to realize data conversion, unify the data format of the test data, improve the data quality, and help improve the analysis efficiency of subsequent data.

[0100] In one example, referring to Figure 4 , shows a schematic diagram of data format conversion provided in an embodiment of the present invention, wherein, in the NVH test, data can be collected by different test equipment, and the NVH test is performed based on the collected data. For example, the data a collected by the test equipment 1 is in data format ①, the data b collected by the test equipment 2 is in data format ②, the data c collected by the test equipment 3 is in data format ③, etc., then the data a, data b and data c can be converted into a unified data format through the data converter. For the data conversion process, taking data a as an example, the general data format may include a file description structure, a channel description structure, and a channel array, etc. Then the data converter can extract the corresponding main data and description information from data a, and then construct a file description structure (including test time, number of channels, etc.), a channel description structure (including channel name, channel unit, channel sampling rate, data length, and amplitude recovery coefficient, etc.) based on the description information, and construct a corresponding channel array (including channel amplitude data, etc.) based on the main data. Thus, for the original test data, based on the description information corresponding to the test data, a description structure with a unified format is constructed, and then based on the channel dimension, the channel data corresponding to each channel is obtained, and then the description structure and the channel data are integrated to realize data conversion, unify the data format of the test data, improve the data quality, and help improve the analysis efficiency of subsequent data.

[0101] In some possible implementation manners, during data conversion, the sampling rate can be dynamically adjusted to resample the test data. After the first description information is acquired, it can be determined whether the first test data needs to be resampled according to the first description information. If it is determined that the first test data needs to be resampled according to the first description information, a target sampling rate for the first test data is determined, the first channel data is resampled according to the target sampling rate to obtain second channel data, the first description information is updated based on the target sampling rate to obtain second description information, the second description information is used to update the first description structure to obtain a second description structure, and finally the second description structure and the second channel data are integrated to obtain second target test data. In this way, by dynamically adjusting the sampling rate and resampling based on the adjusted sampling rate, the data is standardized, for example, different types of signals can be standardized according to categories, redundancy caused by over-sampling is avoided, and the analysis standard of the data is unified.

[0102] Optionally, during the determination of whether to resample, the standard sampling rate corresponding to the channel to which each channel name belongs can be acquired according to the channel unit, and then the standard sampling rate is compared with the channel sampling rate. If the channel sampling rate is greater than the standard sampling rate, the standard sampling rate is used as the target sampling rate of the target channel to which the channel name belongs, and then resampling is performed based on the target sampling rate. If the channel sampling rate is less than or equal to the standard sampling rate, resampling is not needed.

[0103] For example, the standard sampling rate of noise is 25.6k, the standard sampling rate of vibration is 3.2k, and the sampling rate of rotation speed is 200k. When the channel sampling rate of the channel is lower than the standard sampling rate, the first channel data can be kept unchanged. If the channel sampling rate is higher than the standard sampling rate, the channel sampling rate can be reduced to the standard sampling rate, and then the first channel data is resampled based on the standard sampling rate to obtain corresponding second channel data. In this way, different types of signals can be standardized, and redundancy caused by over-sampling can be effectively avoided. At the same time, by reducing the sampling rate, high-frequency signals can be reduced, the computing load can be reduced (for example, the original sampling rate of vibration is reduced from 50kHz to 3.2kHz), and the storage space can be saved (for example, the storage space is saved to a certain extent when the 64-channel noise test is reduced from 25.6kHz to 12.8kHz).

[0104] After resampling, the description information can be updated based on the resampling result. Optionally, the acquisition time information corresponding to the second channel data can be obtained, and then the acquisition time information and the target sampling rate are used to calculate the second data duration. Then, the channel sampling rate in the first channel description information is updated to the target sampling rate, and the first data duration is updated to the second data duration. Finally, the channel name, the channel unit, the target sampling rate, the second data duration, and the amplitude recovery coefficient are integrated to obtain the corresponding second channel description information. Thus, after resampling, the description information is updated based on the sampling result, ensuring the consistency of the data.

[0105] Optionally, for the above sampling process, it can be combined with the conversion process. In the conversion process, the channel sampling rate is detected, and the channel sampling rate is compared with the standard sampling rate to determine whether resampling is needed. If needed, data format conversion is performed based on the resampling result. If not needed, data format conversion is performed based on the original test data. Thus, by repeatedly detecting resampling and data format conversion, NVH test time domain data in different formats can be converted into a standardized data format with unified format, which is beneficial for subsequent data analysis to improve the analysis efficiency of subsequent data.

[0106] In an example, referring to Figure 5 , a schematic diagram of data format conversion provided in the embodiment of the application is shown. In the NVH test, data can be collected by different test equipment, and the NVH test is performed based on the collected data. For example, the data a collected by the test equipment 1 is in data format ①, the data b collected by the test equipment 2 is in data format ②, the data c collected by the test equipment 3 is in data format ③, and the like. Then, the data a, the data b, and the data c can be converted into a unified data format by the data converter. Accordingly, referring to Figure 6, shows a schematic diagram of data format conversion provided in an embodiment of the present invention. Taking data a as an example, its channel description information includes file description information and channel description information. If the channel sampling rate in the channel description information is lower than or equal to the standard sampling rate, the original channel data, the original channel sampling rate, the original data length and other related information are used to construct a corresponding channel description structure and a channel array; if the channel sampling rate in the channel description information is higher than the standard sampling rate, the standard sampling rate can be used for resampling to obtain new channel data, a new channel sampling rate (i.e., the standard sampling rate) and a new data length, etc., and then the corresponding channel description structure, channel array, etc. are constructed based on the resampled data. Accordingly, the process of constructing the file description structure can refer to the aforementioned embodiment and will not be repeated here. Therefore, for the original test data, a description structure with a unified format is constructed based on the description information corresponding to the test data. Then, based on the dimension of the channel, the channel data corresponding to each channel is obtained, and the description structure and the channel data are integrated to realize data conversion, unify the data format of the test data, improve the data quality, and facilitate improving the analysis efficiency of subsequent data.

[0107] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention does not limit this.

[0108] In an embodiment of the present application, in the process of managing test data, the first test data collected by each test device can be obtained, wherein the test device is configured with at least one channel connected to the acquisition sensor, and the first test data includes first main data and first descriptive information. Then, a first description structure corresponding to the first test data can be constructed according to the first descriptive information, and then the first channel data corresponding to each channel can be extracted from the first main data, and then the first description structure and the first channel data can be integrated to obtain the first target test data, so that for the original test data, based on the descriptive information corresponding to the test data, a description structure with a unified format is constructed, and then based on the dimension of the channel, the channel data corresponding to each channel is obtained, and then the description structure and the channel data are integrated to realize data conversion, unify the data format of the test data, improve the data quality, and help improve the analysis efficiency of subsequent data.

[0109] It should be noted that, for the method embodiments, the sequences of the actions are described in a way that is simple and clear for the purpose of explanation, but the person skilled in the art should understand that the application embodiments are not limited to the sequences described, and some of the steps can be performed in other sequences or at the same time, according to the application embodiments. In addition, the person skilled in the art should understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential to the application embodiments.

[0110] With reference to Figure 7 , a structural block diagram of a data conversion device is shown, which can specifically include the following modules:

[0111] The data acquisition module 701 is configured to acquire first test data collected by each test device, the test device being configured with at least one channel connected to a collection sensor, and the first test data including first main body data and first description information.

[0112] The structure construction module 702 is configured to construct a first description structure corresponding to the first test data according to the first description information.

[0113] The data extraction module 703 is configured to extract first channel data corresponding to each channel from the first main body data.

[0114] The data integration module 704 is configured to integrate the first description structure and the first channel data to obtain first target test data.

[0115] In some possible implementation manners, the first description information at least includes file description information and first channel description information, the first description structure at least includes a file description structure corresponding to the file description information and a first channel description structure corresponding to the first channel description information, and the structure construction module 702 is specifically configured to:

[0116] construct a file description structure corresponding to the first test data by using the file description information;

[0117] construct a first channel description structure corresponding to the first test data by using the channel description information.

[0118] In some possible implementation manners, the file description information at least includes a file name, a test time, and a channel number, and the structure construction module 702 is specifically configured to:

[0119] construct a file description structure corresponding to the first test data by using the file name, the test time, and the channel number.

[0120] In some possible implementation manners, the first channel description information at least includes a channel name, a channel unit, a channel sampling rate, a first data length, and an amplitude recovery coefficient, and the structure construction module 702 is specifically configured to:

[0121] The first test data corresponding to the first channel description structure is constructed by using the channel name, the channel unit, the channel sampling rate, the first data length, and the amplitude recovery coefficient.

[0122] In some possible implementation manners, the method further includes:

[0123] The judging module is configured to determine a target sampling rate for the first test data if it is determined according to the first description information that the first test data needs to be resampled;

[0124] The resampling module is configured to resample the first channel data according to the target sampling rate to obtain second channel data, and update the first description information based on the target sampling rate to obtain second description information;

[0125] The structure updating module is configured to update the first description structure by using the second description information to obtain a second description structure;

[0126] The data processing module is configured to integrate the second description structure and the second channel data to obtain second target test data.

[0127] In some possible implementation manners, the first description information at least includes first channel description information, and the first channel description information at least includes a channel name, a channel unit, and a channel sampling rate, and the judging module is specifically configured to:

[0128] The standard sampling rate corresponding to the channel to which each channel name belongs is obtained according to the channel unit;

[0129] If the channel sampling rate is greater than the standard sampling rate, the standard sampling rate is taken as a target sampling rate of a target channel to which the channel name belongs.

[0130] In some possible implementation manners, the first channel description information further includes a second data length and an amplitude recovery coefficient, and the second description information includes second channel description information, and the resampling module is specifically configured to:

[0131] The acquisition time information corresponding to the second channel data is obtained;

[0132] The second data length is obtained by calculating the acquisition time information and the target sampling rate;

[0133] update the channel sampling rate in the first channel description information as the target sampling rate, and update the first data duration as the second data duration;

[0134] integrate the channel name, the channel unit, the target sampling rate, the second data duration, and the amplitude recovery coefficient to obtain corresponding second channel description information.

[0135] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts refer to the part of the method embodiment.

[0136] The embodiment of the present application further provides an electronic device, comprising:

[0137] one or more processors; and

[0138] one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the vehicle to perform the method described in the embodiment of the present application.

[0139] The embodiment of the present application further provides a computer-readable storage medium, having instructions stored thereon, when executed by one or more processors, cause the processor to perform the method described in the embodiment of the present application.

[0140] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same and similar parts of each embodiment can be referred to each other.

[0141] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, device, or computer program product. Therefore, the embodiments of the present application can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, EEPROM, Flash, and eMMC, etc.) containing computer usable program code.

[0142] The embodiments of the present application are described with reference to the flowchart illustrations and / or block diagrams of the methods, terminal devices (systems) and computer program products according to the embodiments of the present application. It is understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal devices to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal devices, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0143] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal devices, such that a series of operational steps are performed on the computer or other programmable terminal devices to create a computer implemented process so that the instructions executed on the computer or other programmable terminal devices provide steps for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0145] Although preferred embodiments of the present application have been described, those skilled in the art will be able to make additional modifications and variations to these embodiments without departing from the basic inventive concepts disclosed. Accordingly, it is intended to be covered in the appended claims all such modifications and variations as fall within the scope of the embodiments of the present application.

[0146] Finally, it is to be understood that the phraseology or terminology such as "first" and "second" etc. used herein is merely intended to differentiate one entity or operation from another entity or operation, without necessarily requiring or implying any actual such relationship or order between such entities or operations. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0147] The above provides a data conversion method and a data conversion device. The principles and implementation manners of the present application are described by using specific examples. The above description of the embodiments is only used to help understand the method and core idea of the present application. For those skilled in the art, the specific implementation manners and application ranges can be changed according to the idea of the present application. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A data conversion method, characterized in that: include: Acquire first test data collected by each test device, where the test device is configured with at least one channel connected to a collection sensor, the first test data including first main body data and first description information; Constructing a first description structure corresponding to the first test data according to the first description information; extracting first channel data corresponding to each of the channels from the first body data; The first description structure and the first channel data are integrated to obtain first target test data.

2. The method according to claim 1, characterized in that The first description information includes at least file description information and first channel description information, the first description structure includes at least a file description structure corresponding to the file description information and a first channel description structure corresponding to the first channel description information, and constructing the first description structure corresponding to the first test data according to the first description information includes: Constructing a file description structure corresponding to the first test data using the file description information; The channel description information is used to construct a first channel description structure corresponding to the first test data.

3. The method according to claim 2, characterized in that The file description information includes at least a file name, a test time, and a number of channels. The step of constructing a file description structure corresponding to the first test data using the file description information includes: The file name, test time, and number of channels are used to construct a file description structure corresponding to the first test data.

4. The method according to claim 2, characterized in that The first channel description information includes at least a channel name, a channel unit, a channel sampling rate, a first data length, and an amplitude restoration coefficient. The step of constructing a first channel description structure corresponding to the first test data using the channel description information includes: A first channel description structure corresponding to the first test data is constructed using the channel name, the channel unit, the channel sampling rate, the first data length, and the amplitude restoration coefficient.

5. The method according to claim 1, wherein Also includes: If it is determined according to the first description information that the first test data needs to be resampled, determining a target sampling rate for the first test data; Resampling the first channel data according to the target sampling rate to obtain second channel data, and updating the first description information based on the target sampling rate to obtain second description information; Using the second description information to update the first description structure to obtain a second description structure; The second description structure and the second channel data are integrated to obtain second target test data.

6. The method according to claim 5, characterized in that The first description information includes at least first channel description information, and the first channel description information includes at least a channel name, a channel unit, and a channel sampling rate. If it is determined based on the first description information that the first test data needs to be resampled, determining a target sampling rate for the first test data includes: According to the channel unit, obtain the standard sampling rate corresponding to the channel to which each channel name belongs; If the channel sampling rate is greater than the standard sampling rate, the standard sampling rate is used as the target sampling rate of the target channel to which the channel name belongs.

7. The method according to claim 6, characterized in that The first channel description information further includes a second data duration and an amplitude recovery coefficient, the second description information includes second channel description information, and updating the first description information based on the target sampling rate to obtain the second description information includes: Obtaining acquisition time information corresponding to the second channel data; Calculating the acquisition time information and the target sampling rate to obtain a second data duration; Update the channel sampling rate in the first channel description information to the target sampling rate, and update the first data duration to the second data duration; The channel name, the channel unit, the target sampling rate, the second data duration, and the amplitude restoration coefficient are integrated to obtain corresponding second channel description information.

8. A data conversion device, characterized in that: include: a data acquisition module, configured to acquire first test data collected by each test device, wherein the test device is configured with at least one channel connected to an acquisition sensor, and the first test data includes first main body data and first description information; a structure construction module, configured to construct a first description structure corresponding to the first test data according to the first description information; a data extraction module, configured to extract first channel data corresponding to each of the channels from the first body data; The data integration module is used to integrate the first description structure and the first channel data to obtain first target test data.

9. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the electronic device to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Interface test case generation method and device, medium and equipment

    CN110781082A

  • Method and equipment for processing measurement data format (MDF) file

    CN115729928A

  • Information conversion method and device, equipment, medium and product

    CN118395944A

  • Equipment data collection method, device and system based on multi-source heterogeneity and storage medium

    CN119782404A

  • System and method for storing and retrieving channel data

    US20130254416A1