JP2022122773A - Evaluation device and evaluation method - Google Patents

Evaluation device and evaluation method Download PDF

Info

Publication number
JP2022122773A
JP2022122773A JP2021020241A JP2021020241A JP2022122773A JP 2022122773 A JP2022122773 A JP 2022122773A JP 2021020241 A JP2021020241 A JP 2021020241A JP 2021020241 A JP2021020241 A JP 2021020241A JP 2022122773 A JP2022122773 A JP 2022122773A
Authority
JP
Japan
Prior art keywords
simulation
data
unit
control
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2021020241A
Other languages
Japanese (ja)
Inventor
龍嗣 堀
Ryuji Hori
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2021020241A priority Critical patent/JP2022122773A/en
Publication of JP2022122773A publication Critical patent/JP2022122773A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

To provide an evaluation device and an evaluation method that can efficiently perform a regression test.SOLUTION: An evaluation device according to an embodiment comprises: a control unit; and a storage unit. The control unit is configured to output input data on a simulation to a simulation device causing a simulation of control to implement between an Electronic Control Unit and a simulation device simulating a control object of the Electronic Control Unit; and collect the output data serving as a result of the simulation. The storge unit is configured to store the input data and a data set serving a set of output data. The control unit is configured to, when changing a program of at least one of the Electronic Control Unit and the simulation device, implement a simulation using the input data stored in the storage unit; and implement a regression test comparing the data sets before and after changing the program thereof.SELECTED DRAWING: Figure 2

Description

本発明は、評価装置および評価方法に関する。 The present invention relates to an evaluation device and an evaluation method.

従来、実車両が存在しない環境で、シミュレーション装置により車両の動作を模擬する模擬装置を動作(シミュレーション)させることで、車両に搭載される各種制御装置の制御プログラムを評価する技術が知られている(例えば、特許文献1参照)。 Conventionally, there is known a technique for evaluating control programs of various control devices installed in a vehicle by operating (simulating) a simulation device that simulates the operation of the vehicle in an environment where the actual vehicle does not exist. (See Patent Document 1, for example).

特開2010-224972号公報JP 2010-224972 A

しかしながら、従来、シミュレーション装置や制御装置のプログラムを変更して退行テストを行う場合、作業者が過去のシミュレーション結果と変更後のシミュレーション結果とを手作業で行う必要があるため、退行テストの確認に時間を要してしまう。 However, conventionally, when a regression test is performed by changing the program of the simulation device or the control device, the operator has to manually check the past simulation results and the changed simulation results. It takes time.

本発明は、上記に鑑みてなされたものであって、退行テストを効率良く行うことができる評価装置および評価方法を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide an evaluation apparatus and an evaluation method capable of efficiently performing a regression test.

上述した課題を解決し、目的を達成するために、本発明に係る評価装置は、制御部と、記憶部とを備える。前記制御部は、制御装置と、前記制御装置の制御対象を模擬した模擬装置との間で制御のシミュレーションを実行させるシミュレーション装置に対して前記シミュレーションの入力データを出力し、前記シミュレーションの結果である出力データを収集する。前記記憶部は、前記入力データおよび前記出力データの組であるデータセットを記憶する。前記制御部は、前記制御装置および前記シミュレーション装置の少なくとも一方のプログラムを変更した場合に、前記記憶部に記憶された前記入力データを用いて前記シミュレーションを実行し、前記プログラムの変更前後における前記データセットを比較する退行テストを実行する。 In order to solve the above-described problems and achieve the object, an evaluation device according to the present invention includes a control section and a storage section. The control unit outputs the input data of the simulation to a simulation device that executes a control simulation between a control device and a simulation device that simulates a controlled object of the control device, and outputs the simulation result. Collect output data. The storage unit stores a data set that is a set of the input data and the output data. When the program of at least one of the control device and the simulation device is changed, the control unit executes the simulation using the input data stored in the storage unit, and calculates the data before and after the change of the program. Perform regression tests comparing sets.

本発明によれば、退行テストを効率良く行うことができる。 ADVANTAGE OF THE INVENTION According to this invention, a regression test can be performed efficiently.

図1Aは、実施形態に係る評価装置を含むシミュレーションシステムの構成例を示す図である。FIG. 1A is a diagram illustrating a configuration example of a simulation system including an evaluation device according to an embodiment; 図1Bは、実施形態に係る評価方法の概要を示す図である。FIG. 1B is a diagram illustrating an outline of an evaluation method according to the embodiment; 図2は、実施形態に係る評価装置の構成例を示す機能ブロック図である。FIG. 2 is a functional block diagram illustrating a configuration example of the evaluation device according to the embodiment; 図3は、実施形態に係る評価装置によって実行されるデータセットの記憶処理の処理手順を示すフローチャートである。FIG. 3 is a flowchart illustrating a processing procedure of data set storage processing executed by the evaluation device according to the embodiment. 図4は、実施形態に係る評価装置によって実行される全体処理の処理手順を示すフローチャートである。FIG. 4 is a flow chart showing a processing procedure of overall processing executed by the evaluation device according to the embodiment.

以下、添付図面を参照して、本願の開示する評価装置および評価方法の実施形態を詳細に説明する。なお、以下に示す実施形態により本発明が限定されるものではない。 Hereinafter, embodiments of an evaluation apparatus and an evaluation method disclosed in the present application will be described in detail with reference to the accompanying drawings. In addition, this invention is not limited by embodiment shown below.

まず、図1Aおよび図1Bを用いて、実施形態に係る評価装置によって実行される評価方法の概要について説明する。図1Aは、実施形態に係る評価装置を含むシミュレーションシステムの構成例を示す図である。図1Bは、実施形態に係る評価方法の概要を示す図である。 First, with reference to FIGS. 1A and 1B, an overview of the evaluation method executed by the evaluation device according to the embodiment will be described. FIG. 1A is a diagram illustrating a configuration example of a simulation system including an evaluation device according to an embodiment; FIG. 1B is a diagram illustrating an outline of an evaluation method according to the embodiment;

図1Aに示すように、シミュレーションシステムSは、評価装置1と、シミュレーション装置10と、模擬装置11と、ECU(Electronic Control Unit)12とを備える。シミュレーションシステムSは、いわゆるHILS(Hardware In the Loop Simulation)であり、ECU12の制御対象となる車両の各部(エンジンやトランスミッション等)を模擬装置11およびシミュレーション装置10により仮想的に作り上げることで、実物のECU12と仮想的な車両とを連動して動作させて、ECU12に組み込まれた制御プログラムのロジック評価等を行うシステムである。なお、ECU12は、制御装置の一例である。 As shown in FIG. 1A, the simulation system S includes an evaluation device 1, a simulation device 10, a simulation device 11, and an ECU (Electronic Control Unit) 12. As shown in FIG. The simulation system S is a so-called HILS (Hardware In the Loop Simulation), in which each part of the vehicle (engine, transmission, etc.) to be controlled by the ECU 12 is virtually created by the simulation device 11 and the simulation device 10, so that the actual vehicle can be simulated. It is a system that operates the ECU 12 and a virtual vehicle in conjunction with each other to perform logic evaluation of a control program incorporated in the ECU 12 and the like. In addition, ECU12 is an example of a control apparatus.

評価装置1は、例えば、ECU12の開発者等であるユーザが操作する端末装置である。評価装置1は、例えば、デスクトップ型やノートパソコン型のPC(Personal Computer)、スマートフォン、タブレット端末等である。 The evaluation device 1 is, for example, a terminal device operated by a user such as a developer of the ECU 12 . The evaluation device 1 is, for example, a desktop or laptop PC (Personal Computer), a smart phone, a tablet terminal, or the like.

評価装置1は、例えば、シミュレーションシステムSにおける入力データ(シミュレーション装置10のモデル演算に必要になるデータ)をユーザから受け付けて、シミュレーション装置10へ出力する。入力データはシミュレーション条件とも言え、具体的なデータ内容は、車両を制御するドライバの操作データ(アクセル、ブレーキ、ステアリング、シフト等の各操作内容)や、車両の走行環境(天気や、道路種別等)や、走行性能(馬力や、加速性能、減速性能、車体形状、車種等)等に関する情報を含む。 The evaluation device 1 receives, for example, input data (data necessary for model calculation of the simulation device 10 ) in the simulation system S from the user and outputs the data to the simulation device 10 . The input data can be said to be simulation conditions, and the specific data contents are the operation data of the driver who controls the vehicle (each operation details such as accelerator, brake, steering, shift, etc.), the driving environment of the vehicle (weather, road type, etc.) ), driving performance (horsepower, acceleration performance, deceleration performance, vehicle body shape, vehicle type, etc.).

また、評価装置1は、シミュレーション条件を基にシミュレーション装置10、模擬装置11およびECU12がシミュレーションした結果である出力データをシミュレーション装置10から取得して画面に表示する。これにより、ユーザは、画面に表示されたシミュレーション結果を確認することによって、ECU12の動作を検証することができる。 In addition, the evaluation device 1 acquires from the simulation device 10 the output data, which are the results of the simulation performed by the simulation device 10, the simulation device 11, and the ECU 12 based on the simulation conditions, and displays the output data on the screen. Thereby, the user can verify the operation of the ECU 12 by checking the simulation result displayed on the screen.

また、評価装置1は、過去のシミュレーション結果と、今回のシミュレーション結果とを比較する退行テストを自動で実行するが、かかる点については後述する。 In addition, the evaluation apparatus 1 automatically executes a regression test for comparing past simulation results and current simulation results, which will be described later.

シミュレーション装置10は、評価装置1から入力されたシミュレーション条件に従って模擬装置11およびECU12によるシミュレーションを実行し、シミュレーションの結果である出力データを評価装置1へ送信する。 The simulation device 10 executes a simulation by the simulation device 11 and the ECU 12 according to the simulation conditions input from the evaluation device 1 and transmits output data, which is the result of the simulation, to the evaluation device 1 .

具体的には、シミュレーション装置10は、シミュレーション条件に基づいて、例えば、走行環境や走行性能における車両の動作を数式等によりモデル化した車両モデルをECU12の制御対象(エンジンやトランスミッション等)毎に生成する。そして、シミュレーション装置10は、生成した車両モデルに対して、シミュレーション条件に含まれる入力データを入力し、車両モデルから出力される車両の挙動に関する挙動情報を模擬装置11へ出力する。 Specifically, based on the simulation conditions, the simulation device 10 generates, for example, a vehicle model in which behavior of the vehicle in the driving environment and driving performance is modeled using mathematical formulas or the like for each control object (engine, transmission, etc.) of the ECU 12. do. Then, the simulation device 10 inputs input data included in the simulation conditions to the generated vehicle model, and outputs behavior information regarding the behavior of the vehicle output from the vehicle model to the simulation device 11 .

模擬装置11は、ECU12の制御対象を模擬した装置である。模擬装置11は、シミュレーション装置10から入力される挙動情報に基づいた車両信号を模擬した模擬信号を生成し、ECU12へ出力する。この模擬信号は、実物の制御対象(車両の各部)からECU12へ出力される信号を模擬した信号である。つまり、シミュレーション処理において、制御対象から実際に入力される信号を模擬した信号がECU12へ入力される。 The simulation device 11 is a device that simulates an object controlled by the ECU 12 . The simulation device 11 generates a simulation signal that simulates a vehicle signal based on behavior information input from the simulation device 10 and outputs the simulation signal to the ECU 12 . This simulated signal is a signal that simulates a signal output to the ECU 12 from a real object to be controlled (each part of the vehicle). That is, in the simulation process, a signal simulating a signal actually input from the controlled object is input to the ECU 12 .

そして、模擬装置11は、模擬信号に対するECU12の応答信号を受信し、かかる応答信号をシミュレーション装置10で処理可能な応答情報に変換してシミュレーション装置10へ出力する。この応答信号は、ECU12から制御対象に実際に出力される制御信号に相当する。なお、模擬装置11は、シミュレーション装置10がシミュレーション周期内で演算しきれない複雑なモデル(モータモデル等)を、ハードウェアにより高速に演算処理する機能を有してもよい。 The simulation device 11 receives a response signal from the ECU 12 to the simulation signal, converts the response signal into response information that can be processed by the simulation device 10 , and outputs the response information to the simulation device 10 . This response signal corresponds to the control signal actually output from the ECU 12 to the controlled object. Note that the simulation device 11 may have a function of performing high-speed arithmetic processing by hardware on a complicated model (motor model, etc.) that the simulation device 10 cannot calculate within a simulation period.

なお、シミュレーション装置10は、取得した応答情報を評価装置1で処理可能な出力データに変換して評価装置1へ出力する。このように、シミュレーションシステムSでは、評価装置1からのシミュレーション条件に従って、シミュレーション装置10がECU12と模擬装置11との間で車両制御のシミュレーションを実行させる。 The simulation device 10 converts the acquired response information into output data that can be processed by the evaluation device 1 and outputs the output data to the evaluation device 1 . As described above, in the simulation system S, the simulation device 10 causes the ECU 12 and the simulation device 11 to execute vehicle control simulation according to the simulation conditions from the evaluation device 1 .

ここで、図1Bを用いて、実施形態に係る評価装置1によって実行される評価方法により退行テストを行う場合について説明する。ここでいう、退行テストとは、シミュレーション装置10およびECU12の少なくとも一方のプログラムを変更した場合にリグレッションが発生していないかを検証するテストである。なお、ここでいうリグレッションとは、プログラムの一部を変更したことで、他の箇所(他のプログラムや演算結果等)に不具合が生じている状態を指す。 Here, a case where a regression test is performed by the evaluation method executed by the evaluation device 1 according to the embodiment will be described with reference to FIG. 1B. The term "regression test" as used herein is a test for verifying whether or not regression occurs when the program of at least one of the simulation device 10 and the ECU 12 is changed. The term "regression" as used herein refers to a state in which a part of a program is changed, causing problems in other parts (other programs, calculation results, etc.).

なお、シミュレーション装置10のプログラムとは、上述した、車両モデルを生成するプログラムである。また、ECU12のプログラムとは、ECU12に組み込まれる制御プログラムである。 The program of the simulation device 10 is the above-described program for generating the vehicle model. Also, the program of the ECU 12 is a control program incorporated in the ECU 12 .

実施形態に係る評価方法では、シミュレーション装置10およびECU12の少なくとも一方のプログラムを変更してシミュレーションを実行した場合に、プログラムの変更前後におけるデータセット(入力データおよび出力データの組)を比較する退行テストを実行する。 In the evaluation method according to the embodiment, when the program of at least one of the simulation device 10 and the ECU 12 is changed and a simulation is executed, a regression test is performed to compare data sets (sets of input data and output data) before and after changing the program. to run.

具体的には、図1Bに示すように、まず、評価装置1は、プログラム変更前に行われたシミュレーションにおける入力データおよび出力データの組であるデータセット(変更前)を記憶部3に記憶しておく。 Specifically, as shown in FIG. 1B, the evaluation device 1 first stores a data set (before change), which is a set of input data and output data in the simulation performed before the program change, in the storage unit 3. Keep

そして、評価装置1は、プログラムを変更した後にシミュレーションを行い、得られるデータセット(変更後)と、記憶部3に記憶されたデータセット(変更前)とを比較する比較処理を行うことで、プログラムの変更による退行テストを実行する。 Then, the evaluation device 1 performs a simulation after changing the program, and performs comparison processing for comparing the obtained data set (after change) with the data set (before change) stored in the storage unit 3. Run regression tests for program changes.

そして、評価装置1は、退行テストの結果を不図示の表示部等により表示することで、開発者に退行テストの結果を確認させる。つまり、実施形態に係る評価方法では、プログラム変更前後のデータセットを自動で比較して退行テストを実行する。 Then, the evaluation device 1 displays the regression test results on a display unit (not shown) or the like, thereby allowing the developer to confirm the regression test results. That is, in the evaluation method according to the embodiment, the regression test is executed by automatically comparing the data sets before and after the program change.

これにより、実施形態に係る評価方法では、開発者がシミュレーション結果を手作業で比較する必要がないため、退行テストを効率良く行うことができる。 Accordingly, in the evaluation method according to the embodiment, since the developer does not need to manually compare the simulation results, the regression test can be performed efficiently.

なお、実施形態に係る評価方法では、プログラム変更後のシミュレーションと並行して退行テストを行う、すなわち、リアルタイムで退行テストを行うことができる。これにより、例えば、リグレッションが発生した場合に即座にシミュレーションを中止できるため、シミュレーション終了を待たずに開発者が不具合の解消作業に取り掛かることができる。 In addition, in the evaluation method according to the embodiment, the regression test can be performed in parallel with the simulation after the program change, that is, the regression test can be performed in real time. As a result, for example, when a regression occurs, the simulation can be stopped immediately, so the developer can start working on solving the problem without waiting for the end of the simulation.

また、実施形態に係る評価方法では、一部のデータセットを指定して退行テストを行ったり、退行テストの開始タイミングを指定したりできるが、かかる点の詳細については後述する。 Further, in the evaluation method according to the embodiment, it is possible to perform a regression test by specifying a part of the data set and to specify the start timing of the regression test, which will be described later in detail.

次に、図2を用いて、実施形態に係る評価装置1の構成例について説明する。図2は、実施形態に係る評価装置1の構成例を示す機能ブロック図である。なお、図2のブロック図では、本実施形態の特徴を説明するために必要な構成要素のみを機能ブロックで表しており、一般的な構成要素についての記載を省略している。 Next, a configuration example of the evaluation device 1 according to the embodiment will be described with reference to FIG. FIG. 2 is a functional block diagram showing a configuration example of the evaluation device 1 according to the embodiment. In addition, in the block diagram of FIG. 2, only the components necessary for explaining the features of the present embodiment are represented by functional blocks, and the description of general components is omitted.

換言すれば、図2のブロック図に図示される各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。例えば、各機能ブロックの分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することが可能である。 In other words, each component illustrated in the block diagram of FIG. 2 is functionally conceptual and does not necessarily need to be physically configured as illustrated. For example, the specific forms of distribution and integration of each functional block are not limited to those shown in the figure, and all or part of them can be functionally or physically distributed in arbitrary units according to various loads and usage conditions.・It is possible to integrate and configure.

図2に示すように、評価装置1は、制御部2と、記憶部3と、出力部4とを備える。また、評価装置1は、シミュレーション装置10に接続される。 As shown in FIG. 2 , the evaluation device 1 includes a control section 2 , a storage section 3 and an output section 4 . The evaluation device 1 is also connected to the simulation device 10 .

出力部4は、制御部2から出力される各種情報を出力する。出力部4は、例えば、情報を表示するディスプレイ(表示部)や、情報を音として出力するスピーカ等である。 The output unit 4 outputs various information output from the control unit 2 . The output unit 4 is, for example, a display (display unit) that displays information, a speaker that outputs information as sound, or the like.

ここで、評価装置1は、例えば、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)、ハードディスクドライブ、入出力ポートなどを有するコンピュータや各種の回路を含む。 Here, the evaluation device 1 includes, for example, a computer having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), a hard disk drive, an input/output port, and various circuits.

コンピュータのCPUは、例えば、ROMに記憶されたプログラムを読み出して実行することによって、制御部2の受付部21、実行部22および比較部23として機能する。 The CPU of the computer functions as the reception unit 21, the execution unit 22, and the comparison unit 23 of the control unit 2 by reading and executing programs stored in the ROM, for example.

また、制御部2の受付部21、実行部22および比較部23が有する機能の少なくともいずれか一部または全部をASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)等のハードウェアで構成することもできる。 At least some or all of the functions of the reception unit 21, the execution unit 22, and the comparison unit 23 of the control unit 2 are configured by hardware such as ASIC (Application Specific Integrated Circuit) and FPGA (Field Programmable Gate Array). You can also

記憶部3は、例えば、不揮発性メモリやフラッシュメモリ、ハードディスクドライブといった記憶デバイスで構成される記憶部である。かかる記憶部3には、データセット情報31や、各種プログラムなどが記憶される。 The storage unit 3 is, for example, a storage unit configured by a storage device such as a nonvolatile memory, a flash memory, or a hard disk drive. Data set information 31 and various programs are stored in the storage unit 3 .

データセット情報31は、シミュレーションシステムSにおいて実行されるシミュレーションへの入力データと、シミュレーションの結果である出力データとの組であるデータセットを含む情報である。 The data set information 31 is information including a data set that is a set of input data to the simulation executed in the simulation system S and output data that is the result of the simulation.

次に、制御部2の各機能(受付部21、実行部22および比較部23)について説明する。 Next, each function of the control unit 2 (accepting unit 21, executing unit 22 and comparing unit 23) will be described.

受付部21は、各種情報を受け付ける。受付部21は、例えば、シミュレーションに用いられる入力データを受け付ける。入力データには、例えば、車両を制御するドライバの操作データ(アクセル、ブレーキ、ステアリング、シフト等の各操作内容)や、車両の走行環境(天気や、道路種別等)、走行性能(馬力や、加速性能、減速性能、車体形状、車種等)に関する情報が含まれる。また、受付部21は、退行テストを開始する開始タイミングの情報を受け付ける。開始タイミングの情報は、例えば、所定時間後といった時間情報であってもよく、上記した走行環境や、走行性能等を指定する情報であってもよい。 The reception unit 21 receives various types of information. The receiving unit 21 receives, for example, input data used for simulation. The input data includes, for example, operation data of the driver who controls the vehicle (operation details such as accelerator, brake, steering, shift, etc.), vehicle driving environment (weather, road type, etc.), driving performance (horsepower, acceleration performance, deceleration performance, body shape, vehicle type, etc.). In addition, the reception unit 21 receives information on the start timing for starting the regression test. The start timing information may be, for example, time information such as after a predetermined time, or may be information specifying the above-described driving environment, driving performance, and the like.

また、受付部21は、入力データを受け付けた際に、かかる入力データに基づく退行テストを実行するか否かを受け付ける。 Further, when accepting input data, the accepting unit 21 accepts whether or not to execute a regression test based on the input data.

また、受付部21は、データセットのうち、退行テストにおいて比較する一部のデータ範囲を受け付けてもよい。データ範囲は、時間等の期間に基づく範囲であってもよく、データ項目の範囲(入力される操作データや走行環境、走行性能等のデータ項目のうちどのデータを比較対象とするか)であってもよい。また、データ範囲は、上記した開始タイミングから指定された終了タイミングまでの範囲であってもよい。 Further, the receiving unit 21 may receive a partial data range to be compared in the regression test in the data set. The data range may be a range based on a period such as time, and may be a range of data items (which data among data items such as input operation data, driving environment, and driving performance are to be compared). may Also, the data range may be the range from the above-described start timing to the designated end timing.

なお、データ範囲は、複数設定されてもよい。具体的には、受付部21は、データセットのうち、退行テストにおいて比較するデータ範囲を複数受け付けてもよい。 Note that a plurality of data ranges may be set. Specifically, the receiving unit 21 may receive a plurality of data ranges to be compared in the regression test in the data set.

また、受付部21は、プログラムの変更によりデータセットの一部のデータが異なる場合、異なる一部のデータを比較対象から除外する除外対象として受け付ける。なお、除外対象となる一部のデータは、例えば、プログラムの変更内容を示す変更情報に基づいて自動で判定してもよい。 Further, when part of the data in the data set is different due to a change in the program, the receiving unit 21 receives the different part of the data as an exclusion target to be excluded from the comparison target. Note that some data to be excluded may be determined automatically based on, for example, change information indicating the content of program changes.

あるいは、受付部21は、プログラムの変更後に受け付けた入力データと、変更前の入力データとを比較し、異なる入力データを検出した場合には、かかる入力データおよび入力データに対応する出力データを除外対象として自動で検出してもよい。 Alternatively, the receiving unit 21 compares the input data received after changing the program with the input data before the change, and if different input data is detected, excludes the input data and the output data corresponding to the input data. It may be automatically detected as a target.

また、受付部21は、退行テストにおける比較の許容範囲を受け付けてもよい。つまり、許容範囲とは、後段の比較部23による比較処理において、プログラム変更前後におけるデータセットの差異をリグレッションとしないような範囲である。 In addition, the receiving unit 21 may receive the allowable range of comparison in the regression test. In other words, the allowable range is a range in which the difference between the data sets before and after the program change is not regarded as a regression in the comparison processing by the comparison unit 23 at the later stage.

実行部22は、受付部21によって受け付けられた入力データに基づいてシミュレーション条件を生成し、シミュレーション条件に従ってシミュレーションを実行する。 The execution unit 22 generates simulation conditions based on the input data received by the reception unit 21, and executes simulation according to the simulation conditions.

また、実行部22は、シミュレーションにおける入力データと、シミュレーションの結果である出力データとの組であるデータセットをデータセット情報31として記憶部3に記憶する。 The execution unit 22 also stores a data set, which is a set of input data in the simulation and output data as a result of the simulation, in the storage unit 3 as data set information 31 .

また、実行部22は、退行テストを実行することを受付部21が受け付けた場合には、プログラムの変更後の入力データおよび出力データの組であるデータセットを比較部23へ出力する。具体的には、実行部22は、プログラムの変更前のシミュレーションの差異に用いた入力データを用いて、プログラムの変更後のシミュレーションを実行する。 Further, when the accepting unit 21 accepts execution of the regression test, the executing unit 22 outputs a data set, which is a set of input data and output data after the program is changed, to the comparing unit 23 . Specifically, the execution unit 22 executes the simulation after changing the program using the input data used for the difference in the simulation before changing the program.

比較部23は、退行テストを実行することを受付部21が受け付けた場合、プログラム変更前後におけるデータセットを比較する退行テストを実行する。 When the accepting unit 21 accepts the execution of the regression test, the comparison unit 23 performs the regression test for comparing the data sets before and after the program change.

そして、比較部23は、プログラム変更前後におけるデータセットに差異が生じた場合、詳細には、変更後の出力データが変更前の出力データに比べて変化した場合に、リグレッションの発生を検出する。 Then, the comparison unit 23 detects occurrence of regression when there is a difference between the data sets before and after the program change, more specifically, when the output data after the change changes compared to the output data before the change.

そして、比較部23は、リグレッションの発生を検出した場合には、出力部4を介して開発者へ通知する。出力部4によって通知される情報は、例えば、リグレッションの発生を示す情報や、リグレッションが発生したデータ箇所を示す情報、リグレッションの内容を示す情報等を通知する。このように、比較部23は、出力部4を介して退行テストの結果を通知することで、開発者がリグレッションの情報を即座に把握することができる。 Then, when the comparison unit 23 detects the occurrence of a regression, the comparison unit 23 notifies the developer via the output unit 4 . The information notified by the output unit 4 includes, for example, information indicating the occurrence of a regression, information indicating the data location where the regression has occurred, information indicating the content of the regression, and the like. In this manner, the comparison unit 23 notifies the result of the regression test via the output unit 4, so that the developer can immediately grasp the regression information.

また、比較部23は、実行部22によってプログラム変更後のシミュレーションが退行テストと並行して実行されている場合、かかるシミュレーションを中止する。なお、比較部23は、複数箇所でリグレッションが発生していることを考慮して、リグレッション検出後も継続してシミュレーションを実行してもよい。 Further, when the execution unit 22 is executing the simulation after the program change in parallel with the regression test, the comparison unit 23 stops the simulation. Note that the comparison unit 23 may continue to perform the simulation even after the regression is detected, taking into account that the regression occurs at multiple locations.

なお、比較部23は、受付部21によって退行テストの開始タイミングが指定された場合には、かかる開始タイミングの到来をトリガとして退行テストを実行してもよい。つまり、比較部23は、シミュレーションが行われる期間のうち、予め指定された開始タイミングで退行テストの実行を開始する。これにより、シミュレーションにおける入力データや出力データのタイミングが異なる場合であっても、高精度に退行テストを行うことができる。 Note that, when the reception unit 21 specifies the start timing of the regression test, the comparison unit 23 may execute the regression test triggered by the arrival of the start timing. In other words, the comparison unit 23 starts executing the regression test at the start timing specified in advance during the simulation period. As a result, even if the timings of input data and output data in the simulation are different, the regression test can be performed with high accuracy.

また、比較部23は、受付部21によって一部のデータ範囲のみ退行テストを行うことが受け付けられた場合、かかるデータ範囲の開始タイミングから終了タイミングまでのデータセットを比較する退行テストを行ってもよい。つまり、比較部23は、データセットのうち、一部のデータ範囲を比較する退行テストを実行する。これにより、例えば、プログラム変更により影響を受ける可能性が高いデータセットのみ比較することができる。 Further, when the acceptance unit 21 accepts that the regression test is performed only for a part of the data range, the comparison unit 23 may perform the regression test by comparing the data sets from the start timing to the end timing of the data range. good. That is, the comparison unit 23 executes a regression test that compares some data ranges in the data set. This allows, for example, comparison of only data sets that are likely to be affected by program changes.

また、比較部23は、プログラムの変更によりデータセットの一部のデータが異なる場合には、異なる一部のデータを退行テストの比較対象から除外する。具体的には、比較部23は、受付部21によって受け付けられた除外対象のデータを除いたデータセットを比較する退行テストを実行する。これにより、データセットのうち、一部のデータが異なる場合に、異なる一部のデータをリグレッションと誤検出してしまうことを高精度に回避することができる。 In addition, when part of the data in the data set is different due to a change in the program, the comparison unit 23 excludes the different part of the data from comparison targets of the regression test. Specifically, the comparison unit 23 executes a regression test that compares the data sets received by the reception unit 21 and excluding the data to be excluded. As a result, it is possible to avoid, with high accuracy, erroneously detecting the different data as a regression when some of the data in the data set are different.

また、比較部23は、退行テストを行う場合、プログラム変更前後のデータセットの差異が受付部21によって受け付けられた許容範囲内であれば、同一である(リグレッション無し)と判定してもよい。これにより、例えば、データセットが、アナログ信号のように計測毎に値が変化する場合であっても、高精度に退行テストを実行することができる。 Further, when performing a regression test, the comparison unit 23 may determine that the data sets are the same (no regression) if the difference between the data sets before and after the program change is within the allowable range accepted by the acceptance unit 21 . As a result, for example, even if the data set changes values for each measurement like an analog signal, it is possible to perform a regression test with high accuracy.

次に、図3および図4を用いて、実施形態に係る評価装置1において実行される処理の手順について説明する。図3は、実施形態に係る評価装置1によって実行されるデータセットの記憶処理の処理手順を示すフローチャートである。図4は、実施形態に係る評価装置1によって実行される全体処理の処理手順を示すフローチャートである。 Next, a procedure of processing executed in the evaluation device 1 according to the embodiment will be described with reference to FIGS. 3 and 4. FIG. FIG. 3 is a flow chart showing a processing procedure of data set storage processing executed by the evaluation device 1 according to the embodiment. FIG. 4 is a flow chart showing the processing procedure of the overall processing executed by the evaluation device 1 according to the embodiment.

まず、図3を用いて、データセットの記憶処理について説明する。 First, data set storage processing will be described with reference to FIG.

図3に示すように、受付部21は、シミュレーションにおける入力データを受け付ける(ステップS101)。つづいて、実行部22は、入力データをシミュレーション装置10へ送信することでシミュレーションを実行する(ステップS102)。つづいて、実行部22は、入力データと、シミュレーションの結果である出力データとを対応付けたデータセットをデータセット情報31として記憶部3に記憶し(ステップS103)、処理を終了する。 As shown in FIG. 3, the receiving unit 21 receives input data for simulation (step S101). Subsequently, the execution unit 22 executes the simulation by transmitting the input data to the simulation device 10 (step S102). Subsequently, the execution unit 22 stores the data set in which the input data and the output data, which is the result of the simulation, are associated as the data set information 31 in the storage unit 3 (step S103), and ends the process.

次に、図4を用いて、評価装置1が行う全体処理について説明する。 Next, the overall processing performed by the evaluation device 1 will be described with reference to FIG.

図4に示すように、まず、受付部21は、シミュレーションにおける入力データを受け付ける(ステップS201)。つづいて、実行部22は、入力データをシミュレーション装置10へ送信することでシミュレーションを実行する(ステップS202)。 As shown in FIG. 4, first, the receiving unit 21 receives input data for simulation (step S201). Subsequently, the execution unit 22 executes the simulation by transmitting the input data to the simulation device 10 (step S202).

つづいて、比較部23は、シミュレーション実行中において、退行テストの開始タイミングが到来したか否かを判定する(ステップS203)。比較部23は、開始タイミングが到来した場合(ステップS203:Yes)、開始タイミングから収集した出力データを含むデータセットと、プログラム変更前である過去のデータセットとを比較する(ステップS204)。 Subsequently, the comparison unit 23 determines whether or not it is time to start the regression test during execution of the simulation (step S203). When the start timing arrives (step S203: Yes), the comparison unit 23 compares the data set including the output data collected from the start timing with the past data set before the program change (step S204).

なお、比較部23は、開始タイミングが到来していない場合(ステップS203:No)、ステップS202に戻る。 In addition, the comparison part 23 returns to step S202, when the start timing has not arrived (step S203: No).

つづいて、比較部23は、退行テストの結果において、リグレッションが発生したか否かを判定する(ステップS205)。比較部23は、リグレッションが発生した場合(ステップS205:Yes)、シミュレーションを中止する(ステップS206)。 Subsequently, the comparison unit 23 determines whether or not a regression has occurred in the regression test results (step S205). If a regression occurs (step S205: Yes), the comparison unit 23 stops the simulation (step S206).

つづいて、比較部23は、退行テストの結果を通知し(ステップS207)、処理を終了する。なお、結果の通知では、リグレッションの発生と、データセットにおけるリグレッションの発生箇所とを通知する。 Subsequently, the comparison unit 23 notifies the result of the regression test (step S207), and terminates the process. In the result notification, the occurrence of the regression and the location of the regression in the data set are notified.

一方、ステップS205において、比較部23は、リグレッションが発生していない場合(ステップS205:No)、シミュレーションが終了したか否かを判定する(ステップS208)。 On the other hand, in step S205, if no regression has occurred (step S205: No), the comparison unit 23 determines whether or not the simulation has ended (step S208).

比較部23は、シミュレーションが終了した場合(ステップS208:Yes)、出力部4を介してシミュレーション終了を通知し(ステップS209)、処理を終了する。なお、シミュレーション終了の通知では、リグレッションが発生しなかったことを併せて通知する。 When the simulation ends (step S208: Yes), the comparison unit 23 notifies the end of the simulation through the output unit 4 (step S209), and ends the process. Note that the notification of the end of the simulation also notifies that no regression has occurred.

一方、ステップS208において、比較部23は、シミュレーションが終了していない場合(ステップS208:No)、ステップS204に戻る。 On the other hand, in step S208, if the simulation has not ended (step S208: No), the comparison unit 23 returns to step S204.

なお、ステップS205においてリグレッションが発生した場合に、即座にシミュレーションの中止を行わず、シミュレーションを一時休止する等して、ユーザにシミュレーションを中止するか確認するように構成しても良い。 It should be noted that if a regression occurs in step S205, the simulation may not be stopped immediately, but the simulation may be paused to ask the user whether to stop the simulation.

上述してきたように、実施形態に係る評価装置1は、制御部2と、記憶部3とを備える。制御部2は、制御装置(ECU12)と、制御装置の制御対象を模擬した模擬装置11との間で制御のシミュレーションを実行させるシミュレーション装置10に対してシミュレーションの入力データを出力し、シミュレーションの結果である出力データを収集する。記憶部3は、入力データおよび出力データの組であるデータセットを記憶する。制御部2は、制御装置およびシミュレーション装置10の少なくとも一方のプログラムを変更してシミュレーションを実行した場合に、プログラムの変更前後におけるデータセットを比較する退行テストを実行する。これにより、退行テストを効率良く行うことができるができる。 As described above, the evaluation device 1 according to the embodiment includes the control section 2 and the storage section 3 . The control unit 2 outputs simulation input data to a simulation device 10 that executes a control simulation between a control device (ECU 12) and a simulation device 11 that simulates a controlled object of the control device, and outputs simulation results. Collect the output data that is The storage unit 3 stores data sets that are pairs of input data and output data. When the control unit 2 changes the program of at least one of the control device and the simulation device 10 and executes the simulation, the control unit 2 executes a regression test for comparing data sets before and after changing the program. This allows efficient regression testing.

さらなる効果や変形例は、当業者によって容易に導き出すことができる。このため、本発明のより広範な態様は、以上のように表しかつ記述した特定の詳細および代表的な実施形態に限定されるものではない。したがって、添付の特許請求の範囲およびその均等物によって定義される総括的な発明の概念の精神または範囲から逸脱することなく、様々な変更が可能である。 Further effects and modifications can be easily derived by those skilled in the art. Therefore, the broader aspects of the invention are not limited to the specific details and representative embodiments so shown and described. Accordingly, various changes may be made without departing from the spirit or scope of the general inventive concept defined by the appended claims and equivalents thereof.

1 評価装置
2 制御部
3 記憶部
4 出力部
10 シミュレーション装置
11 模擬装置
12 ECU
21 受付部
22 実行部
23 比較部
31 データセット情報
S シミュレーションシステム
1 evaluation device 2 control unit 3 storage unit 4 output unit 10 simulation device 11 simulation device 12 ECU
21 reception unit 22 execution unit 23 comparison unit 31 data set information S simulation system

Claims (6)

制御装置と、前記制御装置の制御対象を模擬した模擬装置との間で制御のシミュレーションを実行させるシミュレーション装置に対して前記シミュレーションの入力データを出力し、前記シミュレーションの結果である出力データを収集する制御部と、
前記入力データおよび前記出力データの組であるデータセットを記憶する記憶部と、
を備え、
前記制御部は、
前記制御装置および前記シミュレーション装置の少なくとも一方のプログラムを変更した場合に、前記記憶部に記憶された前記入力データを用いて前記シミュレーションを実行し、前記プログラムの変更前後における前記データセットを比較する退行テストを実行すること
を特徴とする評価装置。
Input data for the simulation is output to a simulation device that executes a control simulation between a control device and a simulation device that simulates a control target of the control device, and output data as a result of the simulation is collected. a control unit;
a storage unit that stores a data set that is a set of the input data and the output data;
with
The control unit
When the program of at least one of the control device and the simulation device is changed, the simulation is executed using the input data stored in the storage unit, and the data set is compared before and after the program is changed. An evaluation device characterized by executing a test.
前記制御部は、
前記データセットのうち、一部のデータ範囲を比較する前記退行テストを実行すること
を特徴とする請求項1に記載の評価装置。
The control unit
2. The evaluation apparatus according to claim 1, wherein said regression test is executed by comparing a partial data range of said data set.
前記退行テストは、
変更後の前記プログラムによる前記シミュレーションと並行して実行されるものであり、
前記制御部は、
前記シミュレーションが行われている期間のうち、予め指定された開始タイミングで前記退行テストを開始すること
を特徴とする請求項1または2に記載の評価装置。
The regression test is
It is executed in parallel with the simulation by the changed program,
The control unit
3. The evaluation apparatus according to claim 1, wherein the regression test is started at a start timing specified in advance during the period in which the simulation is performed.
前記制御部は、
前記プログラムの変更により前記データセットの一部のデータが異なる場合、前記一部のデータを前記退行テストの比較対象から除外すること
を特徴とする請求項1~3のいずれか1つに記載の評価装置。
The control unit
4. The method according to any one of claims 1 to 3, wherein if part of the data in the data set is different due to a change in the program, the part of the data is excluded from comparison in the regression test. Evaluation device.
情報を出力する出力部をさらに備え、
前記制御部は、
前記出力部を介して前記退行テストの結果を出力すること
を特徴とする請求項1~4のいずれか1つに記載の評価装置。
further comprising an output unit for outputting information,
The control unit
The evaluation apparatus according to any one of claims 1 to 4, wherein the result of the regression test is output via the output unit.
制御装置と、前記制御装置の制御対象を模擬した模擬装置との間で制御のシミュレーションを実行させるシミュレーション装置に対して前記シミュレーションの入力データを出力し、前記シミュレーションの結果である出力データを収集する制御工程と、
前記入力データおよび前記出力データの組であるデータセットを記憶部に記憶する記憶工程と、
を含み、
前記制御工程は、
前記制御装置および前記シミュレーション装置の少なくとも一方のプログラムを変更した場合に、前記記憶部に記憶された前記入力データを用いて前記シミュレーションを実行し、前記プログラムの変更前後における前記データセットを比較する退行テストを実行すること
を特徴とする評価方法。
Input data for the simulation is output to a simulation device that executes a control simulation between a control device and a simulation device that simulates a control target of the control device, and output data as a result of the simulation is collected. a control step;
a storage step of storing a data set, which is a set of the input data and the output data, in a storage unit;
including
The control step includes
When the program of at least one of the control device and the simulation device is changed, the simulation is executed using the input data stored in the storage unit, and the data set is compared before and after the program is changed. An evaluation method characterized by running a test.
JP2021020241A 2021-02-10 2021-02-10 Evaluation device and evaluation method Pending JP2022122773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021020241A JP2022122773A (en) 2021-02-10 2021-02-10 Evaluation device and evaluation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021020241A JP2022122773A (en) 2021-02-10 2021-02-10 Evaluation device and evaluation method

Publications (1)

Publication Number Publication Date
JP2022122773A true JP2022122773A (en) 2022-08-23

Family

ID=82939288

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021020241A Pending JP2022122773A (en) 2021-02-10 2021-02-10 Evaluation device and evaluation method

Country Status (1)

Country Link
JP (1) JP2022122773A (en)

Similar Documents

Publication Publication Date Title
US20170146987A1 (en) Electronic control module testing system
US20180157571A1 (en) Method for the realistic estimation of function run times in pil simulation
JP6248008B2 (en) Software verification system and control device
US9646252B2 (en) Template clauses based SAT techniques
CN112052070A (en) Application containerization evaluation method and device, electronic equipment and storage medium
JP2022122773A (en) Evaluation device and evaluation method
US10372849B2 (en) Performing and communicating sheet metal simulations employing a combination of factors
US8627273B2 (en) Model checking of liveness property in a phase abstracted model
CN111295658B (en) Simulation device, simulation method, and computer-readable storage medium
US10289512B2 (en) Persistent command parameter table for pre-silicon device testing
CN100489794C (en) System and method for detecting time of starting up computer system
CN110988661B (en) FPGA prototype verification development board time division analysis system, method, medium and terminal
WO2019142266A1 (en) Test case generation device, test case generation method, and test case generation program
CN112214389A (en) Public testing method, device, terminal and storage medium
US20030233504A1 (en) Method for detecting bus contention from RTL description
US20110218793A1 (en) Concretization of abstracted traces
CN117033113B (en) Control circuit and method for signal delay
US7467366B2 (en) Method for generating a timing path software monitor for identifying a critical timing path in hardware devices coupled between components
CN117113907B (en) Verification method, verification device, electronic equipment and readable storage medium
US20170206097A1 (en) Signal path verification device
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN110716830B (en) Pressure measuring machine selection method and device, electronic equipment and storage medium
JP3144617B2 (en) Logic circuit verification method
CN117061564A (en) Verification method, device, equipment and medium for vehicle signal transmission state
JP2021149427A (en) Simulation apparatus and simulation method