JP4725557B2 - Configuration code generation device and program for configuration code generation device - Google Patents
Configuration code generation device and program for configuration code generation device Download PDFInfo
- Publication number
- JP4725557B2 JP4725557B2 JP2007200829A JP2007200829A JP4725557B2 JP 4725557 B2 JP4725557 B2 JP 4725557B2 JP 2007200829 A JP2007200829 A JP 2007200829A JP 2007200829 A JP2007200829 A JP 2007200829A JP 4725557 B2 JP4725557 B2 JP 4725557B2
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- communication
- application
- data
- recording
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
Description
本発明は、コンフィギュレーションコード生成装置およびコンフィギュレーションコード生成装置用プログラムに関する。 The present invention relates to a configuration code generation device and a program for a configuration code generation device.
従来、車両に搭載され、当該車両内の他のECUとデータ通信を行うECUの開発において、当該ECUが搭載するCPUで実行させるプログラムを、ソフトウェアプラットフォーム(以下、ソフトウェアPFという)とアプリケーションに分けて作成する方法が採用されている(例えば、特許文献1参照)。 Conventionally, in development of an ECU that is mounted on a vehicle and performs data communication with other ECUs in the vehicle, a program that is executed by a CPU mounted on the ECU is divided into a software platform (hereinafter referred to as software PF) and an application. A creation method is employed (see, for example, Patent Document 1).
ソフトウェアPFは、当該CPUを搭載するECUのハードウェアを直接駆動するためのプログラム群である。したがって、ソフトウェアPFの構成は、当該ECUのハードウェア構成に強く依存している。ソフトウェアPFの例としては、OS(例えばOSEK−OS(登録商標))、デバイスドライバがある。 The software PF is a program group for directly driving the hardware of the ECU on which the CPU is mounted. Therefore, the configuration of the software PF strongly depends on the hardware configuration of the ECU. Examples of the software PF include an OS (for example, OSEK-OS (registered trademark)) and a device driver.
アプリケーションは、ソフトウェアPFの提供する機能を利用することで、当該CPUを搭載するECUのハードウェアを駆動するプログラム群である。アプリケーションとしては、例えば、当該ECUがエンジンECUであれば、エンジン点火タイミングの計算のために必要な諸量(アクセル開度、エンジン回転速等)を他のECU(あるいは同一ECU中の他のCPU)から受信し、それら受信した情報から点火タイミングを算出し、算出した点火タイミングが実現するよう、インジェクタを制御する処理を実現するためのプログラムがある。 The application is a program group that drives the hardware of the ECU on which the CPU is mounted by using the function provided by the software PF. As an application, for example, if the ECU is an engine ECU, various amounts (accelerator opening, engine rotation speed, etc.) necessary for calculating the engine ignition timing are transferred to another ECU (or another CPU in the same ECU). ), The ignition timing is calculated from the received information, and there is a program for realizing the process of controlling the injector so that the calculated ignition timing is realized.
ソフトウェアPFが提供する機能のアプリケーションによる利用は、例えば、ソフトウェアPFが、ハードウェアを用いた作動(例えば、アクチュエータへの制御信号の出力、センサからの検出信号の取得、他のECUとの間の信号の送受信)を実行するためのアプリケーションインターフェース(以下APIという)を提供し、アプリケーションが、必要に応じてそれらAPIを呼び出すことで実現する。 The use of the function provided by the software PF is, for example, the operation of the software PF using hardware (for example, output of a control signal to an actuator, acquisition of a detection signal from a sensor, communication with another ECU) This is realized by providing an application interface (hereinafter referred to as API) for executing signal transmission / reception, and calling the API as required by the application.
異なるECUに搭載されるソフトウェアPFは、共通のAPIをアプリケーションに提供するようになっていることが多い。したがって、アプリケーションの作成においては、ECUのハードウェア構成を意識してコーディングする必要がなくなる。 Software PF installed in different ECUs often provides a common API to applications. Therefore, it is not necessary to code the application in consideration of the hardware configuration of the ECU in creating the application.
また、図2のソフトウェア階層図に示すように、ソフトウェアPF1の一部として、あるいは、ソフトウェアPF1およびコンフィギュレーションコード2とは異なるものとして、コンフィギュレーションコード2を更に開発する方法が採用されている。
Further, as shown in the software hierarchy diagram of FIG. 2, a method of further developing the
コンフィギュレーションコードは、アプリケーションが扱う通信用のデータの詳細情報を含んでいる。アプリケーションが扱う通信用のデータとは、当該アプリケーションが、他のCPUで実行される他のアプリケーションと受け渡しをするデータをいう。通信相手のアプリケーションが同じECU内の他のCPUで実行される場合には、当該通信データはCPU間通信のデータとなる。通信相手のアプリケーションが他のECU内のCPUで実行される場合には、当該通信データはECU間通信のデータとなる。 The configuration code includes detailed information of communication data handled by the application. Communication data handled by an application refers to data that the application passes to and from another application executed by another CPU. When the communication partner application is executed by another CPU in the same ECU, the communication data is data for inter-CPU communication. When the communication partner application is executed by a CPU in another ECU, the communication data is communication data between ECUs.
また、コンフィギュレーションコードは、ソフトウェアPFを利用して当該通信データの送信または受信を実現するためのプログラムを含む。ソフトウェアPFを利用して通信データの送信または受信を実現するためのプログラムとは、具体的には、データの送受信用の関数プログラム(以下、通信データ関数という)である。これらの通信データ関数は、ソフトウェアPFの提供するAPIを利用している。そして、アプリケーションは、これらデータ送受信用の通信データ関数を呼び出すことで、データの送受信を実現するように記述されている。 The configuration code includes a program for realizing transmission or reception of the communication data using the software PF. Specifically, the program for realizing transmission or reception of communication data using the software PF is a function program for data transmission / reception (hereinafter referred to as communication data function). These communication data functions use an API provided by the software PF. The application is described so as to realize data transmission / reception by calling communication data functions for data transmission / reception.
あるCPUにおけるコンフィギュレーションコードは、当該CPUで実行される全アプリケーションが扱う通信データの種類毎に1つのデータ送受信用関数を有するように構成されるのが通常である。 A configuration code in a certain CPU is usually configured to have one data transmission / reception function for each type of communication data handled by all applications executed by the CPU.
あるCPU用のプログラムの実行イメージ(すなわちオブジェクトコード)は、図3に示すように、当該CPU用のソフトウェアPF、コンフィギュレーションコード、アプリケーションをコンパイルしてリンクすることで作成される。
図4に、コンフィギュレーションコードの生成の方法の一案を概略的に示す。コンフィギュレーションコード8は、通常のコンピュータ50において実行されるプログラムであるコンフィグツール7の実行によって作成される。
FIG. 4 schematically shows a proposal of a configuration code generation method. The
図5に、コンフィグツール7を用いたコンフィギュレーションコードの作成の手順の概要をフローチャートで示す。この図に示すように、ユーザは、アプリケーション仕様4に基づいてアプリケーション設計情報テーブルを作成してコンフィグツール7に入力し(ステップ110)、システム仕様5に基づいてシステム設計情報テーブルを作成してコンフィグツール7に入力し(ステップ120)、通信仕様6に基づいて通信リソース設計情報テーブルを作成してコンフィグツール7に入力する(ステップ130)。そして、ユーザがコンフィグツール7に対して所定の実行指令を行うことで、コンフィグツール7がこれら設計情報テーブルからコンフィギュレーションコードを生成させる(ステップ140)。
FIG. 5 is a flowchart showing an outline of a procedure for creating a configuration code using the configuration tool 7. As shown in this figure, the user creates an application design information table based on the application specification 4 and inputs it to the configuration tool 7 (step 110), creates a system design information table based on the system specification 5 and configures it. Input to the tool 7 (step 120), create a communication resource design information table based on the
アプリケーション設計情報テーブルは、アプリケーションが送受信する複数種類の通信データ毎に、当該種類の通信データの発信元である送信アプリケーションと当該種類の通信データの宛先である受信アプリケーションとの対応関係を示すデータである。 The application design information table is data indicating a correspondence relationship between a transmission application that is a transmission source of the communication data of the type and a reception application that is a destination of the communication data of the type for each of a plurality of types of communication data transmitted and received by the application. is there.
システム設計情報テーブルは、車両内に搭載される複数のECU中の複数のCPU毎に、当該CPUを搭載するECU、当該CPUに接続される通信バス、および、当該CPUが実行するアプリケーションの対応関係を示すデータである。 In the system design information table, for each of a plurality of CPUs in a plurality of ECUs mounted in the vehicle, the correspondence relationship between the ECU mounting the CPU, the communication bus connected to the CPU, and the application executed by the CPU It is data which shows.
通信リソース設計情報テーブルは、1つのCPUにつき1つ作成されるようになっている。各通信リソース設計情報テーブルは、概要データ、関連性判定データ、詳細データ、およびリソースマッピングデータを有している。概要データは、複数種類の通信データ毎に、当該種類の通信データの発信元である送信CPUと当該種類の通信データの宛先である受信CPUとの対応関係を示すデータである。関連性判定データは、当該CPUが当該通信データの送受信に関与するか否かを示すデータである。詳細データは、当該通信データの詳細(例えば、送信周期)を示すデータである。リソースマッピングデータは、当該通信データの、プラットフォーム側から参照されるときの名称と、アプリケーション側から参照されるときの名称と、の対応関係を示すデータである。 One communication resource design information table is created for each CPU. Each communication resource design information table has summary data, relevance determination data, detailed data, and resource mapping data. The summary data is data indicating a correspondence relationship between a transmission CPU that is a transmission source of the communication data of the type and a reception CPU that is a destination of the communication data of the type for each of a plurality of types of communication data. The relevance determination data is data indicating whether the CPU is involved in transmission / reception of the communication data. The detailed data is data indicating details (for example, transmission cycle) of the communication data. The resource mapping data is data indicating a correspondence relationship between a name when the communication data is referred from the platform side and a name when the communication data is referred from the application side.
ユーザは、ステップ110、120、130において、コンフィグツール7に対して手作業で各種情報を入力することで、アプリケーション設計情報テーブルおよびシステム設計情報テーブルの作成を完了する。図13に、ステップ130の作業の手順をより詳細に示す。この図に示す通り、ステップ130においては、まず通信リソース設計情報テーブル中の概要データをユーザが手入力で設定し(ステップ410)、続いてリソースマッピングデータをユーザが手入力で設定し(ステップ420)、続いて関連性判定データをユーザが手入力で設定し(ステップ420)、最後に、詳細データを、ユーザが手入力で設定する(ステップ430)。なお、ステップ410〜440における手入力においては、ユーザは通信仕様6のデータを参照する。
In
以上のような手順で、アプリケーション設計情報テーブル、システム設計情報テーブル、通信リソース設計情報テーブルが作成され、それらのテーブルに基づいてコンフィギュレーションコードが自動生成される。コンフィギュレーションコード(RTE)の標準仕様については、例えば非特許文献1に記載されている。
The application design information table, the system design information table, and the communication resource design information table are created by the procedure as described above, and the configuration code is automatically generated based on these tables . The standard specification of the configuration code (RTE) is described in Non-Patent
しかし、アプリケーション設計情報テーブル、システム設計情報テーブル、通信リソース設計情報テーブルの作成は、自動化されていないので、ユーザの負担が大きい。本発明は上記の点に鑑み、車載ECUに搭載されるCPUのためのコンフィギュレーションコードの開発において、コンフィギュレーションコードの作成に必要な情報のユーザによる入力作業を軽減することを目的とする。 However, since the creation of the application design information table, system design information table, and communication resource design information table is not automated, the burden on the user is large. The present invention has been made in view of the above points, and has an object to reduce input work by a user of information necessary for creating a configuration code in the development of a configuration code for a CPU mounted on an in-vehicle ECU.
本発明者は、アプリケーション設計情報テーブルおよび通信リソース設計情報テーブルの内容が決まれば、関連性判定データの内容を決定するための情報が揃うことに着目した。 The inventor paid attention to the fact that the information for determining the contents of the relevance determination data is prepared when the contents of the application design information table and the communication resource design information table are determined.
上記目的を達成するための本発明の特徴は、車両に搭載され、複数の通信バスを介して互いにデータ通信を行う複数のECUのいずれかにそれぞれ搭載される複数のCPUのうち1つについて、当該1つのCPUCPU(以下、第1CPUという)のソフトウェアプラットフォームと前記第1CPUのアプリケーションとをコンパイルおよびリンクすることで当該第1CPUの作動を実現するためのオブジェクトコードを生成する工程、において用いられる、当該第1CPUについてのコンフィギュレーションコードであって、前記第1CPUが中継する通信データの情報を含むとともに前記ソフトウェアプラットフォームを利用して前記通信データの送信または受信を実現するためのプログラムを含むコンフィギュレーションコード、を生成するコンフィギュレーションコード生成装置についてのものである。 A feature of the present invention for achieving the above object is that one of a plurality of CPUs mounted on any of a plurality of ECUs mounted on a vehicle and performing data communication with each other via a plurality of communication buses, the single CPU CPU (hereinafter, first referred 1CPU) process for generating object code to implement the operation of the first 1CPU by compiling and linking the software platform and the first 1CPU application, used in, a configuration codes for the first 1CPU, configuration code, including a program for the first 1CPU realize the transmission or reception of the communication data by using the software platform together including information of the communication data to be relayed The raw The present invention relates to a configuration code generation device to be configured.
このコンフィギュレーションコード生成装置は、記憶媒体と、演算回路と、を備えておいる。そして、演算回路はアプリケーション設計情報テーブルの入力を受け付けて上記記憶媒体に記録する第1記録手段と、システム設計情報テーブルの入力を受け付けて上記記憶媒体に記録する第2記録手段と、を備えている。 The configuration code generation device includes a storage medium and an arithmetic circuit. The arithmetic circuit includes a first recording unit that receives an input of the application design information table and records it on the storage medium, and a second recording unit that receives an input of the system design information table and records it on the storage medium. Yes.
ここで、アプリケーション設計情報テーブルは、上記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データのそれぞれについての発信元の送信アプリケーションと宛先の受信アプリケーションとの対応関係を示すデータである。 Here, the application design information table is a correspondence relationship between the transmission application of the transmission source and the reception application of the destination for each of a plurality of types of communication data transmitted by the plurality of applications respectively executed by any of the plurality of CPUs. It is data which shows.
また、システム設計情報テーブルは、上記複数のCPUのそれぞれが上記複数のECUのうちどのECUに搭載されているか、および、上記複数のCPUのそれぞれが上記複数の通信バスのうちどの通信バスに接続されているか、および、上記複数のCPUのそれぞれが上記複数のアプリケーションのうちいずれを実行するか、についての対応関係を示すデータである。 In addition, the system design information table indicates which of the plurality of ECUs each of the plurality of CPUs is mounted on, and which of the plurality of communication buses each of the plurality of CPUs is connected to. And data indicating a correspondence relationship between each of the plurality of CPUs and which of the plurality of applications is executed.
また、演算回路は、第1CPUを対象とする関連性判定データを、上記第1および第2記録手段が記録した情報に基づいて作成して上記記憶媒体に記録する関連性記録手段を有している。当該関連性判定データは、対象とする第1CPUが通信に関与する通信データを特定するようになっている。 The arithmetic circuit has a relevance recording unit that creates relevance determination data for the first CPU based on information recorded by the first and second recording units and records the relevance determination data in the storage medium. Yes. The relevance determination data specifies communication data related to communication by the target first CPU .
さらに、演算回路は、第1および第2記録手段、および関連性記録手段が記録した情報に基づいて、上記コンフィギュレーションコードを生成して上記記憶媒体に記録するコンフィギュレーションコード生成記録手段を有している。 Further, the arithmetic circuit has configuration code generation / recording means for generating the configuration code based on the information recorded by the first and second recording means and the relationship recording means and recording the configuration code on the storage medium. ing.
このように、コンフィギュレーションコード生成装置は、コンフィギュレーションコードの生成のために必要な関連性判定データを自動的に生成・記録する。その生成の具体的手段として、関連性記録手段は、下記第1〜第3特定手段を有する。 As described above, the configuration code generation apparatus automatically generates and records relevance determination data necessary for generating the configuration code. As specific means for the generation, the relevance recording means has the following first to third specifying means.
第1特定手段は、上記アプリケーション設計情報テーブルに基づいて、上記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データのそれぞれについての発信元の送信アプリケーションおよび宛先の受信アプリケーションを特定する。 The first specifying means, based on the application design information table, is a source transmission application and destination address for each of a plurality of types of communication data transmitted by a plurality of applications respectively executed by any of the plurality of CPUs. Identify the receiving application.
第2特定手段は、更に上記第1特定手段の特定結果を上記システム設計情報テーブルに適用することで、上記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データの通信経路が、あらかじめ定められた複数の経路パターンのいずれに該当するかを特定する。 The second specifying means further applies the specifying result of the first specifying means to the system design information table, so that a plurality of types of communication data transmitted by a plurality of applications respectively executed in any of the plurality of CPUs. To which of a plurality of predetermined route patterns is specified.
第3特定手段は、上記第2特定手段の特定結果に基づいて、前記該当する経路パターンがゲートウェイのCPUによって中継される経路パターンであれば、前記第1CPUが前記通信経路でゲートウェイになっているか否かに応じて、前記第1CPUが前記通信データの中継を行うか否かを特定し、その特定結果を上記複数の関連性判定データとして上記記憶媒体に記録する。 If the corresponding route pattern is a route pattern relayed by the CPU of the gateway based on the result of the specification of the second specifying device, the third specifying unit is the first CPU serving as a gateway in the communication route. Depending on whether or not, the first CPU specifies whether or not to relay the communication data , and the identification result is recorded in the storage medium as the plurality of relevance determination data.
このように、各通信データについて、アプリケーション設計情報テーブルの送信アプリケーション−受信アプリケーションの関係、およびシステム設計情報テーブルのシステム構成から、当該通信データの経路を特定し、さらにその経路パターンを特定し、当該経路パターンに対応付けられた方法で、通信データの配送にどのCPUが関与するかの情報、すなわち関連性判定データを自動的に特定することができる。 As described above, for each communication data, the communication data path is specified from the transmission application-reception application relationship in the application design information table and the system configuration in the system design information table, and the path pattern is specified. Information relating to which CPU is involved in communication data delivery, that is, relevance determination data can be automatically specified by a method associated with a route pattern.
また、このようにして作成される各CPU用のコンフィギュレーションコードには、関連性判定データの内容が反映されるので、当該CPUが送信も受信も行わず、かつゲートウェイ(すなわち中継役)にもならないような通信データ、すなわち、当該CPUが配送に関与しないデータについては、そのデータの詳細情報を含まないように生成され、かつ、そのデータを扱う通信データ関数を含まないように生成される。したがって、生成される実行イメージのサイズが低減され、その結果、ECUのROM容量をより効率的に利用することができる。 In addition, since the content of the relevance determination data is reflected in the configuration code for each CPU created in this way, the CPU does not transmit or receive, and the gateway (that is, the relay role) also Communication data that does not become necessary, that is, data that the CPU does not participate in delivery is generated so as not to include detailed information of the data, and is generated so as not to include a communication data function that handles the data. Therefore, the size of the generated execution image is reduced, and as a result, the ROM capacity of the ECU can be used more efficiently.
また、本発明のコンフィギュレーションコード生成装置の特徴は、プログラムとして捉えることもできる。 In addition, the feature of the configuration code generation device of the present invention can be understood as a program.
以下、本発明の一実施形態について説明する。図1に、通信システム60において、複数のECU(ECU−E01、ECU−E02、ECU−E03)のそれぞれが車両内の通信バスB1、B2のいずれかまたは両方に接続されている状態の例を示す。本実施形態は、これら複数のECUのそれぞれに搭載されるCPU(CPU−C01、CPU−C02、CPU−C03、CPU−C04)に実行させるプログラムの作成の手順およびその作成の手順において用いる装置について説明する。
Hereinafter, an embodiment of the present invention will be described. FIG. 1 shows an example of a state in which a plurality of ECUs (ECU-E01, ECU-E02, ECU-E03) are connected to one or both of communication buses B1 and B2 in the vehicle in the
図2に、CPU−C01、CPU−C02、CPU−C03、CPU−C04のそれぞれにおいて実行されるプログラム群のソフトウェア階層構造を示す。各CPUが実行するプログラムは、ソフトウェアプラットフォーム(以下、ソフトウェアPFという)1、コンフィギュレーションコード(図中では、コンフィグコードと記す)2、およびアプリケーション3に分けられる。なお、コンフィギュレーションコード2は、ソフトウェアPF1の一部であると捉えてもよいし、ソフトウェアPF1とは別個のものと捉えてもよい。
FIG. 2 shows a software hierarchical structure of a program group executed in each of CPU-C01, CPU-C02, CPU-C03, and CPU-C04. A program executed by each CPU is divided into a software platform (hereinafter referred to as software PF) 1, a configuration code (referred to as a configuration code in the drawing) 2, and an
ソフトウェアPFは、当該CPUを搭載するECUのハードウェアを直接駆動するためのプログラム群である。したがって、ソフトウェアPFの構成は、当該ECUのハードウェア構成に強く依存している。ソフトウェアPFの例としては、OS(例えばOSEK−OS(登録商標))、デバイスドライバがある。 The software PF is a program group for directly driving the hardware of the ECU on which the CPU is mounted. Therefore, the configuration of the software PF strongly depends on the hardware configuration of the ECU. Examples of the software PF include an OS (for example, OSEK-OS (registered trademark)) and a device driver.
アプリケーションは、ソフトウェアPFの提供する機能を利用することで、当該CPUを搭載するECUのハードウェアを駆動するプログラム群である。アプリケーションとしては、例えば、当該ECUがエンジンECUであれば、エンジン点火タイミングの計算のために必要な諸量(アクセル開度、エンジン回転速等)を他のECU(あるいは同一ECU中の他のCPU)から受信し、それら受信した情報から点火タイミングを算出し、算出した点火タイミングが実現するよう、インジェクタを制御する処理を実現するためのプログラムがある。 The application is a program group that drives the hardware of the ECU on which the CPU is mounted by using the function provided by the software PF. As an application, for example, if the ECU is an engine ECU, various amounts (accelerator opening, engine rotation speed, etc.) necessary for calculating the engine ignition timing are transferred to another ECU (or another CPU in the same ECU). ), The ignition timing is calculated from the received information, and there is a program for realizing the process of controlling the injector so that the calculated ignition timing is realized.
ソフトウェアPFが提供する機能のアプリケーションによる利用は、例えば、ソフトウェアPFが、ハードウェアを用いた作動(例えば、アクチュエータへの制御信号の出力、センサからの検出信号の取得、他のECUとの間の信号の送受信)を実行するためのアプリケーションインターフェース(以下APIという)を提供し、アプリケーションが、必要に応じてそれらAPIを呼び出すことで実現する。 The use of the function provided by the software PF is, for example, the operation of the software PF using hardware (for example, output of a control signal to an actuator, acquisition of a detection signal from a sensor, communication with another ECU) This is realized by providing an application interface (hereinafter referred to as API) for executing signal transmission / reception, and calling the API as required by the application.
異なるECUに搭載されるソフトウェアPFは、共通のAPIをアプリケーションに提供するようになっていることが多い。したがって、アプリケーションの作成においては、ECUのハードウェア構成を意識してコーディングする必要がなくなる。 Software PF installed in different ECUs often provides a common API to applications. Therefore, it is not necessary to code the application in consideration of the hardware configuration of the ECU in creating the application.
コンフィギュレーションコードは、アプリケーションが扱う通信データの詳細情報(例えば、送受信周期、初期値、フェイル値)を含んでいる。アプリケーションが扱う通信データとは、当該アプリケーションが、他のCPUで実行される他のアプリケーションと受け渡しをするデータをいう。通信相手のアプリケーションが同じECU内の他のCPUで実行される場合には、当該データはCPU間通信のデータとなる。通信相手のアプリケーションが他のECU内のCPUで実行される場合には、当該通信データはECU間通信のデータとなる。また、コンフィギュレーションコードは、ソフトウェアPFを利用して当該通信データの送信または受信を実現するためのプログラムを含む。ソフトウェアPFを利用して通信データの送信または受信を実現するためのプログラムとは、具体的には、通信データの送受信用の関数プログラム(以下、通信データ関数という)である。これらの通信データ関数は、ソフトウェアPFの提供するAPIを利用している。そして、アプリケーションは、これらデータ送受信用の通信データ関数を呼び出すことで、データの送受信を実現するように記述されている。 The configuration code includes detailed information (for example, transmission / reception cycle, initial value, fail value) of communication data handled by the application. Communication data handled by an application refers to data that is transferred to and from another application executed by another CPU. When the communication partner application is executed by another CPU in the same ECU, the data is data for inter-CPU communication. When the communication partner application is executed by a CPU in another ECU, the communication data is communication data between ECUs. The configuration code includes a program for realizing transmission or reception of the communication data using the software PF. Specifically, the program for realizing transmission or reception of communication data using the software PF is a function program for transmitting and receiving communication data (hereinafter referred to as communication data function). These communication data functions use an API provided by the software PF. The application is described so as to realize data transmission / reception by calling communication data functions for data transmission / reception.
あるCPUにおけるコンフィギュレーションコードは、当該CPUで実行される全アプリケーションが扱う通信データの種類毎に1つのデータ送受信用関数を有するようになっている。 A configuration code in a certain CPU has one data transmission / reception function for each type of communication data handled by all applications executed by the CPU.
あるCPU用のプログラムの実行イメージ(すなわちオブジェクトコード)は、図3に示すように、当該CPU用のソフトウェアPF、コンフィギュレーションコード、アプリケーションをコンパイルしてリンク(本明細書においては、スタティックリンクをいう)することで作成される。 As shown in FIG. 3, an execution image (that is, object code) of a program for a CPU is compiled by linking software PF, configuration code, and application for the CPU (in this specification, it is a static link). ) To create.
図4に、コンフィギュレーションコードの生成の方法を概略的に示す。コンフィギュレーションコード8は、通常のコンピュータ(コンフィギュレーションコード生成装置の一例に相当する)50において実行されるプログラムであるコンフィグツール7の処理によって作成される。
FIG. 4 schematically shows a configuration code generation method. The
コンピュータ50は、図示しない演算回路(すなわちCPU)、RAM、ROM、ハードディスクドライブ(記憶媒体の一例に相当する)、操作装置(キーボード、マウス等)を備えている。当該演算回路は、RAMまたはハードディスクドライブに記憶されているコンフィグツール7を読み出して実行する。演算回路がコンフィグツール7を実行しているとき、コンフィギュレーションコード8の作成者であるユーザは、アプリケーション仕様4、システム仕様5、通信仕様6等の情報を参照することで、コンフィギュレーションコードの作成に必要な情報を構成し、それら構成した情報を、操作装置を操作することで、演算回路に入力する。演算回路は、これら入力された情報に基づいて、コンフィギュレーションコード8を生成し、ハードディスクドライブに記録する。なお、図3で示した、コンパイル、リンク、実行イメージの生成の処理については、コンピュータ50の演算回路が行うようになっていてもよいし、コンピュータ50以外の装置が行うようになっていてもよい。
The
図5に、コンフィグツール7を用いたコンフィギュレーションコードの作成の手順の概要をフローチャートで示す。この図に示すように、ユーザは、アプリケーション仕様4に基づいて図6に例示するようなアプリケーション設計情報テーブルを作成してコンフィグツール7に入力し(ステップ110)、システム仕様5に基づいて図7に例示するようなシステム設計情報テーブルを作成してコンフィグツール7に入力し(ステップ120)、通信仕様6に基づいて図8に例示するような通信リソース設計情報テーブルを作成してコンフィグツール7に入力する(ステップ130)。そして、ユーザがコンフィグツール7に対して所定の実行指令を行うことで、コンフィグツール7がこれら設計情報テーブルからコンフィギュレーションコードを生成させる(ステップ140)。 FIG. 5 is a flowchart showing an outline of a procedure for creating a configuration code using the configuration tool 7. As shown in this figure, the user creates an application design information table as illustrated in FIG. 6 based on the application specification 4 and inputs it to the configuration tool 7 (step 110). A system design information table as illustrated in FIG. 8 is created and input to the configuration tool 7 (step 120), and a communication resource design information table as illustrated in FIG. Input (step 130). Then, when the user issues a predetermined execution command to the configuration tool 7, the configuration tool 7 generates a configuration code from these design information tables (step 140).
アプリケーション設計情報テーブルは、図6に示すように、当該アプリケーションが扱う通信データの種類毎のレコードから成り、各レコードは、対象となるデータ種別のアプリケーション名(すなわち、当該通信データをアプリケーションから参照するときの名称)、当該種別の通信データの発信元である送信アプリケーションの名称、当該種類の通信データの宛先である受信アプリケーションの名称、および当該種別の通信データの詳細(初期値、フェイル値等)を含む。したがって、アプリケーション設計情報テーブルを参照することで、複数種類の通信データ毎に、当該種類の通信データの発信元である送信アプリケーションと当該種類の通信データの宛先である受信アプリケーションとの対応関係がわかる。なお、アプリケーション設計情報テーブルは、通信システム60において実行される複数のアプリケーションについてまとめて1つ作成される。
As shown in FIG. 6, the application design information table is composed of records for each type of communication data handled by the application. Each record refers to the application name of the target data type (that is, the communication data is referred to from the application). Name), the name of the sending application that is the source of the communication data of the type, the name of the receiving application that is the destination of the type of communication data, and details of the communication data of the type (initial value, fail value, etc.) including. Therefore, by referring to the application design information table, for each of a plurality of types of communication data, the correspondence relationship between the transmission application that is the transmission source of the communication data of the type and the reception application that is the destination of the communication data of the type can be understood. . Note that one application design information table is created for a plurality of applications executed in the
システム設計情報テーブルは、図7に示すように、通信システム60において用いられる通信バス毎にレコードを有し、レコードは、対象となる通信バスの名称、当該通信バスで用いられるプロトコル名、および当該通信バスに接続されるCPUリストが記録されている。また、CPUリスト中には、当該通信バスに接続されるCPUのそれぞれについて、当該CPUにおいて実行されるアプリケーション、当該CPUの搭載先のECUの情報が記録されている。したがって、通信リソース設計情報テーブルを参照することで、複数のCPU毎に、当該CPUを搭載するECU、当該CPUに接続される通信バス、および、当該CPUが実行するアプリケーションがわかる。
As shown in FIG. 7, the system design information table has a record for each communication bus used in the
図1に示した通信システム60においては、図7に示すように、CPU−C01は、アプリケーションA01を実行すると共にECU−E01に搭載されており、CPU−C02は、アプリケーションA02を実行すると共にECU−E01に搭載されており、CPU−C03は、アプリケーションA03を実行すると共にECU−E02に搭載されており、CPU−C04は、アプリケーションA04、A05を実行すると共にECU−E03に搭載されている。
In the
また、バスB1にCPU−C01およびCPU−C03が接続されており、バスB2にCPU−C02およびCPU−C04が接続されている。同じバスに接続されていないCPU同士が通信するためには、他のCPUを中継点(以下、ゲートウェイという)として用いる必要がある。例えば、CPU−C03とCPU−C04とが通信するためには、通信データをC03→C01→C02→C04またはその逆の経路で受け渡ししなければならない。この場合、C01―C02間の通信は、CPU間通信となる。 Further, CPU-C01 and CPU-C03 are connected to the bus B1, and CPU-C02 and CPU-C04 are connected to the bus B2. In order for CPUs not connected to the same bus to communicate with each other, it is necessary to use other CPUs as relay points (hereinafter referred to as gateways). For example, in order for the CPU-C03 and the CPU-C04 to communicate, the communication data must be transferred via the path C03 → C01 → C02 → C04 or vice versa. In this case, communication between C01 and C02 is inter-CPU communication.
通信リソース設計情報テーブルは、1つのCPUにつき1つ作成されるようになっている。各通信リソース設計情報テーブルは、図8に示すように、通信システム60においてやりとりされる通信データ毎に、概要データ、関連性判定データ、詳細データ、およびリソースマッピングデータを有している。
One communication resource design information table is created for each CPU. As shown in FIG. 8, each communication resource design information table has summary data, relevance determination data, detailed data, and resource mapping data for each communication data exchanged in the
概要データは、対象となる通信データのネットワーク名(すなわち、当該通信データがソフトウェアPF(例えばデバイスドライバ)から参照されるときの名称)、当該通信データを搬送するデータフレームの名称、当該通信データの発信元である送信CPU、当該通信データの宛先である受信CPUの情報を含んでいる。 The summary data includes the network name of the target communication data (that is, the name when the communication data is referenced from the software PF (for example, a device driver)), the name of the data frame carrying the communication data, and the communication data It includes information on the transmission CPU that is the transmission source and the reception CPU that is the destination of the communication data.
関連性判定データは、当該通信データの配送に、自CPU(すなわち、この通信リソース設計情報テーブルの対象となるCPU)が関与するか否かの情報(以下自CPU関連情報という)、および、当該CPUが当該通信データのゲートウェイとなるか否かの情報(以下、GW情報という)を含む。なお、当該通信データが当該CPUに関与するか否かとは、当該通信データの通信経路内に自CPUが含まれるか否かをいう。 The relevance determination data includes information on whether or not the own CPU (that is, a CPU that is a target of the communication resource design information table) is involved in the delivery of the communication data (hereinafter referred to as own CPU related information), and Information on whether or not the CPU is a gateway for the communication data (hereinafter referred to as GW information) is included. Whether or not the communication data is related to the CPU means whether or not the CPU is included in the communication path of the communication data.
詳細データは、当該通信データの詳細(例えば、送信周期)を示すデータである。リソースマッピングデータは、当該通信データが、アプリケーション設計情報テーブル中に記載された通信データのどれに相当するかを示すデータである。すなわち、当該通信データの、アプリケーション名とネットワーク名とを対応付けるデータである。 The detailed data is data indicating details (for example, transmission cycle) of the communication data. The resource mapping data is data indicating which of the communication data described in the application design information table corresponds to the communication data. That is, it is data that associates an application name and a network name of the communication data.
本実施形態においては、ユーザは、ステップ110、120において、コンフィグツール7に対して手作業で各種情報を入力することで、アプリケーション設計情報テーブルおよびシステム設計情報テーブルの作成を完了する。
In this embodiment, the user completes the creation of the application design information table and the system design information table by manually inputting various information to the config tool 7 in
しかし、ステップ130においては、通信リソース設計情報テーブルの一部をコンピュータ50が自動的に作成する。図9に、ステップ130の作業の手順をより詳細に示す。この図に示す通り、ステップ130においては、まず通信リソース設計情報テーブル中の概要データをユーザが手入力で設定し(ステップ132)、続いてリソースマッピングデータをユーザが手入力で設定し(ステップ134)、続いて関連性判定データをコンピュータ50が自動的に生成し(ステップ136)、最後に、自CPU関連情報が「関連あり」となった通信データについての詳細データを、ユーザが手入力で設定する(ステップ138)。なお、ステップ132、134、138における手入力においては、ユーザは通信仕様6のデータを参照する。そして、演算回路は、手作業等により入力されたデータを、自らのハードディスクドライブに記録する。
However, in
ここで、ステップ136における関連性判定データの生成時に、コンピュータ50の演算回路が実行する処理のフローチャートを、図10に示す。演算回路は、コンフィグツール7の実行中に、ユーザが関連性判定データ生成を指示する所定の操作をコンピュータ50の図示しない操作装置に対して行うことで、この処理を開始する。
Here, FIG. 10 shows a flowchart of processing executed by the arithmetic circuit of the
この処理において、演算回路は、まずステップ310で、各システム設計情報テーブルの関連性判定データ中のすべての自CPU関連情報およびGW情報の値を「無し」に初期化する。
In this process, first, in
続いて、アプリケーション設計情報テーブル中のすべての通信データ(図6の例では、アプリケーションデータ名D1、アプリケーションデータ名D2、アプリケーションデータ名D3等によって参照される通信データ)のそれぞれについて、ステップ320、330、340の処理を1回ずつ実行する。すなわち、アプリ通信データの数だけ、ステップ320〜340のループが繰り返される。
Subsequently, steps 320 and 330 are performed for all communication data in the application design information table (in the example of FIG. 6, communication data referred to by application data name D1, application data name D2, application data name D3, etc.), respectively. 340 is executed once. That is, the loop of
以下、ループのある回において対象となる通信データを、対象データという。あるループにおいて、ステップ320においては、演算回路は、アプリケーション設計情報テーブルを参照することで、対象データの発信元の送信アプリケーションと、対象データの宛先の受信アプリケーションとを特定する。例えば、対象データがデータD1である場合、送信アプリケーションはアプリケーションA02となり、受信アプリケーションはアプリケーションA01、A03となる。
Hereinafter, communication data that is targeted at a certain time of the loop is referred to as target data. In a certain loop, in
続いてステップ330では、ステップ320で特定した送信アプリケーションおよび受信アプリケーションと、システム設計情報テーブルとを用いて、対象データの経路パターンを特定する。経路パターンとは、通信システム60中で対象データがどのような経路で送信アプリケーションから受信アプリケーションまで到達するかについてのパターンである。
Subsequently, in
図11に、6つの経路パターンを模式的に示し、図12に、図11のパターンを説明するための仮想的なCPU間の接続形態を示す。タイプ1の経路パターンは、発信元CPUから宛先CPUまで、CPU間通信(ジグザグ線の矢印で示す)によって対象データが届けられるパターンである。図12においては、CPU−A→CPU間線X→CPU−Bの経路が、このタイプ1の一例に相当する。
FIG. 11 schematically shows six route patterns, and FIG. 12 shows a connection form between virtual CPUs for explaining the pattern of FIG. A
タイプ2の経路パターンは、発信元CPUから宛先CPUまで、ECU間の通信バスを介する通信(実線の直線矢印で示す)によって対象データが届けられるパターンである。図12においては、CPU−A→ノードN1→ノードN2→ノードN3→ノードN4→CPU−Bの経路が、このタイプ2の一例に相当する。
A
タイプ3の経路パターンは、発信元CPUから宛先CPUまで、ゲートウェイとなるCPUを介して対象データが届けられ、発信元CPUからゲートウェイCPUまでは、CPU間通信が用いられ、ゲートウェイCPUから宛先CPUまでは、ECU間の通信バスを介した通信が用いられるパターンである。図12においては、CPU−A→CPU間線X→CPU−B→ノードN5→ノードN6→ノードN7→ノードN8→CPU−Eの経路が、このタイプ3の一例に相当する。
In the
タイプ4の経路パターンは、発信元CPUから宛先CPUまで、ゲートウェイとなるCPUを介して対象データが届けられ、発信元CPUからゲートウェイCPUまでは、ECU間の通信バスを介した通信が用いられ、ゲートウェイCPUから宛先CPUまでは、CPU間通信が用いられるパターンである。図12においては、CPU−D→ノードN9→ノードN10→ノードN11→ノードN12→CPU−A→CPU間線X→CPU−Bの経路が、このタイプ4の一例に相当する。 In the type 4 route pattern, the target data is delivered from the source CPU to the destination CPU through the CPU serving as a gateway, and communication via the communication bus between the ECUs is used from the source CPU to the gateway CPU. The gateway CPU to the destination CPU is a pattern in which inter-CPU communication is used. In FIG. 12, the route of CPU-D → node N9 → node N10 → node N11 → node N12 → CPU-A → CPU line X → CPU-B corresponds to an example of this type 4.
タイプ5の経路パターンは、発信元CPUから宛先CPUまで、ゲートウェイとなるCPUを介して対象データが届けられ、発信元CPUからゲートウェイCPUまでは、ECU間のある通信バスを介した通信が用いられ、ゲートウェイCPUから宛先CPUまでは、ECU間の別の通信バスを介した通信が用いられるパターンである。図12においては、CPU−D→ノードN9→ノードN10→ノードN11→ノードN12→ノードN1→ノードN2→ノードN13→ノードN14→CPU−Eの経路が、このタイプ5の一例に相当する。なお、ノードN12からノードN1へのデータの移動は、CPU−Aのソフトウェア実行による処理ではなく、通信制御を行う専用のECUハードウェア(図中ではECU−HW)によって実現されるようになっている。 In the type 5 route pattern, target data is delivered from a source CPU to a destination CPU via a CPU serving as a gateway, and communication via a communication bus between ECUs is used from the source CPU to the gateway CPU. From the gateway CPU to the destination CPU is a pattern in which communication via another communication bus between ECUs is used. In FIG. 12, the route of CPU-D → node N9 → node N10 → node N11 → node N12 → node N1 → node N2 → node N13 → node N14 → CPU-E corresponds to an example of this type 5. Note that the movement of data from the node N12 to the node N1 is realized by dedicated ECU hardware (ECU-HW in the figure) for performing communication control, not by processing by CPU-A software execution. Yes.
タイプ6の経路パターンは、発信元CPUから宛先CPUまで、2つのゲートウェイとなるCPUを介して対象データが届けられ、発信元CPUから1番目のゲートウェイCPUまでは、ECU間のある通信バスを介した通信が用いられ、1番目のゲートウェイCPUから2番目のゲートウェイCPUまでは、CPU間通信が用いられ、2番目のゲートウェイCPUから宛先CPUまでは、ECU間の別の通信バスを介した通信が用いられるパターンである。図12においては、CPU−D→ノードN9→ノードN10→ノードN11→ノードN12→CPU−A→CPU間線X→CPU−B→ノードN4→ノードN3→ノードN13→ノードN14→CPU−Eの経路が、このタイプ6の一例に相当する。
In the
ここで、図6における通信データD1を例にとって、演算回路のステップ330における具体的な処理内容を説明する。
Here, specific processing contents in
まず、演算回路は、対象データD1について、発信元アプリケーションがアプリケーションA02であり、宛先アプリケーションがアプリケーションA01、03であることを、ハードディスクドライブ中のアプリケーション設計情報テーブル(図6参照)から特定する。 First, for the target data D1, the arithmetic circuit specifies from the application design information table (see FIG. 6) in the hard disk drive that the source application is the application A02 and the destination applications are the applications A01 and 03.
続いて演算回路は、ハードディスクドライブ中のシステム設計情報テーブル(図7参照)に基づいて、アプリケーションA02からアプリケーションA01への経路は、CPU−C02からCPU−C01への経路であることを特定する。 Subsequently, the arithmetic circuit specifies that the path from the application A02 to the application A01 is the path from the CPU-C02 to the CPU-C01 based on the system design information table (see FIG. 7) in the hard disk drive.
さらに演算回路は、当該システム設計情報テーブルに基づいて、アプリケーションA02からアプリケーションA03への経路は、CPU−C02からCPU−C03への経路であることを特定する。 Further, the arithmetic circuit specifies that the path from the application A02 to the application A03 is the path from the CPU-C02 to the CPU-C03 based on the system design information table.
更に続いて演算回路は、CPU−C02とCPU−C01が同じECU−E01に搭載されていることをシステム設計情報テーブルに基づいて特定することで、CPU−C02からCPU−C01への経路は、CPU間通信による経路であることを特定し、さらに、この特定結果に基づいて、アプリケーションA02からアプリケーションA01への経路は、タイプ1の経路パターンに該当することを特定する。
Further, the arithmetic circuit specifies that the CPU-C02 and the CPU-C01 are mounted on the same ECU-E01 based on the system design information table, so that the path from the CPU-C02 to the CPU-C01 is It is specified that the route is based on inter-CPU communication, and further, based on the result of this specification, the route from the application A02 to the application A01 is specified as corresponding to the
更に続いて演算回路は、CPU−C02とCPU−C03は同じ通信バスに接続されていないことを特定し、その特定結果に基づいて、CPU−C03と同じ通信バスに接続されている他のCPUをシステム設計情報テーブルから検索し、さらに、それらのうちCPU−C02と通信可能なCPUを特定する。この場合、CPU−C02と通信可能なCPUとは、2つのバスB1、B2の両方に接続しているCPU、および、CPU−C02とCPU間通信可能なECU(すなわちCPU−C02と同一ECU内にあるCPU)である。 Subsequently, the arithmetic circuit specifies that CPU-C02 and CPU-C03 are not connected to the same communication bus, and based on the specification result, another CPU connected to the same communication bus as CPU-C03. Are identified from the system design information table, and CPUs that can communicate with the CPU-C02 are identified. In this case, the CPU that can communicate with the CPU-C02 is a CPU that is connected to both the two buses B1 and B2, and an ECU that can communicate with the CPU-C02 (i.e., in the same ECU as the CPU-C02). CPU).
本例においては、バスB1に接続し、かつCPU−C02と直接通信可能なCPUは、CPU−C01である。したがって、演算回路は、CPU−C02→CPU間通信→CPU−C01→バスB1→CPU−C03という経路を、CPU−C02からCPU−C03への経路であると特定し、さらに、この特定結果に基づいて、アプリケーションA02からアプリケーションA03への経路は、タイプ1、タイプ2、およびタイプ3の経路パターンを含むので、タイプ1、タイプ2、およびタイプ3の経路パターンに該当することを特定する。
In this example, the CPU connected to the bus B1 and capable of directly communicating with the CPU-C02 is the CPU-C01. Therefore, the arithmetic circuit specifies the route of CPU-C02 → CPU communication → CPU-C01 → bus B1 → CPU-C03 as the route from CPU-C02 to CPU-C03, and further, in this specification result Based on this, since the route from the application A02 to the application A03 includes
続いてステップ340では、演算回路は、ハードディスクドライブ中の各システム設計情報テーブルのリソースマッピングデータに基づいて、対象データのアプリケーション名(本例ではD1)に対応するネットワーク名(本例ではS1)を特定し、特定した名称に該当するすべてのレコードにおける関連性判定データを、直前のステップ340で特定した経路パターンのタイプにあらかじめ割り当てられた決定方法で、決定する。
Subsequently, in
具体的には、経路パターンのタイプにあらかじめ割り当てられた決定方法とは、以下の通りである。直前のステップ340で特定した経路パターンのタイプがタイプ1またはタイプ2であり、かつ、対象となるレコードを含むシステム設計情報テーブルに対応するCPUが、当該経路の発信元または宛先に対応する場合、当該対象となるレコード中の自CPU関連データを「有り」に書き換える。
Specifically, the determination method pre-assigned to the route pattern type is as follows. When the route pattern type identified in the immediately preceding
また、直前のステップ340で特定した経路パターンのタイプがタイプ3、4、6のうち少なくともいずれか1つに該当し、かつ、対象となるレコードを含むシステム設計情報テーブルに対応するCPUが、当該経路のゲートウェイとなっている場合、当該対象となるレコード中のGW情報を「有り」に書き換える。
In addition, the CPU corresponding to the system design information table in which the type of the route pattern identified in the immediately preceding
また、直前のステップ340で特定した経路パターンのタイプがタイプ5に該当し、かつ、対象となるレコードを含むシステム設計情報テーブルに対応するCPUが、当該経路のゲートウェイとなっている場合(すなわち、当該CPUのECUハードウェアを利用してある通信バスから別の通信バスへ対象データが送信される場合)、当該対象となるレコード中のGW情報を「有り」に書き換える。
In addition, when the route pattern type identified in the immediately preceding
以上のようなステップ320〜340を演算回路が通信データ毎に繰り返すことで、複数の通信リソース設計情報テーブル中の関連性判定データが決定する。このように、コンピュータ50が、コンフィギュレーションコードの作成に必要な関連性判定データを、ユーザが入力したアプリケーション設計情報テーブル、システム設計情報テーブル、概要データ、およびリソースマッピングデータの内容に基づいて、自動的に作成することができる。
The arithmetic circuit repeats
すなわち、各通信データについて、アプリケーション設計情報テーブルの送信アプリケーション−受信アプリケーションの関係、およびシステム設計情報テーブルのシステム構成から、当該通信データの経路を特定し、さらにその経路パターンを特定し、当該経路パターンに対応付けられた方法で、通信データの配送にどのCPUが関与するかの情報、すなわち関連性判定データを自動的に特定することができる。 That is, for each communication data, the communication data path is specified from the transmission application-reception application relationship in the application design information table and the system configuration in the system design information table, and the path pattern is specified. The information associated with which CPU is involved in the distribution of communication data, that is, the relevance determination data can be automatically specified by the method associated with.
ここで、図5のステップ140における、コンフィギュレーションコードの生成について説明する。ステップ140において、演算回路は、あるCPUについてのコンフィギュレーションコードを作成するために、アプリケーション設計情報テーブル、および、当該CPUを対象とするシステム設計情報テーブルを参照することで、当該CPUが受け渡しに関与している通信データのアプリケーションのアプリケーション名を特定し、そのアプリケーション名を参照するための通信データ関数を作成して当該コンフィギュレーションコードに含ませ、また、当該CPUが関与していない通信データについての通信データ関数を作成しない。ここで、通信データ関数の具体的な内容は、あらかじめ定められている。
Here, the generation of the configuration code in
またステップ140において、演算回路は、あるCPUについてのコンフィギュレーションコードを作成するために、アプリケーション設計情報テーブル、および、当該CPUを対象とするシステム設計情報テーブルを参照することで、当該CPUが受け渡しに関与している通信データの詳細情報を特定し、当該詳細情報を当該コンフィギュレーションコードに含ませ、また、当該CPUが関与していない通信データについての詳細情報を当該コンフィギュレーションコードに含ませない。
In
このようにして、コンフィグツール7において作成される各CPU用のコンフィギュレーションコードには、通信リソース設計情報テーブルの関連性判定データの内容が反映される。したがって、当該CPUが送信も受信も行わず、かつゲートウェイにもならないような通信データ(すなわち当該CPUが通信に関与しない通信データ)については、そのデータの詳細情報を含まないように、かつ、そのデータを扱う通信データ関数を含まないように、コンフィギュレーションコードが生成される。その結果、生成される実行イメージのサイズが低減され、その結果、ECUのROM容量をより効率的に利用することができる。 In this way, the configuration code for each CPU created in the configuration tool 7 reflects the contents of the relevance determination data in the communication resource design information table. Therefore, communication data that is neither transmitted nor received by the CPU nor a gateway (that is, communication data for which the CPU is not involved in communication) should not include detailed information on the data, and The configuration code is generated so as not to include a communication data function that handles data. As a result, the size of the generated execution image is reduced, and as a result, the ROM capacity of the ECU can be used more efficiently.
また、このようにしてコンフィグツール7において作成される各CPU用のコンフィギュレーションコードには、通信リソース設計情報テーブルの関連性判定データの内容が反映されるので、当該CPUがどのデータのゲートウェイにもならない場合、その旨がコンフィギュレーションコードからわかるので、その場合には、演算回路は、リンクの際に、ソフトウェアPFのゲートウェイの実現に関する部分をリンク対象から除外することができる。したがって、生成される実行イメージのサイズが低減され、その結果、ECUのROM容量をより効率的に利用することができる。 In addition, since the configuration code for each CPU created in the configuration tool 7 in this way reflects the contents of the relevance determination data in the communication resource design information table, the CPU is associated with any data gateway. If this is not the case, the fact can be understood from the configuration code. In this case, the arithmetic circuit can exclude the part related to the realization of the gateway of the software PF from the link target at the time of linking. Therefore, the size of the generated execution image is reduced, and as a result, the ROM capacity of the ECU can be used more efficiently.
なお、上記実施形態においては、演算装置が、図5のステップ110においてアプリケーション設計情報テーブルの入力を受けることで第1記録手段の一例として機能し、ステップ120においてシステム設計情報テーブルの入力を受けることで第2記録手段の一例として機能し、ステップ140でコンフィギュレーションコードを生成することでコンフィギュレーションコード生成記録手段関連性記録手段の一例として機能し、図9のステップ136を実行することで関連性記録手段の一例として機能し、図10のステップ320を実行することで第1特定手段の一例として機能し、ステップ330を実行することで第2特定手段の一例として機能し、ステップ340を実行することで第3特定手段の一例として機能する。
(他の実施形態)
なお、上記の実施形態において、演算回路は、アプリケーション設計情報テーブル、システム設計情報テーブル、通信リソース設計情報テーブルの概要データ、通信リソース設計情報テーブルのリソースマッピングデータ、および、通信リソース設計情報テーブルの詳細データの入力を、操作装置を介したて入力で受け付けて記憶するようになっているが、USBメモリ等の携帯可能な記憶媒体に記憶されたそれらデータを読み出すことで、当該データの入力受け付けを実現するようになっていてもよいし、コンピュータネットワークを介してそれらデータを受信することで、当該データの入力受け付けを実現するようになっていてもよい。
In the above embodiment, the arithmetic device functions as an example of the first recording unit by receiving the input of the application design information table in
(Other embodiments)
In the above-described embodiment, the arithmetic circuit is the application design information table, system design information table, communication resource design information table summary data, communication resource design information table resource mapping data, and communication resource design information table details. Data input is accepted and stored via an operating device, but by reading the data stored in a portable storage medium such as a USB memory, the input of the data can be accepted. It may be realized, or by receiving these data via a computer network, the input acceptance of the data may be realized.
1…ソフトウェアPF、2…コンフィギュレーションコード、3…アプリケーション、
4…アプリケーション仕様、5…システム仕様、6…通信仕様、
7…コンフィグツール、8…コンフィギュレーションコード、50…コンピュータ、
60…通信システム、B1、B2…バス、E01〜E03…ECU、
C01〜C05…CPU、A01〜A05、N01〜N14…ノード。
1 ... software PF, 2 ... configuration code, 3 ... application,
4 ... Application specification, 5 ... System specification, 6 ... Communication specification,
7 ... Config tool, 8 ... Configuration code, 50 ... Computer,
60 ... Communication system, B1, B2 ... Bus, E01-E03 ... ECU,
C01-C05 ... CPU, A01-A05, N01-N14 ... node.
Claims (2)
記憶媒体と、
演算回路と、を備え、
演算回路は:
前記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データのそれぞれについての発信元の送信アプリケーションと宛先の受信アプリケーションとの対応関係を示すアプリケーション設計情報テーブル、の入力を受け付けて前記記憶媒体に記録する第1記録手段と、
前記複数のCPUのそれぞれが前記複数のECUのうちどのECUに搭載されているか、および、前記複数のCPUのそれぞれが前記複数の通信バスのうちどの通信バスに接続されているか、および、前記複数のCPUのそれぞれが前記複数のアプリケーションのうちいずれを実行するか、についての対応関係を示すシステム設計情報テーブル、の入力を受け付けて前記記憶媒体に記録する第2記録手段と、
前記第1CPUが中継する通信データを特定する関連性判定データ、を前記第1記録手段および前記第2記録手段が記録した情報に基づいて作成して前記記憶媒体に記録する関連性記録手段と、
前記第1記録手段、前記第2記録手段、および前記関連性記録手段が記録した情報に基づいて、前記コンフィギュレーションコードを生成して前記記憶媒体に記録するコンフィギュレーションコード生成記録手段と、を有し、
前記関連性記録手段は、前記アプリケーション設計情報テーブルに基づいて、前記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データのそれぞれについての発信元の送信アプリケーションおよび宛先の受信アプリケーションを特定する第1特定手段と、
前記第1特定手段の特定結果を前記システム設計情報テーブルに適用することで、前記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データの通信経路が、あらかじめ定められた複数の経路パターンのいずれに該当するかを特定する第2特定手段と、
前記第2特定手段の特定結果に基づいて、前記該当する経路パターンがゲートウェイのCPUによって中継される経路パターンであれば、前記第1CPUが前記通信経路でゲートウェイになっているか否かに応じて、前記第1CPUが前記通信データの中継を行うか否かを特定し、その特定結果を前記関連性判定データとして前記記憶媒体に記録する第3特定手段と、を有することを特徴とするコンフィギュレーションコード生成装置。 Software of one CPU (hereinafter referred to as a first CPU) for one of a plurality of CPUs mounted on any of a plurality of ECUs mounted on a vehicle and performing data communication with each other via a plurality of communication buses. process for generating object code to implement the operation of the first 1CPU by compiling and linking the platform and the first 1CPU application, used in, a configuration code for the first 1CPU, the first the configuration code using a software platform including a program for implementing the transmission or reception of the communication data, configuration code generator der for generating together including information of the communication data 1CPU relays Te,
A storage medium;
An arithmetic circuit,
The arithmetic circuit is:
Input of an application design information table indicating a correspondence relationship between a transmission application of a transmission source and a reception application of a destination for each of a plurality of types of communication data transmitted by a plurality of applications respectively executed by any of the plurality of CPUs First recording means for receiving and recording to the storage medium;
Which of the plurality of ECUs each of the plurality of CPUs is mounted on, which communication bus of each of the plurality of CPUs is connected to the plurality of communication buses, and the plurality of CPUs A second recording means for receiving and recording in the storage medium a system design information table indicating a correspondence relationship as to which of the plurality of applications is executed by each of the CPUs;
Relevance determination means for specifying communication data relayed by the first CPU based on information recorded by the first recording means and the second recording means, and relevance recording means for recording in the storage medium;
A configuration code generating / recording unit configured to generate the configuration code based on the information recorded by the first recording unit, the second recording unit, and the association recording unit and record the configuration code on the storage medium. And
The relevance recording means is a transmission application and destination of a transmission source for each of a plurality of types of communication data transmitted by a plurality of applications respectively executed by any of the plurality of CPUs based on the application design information table A first specifying means for specifying the receiving application;
By applying the identification result of the first identification unit to the system design information table, communication paths for a plurality of types of communication data transmitted by a plurality of applications respectively executed by any of the plurality of CPUs are determined in advance. A second specifying means for specifying which of the plurality of route patterns is applicable,
If the corresponding route pattern is a route pattern relayed by the CPU of the gateway based on the specification result of the second specifying means , depending on whether the first CPU is a gateway in the communication route, Configuration code comprising: third specifying means for specifying whether or not the first CPU relays the communication data and recording the specified result in the storage medium as the relevance determination data Generator.
複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データのそれぞれについての発信元の送信アプリケーションと宛先の受信アプリケーションとの対応関係を示すアプリケーション設計情報テーブル、の入力を受け付けて記憶媒体に記録する第1記録手段、
前記複数のCPUのそれぞれが前記複数のECUのうちどのECUに搭載されているか、および、前記複数のCPUのそれぞれが前記複数の通信バスのうちどの通信バスに接続されているか、および、前記複数のCPUのそれぞれが前記複数のアプリケーションのうちいずれを実行するか、についての対応関係を示すシステム設計情報テーブル、の入力を受け付けて前記記憶媒体に記録する第2記録手段、
前記第1CPUが中継する通信データを特定する関連性判定データ、を前記第1記録手段および前記第2記録手段が記録した情報に基づいて作成して前記記憶媒体に記録する関連性記録手段、および
前記第1記録手段、前記第2記録手段、および前記関連性記録手段が記録した情報に基づいて、前記コンフィギュレーションコードを生成して前記記憶媒体に記録するコンフィギュレーションコード生成記録手段、としてコンピュータを機能させ、
前記関連性記録手段は、前記アプリケーション設計情報テーブルに基づいて、前記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データのそれぞれについての発信元の送信アプリケーションおよび宛先の受信アプリケーションを特定する第1特定手段と、
前記第1特定手段の特定結果を前記システム設計情報テーブルに適用することで、前記複数のCPUのいずれかにおいてそれぞれ実行される複数のアプリケーションが送信する複数種類の通信データの通信経路が、あらかじめ定められた複数の経路パターンのいずれに該当するかを特定する第2特定手段と、
前記第2特定手段の特定結果に基づいて、前記該当する経路パターンがゲートウェイのCPUによって中継される経路パターンであれば、前記第1CPUが前記通信経路でゲートウェイになっているか否かに応じて、前記第1CPUが前記通信データの中継を行うか否かを特定し、その特定結果を前記関連性判定データとして前記記憶媒体に記録する第3特定手段と、を有することを特徴とするプログラム。 Software of one CPU (hereinafter referred to as a first CPU) for one of a plurality of CPUs mounted on any of a plurality of ECUs mounted on a vehicle and performing data communication with each other via a plurality of communication buses. A configuration code for the first CPU used in the step of generating an object code for realizing the operation of the first CPU by compiling and linking a platform and an application of the first CPU . use the configuration code generating device for generating a configuration code, including a program for utilizing the software platform to implement the transmission or reception of the communication data with including information of the communication data 1CPU relays A that program,
Input of an application design information table indicating a correspondence relationship between a transmission application of a transmission source and a reception application of a destination for each of a plurality of types of communication data transmitted by a plurality of applications respectively executed by any of a plurality of CPUs First recording means for receiving and recording on a storage medium;
Which of the plurality of ECUs each of the plurality of CPUs is mounted on, which communication bus of each of the plurality of CPUs is connected to the plurality of communication buses, and the plurality of CPUs A second recording means for receiving an input of a system design information table indicating a correspondence relationship between which of the plurality of applications is executed by each of the CPUs, and recording the received information on the storage medium;
Relevance determination means for specifying communication data relayed by the first CPU based on information recorded by the first recording means and the second recording means, and recording the relevance recording means on the storage medium; A computer as a configuration code generation and recording unit that generates the configuration code and records the configuration code on the storage medium based on the information recorded by the first recording unit, the second recording unit, and the association recording unit Make it work
The relevance recording means is a transmission application and destination of a transmission source for each of a plurality of types of communication data transmitted by a plurality of applications respectively executed by any of the plurality of CPUs based on the application design information table A first specifying means for specifying the receiving application;
By applying the identification result of the first identification unit to the system design information table, communication paths for a plurality of types of communication data transmitted by a plurality of applications respectively executed by any of the plurality of CPUs are determined in advance. A second specifying means for specifying which of the plurality of route patterns is applicable,
If the corresponding route pattern is a route pattern relayed by the CPU of the gateway based on the specification result of the second specifying means , depending on whether the first CPU is a gateway in the communication route, A program comprising: third specifying means for specifying whether or not the first CPU relays the communication data and recording the specified result as the relevance determination data in the storage medium.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007200829A JP4725557B2 (en) | 2007-08-01 | 2007-08-01 | Configuration code generation device and program for configuration code generation device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007200829A JP4725557B2 (en) | 2007-08-01 | 2007-08-01 | Configuration code generation device and program for configuration code generation device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009037399A JP2009037399A (en) | 2009-02-19 |
| JP4725557B2 true JP4725557B2 (en) | 2011-07-13 |
Family
ID=40439245
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007200829A Expired - Fee Related JP4725557B2 (en) | 2007-08-01 | 2007-08-01 | Configuration code generation device and program for configuration code generation device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4725557B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230297395A1 (en) * | 2020-11-27 | 2023-09-21 | Huawei Technologies Co., Ltd. | Parameter Configuration Method, Apparatus, and System |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2016042588A1 (en) * | 2014-09-17 | 2016-03-24 | 三菱電機株式会社 | On-board control device and simulation device for on-board control device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08297567A (en) * | 1995-04-26 | 1996-11-12 | Mitsubishi Electric Corp | Distributed application development support device |
-
2007
- 2007-08-01 JP JP2007200829A patent/JP4725557B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230297395A1 (en) * | 2020-11-27 | 2023-09-21 | Huawei Technologies Co., Ltd. | Parameter Configuration Method, Apparatus, and System |
| US12450073B2 (en) * | 2020-11-27 | 2025-10-21 | Shenzhen Yinwang Intelligent Technologies Co., Ltd. | Parameter configuration method, apparatus, and system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009037399A (en) | 2009-02-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4800413B2 (en) | Information processing system | |
| JP6897178B2 (en) | Information processing system, information processing device, information processing method and program | |
| JP6508192B2 (en) | Control device and control system | |
| CN110750243A (en) | Project code development method and system | |
| CN112363938A (en) | Data processing method and device, electronic equipment and storage medium | |
| JP2015026215A (en) | Printing system and control method therefor, information processing apparatus and control method therefor, printing apparatus and control method therefor, and program | |
| JP4725557B2 (en) | Configuration code generation device and program for configuration code generation device | |
| CN114090242B (en) | Model training method, device, equipment, storage medium and program product | |
| TW201344553A (en) | Driverless printing by a target printer | |
| JP2014041610A (en) | Method and system of implementing data load protocols | |
| JP6135247B2 (en) | Information processing apparatus and information processing program | |
| CN115118587A (en) | Method and device for creating connector | |
| US8886712B2 (en) | Communication device | |
| US20240303071A1 (en) | Providing method of vehicle software and providing system of vehicle software | |
| US10572580B2 (en) | Information processing apparatus, information processing method and information processing system | |
| US7949989B2 (en) | Methods, systems and computer program products for layout device matching driven by a schematic editor | |
| EP4350511A1 (en) | Method and apparatus for co-simulation | |
| US20070006221A1 (en) | Software install environment constructing apparatus | |
| US11360462B2 (en) | Support device and support program | |
| JP2010218083A (en) | Method and support program for developing communication device, and communication device | |
| CN112384868B (en) | Program execution support device, program execution support method, and computer-readable storage medium | |
| JPWO2019021898A1 (en) | Development support equipment | |
| JP7585818B2 (en) | Setup program | |
| US20220413811A1 (en) | Method and software tool for making executable specifications in the system development or the system validation of complex functional systems | |
| JP2001306888A (en) | Made-to-order production method, data processing method and system, dealer terminal device and information storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091006 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101214 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101221 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110218 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110315 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110328 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 4725557 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140422 Year of fee payment: 3 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |