JP7005201B2 - Communication message converter - Google Patents
Communication message converter Download PDFInfo
- Publication number
- JP7005201B2 JP7005201B2 JP2017141614A JP2017141614A JP7005201B2 JP 7005201 B2 JP7005201 B2 JP 7005201B2 JP 2017141614 A JP2017141614 A JP 2017141614A JP 2017141614 A JP2017141614 A JP 2017141614A JP 7005201 B2 JP7005201 B2 JP 7005201B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- value
- definition
- communication message
- personal computer
- 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.)
- Active
Links
Images
Landscapes
- Communication Control (AREA)
- Small-Scale Networks (AREA)
Description
本発明は、信号定義が異なるネットワークを相互通信可能に接続可能とする、通信メッセージ変換装置に関する。 The present invention relates to a communication message conversion device capable of connecting networks having different signal definitions so as to be able to communicate with each other.
車載の電子制御装置は、国際公開第2013/080387号パンフレット(特許文献1)に記載されるように、車載ネットワークの一例として挙げられるCAN(Controller Area Network)を介して相互通信可能に接続されている。 The in-vehicle electronic control device is connected to each other via CAN (Controller Area Network), which is an example of an in-vehicle network, as described in International Publication No. 2013/080387 (Patent Document 1). There is.
ところで、車両の開発段階などでは、例えば、既存のネットワークに対して、これとは信号定義が異なるネットワークを相互通信可能に接続したり、既存のネットワークに接続される電子制御装置の一部を、信号定義が異なる他の電子制御装置に置き換えたりして検証することが想定される。しかしながら、従来の技術では、信号定義が異なるネットワークを相互通信可能に接続することが困難であり、車両開発の効率が良好ではなかった。 By the way, at the development stage of a vehicle, for example, a network having a signal definition different from that of an existing network can be connected to an existing network so as to be able to communicate with each other, or a part of an electronic control device connected to the existing network can be connected. It is expected to be verified by replacing it with another electronic control device with a different signal definition. However, with the conventional technology, it is difficult to connect networks having different signal definitions so as to be able to communicate with each other, and the efficiency of vehicle development is not good.
そこで、本発明は、信号定義が異なるネットワークを相互通信可能に接続可能とする、通信メッセージ変換装置を提供することを目的とする。 Therefore, an object of the present invention is to provide a communication message conversion device capable of connecting networks having different signal definitions so as to be able to communicate with each other.
このため、信号定義が異なる複数のネットワークを相互通信可能に接続する通信メッセージ変換装置は、各ネットワークの通信定義が記述されたテーブルを参照して、送信元のネットワークからの通信メッセージに含まれるシグナル値を送信元のネットワークの信号定義に応じて物理値に変換し、この物理値を送信先のネットワークの信号定義に応じてシグナル値に変換し、このシグナル値により通信メッセージを再構築することで、送信先のネットワークの信号定義に適合した通信メッセージに変換する。そして、通信メッセージ変換装置は、通信先のネットワークの通信定義に適合した通信メッセージを、送信先のネットワークに送信する。このとき、通信メッセージ変換装置は、送信先のネットワークの信号定義がテーブルに記述されていないとき、送信元のネットワークの信号定義に応じた最小値及び最大値の平均値をデフォルトのシグナル値として使用する。 Therefore, the communication message converter that connects multiple networks with different signal definitions so that they can communicate with each other refers to the table in which the communication definitions of each network are described, and the signal included in the communication message from the source network. By converting the value into a physical value according to the signal definition of the source network, converting this physical value into a signal value according to the signal definition of the destination network, and reconstructing the communication message with this signal value. , Converts to a communication message that matches the signal definition of the destination network. Then, the communication message conversion device transmits a communication message conforming to the communication definition of the communication destination network to the destination network. At this time, when the signal definition of the destination network is not described in the table, the communication message converter uses the average value of the minimum value and the maximum value according to the signal definition of the source network as the default signal value. do.
本発明によれば、信号定義が異なるネットワークを相互通信可能に接続することができる。 According to the present invention, networks having different signal definitions can be connected to each other so as to be communicable.
以下、添付された図面を参照し、本発明を実施するための実施形態について詳述する。
図1は、通信メッセージ変換装置100を使用して、信号定義が異なるCAN1とCAN2とを相互通信可能に接続する接続構成の一例を示す。ここで、CAN1及びCAN2は、車両に搭載されるネットワークの一例として挙げられる。なお、信号定義の詳細については後述する。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the attached drawings.
FIG. 1 shows an example of a connection configuration in which CAN1 and CAN2 having different signal definitions are connected to each other so as to be able to communicate with each other by using the communication
CAN1は、少なくとも1つの電子制御装置、図示の例では、3つの電子制御装置A~Cを相互通信可能に接続する。CAN2は、少なくとも1つの電子制御装置、図示の例では、3つの電子制御装置D~Fを相互通信可能に接続する。電子制御装置A~Fの一例としては、例えば、エンジン制御装置、自動変速制御装置、ABS(Antilock Brake System)制御装置、ESC(Electronic Stability Control)制御装置など、車両に搭載された公知の各種電子制御装置が挙げられる。 CAN1 connects at least one electronic control device, in the illustrated example, three electronic control devices A to C in a communicable manner. CAN 2 connects at least one electronic control device, in the illustrated example, three electronic control devices D to F in a communicable manner. As an example of the electronic control devices A to F, for example, various known electronic devices mounted on a vehicle such as an engine control device, an automatic shift control device, an ABS (Antilock Brake System) control device, and an ESC (Electronic Stability Control) control device. A control device can be mentioned.
CAN1及びCAN2では、夫々、データフレームと呼ばれるパケット単位で、車両を制御するための各種シグナル(制御パラメータ)が送信される。データフレームは、図2に示すように、SOF(Start Of Frame)と、ID(Identifier)と、RTR(Remote Transmission Request)と、コントロールフィールドと、データフィールドと、CRC(Cyclic Redundancy Check)フィールドと、ACK(Acknowledgement)フィールドと、EOF(End Of Frame)と、を含んでいる。 In CAN1 and CAN2, various signals (control parameters) for controlling the vehicle are transmitted in packet units called data frames, respectively. As shown in FIG. 2, the data frame includes an SOF (Start Of Frame), an ID (Identifier), an RTR (Remote Transmission Request), a control field, a data field, a CRC (Cyclic Redundancy Check) field, and the like. It contains an ACK (Acknowledgement) field and an EOF (End Of Frame).
SOFは、データフレームの開始を表す。IDは、送信されるデータの内容を識別する。RTRは、データフレームとリモートフレームとを識別する。コントロールフィールドは、IDE(Identifier Extension)と、予約ビットrと、データフィールドにおいて何バイトのデータが送信されるかを表すDLC(Data Length Code)と、を含んでいる。データフィールドは、送信されるデータの本体を格納する。CRCフィールドは、正常に受信できたかを判断するためのCRCシーケンスと、CRCシーケンスの終了を表すCRCデリミタと、を含んでいる。ACKフィールドは、ACKスロットと、ACKデリミタと、を含んでいる。EOFは、データフレームの終了を表す。 SOF represents the start of a data frame. The ID identifies the content of the data to be transmitted. The RTR distinguishes between a data frame and a remote frame. The control field includes an IDE (Identifier Extension), a reserved bit r, and a DLC (Data Length Code) indicating how many bytes of data are transmitted in the data field. The data field stores the body of the data to be transmitted. The CRC field includes a CRC sequence for determining whether or not reception was successful, and a CRC delimiter indicating the end of the CRC sequence. The ACK field contains an ACK slot and an ACK delimiter. EOF represents the end of the data frame.
通信メッセージ変換装置100は、図3に示すように、CAN1と接続するためのCAN1インタフェース120と、CAN2と接続するためのCAN2インタフェース140と、CAN1インタフェース120及びCAN2インタフェース140と相互通信可能に接続されるパーソナルコンピュータ160と、を備えている。ここで、パーソナルコンピュータ160は、例えば、CPU(Central Processing Unit)などのプロセッサ、ROM(Read Only Memory)、RAM(Random Access Memory)、ハードディスクドライブやSSD(Solid State Drive)などのストレージ、これらを接続するバスなどを有している。なお、通信メッセージ変換装置100は、パーソナルコンピュータ160に代えて、汎用コンピュータを備えることもできる。
As shown in FIG. 3, the communication
パーソナルコンピュータ160のストレージ162には、図4に示すように、CAN1及びCAN2の信号定義が記述されたテーブルの一例として挙げられる、複数のメッセージ定義テーブル162Aと、複数のシグナル定義テーブル162Bと、が夫々格納されている。ここで、メッセージ定義テーブル162Aは、データフレーム(通信メッセージ)の概要を定義する。シグナル定義テーブル162Bは、データフレームのデータフィールドに格納される各シグナル値の詳細を定義する。ここで、シグナル値としては、例えば、車速、エンジン回転数、水温、診断情報など、車両を制御するための各種の制御パラメータを挙げることができる。
As shown in FIG. 4, the
メッセージ定義テーブル162Aは、図5に示すように、IDと、メッセージ名と、DLCと、フォーマットと、送信ノードと、シグナル集合と、シグナル配置と、を含んでいる。IDは、データフレームと関連付けるデータフレームのIDを格納する。メッセージ名は、データフレームを識別するメッセージ名を格納する。DLCは、データフレームのデータフィールドに格納される各シグナル値のバイト数を加算した総バイト数を格納する。フォーマットは、シグナル値のフォーマット(符号付き、符号なし、浮動小数点など)を格納する。送信ノードは、データフレームの送信ノード、即ち、データフレームの送信元であるCANの識別子を格納する。シグナル集合は、データフレームのデータフィールドに格納されている少なくとも1つのシグナル値の識別子を格納する。シグナル配置は、データフレームのデータフィールドにおける各シグナル値の配置、例えば、各シグナル値の配置順を格納する。 As shown in FIG. 5, the message definition table 162A includes an ID, a message name, a DLC, a format, a transmission node, a signal set, and a signal arrangement. The ID stores the ID of the data frame associated with the data frame. The message name stores the message name that identifies the data frame. The DLC stores the total number of bytes obtained by adding the number of bytes of each signal value stored in the data field of the data frame. The format stores the format of the signal value (signed, unsigned, floating point, etc.). The transmitting node stores the transmitting node of the data frame, that is, the identifier of the CAN that is the source of the data frame. The signal set stores the identifier of at least one signal value stored in the data field of the data frame. The signal arrangement stores the arrangement of each signal value in the data field of the data frame, for example, the arrangement order of each signal value.
シグナル定義テーブル162Bは、図6に示すように、シグナル名と、シグナル長と、バイト順と、最小値と、最大値と、物理単位と、分解能と、オフセットと、を含んでいる。シグナル名は、識別子として機能するシグナル値の名前を格納する。シグナル長は、シグナル値の長さ(バイト数)を格納する。バイト順は、複数のバイトに1つのシグナル値がどのように配置されているかを格納する。最小値は、シグナル値の最小値を格納する。最大値は、シグナル値の最大値を格納する。物理単位は、シグナル値の物理単位を格納する。分解能は、シグナル値の分解能を格納する。オフセットは、シグナル値のオフセット値を格納する。 As shown in FIG. 6, the signal definition table 162B includes a signal name, a signal length, a byte order, a minimum value, a maximum value, a physical unit, a resolution, and an offset. The signal name stores the name of the signal value that acts as an identifier. The signal length stores the length (number of bytes) of the signal value. The byte order stores how one signal value is arranged in a plurality of bytes. The minimum value stores the minimum value of the signal value. The maximum value stores the maximum value of the signal value. The physical unit stores the physical unit of the signal value. The resolution stores the resolution of the signal value. The offset stores the offset value of the signal value.
車両の開発段階などにおいて、信号定義が異なるCAN1とCAN2とを相互通信可能に接続して動作検証などを行う場合、作業者は、通信メッセージ変換装置100のCAN1インタフェース120及びCAN2インタフェース140を、CAN1及びCAN2に夫々接続する。そして、作業者は、CAN1及びCAN2に接続されている電子制御装置A~F、通信メッセージ変換装置100のパーソナルコンピュータ160を夫々起動する。また、作業者は、パーソナルコンピュータ160のストレージ162に予め格納されたメッセージ変換プログラムを選択して起動する。ここで、メッセージ変換プログラムは、メッセージ変換処理及びシグナル変換処理を実行する。なお、パーソナルコンピュータ160は、ストレージ162に格納されたメッセージ変換プログラムを実行することで、変換手段及び送信手段を実現する。
In the development stage of a vehicle or the like, when CAN1 and CAN2 having different signal definitions are connected to each other so as to be able to communicate with each other and operation verification is performed, the operator sets the
図7は、通信メッセージ変換装置100のパーソナルコンピュータ160が、CAN1インタフェース120を介してCAN1からCAN2へと送信されるデータフレーム、又は、CAN2インタフェース140を介してCAN2からCAN1へと送信されるデータフレームを受信したことを契機として実行される、メッセージ変換処理の一例を示す。なお、パーソナルコンピュータ160は、CAN1インタフェース120又はCAN2インタフェース140のどちらでデータフレームを受信したかに応じて、データフレームの送信元及び送信先のCANを特定することができる。
FIG. 7 shows a data frame in which the
ステップ1(図では「S1」と略記する。以下同様。)では、パーソナルコンピュータ160が、データフレームを解析して、そのデータフィールドに格納されているすべてのシグナル値を分解して抽出する。具体的には、パーソナルコンピュータ160は、ストレージ162に格納されている複数のメッセージ定義テーブル162Aの中から、データフレームのID及び送信元のCANにより特定される送信ノードを含む、1つのメッセージ定義テーブル162Aを選定する。また、パーソナルコンピュータ160は、ストレージ162に格納されている複数のシグナル定義テーブル162Bの中から、選定したメッセージ定義テーブル162Aのシグナル集合を参照して、少なくとも1つのシグナル定義テーブル162Bを選定する。
In step 1 (abbreviated as "S1" in the figure; the same applies hereinafter), the
そして、パーソナルコンピュータ160は、選定したメッセージ定義テーブル162Aのシグナル集合及びシグナル配置、並びに、選定したシグナル定義テーブル162Bのシグナル長及びバイト順を参照して、データフレームのデータフィールドを分解してすべてのシグナル値を抽出する。なお、以下の説明においては、選定されたメッセージ定義テーブル162A及びシグナル定義テーブル162Bを、夫々、送信元のCANに関連付けられたメッセージ定義テーブル162A及びシグナル定義テーブル162Bと称することとする。
Then, the
ステップ2では、パーソナルコンピュータ160が、ステップ1で抽出したすべてのシグナル値のうち、送信先のCANの信号定義に適合したシグナル値に未変換であるものがあるか否かを判定する。ここで、未変換であるシグナル値があるか否かは、例えば、ステップ1で抽出したシグナル値の個数を計数すると共に、送信先のCANの信号定義に適合したシグナル値に変換したときその個数を順次減算し、残りの個数が0になったか否かを介して判定することができる。そして、パーソナルコンピュータ160は、未変換であるシグナル値があると判定すれば(Yes)、処理をステップ3へと進める。一方、パーソナルコンピュータ160は、未変換であるシグナル値がない、即ち、すべてのシグナル値を変換したと判定すれば(No)、処理をステップ4へと進める。
In step 2, the
ステップ3では、パーソナルコンピュータ160が、送信先のCANの信号定義に適合したシグナル値に変換するサブルーチンをコールする。そして、パーソナルコンピュータ160は、サブルーチンによるシグナル値の変換処理が終了したら、処理をステップ2へと戻す。なお、サブルーチンによるシグナル値の変換結果は、詳細を後述するように、メモリに格納される。
In step 3, the
ステップ4では、パーソナルコンピュータ160が、送信先のCANの信号定義に適合するように変換したシグナル値に応じて、送信先のCANに送信するデータフレームを再構築する。具体的には、パーソナルコンピュータ160は、ストレージ162に格納されている複数のメッセージ定義テーブル162Aの中から、受信したデータフレームのID及び送信先のCANにより特定される送信ノードを含む、1つのメッセージ定義テーブル162Aを選定する。また、パーソナルコンピュータ160は、選定したメッセージ定義テーブル162Aのシグナル集合及びシグナル配置を考慮して、変換したシグナル値を適宜配置してデータフィールドに格納するデータを生成する。
In step 4, the
そして、パーソナルコンピュータ160は、再構築対象のデータフレームのID、DLC、データフィールド及びCRCシーケンスに、受信したデータフレームのID、選定したメッセージ定義テーブル162AのDLC、生成したデータ及び所定規則に応じて算出したCRC値を夫々格納する。なお、再構築対象のデータフレームの他の部分には、受信したデータフレームの他の部分をコピーすればよい。なお、以下の説明においては、選定したメッセージ定義テーブル162A及びシグナル定義テーブル162Bを、夫々、送信先のCANに関連付けられたメッセージ定義テーブル162A及びシグナル定義テーブル162Bと称することとする。
Then, the
ステップ5では、パーソナルコンピュータ160が、ステップ4で再構築したデータフレームを、送信先のCANに応じたCAN1インタフェース120又はCAN2インタフェース140から、送信先のCANへと送信する。
In step 5, the
かかるメッセージ変換処理によれば、パーソナルコンピュータ160は、CAN1又はCAN2からデータフレームを受信すると、送信元のCANに関連付けられたメッセージ定義テーブル162Aを参照し、データフィールドを解析してすべてのシグナル値を抽出する。また、パーソナルコンピュータ160は、サブルーチンをコールして、抽出したすべてのシグナル値を送信先のCANの信号定義に適合したシグナル値に変換する。そして、パーソナルコンピュータ160は、送信先のCANに関連付けられたメッセージ定義テーブル162A及びシグナル定義テーブル162Bを参照して、データフレームを再構築し、これを送信先のCANへと送信する。
According to such a message conversion process, when the
図8は、シグナル値を送信先のCANの信号定義に適合したシグナル値に変換するシグナル変換処理を実行する、サブルーチンの一例を示す。なお、シグナル変換処理は、サブルーチン形式ではなく、図7に示す処理に組み込むこともできる。 FIG. 8 shows an example of a subroutine that executes a signal conversion process for converting a signal value into a signal value conforming to the signal definition of the destination CAN. The signal conversion process can be incorporated into the process shown in FIG. 7 instead of the subroutine format.
ステップ11では、パーソナルコンピュータ160が、変換対象となるシグナル値に関して、ストレージ162に格納された複数のシグナル定義テーブル162Bの中に、送信元のCANに関連付けられたシグナル定義テーブル162Bのシグナル名を有するシグナル定義テーブル162Bがあるか否かを判定する。即ち、パーソナルコンピュータ160は、変換対象となるシグナル値に関して、複数のシグナル定義テーブル162Bの中に、シグナル名が一致するものがあるか否かを判定する。そして、パーソナルコンピュータ160は、シグナル名が一致するものがあると判定すれば(Yes)、処理をステップ12へと進める。一方、パーソナルコンピュータ160は、シグナル名が一致するものがないと判定すれば(No)、処理をステップ15へと進める。
In step 11, the
ステップ12では、変換対象となるシグナル値に関して、パーソナルコンピュータ160が、送信元のCANに関連付けられたシグナル定義テーブル162Bの物理単位とシグナル名が一致するシグナル定義テーブル162Bの物理単位とが同じであるか否かを判定する。そして、パーソナルコンピュータ160は、物理単位が同じであると判定すれば(Yes)、処理をステップ13へと進める。一方、パーソナルコンピュータ160は、物理単位が異なると判定すれば(No)、処理をステップ15へと進める。
In step 12, the
ステップ13では、パーソナルコンピュータ160が、変換対象となるシグナル値に関して、送信元のCANに関連付けられたシグナル定義テーブル162Bの分解能及びオフセットを考慮して、シグナル値を物理値に変換する。即ち、パーソナルコンピュータ160は、送信元のCANと送信先のCANとでは信号定義が異なるため、シグナル値を信号定義に影響がない物理値に一旦変換する。
In step 13, the
ステップ14では、パーソナルコンピュータ160が、変換対象となるシグナル値に関して、送信先のCANに関連付けられたシグナル定義テーブル162Bの分解能及びオフセットを考慮して、物理値をシグナル値に変換する。即ち、パーソナルコンピュータ160は、信号定義に影響がない物理量を、送信先のCANの信号定義に適合したシグナル値に変換する。
In step 14, the
ステップ15では、変換対象となるシグナル値に関して、シグナル名が一致しかつ物理単位が同じシグナル定義テーブル162Bが存在しないため、パーソナルコンピュータ160が、デフォルトのシグナル値を生成する。即ち、シグナル名が一致するシグナル定義テーブル162Bが存在しないときには、パーソナルコンピュータ160は、例えば、送信元のCANに関連付けられたシグナル定義テーブル162Bの最小値及び最大値の範囲内にある中間値、例えば、最小値と最大値との平均値をデフォルトのシグナル値とする。また、シグナル名が一致するが物理単位が異なるシグナル定義テーブル162Bが存在するときには、パーソナルコンピュータ160は、例えば、送信先のCANに関連付けられたシグナル定義テーブル162Bの最小値及び最大値の範囲内にある中間値、例えば、最小値と最大値との平均値をデフォルトのシグナル値とする。そして、パーソナルコンピュータ160は、デフォルトのシグナル値を生成した後、処理をステップ16へと進める。なお、デフォルトのシグナル値は、シグナルごとに別途設定することもできる。
In step 15, the
ステップ16では、パーソナルコンピュータ160が、変換対象となるシグナル値に関して、送信先のCANに関連付けられたシグナル定義テーブル162Bの最小値及び最大値を考慮し、シグナル値が最小値及び最大値で画定される範囲内になるように制限する。具体的には、パーソナルコンピュータ160は、シグナル値が最小値より小さければ、シグナル値を最小値とする。また、パーソナルコンピュータ160は、シグナル値が最大値より大きければ、シグナル値を最大値とする。
In step 16, the
ステップ17では、パーソナルコンピュータ160が、シグナル値をメモリ(具体的には、RAM)に保存する。このとき、パーソナルコンピュータ160は、変換前のシグナル値と変換後のシグナル値との対応が把握できるように、例えば、シグナル名と関連付けてシグナル値を保存することができる。
In step 17, the
かかるシグナル変換処理によれば、変換対象となるシグナル値に関して、シグナル名が一致しかつ物理単位が同じシグナル定義テーブル162Bが存在すれば、パーソナルコンピュータ160は、送信元のCANに関連付けられたシグナル定義テーブル162Bの分解能及びオフセットを考慮して、シグナル値を物理量に一旦変換する。そして、パーソナルコンピュータ160は、送信先のCANに関連付けられたシグナル定義テーブル162Bの分解能及びオフセットを考慮して、物理量をシグナル値に変換する。
According to such a signal conversion process, if there is a signal definition table 162B having the same signal name and the same physical unit with respect to the signal value to be converted, the
一方、変換対象となるシグナル値に関して、シグナル名が一致しかつ物理単位が同じシグナル定義テーブル162Bが存在しなければ、パーソナルコンピュータ160は、送信元又は送信先に関連付けられたシグナル定義テーブル162Bの最小値及び最大値を考慮して、デフォルトのシグナル値を生成する。
On the other hand, if there is no signal definition table 162B having the same signal name and the same physical unit for the signal value to be converted, the
そして、パーソナルコンピュータ160は、変換対象となるシグナル値に関して、送信先のCANに関連付けられたシグナル定義テーブル162Bの最小値及び最大値を考慮して、シグナル値を最小値及び最大値により画定される範囲内に制限し、これをメモリに保存する。
Then, the
従って、CAN1及びCAN2の信号定義が異なっていても、メッセージ定義テーブル162A及びシグナル定義テーブル162Bを利用して、送信元のCANの信号定義に適合したシグナル値を、送信先のCANの信号定義に適合したシグナル値に変換することができる。このため、信号定義が異なるCAN1とCAN2との間で相互通信が可能となり、例えば、車両の開発段階における検証効率を向上させることができる。 Therefore, even if the signal definitions of CAN1 and CAN2 are different, the signal value matching the signal definition of the source CAN is used in the signal definition of the destination CAN by using the message definition table 162A and the signal definition table 162B. It can be converted to a suitable signal value. Therefore, mutual communication is possible between CAN1 and CAN2 having different signal definitions, and for example, verification efficiency at the vehicle development stage can be improved.
シグナル値を変換するとき、送信先のCANに関連付けられたシグナル定義テーブル162Bの最小値及び最大値を考慮して、シグナル値が最小値及び最大値により画定される範囲内に制限されるため、送信先のCANにおいて予期しない動作が行われることを抑制することができる。また、シグナル名が一致しかつ物理単位が同じシグナル定義テーブル162Bが存在しないときには、送信元又は送信先のCANに関連付けられたシグナル定義テーブル162Bの最小値及び最大値を考慮して、デフォルトのシグナル値が生成されるため、送信先のCANにおいて予期しない動作が行われることを抑制することができる。 When translating the signal value, the signal value is limited to the range defined by the minimum and maximum values, taking into account the minimum and maximum values of the signal definition table 162B associated with the destination CAN. It is possible to prevent unexpected operation from being performed in the destination CAN. Also, when there is no signal definition table 162B with the same signal name and the same physical unit, the default signal is taken into consideration for the minimum and maximum values of the signal definition table 162B associated with the source or destination CAN. Since the value is generated, it is possible to suppress unexpected operation in the destination CAN.
通信メッセージ変換装置100は、図9に示すように、CAN1インタフェース180A、CAN2インタフェース180B、プロセッサ180C、ROM180D、RAM180E、入出力回路180F及びこれらを相互に接続するバス180Gを内蔵したマイクロコンピュータ180によって構成することもできる。この場合、メッセージ定義テーブル162A、シグナル定義テーブル162B及びメッセージ変換プログラムは、ストレージとして機能するROM180Dに格納しておけばよい。そして、マイクロコンピュータ180は、起動時にローダによってメッセージ変換プログラムを起動し、そのメッセージ変換処理及びシグナル変換処理によって上述した処理を行えばよい。
As shown in FIG. 9, the communication
車両に搭載されたネットワークとしては、CANに限らず、例えば、LIN(Local Interconnect Network)、FlexRay(登録商標)など、公知のネットワークであってもよい。また、相互通信可能に接続するネットワークは、2つに限らず、3つ以上であってもよい。 The network mounted on the vehicle is not limited to CAN, and may be a known network such as LIN (Local Interconnect Network) or FlexRay (registered trademark). Further, the number of networks connected so as to be able to communicate with each other is not limited to two, and may be three or more.
ここで、上述した実施形態から把握し得る技術的思想について、以下に記載する。
(1)前記通信メッセージは、少なくとも1つのシグナル値を含み、前記テーブルは、前記通信メッセージの概要を定義するメッセージ定義テーブルと、前記シグナル値の詳細を定義するシグナル定義テーブルと、を有する。
Here, the technical ideas that can be grasped from the above-described embodiments will be described below.
(1) The communication message includes at least one signal value, and the table has a message definition table that defines an outline of the communication message and a signal definition table that defines the details of the signal value.
(2)前記変換手段は、前記送信元又は前記送信先のネットワークの信号定義に適合したシグナル値の分解能及びオフセットを考慮して、変換対象のシグナル値を物理量に変換し、当該物理量を送信先のネットワークの信号定義に適合したシグナル値に変換する。 (2) The conversion means converts the signal value to be converted into a physical quantity in consideration of the resolution and offset of the signal value conforming to the signal definition of the network of the source or the destination, and converts the physical quantity into the destination. Convert to a signal value that matches the signal definition of the network.
(3)前記信号定義は、前記シグナル値の物理単位、分解能及びオフセットを少なくとも含む。
(4)前記変換手段は、前記送信元又は前記送信先のネットワークの信号定義に応じた最小値及び最大値の範囲内にある中間値を、デフォルトのシグナル値とする。
(3) The signal definition includes at least the physical unit, resolution and offset of the signal value.
(4) The conversion means sets an intermediate value within the range of the minimum value and the maximum value according to the signal definition of the source or destination network as the default signal value.
100 通信メッセージ変換装置
120 CAN1インタフェース
140 CAN2インタフェース
160 パーソナルコンピュータ
162 ストレージ
162A メッセージ定義テーブル
162B シグナル定義テーブル
180 マイクロコンピュータ
180A CAN1インタフェース
180B CAN2インタフェース
180C プロセッサ
180D ROM
180E RAM
180F 入出力回路
180G バス
100
180E RAM
180F I /
Claims (3)
各ネットワークの信号定義が記述されたテーブルと、
前記テーブルを参照して、送信元のネットワークからの通信メッセージに含まれるシグナル値を当該送信元のネットワークの信号定義に応じて物理値に変換し、当該物理値を前記送信先のネットワークの信号定義に応じてシグナル値に変換し、当該シグナル値により通信メッセージを再構築することで、送信先のネットワークの信号定義に適合した通信メッセージに変換する変換手段と、
前記送信先のネットワークの信号定義に適合した通信メッセージを、当該送信先のネットワークに送信する送信手段と、
を有し、
前記変換手段は、前記送信先のネットワークの信号定義が前記テーブルに記述されていないとき、前記送信元のネットワークの信号定義に応じた最小値及び最大値の平均値をデフォルトのシグナル値として使用する、
通信メッセージ変換装置。 A communication message converter that connects multiple networks with different signal definitions so that they can communicate with each other.
A table that describes the signal definitions for each network,
With reference to the table, the signal value included in the communication message from the source network is converted into a physical value according to the signal definition of the source network, and the physical value is converted into the signal definition of the destination network. By converting to a signal value according to the signal value and reconstructing the communication message according to the signal value, a conversion means for converting to a communication message conforming to the signal definition of the destination network, and
A transmission means for transmitting a communication message conforming to the signal definition of the destination network to the destination network, and
Have,
When the signal definition of the destination network is not described in the table, the conversion means uses the average value of the minimum value and the maximum value according to the signal definition of the source network as the default signal value. ,
Communication message converter.
請求項1に記載の通信メッセージ変換装置。 The conversion means limits the signal value converted according to the signal definition of the destination network to a range defined by the minimum value and the maximum value according to the signal definition of the destination network.
The communication message conversion device according to claim 1.
請求項1又は請求項2に記載の通信メッセージ変換装置。 The network is a CAN mounted on a vehicle.
The communication message conversion device according to claim 1 or 2 .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017141614A JP7005201B2 (en) | 2017-07-21 | 2017-07-21 | Communication message converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017141614A JP7005201B2 (en) | 2017-07-21 | 2017-07-21 | Communication message converter |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019022174A JP2019022174A (en) | 2019-02-07 |
JP7005201B2 true JP7005201B2 (en) | 2022-02-10 |
Family
ID=65353595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017141614A Active JP7005201B2 (en) | 2017-07-21 | 2017-07-21 | Communication message converter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7005201B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7284673B2 (en) * | 2019-09-17 | 2023-05-31 | 株式会社日立ソリューションズ | Conversion device, conversion method, and conversion program |
CN113010402B (en) * | 2019-12-19 | 2023-12-08 | 观致汽车有限公司 | Method and system for testing upper limit and lower limit of physical value of CAN (controller area network) signal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005328119A (en) | 2004-05-12 | 2005-11-24 | Nec Electronics Corp | Communication message converter, communication method, and communication system |
WO2006126355A1 (en) | 2005-05-24 | 2006-11-30 | Matsushita Electric Industrial Co., Ltd. | Gateway device and control device |
JP2007168463A (en) | 2005-12-19 | 2007-07-05 | Fujitsu Ten Ltd | Vehicular electronic control system and data conversion system |
JP2011066769A (en) | 2009-09-18 | 2011-03-31 | Mitsubishi Electric Corp | Communication gateway device |
JP2011109452A (en) | 2009-11-18 | 2011-06-02 | Toyota Motor Corp | In-vehicle communication system |
JP2012068207A (en) | 2010-09-27 | 2012-04-05 | Toyota Motor Corp | Information processing device for vehicle |
JP2013507294A (en) | 2009-10-12 | 2013-03-04 | リー:ラボ エス.アール.エル. | Method and system for processing information about vehicles |
-
2017
- 2017-07-21 JP JP2017141614A patent/JP7005201B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005328119A (en) | 2004-05-12 | 2005-11-24 | Nec Electronics Corp | Communication message converter, communication method, and communication system |
WO2006126355A1 (en) | 2005-05-24 | 2006-11-30 | Matsushita Electric Industrial Co., Ltd. | Gateway device and control device |
JP2007168463A (en) | 2005-12-19 | 2007-07-05 | Fujitsu Ten Ltd | Vehicular electronic control system and data conversion system |
JP2011066769A (en) | 2009-09-18 | 2011-03-31 | Mitsubishi Electric Corp | Communication gateway device |
JP2013507294A (en) | 2009-10-12 | 2013-03-04 | リー:ラボ エス.アール.エル. | Method and system for processing information about vehicles |
JP2011109452A (en) | 2009-11-18 | 2011-06-02 | Toyota Motor Corp | In-vehicle communication system |
JP2012068207A (en) | 2010-09-27 | 2012-04-05 | Toyota Motor Corp | Information processing device for vehicle |
Also Published As
Publication number | Publication date |
---|---|
JP2019022174A (en) | 2019-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11463275B2 (en) | Electronic control unit, frame generating method, and non-transitory computer-readable recording medium storing a program | |
WO2019010686A1 (en) | Data processing method and data processing apparatus | |
JP7005201B2 (en) | Communication message converter | |
WO2012169456A1 (en) | Vehicle control device, vehicle control system | |
CN115102780B (en) | Data transmission method, related device, system and computer readable storage medium | |
US20230300720A1 (en) | Network distribution method and apparatus | |
JP5983507B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION NODE, AND COMMUNICATION METHOD | |
JP2006253922A (en) | Gateway apparatus and data transfer method for the gateway apparatus | |
US8693481B2 (en) | Communication device | |
KR102313636B1 (en) | Operation method of communication node for time sinchronizating in vehicle network | |
CN109639555B (en) | Link layer message generation method, link layer message generation device and terminal equipment | |
CN115967656A (en) | Load rate determining method and device and computer readable storage medium | |
JP2019029921A (en) | Transmitter, receiver, and communication method | |
EP3955524A1 (en) | Method for managing remote storage device by means of management device | |
KR20190013012A (en) | Method for transceiving data between heterogeneous network | |
CN115904488A (en) | Data transmission method, system, device and equipment | |
JP2017163344A (en) | Communication system | |
US11804977B2 (en) | Monitoring controller area network (CAN) XL nodes | |
US20190124180A1 (en) | Packet compression and decompression | |
JP2018201148A (en) | Communication device | |
JP2024070053A (en) | Electronic control device and inter-core communication method | |
EP4092970A1 (en) | Monitoring controller area network (can) xl nodes | |
CN117997670A (en) | CAN controller, CAN device and method for CAN controller | |
EP4304136A1 (en) | Control area network devices and method | |
CN114745351A (en) | Message transmission method, system, network equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20191121 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200918 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200929 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20201126 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210316 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20210517 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210715 |
|
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: 20211207 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220105 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7005201 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |