Data detection method, device and electronic equipment

By generating and outputting differential reports of automotive software versions, the accuracy of version data is ensured, and the testing efficiency and accuracy are improved.

CN112612694BActive Publication Date: 2024-11-29GUANGZHOU CHENGXING ZHIDONG AUTOMOTIVE TECH CO LTD +1
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202011494591.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-11-29
Estimated Expiration
2040-12-17

Smart Images

  • Figure CN112612694B_ABST
    Figure CN112612694B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a data detection method, device and electronic device, which relates to the field of testing technology. The method includes: obtaining first version data uploaded by a first user terminal, the first user terminal is a terminal corresponding to a developer; determining second version data corresponding to the first version data, the first version data and the second version data are data of different versions of the same software; generating a data difference report according to the first version data and the second version data, and outputting the data difference report to the first user terminal, the data difference report including the difference data between the first version data and the second version data. The data detection method provided by the embodiment of the present invention can ensure the accuracy of uploading the first version data by obtaining the data difference report.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to a data detection method, device and electronic equipment. Background Art

[0002] As the speed of automobile function update iteration accelerates, the frequency of automobile software changes also increases. Before the new version of automobile software is released, it is usually necessary to conduct comprehensive testing of the software. Specific tests can include virtual simulation testing and vehicle testing. Currently, software version management and software testing are uniformly managed using shared libraries. The software group is usually responsible for uploading the new version of the software to be tested to the shared library, and the test group usually downloads the corresponding software from the same shared library and the corresponding software path and tests the downloaded software. Therefore, how to better manage and test different versions of software data is an urgent problem to be solved. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention provide a data detection method, device and electronic device to solve or partially solve the above technical problems.

[0004] The embodiment of the present invention is implemented by adopting the following technical solutions:

[0005] In a first aspect, some embodiments of the present invention provide a data detection method, the method comprising: obtaining first version data uploaded by a first user terminal, the first user terminal being a terminal corresponding to a developer; determining second version data corresponding to the first version data, the first version data and the second version data being data of different versions of the same software; generating a data difference report based on the first version data and the second version data, and outputting the data difference report to the first user terminal, the data difference report comprising difference data between the first version data and the second version data.

[0006] In a second aspect, some embodiments of the present invention further provide a data detection device, including an acquisition module, a determination module, and a generation module. The acquisition module is used to acquire first version data uploaded by a first user terminal, where the first user terminal is a developer; the determination module is used to determine that the second version data corresponds to the first version data, where the first version data and the second version data are data of different versions of the same software; and the generation module is used to generate a data difference report based on the first version data and the second version data, and output the data difference report to the first user terminal.

[0007] In a third aspect, some embodiments of the present invention further provide an electronic controller, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are called by the processor, the data detection method described in any one of the above items is executed.

[0008] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, in which computer program instructions are stored. The computer program code can be called by a processor to execute any of the above-mentioned data detection methods.

[0009] The data detection method, device and electronic device provided by the embodiments of the present invention, the present invention obtains a data difference report by comparing the first version data and the second version data, and uses the data difference report to ensure the accuracy of the version data upload. Specifically, the first version data uploaded by the first user terminal is obtained, wherein the first user terminal is the terminal corresponding to the developer, and then the second version data corresponding to the first version data is determined, the first version data and the second version data are data of different versions of the same software, and finally a data difference report is generated according to the first version data and the second version data, and the data difference report is output to the first user terminal, wherein the data difference report includes the difference data between the first version data and the second version data. The present invention obtains a data difference report and outputs the data difference report to the first user terminal, so that the user of the first user terminal can confirm the version data uploaded by it, so as to ensure the accuracy of the uploaded version data.

[0010] These and other aspects of the present invention will become more apparent from the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the 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 work.

[0012] Figure 1 A schematic flow chart of a data detection method provided by an embodiment of the present invention is shown.

[0013] Figure 2 A schematic flow chart of a data detection method provided by another embodiment of the present invention is shown.

[0014] Figure 3 A flow chart of a data detection method provided by another embodiment of the present invention is shown.

[0015] Figure 4A schematic flow chart of step S350 in a data detection method provided in yet another embodiment of the present invention is shown.

[0016] Figure 5 FIG. 2 shows another flow chart of step S350 in a data detection method provided by another embodiment of the present invention.

[0017] Figure 6 A module block diagram of a data detection device provided by an embodiment of the present invention is shown.

[0018] Figure 7 A module block diagram of a generating module 430 in a data detection device provided in an embodiment of the present invention is shown.

[0019] Figure 8 A module block diagram of an electronic controller provided by an embodiment of the present invention is shown.

[0020] Fig. 9 A module block diagram of a computer-readable storage medium provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0021] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0022] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0023] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0024] As the speed of automobile function update iteration accelerates, the frequency of automobile software changes also increases. Before the new version of automobile software is released, it is usually necessary to conduct comprehensive testing of the software. Specific tests can include virtual simulation testing and vehicle test testing. Currently, software version management and software testing are uniformly managed using shared libraries. The software group is usually responsible for uploading the new version of the software to be tested to the shared library. The test group usually downloads the corresponding software from the same shared library and the corresponding software path and tests the downloaded software. However, sometimes due to negligence of software developers or errors in software upload or download, the software version tested by the test group is not the software to be tested, that is, the software tested by the tester may be a historical software version, which will cause unnecessary duplication of work and reduce work efficiency. For example, the software developer changed the software version number but did not modify the logic and data, which would cause the version of the software of the test group to be wrong.

[0025] In order to solve the above technical problems, the inventor has proposed a data detection method, device and electronic device in the embodiment of the present invention after long-term research. The data detection method obtains a data difference report by comparing the first version data and the second version data, and the data difference report can be used to ensure the accuracy of the version data upload. Specifically, the first version data uploaded by the first user terminal is obtained, wherein the first user terminal is the terminal corresponding to the developer, and then the second version data corresponding to the first version data is determined, and the first version data and the second version data are data of different versions of the same software. Finally, a data difference report is generated according to the first version data and the second version data, and the data difference report is output to the first user terminal, wherein the data difference report includes the difference data between the first version data and the second version data. The present invention obtains a data difference report and outputs the data difference report to the first user terminal, so that the user of the first user terminal can confirm the version data uploaded by it, so that the accuracy of the uploaded version data can be ensured.

[0026] like Figure 1 As shown, Figure 1 The flowchart of the data detection method provided by the embodiment of the present invention is schematically shown. The method may include the following steps S110 to S130.

[0027] Step S110: Acquire the first version data uploaded by the first user terminal, where the first user terminal is a terminal corresponding to the developer.

[0028] The data detection method provided in the embodiment of the present invention can be applied to an electronic device, which can be a server or a terminal device, etc. The electronic device can obtain the first version data uploaded by the first terminal, wherein the first user terminal is a terminal corresponding to the developer, that is, the first version data can be data uploaded by the developer through the first user terminal.

[0029] In some embodiments, the first version data may be relevant data corresponding to the latest software version, which may include software calibration data. The software calibration data may be obtained by data calibrators based on experiments, that is, the data calibration data is not fixed, and it may change continuously according to actual conditions. For example, after experimental testing, it was confirmed that closing the air intake grille at 120km / h is most conducive to the wind resistance and component cooling requirements of the vehicle at high speed. Moreover, before determining the parameter of 120km / h, there may be many versions of calibration parameters, such as 115km / h, 125km / h or 128km / h. Therefore, the calibration parameters of different versions of software do not remain unchanged, and they may change continuously according to the actual environment.

[0030] In other embodiments, the first version data may also include other software parameters, such as CAN (Controller Area Network) bus related signals and LIN (Local Interconnect Network) bus related signals. The first version data is the latest version data uploaded by the developer corresponding to the first user terminal, which can also be called the latest version data. In addition, the first user terminal of the embodiment of the present invention may include multiple first sub-user terminals, each sub-user terminal corresponds to a developer, and the developer can upload the latest data to the electronic device through its corresponding user terminal, that is, upload different versions of data to the electronic device, and the first version data is the version data uploaded in the time period closest to the current moment, and the electronic device can be a server.

[0031] Step S120: Determine the second version data corresponding to the first version data, wherein the first version data and the second version data are data of different versions of the same software.

[0032] In some embodiments, after the electronic device obtains the first version data uploaded by the first user terminal, it can obtain the second version data corresponding to the first version data, wherein the first version data and the second version data are data of different versions of the same software. As a method, the electronic device can obtain the second version data corresponding to the first version data according to the version name of the first version data. Although the first version data and the second version data correspond to different version numbers, the software corresponding to the two is the same. Therefore, the second version data can be obtained by the version name. For example, the version name corresponding to the first version data is Sig_5, which shows that its version number is 5 and the software name is Sig. At this time, it can be determined whether other versions of data related to the software Sig are stored in the electronic device. If so, it is used as the second version data, such as Sig_4 can be used as the name corresponding to the second version data. At this time, the data stored under this name is the second version data.

[0033] In other embodiments, the second version data may be the data closest to the time when the first version data was uploaded, that is, multiple versions of data were uploaded before the first version data was received, and the second version data is the data with the shortest upload time from the first version data. For example, the first version data was received at 13:00 on December 10, 2020, and before the first version data was received, the electronic device stored the following: historical version data A, historical version data B, and historical version data C, which are all different versions of software a. The upload time of historical version data A is 09:00 on December 9, 2020; the upload time of historical version data B is 15:00 on November 9, 2020; and the upload time of historical version data C is 017:00 on December 7, 2020. By comparison, it can be known that the upload time of historical version data A is closest to the upload time of the first version data. At this time, historical version data A can be used as the second version data.

[0034] In some embodiments, the second version data is similar to the first version data, and may also include calibration data of the software, which may be obtained by data calibration personnel based on experiments, that is, the data calibration data is not fixed and may change continuously according to actual conditions. In addition, the second version data may also include other software parameters, such as CAN (Controller Area Network) bus related signals and LIN (Local Interconnect Network) bus related signals.

[0035] In some implementations, the first version data and the second version data can be distinguished by different version names, such as the version name corresponding to the first version data can be Sig_4, and the version name corresponding to the second version data can be Sig_3. It can be seen that the first version data and the second version data are data with the same software name but different versions. The naming format of the version names of the first version data and the second version data can be A_B, where A can be the software name and B can be the version number. As another way, A can also be the version number and B can be the software name. The specific naming of the version names of the first version data and the second version data is not explicitly limited here and can be set according to actual conditions.

[0036] It should be noted that the version name of the first version data and the version name of the second version data can also be called version identifiers, which can be identity identifiers corresponding to different version data, that is, the version names corresponding to different version data are different. In addition, after the electronic device obtains the first version data and the second version data, it can store the version data according to the version names of the first version data and the second version data, which can facilitate subsequent data processing.

[0037] Step S130: Generate a data difference report according to the first version data and the second version data, and output the data difference report to the first user terminal.

[0038] In some embodiments, after acquiring the first version data and the second version data, the electronic device may generate a data difference report based on the first version data and the second version data, and output the data difference report to the first user terminal. Among them, the data difference report may include the difference data between the first version data and the second version data, that is, the data difference report is mainly composed of the difference data between the first version data and the second version data, and the difference data may include the data added by the first version data compared to the second version data, and may also include the data deleted by the first version data compared to the second version data, or may also include the data whose parameters are changed compared to the second version data. In addition, the data difference report may also include the name corresponding to the difference data and the parameter value corresponding to the name. What data the data difference report specifically includes is not explicitly limited here and can be set according to actual conditions.

[0039] The data detection method provided by the embodiment of the present invention obtains a data difference report by comparing the first version data and the second version data, and the data difference report can be used to ensure the accuracy of the version data upload. Specifically, the first version data uploaded by the first user terminal is obtained, wherein the first user terminal is the terminal corresponding to the developer, and then the second version data corresponding to the first version data is determined, the first version data and the second version data are data of different versions of the same software, and finally a data difference report is generated according to the first version data and the second version data, and the data difference report is output to the first user terminal, wherein the data difference report includes the difference data between the first version data and the second version data. The present invention obtains a data difference report and outputs the data difference report to the first user terminal, so that the user of the first user terminal can confirm the version data uploaded by it, so as to ensure the accuracy of the uploaded version data.

[0040] like Figure 2 As shown, another embodiment of the present invention provides a data detection method, which can be applied to a vehicle and includes the following steps S210 to S280.

[0041] Step S210: Acquire the first version data uploaded by the first user terminal, where the first user terminal is a terminal corresponding to the developer.

[0042] Step S220: Determine the second version data corresponding to the first version data, where the first version data and the second version data are data of different versions of the same software.

[0043] Step S230: Generate a data difference report according to the first version data and the second version data, and output the data difference report to the first user terminal.

[0044] Step S240: Determine whether a confirmation instruction input by the developer based on the data difference report is received within a preset time period.

[0045] In some embodiments, after the electronic device generates a data difference report based on the first version data and the second version data and outputs the data difference report to the first user terminal, it can determine whether a confirmation instruction input by the developer based on the data difference report is received within a preset time period. If the confirmation instruction is received within the preset time period, the data difference report is stored, and the process proceeds to step S250. If the confirmation instruction input by the developer based on the data difference report is not received within the preset time period, a software change list corresponding to the first version data is obtained, and the software change list is a list uploaded by the developer through the first user terminal, and the process proceeds to step S260.

[0046] As one way, after obtaining the data difference report, the electronic device can send it to the first user terminal and determine whether a confirmation instruction input by the developer is received within a preset time period. If a confirmation instruction is received, it indicates that the developer of the first user terminal confirms that the first version of the data uploaded by it is correct based on the data difference report. If the data confirmation report input by the developer of the first user terminal is not received within the preset time period, it indicates that the developer may not have noticed the data difference report, or the developer may not have time to enter the confirmation instruction. As another way, if the confirmation instruction sent by the first user terminal is not received within the preset time period, the electronic device can send a prompt message to the first user terminal to prompt the first user terminal to enter the confirmation result as soon as possible.

[0047] Step S250: If the confirmation instruction is received, the data difference report is stored.

[0048] In some embodiments, if a confirmation instruction input by a developer based on the first user terminal and the data difference report is received, the electronic device can store the data difference report to facilitate the developer's subsequent data processing operations. In other words, as long as the user enters the confirmation instruction, it indicates that the first version of the data uploaded by the user is correct, so it can also be determined that the data difference report obtained by the electronic device is correct. In order to facilitate the subsequent software development by the developer, the electronic device can store the data difference report, which can assist the user in the development of the software and can also avoid generating data difference reports multiple times, resulting in increased electronic power consumption.

[0049] In other implementations, the electronic device may also send a data test instruction and a data difference report to a second user terminal to instruct the second user terminal to test the first version of the data, and the second user terminal is a terminal corresponding to the tester. In an embodiment of the present invention, the second user terminal may include multiple second sub-user terminals, each of which corresponds to a tester. The tester may download or upload the latest data to the electronic device through its corresponding user terminal, that is, download different versions of data to the second user terminal.

[0050] As a method, when the embodiment of the present invention receives a confirmation instruction input by the developer based on the first user terminal, it indicates that the developer determines that the first version data uploaded by the developer is accurate. At this time, a data test instruction can be sent to the second user terminal to instruct the user to test the first version data through the data test instruction. In addition, if a negative instruction input by the developer based on the first user terminal is received within a preset time period, the electronic device can determine whether the developer has entered the third version data based on the first user terminal. If the developer enters the third version data after entering the negative instruction, the third version data can be used as the second version data, that is, the old second version data is overwritten or deleted. In this way, the storage of erroneous data can be avoided to increase the load of the electronic device, and the existence of erroneous data can be avoided to interfere with the use of other data.

[0051] In other embodiments, upon receiving a confirmation instruction input by the developer's first user terminal, the electronic device may also send a data testing instruction and a data difference report to the second user terminal. The data testing instruction is used to prompt the tester corresponding to the second terminal to test the first version of the data, and the data difference report is used to assist the tester corresponding to the second terminal to test the first version of the data. That is, the tester can better write test cases through the data difference report to achieve fast and effective testing of the first version of the data, which can speed up the data testing to a certain extent.

[0052] Step S260: Acquire a software change list corresponding to the first version data, where the software change list is a list uploaded by the developer via the first user terminal.

[0053] As a method, the software change list can be a descriptive list generated by the developer when generating the first version of the data. The software change list can include a simple description of the data changes, which can include a functional description of the changed parameters, or can include a simple description of the addition or deletion of data, etc. The format of the software change list can be text, image or voice, etc. The specific format is not explicitly limited here and can be selected according to actual conditions.

[0054] Step S270: Determine whether the first version data is correct according to the software change list and the data difference report.

[0055] In some embodiments, after obtaining the software change list, the electronic device may perform natural language processing on the software change list. Specifically, it may perform semantic recognition on the software change list to obtain a first recognition result. At the same time, the electronic device may also perform semantic recognition on the data difference report to obtain a second recognition result, and then determine whether the first recognition result and the second recognition result match. If the first recognition result and the second recognition result match, it is determined that the uploaded first version data is correct, and the process proceeds to step S280.

[0056] In other embodiments, when it is determined that the uploaded first version data is incorrect, the electronic device may re-output a data difference report to the first user terminal and may output a prompt message to the first user terminal to instruct the first user terminal to check the first version data.

[0057] Step S280: If correct, output the data difference report to the second user terminal, and instruct the second user terminal to test the first version data based on the data difference report.

[0058] In order to more clearly understand the embodiments of the present invention, the following example is given. After obtaining the first version data A uploaded by the developer based on the first user terminal, the electronic device determines the software name corresponding to the first version data A, obtains different version data of the same software based on the software name, and then uses the version data with the smallest time difference as the second version data B, wherein the time difference is the difference between the time when the first version data A is uploaded and the time when the second version data B is uploaded. Then, the electronic device can determine the difference data C between the first version data A and the second version data B, and form a data difference report D through the difference data C. The data difference report D may include at least one difference data C. The difference data C is sent to the first user terminal, and when a confirmation instruction input by the first user terminal is received within a preset time period, a test instruction and a data difference report D are sent to the second user terminal to instruct the second user terminal to test the first version data.

[0059] The data detection method provided by the embodiment of the present invention obtains a data difference report by comparing the first version data with the second version data, and the data difference report can be used to ensure the accuracy of the version data upload. Specifically, the first version data uploaded by the first user terminal is obtained, wherein the first user terminal is the terminal corresponding to the developer, and then the second version data corresponding to the first version data is determined, and the first version data and the second version data are data of different versions of the same software. Finally, a data difference report is generated according to the first version data and the second version data, and the data difference report is output to the first user terminal, wherein the data difference report includes the difference data between the first version data and the second version data. The present invention obtains the data difference report and outputs the data difference report to the first user terminal, so that the user of the first user terminal can confirm the version data uploaded by it, so as to ensure the accuracy of the uploaded version data. In addition, the embodiment of the present invention instructs the tester to test the first version data only when it is determined that the confirmation instruction input by the developer is received, so as to improve the efficiency of software testing and avoid the tester from performing unnecessary testing work. At the same time, the data difference report is sent to the tester, which can inform the tester of the current version of the software signal and the parameter change point, and can facilitate the tester to write the corresponding test case. Verifying the modification logic can improve the efficiency of software testing to a certain extent.

[0060] like Figure 3 As shown, another embodiment of the present invention provides a data detection method, which can be applied to a vehicle and includes the following steps S310 to S360.

[0061] Step S310: Acquire the first version data uploaded by the first user terminal, where the first user terminal is a terminal corresponding to the developer.

[0062] Step S320: Determine the second version data corresponding to the first version data, where the first version data and the second version data are data of different versions of the same software.

[0063] In the embodiment of the present invention, in order to make the data difference report finally generated more accurate, the electronic device can generate a first data set corresponding to the first version data when acquiring the first version data, wherein the first data set includes multiple first signal names and first signal parameter values ​​corresponding to each first signal name, that is, proceeding to step S330. Similarly, when acquiring the second version data, a second data set corresponding to the second version data can be generated, wherein the second data set includes multiple second signal names and second signal parameter values ​​corresponding to each second signal name, that is, proceeding to step S340.

[0064] Step S330: Generate a first data set corresponding to the first version data.

[0065] In some implementations, the first data set may include a plurality of first signal names and a first signal parameter value corresponding to each first signal name. In order to better understand the first data set, the following Table 1 is provided.

[0066] Table 1

[0067] name Format Data Types illustrate Sig_N signal name gather New version software signal name set N_data Signal name: parameter value Structure New version software data set

[0068] The data included in Table 1 is the first version data. The name in the above table is the first signal name, and the format is the first signal parameter value corresponding to the signal name. It can be seen from Table 1 that the first data set can include data types and descriptions of data in addition to signal names and signal parameter values.

[0069] Step S340: Generate a second data set corresponding to the second version data.

[0070] As another way, the second data set may include multiple second signal names and second signal parameter values ​​corresponding to each second signal name. In order to better understand the first data set, the following Table 2 is provided.

[0071] Table 2

[0072] name Format Data Types illustrate Sig_0 signal name gather Signal name set of old version software 0_data Signal name: parameter value Structure Old version software dataset

[0073] The data included in Table 2 is the second version data. The name in the above table is the second signal name, and the format is the second signal parameter value corresponding to the signal name. It can be seen from Table 2 that the second data set can include data types and descriptions of the data in addition to signal names and signal parameter values.

[0074] Step S350: Compare the first data set and the second data set, determine the difference between the first version data and the second version data, and generate a data difference report.

[0075] As a way, see Figure 4 Step S350 may include steps S351 to S352.

[0076] Step S351: Determine whether there are any increased or decreased signal names in the first data set compared to the second data set.

[0077] In some embodiments, the electronic device can determine whether there are increased or decreased signal names in a data set compared to a second data set. If there are increased or decreased signal names, a data difference report is generated using the increased or decreased signal names and the signal parameter values ​​corresponding to the signal names. As shown in Tables 1 and 2 above, the data in Table 1 can be subtracted from the data in Table 2 to determine the signals deleted by the new version of the software relative to the old version of the software. For example, Sig_0-Sig_N (set subtraction operation) finds the signals that are in the set Sig_0 but not in Sig_N. For example, if the second data set contains the CAN signal of the battery water temperature sensor, but the first data set does not contain the CAN signal of the battery water temperature sensor, it means that the latest version of the software has deleted the signal.

[0078] Similarly, the data in Table 2 can be subtracted from the data in Table 1 to determine the signals added by the new version of the software relative to the old version. For example, Sig_N-Sig_0 (set subtraction operation) is used to find the signals that are in the set Sig_N but not in Sig_0. For example, if the first data set contains the water pump sensor signal, but the second data set does not contain the water pump sensor signal, it means that the latest version of the software has added a new signal.

[0079] Step S352: If so, generate the data difference report using the increased or decreased signal name and the signal parameter value corresponding to the signal name.

[0080] In some embodiments, when it is determined that the first data set has increased or decreased signal names compared to the second data set, a data difference report is generated using the increased or decreased signal names and the parameter values ​​corresponding to the signal names. These increased or decreased signal names and the parameter values ​​corresponding to the signal names can be stored in the data difference report in the form of a data set. In addition, in order to better distinguish between increased signals and decreased signals, in an embodiment of the present invention, when it is determined that the first data set intersects with the second data set and has increased signal names, the signal names are marked accordingly, and a corresponding data difference report is generated. Similarly, when it is determined that the first data set intersects with the second data set and has deleted signal names, the signal names can also be marked accordingly, and a corresponding data difference report can be generated.

[0081] As another approach, see Figure 5 Step S350 may further include steps S353 to S354.

[0082] Step S353: When there is no increase or decrease in the signal name of the first data set compared with the second data set, determine whether there is a changed signal parameter value of the first data set compared with the second data set.

[0083] In other embodiments, when it is determined that there is neither an increase in signal names nor a decrease in signal names in the first data set compared to the second data set, it is determined whether there is a changed signal parameter value in the first data set compared to the second data set. If there is a changed parameter value, a data difference report is generated using the changed signal parameter value and its corresponding signal name, and step S354 is entered. In other words, the embodiment of the present invention can search for the same signal name in the first data set and the second data set, and search for the signal parameter value corresponding to the same signal name in the structures of the two respectively. If the signal name of the new and old versions is the same but the signal parameter value is different, the signal parameter value and the signal name corresponding to the signal parameter value are recorded.

[0084] Step S354: If so, generate the data difference report using the changed signal parameter value and the signal name corresponding to the signal parameter value.

[0085] Step S360: Output the data difference report to the first user terminal.

[0086] The data detection method provided in the embodiment of the present invention obtains a data difference report by comparing the first version data with the second version data, and the data difference report can be used to ensure the accuracy of the version data upload. Specifically, the first version data uploaded by the first user terminal is obtained, wherein the first user terminal is the terminal corresponding to the developer, and then the second version data corresponding to the first version data is determined, the first version data and the second version data are data of different versions of the same software, and finally a data difference report is generated according to the first version data and the second version data, and the data difference report is output to the first user terminal, wherein the data difference report includes the difference data between the first version data and the second version data. The present invention obtains the data difference report and outputs the data difference report to the first user terminal, so that the user of the first user terminal can confirm the version data uploaded by it, so as to ensure the accuracy of the uploaded version data. In addition, the embodiment of the present invention generates data difference reports in different ways to reduce the problem of misdetection caused by software version errors due to special reasons to reduce unnecessary repetitive work.

[0087] like Figure 6 As shown, the embodiment of the present invention further provides a data detection device 400 , which includes: an acquisition module 410 , a determination module 420 and a generation module 430 .

[0088] The acquisition module 410 is used to acquire the first version data uploaded by the first user terminal, where the first user terminal is a developer.

[0089] The determination module 420 is used to determine the second version data corresponding to the first version data, and the first version data and the second version data are data of different versions of the same software.

[0090] The generating module 430 is configured to generate a data difference report according to the first version data and the second version data, and output the data difference report to the first user terminal.

[0091] See also Figure 7 , the generating module 430 may include a determining unit 431 and a storing unit 432 .

[0092] The determination unit 431 is configured to determine whether a confirmation instruction input by the first user terminal based on the data difference report is received within a preset time period.

[0093] The storage unit 432 is configured to store the data difference report if the confirmation instruction is received.

[0094] Furthermore, the generation module 430 may also be used to send a data test instruction and the data difference report to a second user terminal to instruct the second user terminal to test the first version of data, where the second user terminal is a terminal corresponding to the tester.

[0095] Furthermore, the generation module 430 can also be used to obtain a software change list corresponding to the first version data if no confirmation instruction input by the developer based on the data difference report is received within a preset time period, and the software change list is a list uploaded by the developer through the first user terminal; determine whether the first version data is correct based on the software change list and the data difference report; if correct, output the data difference report to the second user terminal, and instruct the second user terminal to test the first version data based on the data difference report.

[0096] Furthermore, the generation module 430 can also be used to generate a first data set corresponding to the first version data, the first data set including multiple first signal names and first signal parameter values ​​corresponding to each of the first signal names; generate a second data set corresponding to the second version data, the second data set including multiple second signal names and second signal parameter values ​​corresponding to each of the second signal names; compare the first data set and the second data set to determine the differences between the first version data and the second version data, and generate a data difference report.

[0097] Furthermore, the generation module 430 can also be used to determine whether there are any increased or decreased signal names in the first data set compared to the second data set; if so, the data difference report is generated using the increased or decreased signal names and the signal parameter values ​​corresponding to the signal names.

[0098] Furthermore, the generation module 430 can also be used to determine whether there is a changed signal parameter value in the first data set compared to the second data set when there is neither an increase nor a decrease in the signal name in the first data set compared to the second data set; if so, generate the data difference report using the changed signal parameter value and the signal name corresponding to the signal parameter value.

[0099] The data detection device provided by the embodiment of the present invention obtains a data difference report by comparing the first version data and the second version data, and the data difference report can be used to ensure the accuracy of the version data upload. Specifically, the first version data uploaded by the first user terminal is obtained, wherein the first user terminal is the terminal corresponding to the developer, and then the second version data corresponding to the first version data is determined, the first version data and the second version data are data of different versions of the same software, and finally a data difference report is generated according to the first version data and the second version data, and the data difference report is output to the first user terminal, wherein the data difference report includes the difference data between the first version data and the second version data. The present invention obtains a data difference report and outputs the data difference report to the first user terminal, so that the user of the first user terminal can confirm the version data uploaded by it, so as to ensure the accuracy of the uploaded version data.

[0100] like Figure 8 As shown, the embodiment of the present invention further provides an electronic controller 500, which includes a processor 510 and a memory 520, wherein the memory 520 stores computer program instructions, and when the computer program instructions are called by the processor 510, the above-mentioned data detection method is executed.

[0101] The processor 510 may include one or more processing cores. The processor 510 uses various interfaces and lines to connect various parts of the entire electronic controller, and executes various functions of the electronic controller and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 520, and calling data stored in the memory 520. Optionally, the processor 510 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 510 can integrate one or a combination of a central processing unit 510 (CPU), a graphics processing unit 510 (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 510, but may be implemented separately through a communication chip.

[0102] The memory 520 may include a random access memory 520 (Random Access Memory, RAM), and may also include a read-only memory 520 (Read-Only Memory). The memory 520 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic controller during use, etc.

[0103] like Fig. 9 As shown, an embodiment of the present invention further provides a computer-readable storage medium 600, in which computer program instructions 610 are stored. The computer program instructions 610 can be called by a processor to execute the method described in the above embodiment.

[0104] The computer readable storage medium can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program codes that execute any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.

[0105] The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as above in the form of preferred embodiments, it is not intended to limit the present invention. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A data detection method, characterized in that: The method comprises: Obtaining first version data uploaded by a first user terminal, where the first user terminal is a terminal corresponding to a developer; Determining that the first version data corresponds to the second version data, and the first version data and the second version data are data of different versions of the same software; generating a data difference report according to the first version data and the second version data, and outputting the data difference report to the first user terminal, wherein the data difference report includes difference data between the first version data and the second version data; determining whether a confirmation instruction input by the developer based on the data difference report is received within a preset time period; If the confirmation instruction is received, storing the data difference report; Sending a data test instruction and the data difference report to a second user terminal to instruct the second user terminal to test the first version data, where the second user terminal is a terminal corresponding to the tester; or If a confirmation instruction input by the developer based on the data difference report is not received within a preset time period, obtaining a software change list corresponding to the first version data, the software change list being a list uploaded by the developer via the first user terminal; Determining whether the first version data is correct according to the software change list and the data difference report, wherein determining whether the first version data is correct according to the software change list and the data difference report includes: Performing semantic recognition on the software change list to obtain a first recognition result, and performing semantic recognition on the data difference report to obtain a second recognition result; determining whether the first version data is correct based on the first recognition result and the second recognition result; If correct, the data difference report is output to the second user terminal, and the second user terminal is instructed to test the first version data based on the data difference report.

2. The method according to claim 1, characterized in that Generating a data difference report based on the first version data and the second version data includes: generating a first data set corresponding to the first version data, wherein the first data set includes a plurality of first signal names and a first signal parameter value corresponding to each of the first signal names; generating a second data set corresponding to the second version data, wherein the second data set includes a plurality of second signal names and a second signal parameter value corresponding to each second signal name; The first data set and the second data set are compared to determine the difference between the first version data and the second version data, and a data difference report is generated.

3. The method according to claim 2, characterized in that The comparing the first data set with the second data set, determining the difference between the first version data and the second version data, and generating a data difference report includes: determining whether there are increased or decreased signal names in the first data set compared to the second data set; If so, the data difference report is generated using the increased or decreased signal name and the signal parameter value corresponding to the signal name.

4. The method according to claim 2, characterized in that The comparing the first data set and the second data set, determining the difference between the first version data and the second version data, and generating a data difference report further includes: When there is neither an increase nor a decrease in the signal name in the first data set compared to the second data set, determining whether there is a changed signal parameter value in the first data set compared to the second data set; If so, the data difference report is generated using the changed signal parameter value and the signal name corresponding to the signal parameter value.

5. A data detection device, characterized in that: The device comprises: an acquisition module, configured to acquire first version data uploaded by a first user terminal, where the first user terminal is a developer; a determination module, configured to determine that second version data corresponds to the first version data, and the first version data and the second version data are data of different versions of the same software; a generating module, configured to generate a data difference report based on the first version data and the second version data, and output the data difference report to the first user terminal; a determining unit, configured to determine whether a confirmation instruction input by the developer based on the data difference report is received within a preset time period; a storage unit, configured to store the data difference report if the confirmation instruction is received; A generation module is used to send a data test instruction and the data difference report to a second user terminal to instruct the second user terminal to test the first version data, and the second user terminal is the terminal corresponding to the tester; the generation module is also used to obtain a software change list corresponding to the first version data if a confirmation instruction input by the developer based on the data difference report is not received within a preset time period, and the software change list is a list uploaded by the developer through the first user terminal; determine whether the first version data is correct based on the software change list and the data difference report, wherein determining whether the first version data is correct based on the software change list and the data difference report includes: performing semantic recognition on the software change list to obtain a first recognition result, and performing semantic recognition on the data difference report to obtain a second recognition result; determining whether the first version data is correct based on the first recognition result and the second recognition result; if correct, outputting the data difference report to the second user terminal and instructing the second user terminal to test the first version data based on the data difference report.

6. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Software testing method, device and system

    CN103198010A

  • Method and system for comparing similarities and differences of CANdb (Controller Area Network) network file

    CN104424194A

  • A profile comparison method and a profile comparison system

    CN109240755A

  • ECU data calibration method and device

    CN109255105A

  • Test case acquisition method and device

    CN109408355A