JP7679772B2 - COMMUNICATION SYSTEM, INFORMATION SENDING NODE, AND INFORMATION RECEIVING NODE - Google Patents
COMMUNICATION SYSTEM, INFORMATION SENDING NODE, AND INFORMATION RECEIVING NODE Download PDFInfo
- Publication number
- JP7679772B2 JP7679772B2 JP2022005259A JP2022005259A JP7679772B2 JP 7679772 B2 JP7679772 B2 JP 7679772B2 JP 2022005259 A JP2022005259 A JP 2022005259A JP 2022005259 A JP2022005259 A JP 2022005259A JP 7679772 B2 JP7679772 B2 JP 7679772B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- information
- management
- message
- communication frame
- 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
- Small-Scale Networks (AREA)
Description
本開示は、通信システムにおいて通信用フレームを用いて通信を行う技術に関する。 This disclosure relates to technology for communicating using communication frames in a communication system.
特許文献1には、車両に搭載されCANプロトコルに従う通信システムにおいてメッセージデータの通信を行う際、メッセージデータを一定の長さに整えるため、意味を持たないデータ(例えば、0等)であるパディングを追加する方法が記載されている。なお、CANは登録商標である。 Patent Document 1 describes a method of adding padding, which is meaningless data (such as 0), to adjust message data to a certain length when communicating message data in a communication system that is installed in a vehicle and conforms to the CAN protocol. CAN is a registered trademark.
車両に搭載された車載通信システムでは、データ通信量の増加に伴い、CANよりも多くのデータを高速通信可能なCAN FDの採用が進んでいる。CAN FDは、CAN with Flexible Data Rateの略である。例えば、CAN FDに対応するCAN FD通信装置を、他のCANに対応するCAN通信装置からCAN通信フレームを受信するように構成することが考えられる。又、CAN FD通信装置を、複数のCAN通信フレームに含まれるメッセージデータ等を収集して新たなメッセージデータを生成してCAN FD通信フレームにて送信するように構成することが考えられる。新たなメッセージデータを含むCAN FD通信フレームには、予め定められたメッセージ識別子が付与される。 In-vehicle communication systems installed in vehicles are increasingly adopting CAN FD, which can communicate more data at higher speeds than CAN, as the amount of data communication increases. CAN FD stands for CAN with Flexible Data Rate. For example, a CAN FD communication device compatible with CAN FD can be configured to receive CAN communication frames from a CAN communication device compatible with another CAN. A CAN FD communication device can also be configured to collect message data and the like contained in multiple CAN communication frames, generate new message data, and transmit it in a CAN FD communication frame. A predetermined message identifier is assigned to the CAN FD communication frame containing the new message data.
ところで、このような車載通信システムでは、複数のCAN通信フレームが、同一のタイミングで、上述の複数のCAN通信フレームに含まれるメッセージデータ等を収集し管理するCAN FD通信装置に送信されて来ない状況が生じると考えられる。このため、上述のCAN FD通信装置では、例えば同じメッセージ識別子が付与されたCAN FD通信フレームであっても、CANによるメッセージデータ等を含むデータ領域の長さが、タイミングにより異なるという状況が生じると考えられる。還元すれば、仮に同じメッセージ識別子が付与されたCAN FD通信フレームであっても、決定されるデータ領域の長さがタイミングにより異なるため、追加されるパディングのデータ長であるパディング量がタイミングにより異なるという状況が生じると考えられる。 However, in such an in-vehicle communication system, it is considered that a situation will arise in which multiple CAN communication frames are not transmitted at the same timing to the CAN FD communication device that collects and manages the message data, etc. contained in the multiple CAN communication frames. For this reason, in the above-mentioned CAN FD communication device, it is considered that a situation will arise in which, for example, even CAN FD communication frames to which the same message identifier is assigned have a data area length that includes CAN message data, etc., that differs depending on the timing. In other words, even if the CAN FD communication frames are assigned the same message identifier, it is considered that a situation will arise in which the padding amount, which is the data length of the padding to be added, differs depending on the timing, because the length of the determined data area differs depending on the timing.
例えば、上述の新たなメッセージデータが予め定められたデータ長であり可変でない場合、該新たなメッセージデータをデータ領域に格納するCAN FD通信フレームでは、付与されたメッセージ識別子とパディング量とを一対一に対応させることが可能である。しかしながら、上述のように、データ領域に含まれる新たなメッセージデータのデータ長がタイミングにより可変となるCAN FD通信フレームでは、メッセージ識別子とパディング量とを一対一に対応させることが困難である状況が生じ得る。 For example, if the new message data described above has a predetermined data length and is not variable, in a CAN FD communication frame that stores the new message data in its data area, it is possible to achieve a one-to-one correspondence between the assigned message identifier and the amount of padding. However, as described above, in a CAN FD communication frame in which the data length of the new message data included in the data area is variable depending on the timing, a situation may arise in which it is difficult to achieve a one-to-one correspondence between the message identifier and the amount of padding.
このようなデータ領域に含まれるメッセージデータのデータ長がタイミングにより可変となるCAN FD通信フレームでは、メッセージ識別子とパディング量とを一対一に対応させることが困難であるため、パディング量を特定するために時間を要する。パディング量の特定に時間を要すると、CAN FD通信フレームのデータ領域に含まれるメッセージデータに対してメッセージ認証が実行されている場合に、メッセージデータの検証に時間を要するという問題も生じ得る。 In a CAN FD communication frame in which the data length of message data contained in such a data area varies depending on the timing, it is difficult to establish a one-to-one correspondence between message identifiers and padding amounts, and it takes time to identify the padding amount. If it takes time to identify the padding amount, a problem may arise in that it takes time to verify the message data when message authentication is performed on the message data contained in the data area of the CAN FD communication frame.
本開示の1つの局面は、データ長が可変であるメッセージデータを含むことによりデータ領域の長さが変化する通信フレームにおいて、データ領域におけるパディング量を特定する時間を相対的に短縮する技術を提供する。 One aspect of the present disclosure provides a technique for relatively shortening the time required to determine the amount of padding in a data area in a communication frame in which the length of the data area varies due to the inclusion of message data with a variable data length.
本開示の一態様は、相互に接続された複数のノードを備える通信システム(1)である。通信システムでは、ノードのうち少なくとも一つを情報送信ノード(10i_1)とし、ノードのうち情報送信ノード以外の少なくとも一つを情報送信ノードと通信可能に接続された情報受信ノード(10i_2)とする。情報送信ノードは、生成部(133)と、送信部(12i)と、を備える。生成部は、予め定められた通信プロトコルに従う通信用フレームを生成するように構成される。 One aspect of the present disclosure is a communication system (1) including a plurality of nodes connected to each other. In the communication system, at least one of the nodes is an information transmitting node (10i_1), and at least one of the nodes other than the information transmitting node is an information receiving node (10i_2) communicatively connected to the information transmitting node. The information transmitting node includes a generating unit (133) and a transmitting unit (12i). The generating unit is configured to generate a communication frame that conforms to a predetermined communication protocol.
送信部は、生成部によって生成された通信フレームを送信するように構成される。生成部は、管理部(S10)と、補充実行部(S20、S30)と、補充情報部(S40)と、を備える。管理部は、管理メッセージを生成し、生成した管理メッセージを通信用フレームのデータ領域に格納するように構成される。管理メッセージは、個別メッセージデータを少なくとも一つ含む。個別メッセージデータは、複数のノードのうちの少なくとも一つにて生成されたデータであってデータ長が所定範囲内で可変である。 The transmission unit is configured to transmit the communication frame generated by the generation unit. The generation unit includes a management unit (S10), a replenishment execution unit (S20, S30), and a replenishment information unit (S40). The management unit is configured to generate a management message and store the generated management message in the data area of the communication frame. The management message includes at least one individual message data. The individual message data is data generated by at least one of the multiple nodes, and the data length is variable within a predetermined range.
補充実行部は、補充データのデータ長を決定し、決定したデータ長の補充データをデータ領域に格納するように構成される。補充データは、データ領域(103)を管理メッセージのデータ長に応じた指定データ長に等しくするためのデータである。補充情報部は、補充データのデータ長を示す補充情報をデータ領域内の予め定められた位置に格納するように構成される。 The supplement execution unit is configured to determine the data length of the supplement data and store the supplement data of the determined data length in the data area. The supplement data is data for making the data area (103) equal to a specified data length according to the data length of the management message. The supplement information unit is configured to store supplement information indicating the data length of the supplement data in a predetermined position in the data area.
情報受信ノードは、受信部(12i)と、特定部(134)と、を備える。受信部は、通信フレームを受信するように構成される。特定部は、受信部によって受信された通信用フレームにおける、補充データのデータ長を特定するように構成される。また、特定部は、通信フレームのデータ領域に含まれる補充情報を取得し、補充情報に基づいて補充データのデータ長を特定するように構成された補充特定部(S110)を備える。 The information receiving node includes a receiving unit (12i) and an identifying unit (134). The receiving unit is configured to receive a communication frame. The identifying unit is configured to identify the data length of the supplementary data in the communication frame received by the receiving unit. The identifying unit also includes a supplementary identifying unit (S110) configured to acquire supplementary information included in the data area of the communication frame and identify the data length of the supplementary data based on the supplementary information.
このような構成によれば、情報受信ノードでは、通信用フレームから補充情報を取得することによって補充データのデータ長を容易に特定することができる。つまり、一又は複数の個別メッセージデータを含むことによりデータ領域の長さが異なる通信用フレームにおいて、データ領域における補充データのデータ長を特定する時間を相対的に短縮することができる。 With this configuration, the information receiving node can easily identify the data length of the supplementary data by obtaining the supplementary information from the communication frame. In other words, in a communication frame in which the length of the data area varies due to the inclusion of one or more individual message data, the time required to identify the data length of the supplementary data in the data area can be relatively shortened.
本開示の一態様として、本開示は、上述の通信システムを構成する情報送信ノードとして把握されてもよい。
本開示の一態様として、本開示は、上述の通信システムを構成する情報受信ノードとして把握されてもよい。
As one aspect of the present disclosure, the present disclosure may be understood as an information transmission node constituting the above-mentioned communication system.
As one aspect of the present disclosure, the present disclosure may be understood as an information receiving node constituting the above-mentioned communication system.
以下、図面を参照しながら、本開示の実施形態を説明する。
[実施形態]
[1.構成]
通信システム1は、車両に搭載され、図1に示すように、複数のノード10と、各ノード10を相互に接続するバス状の通信路3とを備える。通信システム1では、CAN(以下、Classic CANともいう)及びCAN FDが通信プロトコルとして用いられる。
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[Embodiment]
[1. Configuration]
1, the communication system 1 is mounted on a vehicle and includes a plurality of nodes 10 and a bus-like communication path 3 that connects the nodes 10 to each other. In the communication system 1, CAN (hereinafter also referred to as Classic CAN) and CAN FD are used as communication protocols.
ノード10は、電子制御装置(以下、ECU10ともいう)とも呼ばれる。ECUは、Electronic Control Unitの略である。以下では、通信システム1おけるECU10のうち一つを管理ECU10i_1と呼び、ECU10のうちの管理ECU10i_1以外の一つを管理ECU10i_2と呼び、それ以外のノード10を通常ECU10nと呼ぶ。通常ECU10nは通常ECU10n_1及び通常ECU10n_2を含む。以下では、例えば通常ECU10n_1及び通常ECU10n_2といった、個別の要素を特に区別しない場合は、単にECU10nのように、添え字を省略して呼ぶものとする。なお、通信システム1におけるECU10の数、通常ECU10nの数、管理ECU10iの数は、図1に示す例に限定されるものではない。 The node 10 is also called an electronic control unit (hereinafter, also referred to as ECU 10). ECU is an abbreviation of Electronic Control Unit. Hereinafter, one of the ECUs 10 in the communication system 1 is called management ECU 10i_1, one of the ECUs 10 other than management ECU 10i_1 is called management ECU 10i_2, and the other nodes 10 are called normal ECU 10n. Normal ECU 10n includes normal ECU 10n_1 and normal ECU 10n_2. Hereinafter, when there is no particular distinction between individual elements, such as normal ECU 10n_1 and normal ECU 10n_2, the subscripts will be omitted and they will simply be called ECU 10n. Note that the number of ECUs 10, the number of normal ECUs 10n, and the number of management ECUs 10i in the communication system 1 are not limited to the example shown in FIG. 1.
[1-1.通常ECU]
通常ECU10nは、制御部11nと、通信コントローラ12nと、メッセージ処理部13nとを備える。
[1-1. Normal ECU]
The normal ECU 10n includes a control unit 11n, a
通信コントローラ12nは、CAN(即ち、Classic CAN)による通信を行うことが可能なCANコントローラを備える。CANコントローラは、通信路3から自ECU10nで受信すべきCANIDが付与された、CANプロトコルに従った通信フレーム(以下、CAN通信フレーム)を受信すると、メッセージデータ(以下、メッセージともいう)を抽出する。メッセージとは、通信フレームのデータ領域に含まれるデータであって、後述するパディングとは異なり、意味を有するデータをいう。
The
以下では、CAN通信フレームに含まれるメッセージをCANメッセージともいう。ここでは、CAN通信フレームのフレームフォーマットを図示しないが、CANメッセージは、CAN通信フレームのデータ領域(以下、CANデータ領域ともいう)に含まれる。CANデータ領域のデータ長は、最大値を8バイトとして、8バイト以内で可変である。CANコントローラは、抽出したCANメッセージをメッセージ処理部13nに供給する。
Hereinafter, the message contained in the CAN communication frame is also referred to as the CAN message. Here, the frame format of the CAN communication frame is not illustrated, but the CAN message is contained in the data area of the CAN communication frame (hereinafter also referred to as the CAN data area). The data length of the CAN data area is variable within 8 bytes, with a maximum value of 8 bytes. The CAN controller supplies the extracted CAN message to the
又、通信コントローラ12nは、メッセージ処理部13nから供給される各種メッセージを、CAN通信フレームに載せて通信路3に送信する。CAN通信フレームには、メッセージの種類に応じたメッセージ識別子(以下、CANIDともいう)が付与される。CANIDは、CAN通信フレームのCANID領域に格納される。なお、CAN通信フレームのDLC領域には、CANデータ領域のデータ長を示すデータ長コード(以下、CAN_DLCともいう)が格納される。DLCは、Data Length Codeの略である。DLCのデータ長は、例えば4ビットである。
The
制御部11nは、後述する制御部11iと同様に、マイクロコンピュータを備える。制御部11nは、メッセージ処理部13n及び通信コントローラ12nを介した他のECU10との通信によって、予め自ECU10nに割り当てられた機能を実現するための各種処理を実行する。
The control unit 11n includes a microcomputer, similar to the control unit 11i described below. The control unit 11n executes various processes to realize functions that have been assigned to the ECU 10n in advance by communicating with other ECUs 10 via the
メッセージ処理部13nは、後述するメッセージ処理部13iと同様に、マイクロコンピュータを中心に構成される。メッセージ処理部13nは、マイクロコンピュータのCPUがプログラムを実行することで実現される機能の構成として、通常送受信処理部131を備える。通常送受信処理部131は、他のECU10からCAN通信フレームによるCANメッセージを受信する処理を実行する。又、通常送受信処理部131は、他のECU10にCAN通信フレームによるCANメッセージを送信する処理を実行する。
Like the
[1-2.管理ECU]
管理ECU10iは、制御部11iと、通信コントローラ12iと、メッセージ処理部13iと、鍵保持部14iとを備える。
[1-2. Management ECU]
The management ECU 10i includes a control unit 11i, a
通信コントローラ12iは、CAN(即ち、Classic CAN)及びCAN FD両方の通信プロトコルによる通信を行うことが可能なコントローラ(以下、CAN FDコントローラ)を備える。CAN FDコントローラは、通信路3から自ECU10iで受信すべきCANIDが付与された通信フレームを受信すると、メッセージを抽出して、メッセージ処理部13iに供給する。受信する通信フレームは、CAN通信フレーム又はCAN FDによる通信フレーム(以下、CAN FD通信フレームともいう)であり得る。受信する通信フレームには、上述のように、メッセージの種類に応じたCANIDが付与されている。
The
例えば、通信コントローラ12iは、CAN通信フレームを受信した場合、抽出したメッセージを、メッセージ処理部13iの通常送受信処理部131に供給する。また、例えば、通信コントローラ12iは、CAN FD通信フレームを受信した場合、抽出したメッセージを、メッセージ処理部13iの管理受信処理部134に供給する。
For example, when the
又、通信コントローラ12iは、メッセージ処理部13iから供給される各種メッセージを、CAN通信フレーム又はCAN FD通信フレームに載せて通信路3に送信する。例えば、通信コントローラ12iは、メッセージ処理部13iの通常送受信処理部131から供給される各種メッセージをCAN通信フレームに載せて通信路3に出力してもよい。又、例えば、通信コントローラ12iは、メッセージ処理部13iの管理送信処理部133から供給される各種メッセージをCAN FD通信フレームに載せて通信路3に出力してもよい。
The
鍵保持部14iは、読み書き自在な不揮発性メモリを備える。鍵保持部14iは、メッセージ認証コード(以下、MAC)の生成に使用するいわゆるMAC鍵Kを記憶する。MACは、Message Authentication Codeの略であり、データの誤り、改ざんを検出するための情報(以下、認証子ともいう)である。MAC鍵Kは、CAN FD通信フレームを送受信する全ての管理ECU10iに共通のものであり、鍵保持部14iに予め記憶されている。
The
制御部11iは、マイクロコンピュータを備える。制御部11iは、メッセージ処理部13i及び通信コントローラ12iを介した他のECU10との通信によって、予め自ECU10iに割り当てられた機能を実現するための各種処理を実行する。
The control unit 11i includes a microcomputer. The control unit 11i executes various processes to realize functions that have been assigned to the ECU 10i in advance by communicating with other ECUs 10 via the
メッセージ処理部13iは、CPUと、RAM、ROM、フラッシュメモリ等の半導体メモリ(以下、メモリ)と、を有するマイクロコンピュータを中心に構成される。制御部11iの各種機能は、CPUが非遷移的実体的記録媒体に格納されたプログラムを実行することにより実現される。この例では、メモリが、プログラムを格納した非遷移的実体的記録媒体に該当する。又、このプログラムが実行されることで、プログラムに対応する方法が実行される。なお、制御部11iを構成するマイクロコンピュータの数は1つでも複数でもよい。
The
メッセージ処理部13iは、CPUがプログラムを実行することで実現される機能の構成として、通常送受信処理部131、管理送信処理部133、管理受信処理部134を備える。通常送受信処理部131は、上述する通常ECU10nと同様である。つまり、本実施形態のメッセージ処理部13iは、上述するメッセージ処理部13nに、管理送信処理部133、管理受信処理部134といった、CAN FDによる通信フレームを送信及び受信するための機能が追加されている。
The
通常送受信処理部131は、上述のように、他のECU10からCAN通信フレームによるCANメッセージを受信する処理を実行する。又、通常送受信処理部131は、他のECU10にCAN通信フレームによるCANメッセージを送信する処理を実行する。
As described above, the normal transmission/
管理送信処理部133は、一又は複数の他のECU10から受信したCAN通信フレームに含まれるメッセージ等を含む新たなメッセージ(以下、管理メッセージともいう)を生成する。管理送信処理部133は、他の管理ECU10i(例えば、自ECU10iが管理ECU10i_1である場合は管理ECU10i_2)にCAN FD通信フレームによるメッセージを送信する処理を実行する。管理受信処理部134は、他の管理ECU10i(例えば、自ECU10iが管理ECU10i_2である場合は管理ECU10i_1)からCAN FD通信フレームによるメッセージを受信する処理を実行する。これらの処理の詳細は、後述する。
The management
[1-3.通信システム]
本実施形態では、通信システム1は、例えば、車両に搭載される図示しないエンジンを制御するためのシステムである。
[1-3. Communication system]
In this embodiment, the communication system 1 is, for example, a system for controlling an engine (not shown) mounted in a vehicle.
例えば、通常ECU10n_1は、図示しない温度センサからの出力に基づいてエンジン内における冷却水の水温を検出し、検出結果を出力する機能を備える。通常ECU10n_1は、検出された水温を示すデータをメッセージとしてCANデータ領域に含むCAN通信フレーム(以下、Classic CAN Aフレーム)を生成し通信路3に出力する。通常ECU10n_1は、Classic CAN Aフレームを予め定められた周期(以下、第1周期T1)で出力する。Classic CAN Aフレームには、CANIDとしてID_Aが付与される。Classic CAN Aフレームには、CANデータ領域のデータ長(例えば、DLC_A)を示すデータ(即ち、DLC)がDLC領域(以下、CAN_DLC領域ともいう)に格納される。ここでいうDLCは、CANデータ領域のデータ長を示す。 For example, the normal ECU 10n_1 has a function of detecting the temperature of the coolant in the engine based on the output from a temperature sensor (not shown) and outputting the detection result. The normal ECU 10n_1 generates a CAN communication frame (hereinafter, Classic CAN A frame) including data indicating the detected water temperature as a message in the CAN data area, and outputs the frame to the communication path 3. The normal ECU 10n_1 outputs the Classic CAN A frame at a predetermined period (hereinafter, first period T1). The Classic CAN A frame is assigned ID_A as a CANID. In the Classic CAN A frame, data (i.e., DLC) indicating the data length of the CAN data area (e.g., DLC_A) is stored in the DLC area (hereinafter, also referred to as the CAN_DLC area). DLC here indicates the data length of the CAN data area.
通常ECU10n_2は、図示しない車輪速センサからの出力に基づいて車速を検出する機能を備える。通常ECU10n_2は、検出された車速を示すデータをメッセージとしてCANデータ領域に含むCAN通信フレーム(以下、Classic CAN Bフレーム)を生成し通信路3に出力する。通常ECU10n_2は、Classic CAN Bフレームを、予め定められた周期(以下、第2周期T2)で出力する。Classic CAN Bフレームには、CANIDとしてID_Bが付与される。Classic CAN Bフレームには、CANデータ領域のデータ長(例えば、DLC_B)を示すDLCがCAN_DLC領域に格納される。 The normal ECU 10n_2 has a function of detecting the vehicle speed based on the output from a wheel speed sensor (not shown). The normal ECU 10n_2 generates a CAN communication frame (hereinafter, Classic CAN B frame) including data indicating the detected vehicle speed as a message in the CAN data area, and outputs it to the communication path 3. The normal ECU 10n_2 outputs the Classic CAN B frame at a predetermined period (hereinafter, second period T2). The Classic CAN B frame is assigned ID_B as a CANID. In the Classic CAN B frame, DLC indicating the data length of the CAN data area (e.g., DLC_B) is stored in the CAN_DLC area.
管理ECU10i_1(例えば、制御部11i_1)は、図示しないクランク角センサ等からの出力に基づいてエンジン回転数を検出する。管理ECU10i_1(例えば、通常送受信処理部131)は、検出されたエンジン回転数を示すデータをメッセージとしてCANデータ領域に含むCAN通信フレーム(以下、Classic CAN Cフレーム)を生成してもよい。そして、管理ECU10i_1(例えば、通信コントローラ12i)は、生成したClassic CAN Cフレームを通信路3に出力してもよい。管理ECU10i_1は、Classic CAN Cフレームを、予め定められた周期(以下、第3周期T3)で出力してもよい。例えば、第2周期T2は第1周期T1よりも短く、第3周期T3は第1周期T1及び第2周期T2よりも短い(即ち、T1>T2>T3)周期であってもよい。Classic CAN Cフレームには、CANIDとしてID_Cが付与される。Classic CAN Cフレームには、CANデータ領域のデータ長(例えば、DLC_C)を示すDLCがCAN_DLC領域に格納される。
The management ECU 10i_1 (e.g., the control unit 11i_1) detects the engine speed based on the output from a crank angle sensor (not shown) or the like. The management ECU 10i_1 (e.g., the normal transmission/reception processing unit 131) may generate a CAN communication frame (hereinafter, Classic CAN C frame) including data indicating the detected engine speed as a message in the CAN data area. Then, the management ECU 10i_1 (e.g., the
又、管理ECU10i_1は、後述する図2に示すように、受信したClassic CAN Aフレーム及びBフレーム、生成したClassic CAN Cフレームに含まれるメッセージ等を収集する(即ち、管理する)機能を備えていてもよい。具体的には、管理ECU10i_1(例えば、管理送信処理部133)は、受信したClassic CAN A及びBフレーム、生成したClassic CAN Cフレームのメッセージ等を含む上述の管理メッセージをCAN FDデータ領域103に含むCAN FD通信フレームを生成する。そして、管理ECU10i_1(例えば、通信コントローラ12i)は、CAN FD通信フレームを通信路3に出力する。CAN FDデータ領域103とは、CAN FD通信フレームのデータ領域をいう。CAN FD通信フレームには、CANIDとしてID_Dが付与される。
The management ECU 10i_1 may also have a function of collecting (i.e., managing) messages contained in the received Classic CAN A and B frames and the generated Classic CAN C frames, as shown in FIG. 2 described later. Specifically, the management ECU 10i_1 (e.g., the management transmission processing unit 133) generates a CAN FD communication frame that includes the above-mentioned management messages, including the received Classic CAN A and B frames and the generated Classic CAN C frame messages, in the CAN
例えば、管理メッセージは、少なくとも一つの個別メッセージを含む。個別メッセージは、各ECU10にて生成されたデータであって、各ECU10における各CAN通信フレームのうちのCANID、DLC、及びメッセージを含む。例えば、CANIDは3バイト、DLCは1バイトといったようにデータ長が予め固定されており、メッセージは0~8バイトといったようにデータ長が可変であり得る。つまり、個別メッセージは、データ長が所定範囲(例えば、4~12バイト)内で可変である。 For example, the management message includes at least one individual message. The individual message is data generated by each ECU 10, and includes the CANID, DLC, and message of each CAN communication frame in each ECU 10. For example, the data length is fixed in advance, such as 3 bytes for the CANID and 1 byte for the DLC, and the data length of the message can be variable, such as 0 to 8 bytes. In other words, the data length of the individual message is variable within a predetermined range (for example, 4 to 12 bytes).
管理ECU10i_1は、該CAN FD通信フレームを予め定められた周期(以下、第4周期T4)で生成し、出力してもよい。例えば、本実施形態では、第4周期T4は第3周期T3と同じであってもよい(すなわち、T3=T4)。 The management ECU 10i_1 may generate and output the CAN FD communication frame at a predetermined period (hereinafter, the fourth period T4). For example, in this embodiment, the fourth period T4 may be the same as the third period T3 (i.e., T3 = T4).
管理ECU10i_2(例えば、通信コントローラ12i)は、管理ECU10i_1からCAN FD通信フレーム(例えば、CANIDとしてID_Dが付与されたCAN FD通信フレーム)を受信する。管理ECU10i_2(例えば、管理受信処理部134)は、CAN FD通信フレームのCAN FDデータ領域103に含まれる管理メッセージから個別メッセージを抽出し、個別メッセージに含まれる水温、車速、エンジ回転数等といった各種検出データ(即ち、メッセージ)を検出する。そして、管理ECU10i_2(例えば、制御部11i_2)は、各種検出データに基づいて、エンジンの制御を行う。
The management ECU 10i_2 (e.g., the
[1-4.CAN FD通信フレーム]
管理ECU10i_1は、CAN FDのフレームフォーマットに従うCAN FD通信フレームを生成する。図2に示すように、CAN FD通信フレームは、CANID領域101、DLC領域102、CAN FDデータ領域103等を含む。
[1-4. CAN FD communication frame]
The management ECU 10i_1 generates a CAN FD communication frame that conforms to the CAN FD frame format. As shown in Fig. 2, the CAN FD communication frame includes a CAN ID area 101, a
CANID領域101は、CAN FD通信フレームのCANIDを示す(即ち、CANIDが含まれる)領域である。例えば、上述の管理ECU10i_1が生成するCAN FD通信フレームには、CANID領域101に、CANIDとしてのID_Dを示すデータが含まれる。 The CANID field 101 is an area that indicates the CANID of the CAN FD communication frame (i.e., includes the CANID). For example, the CAN FD communication frame generated by the above-mentioned management ECU 10i_1 includes data indicative of ID_D as the CANID in the CANID field 101.
DLC領域102は、DLCが格納される領域である。ここでいうDLCは、CAN FD通信フレームのCAN FDデータ領域103のデータ長を示すものであり、4ビットで示される。なお、CAN FDデータ領域103のデータ長は、0~8、12、16、20、24,32、48、64バイトといった値をとり得る。
The
CAN FDデータ領域103は、種々のデータを含む領域である。例えば、CAN FDデータ領域103は、管理メッセージ領域201と、パディング領域202と、認証子領域203と、を含む。管理メッセージ領域201は、管理メッセージを含む領域である。管理メッセージは、上述のように、各CAN通信フレームの個別メッセージを含む。
The CAN
認証子領域203は、CAN FD通信フレームの管理メッセージに誤りや改ざんが無いことを検証するための検証期待値(即ち、認証子)としてのMACを示すデータが格納される領域である。認証子領域203は、予め定められたデータ長であり得る。認証子領域203のデータ長を認証子データ長という。認証子データ長は、例えば10バイトであってもよい。但し、認証子データ長はこれに限定されるものではない。
The
ところで、通信システム1において、各ECU10から送信される複数のCAN通信フレームは、常に同一の(即ち、常に揃った)タイミングで、上述の複数のCAN通信フレームによるメッセージを収集する管理ECU10i_1に送信されるとは限らない。タイミングが一致しない要因としては、例えば、各通常ECU10n_1、10n_2、管理ECU10i_1からの各CAN通信フレームの送信周期である第1周期T1、第2周期T2、第3周期T3が異なることが挙げられる。又、タイミングが一致しない要因としては、通信路3の調停状態により各CAN通信フレームが送信周期通りに通信路3に出力されない状況が生じ得ることが挙げられる。 However, in the communication system 1, the multiple CAN communication frames transmitted from each ECU 10 are not necessarily transmitted at the same (i.e., always aligned) timing to the management ECU 10i_1 that collects messages from the multiple CAN communication frames. Factors that cause the timing to not match include, for example, differences in the first period T1, second period T2, and third period T3 that are the transmission periods of each CAN communication frame from each normal ECU 10n_1, 10n_2 and management ECU 10i_1. Another factor that causes the timing to not match is that a situation may arise in which each CAN communication frame is not output to the communication path 3 according to the transmission period due to the arbitration state of the communication path 3.
つまり、管理ECU10i_1では、例えば図3に示すように、同じCANID(例えば、ID_D)が付与されたCAN FD通信フレームにおいて、CAN FDデータ領域103において管理メッセージのデータ長(以下、管理メッセージ長)がタイミングにより異なるという状況が生じ得る。 In other words, in the management ECU 10i_1, for example, as shown in FIG. 3, in a CAN FD communication frame to which the same CAN ID (e.g., ID_D) is assigned, a situation may occur in which the data length of the management message in the CAN FD data area 103 (hereinafter, the management message length) varies depending on the timing.
結果として、同じCANID(例えば、ID_D)が付与されたCAN FD通信フレームであるにもかかわらず、決定されるCAN FDデータ領域103の長さ(即ち、以下でいう指定データ長)がタイミングにより異なる、という状況が生じ得る。又、これに伴い、追加されるパディングのデータ長(以下、パディング量)がタイミングにより異なる、という状況が生じ得る。タイミングによっては、パディングが追加されない状況(即ち、換言すれば、パディング量=0のパディングが追加される状況)も生じ得る。 As a result, even if the same CAN ID (e.g., ID_D) is assigned to a CAN FD communication frame, a situation may arise in which the length of the CAN FD data field 103 (i.e., the designated data length, hereinafter) is determined differently depending on the timing. In addition, a situation may arise in which the data length of the padding to be added (hereinafter, the padding amount) is different depending on the timing. Depending on the timing, a situation may also arise in which no padding is added (i.e., in other words, padding with a padding amount = 0 is added).
パディングとは、CAN FDデータ領域103の長さを一定の長さ(即ち、CAN FDデータ領域103がとり得る、決定された長さ)に整えるため追加される、意味を持たないデータをいう。パディングは、例えば、0であり得る。
Padding refers to meaningless data that is added to the CAN
このように、同じCANIDが付与され、所定範囲内でデータ長が可変となる管理メッセージを含むことによりCAN FDデータ領域103の長さが変化するCAN FD通信フレームにおいてパディング量を特定することは、CPUに対する負荷を要し、特定のために時間を要する。例えば次に説明するような探索処理を実行する必要であるからである。
In this way, identifying the amount of padding in a CAN FD communication frame in which the same CANID is assigned and the length of the CAN
[1-5.パディング量を特定する例]
例えば、パディング量を特定するためには、図4に示すような探索処理を実行することが考えられる。探索処理では、まず、上述の(即ち、ID_Dが付与された)CAN FD通信フレームにおいて、DLCにより示されるデータ長から認証子データ長が減算される(即ち、図中の(1))。これにより、管理メッセージとパディングとを含むデータ(以下、調整データともいう)のデータ長(以下、調整データ長ともいう)が何バイトであるかが特定される。
[1-5. Example of specifying padding amount]
For example, in order to identify the amount of padding, it is possible to execute a search process as shown in Fig. 4. In the search process, first, in the above-mentioned CAN FD communication frame (i.e., to which ID_D is assigned), the authenticator data length is subtracted from the data length indicated by the DLC (i.e., (1) in the figure). This identifies how many bytes the data length (hereinafter also referred to as adjustment data length) of the data including the management message and padding (hereinafter also referred to as adjustment data) is.
続いて、CAN FDデータ領域103の先頭位置を探索位置として、探索位置から3バイトのデータが取得され、探索位置=探索位置+3バイトとし、取得した3バイトのデータがCANIDとして有効な値であるか否かが判定される(即ち、図中の(2))。CANIDとして有効な値とは、例えば、0でない値をいう。CANIDとして有効な値である場合は、次に、CAN通信フレームでのDLCが取得される(即ち、図中の(3))。次に、探索位置=探索位置+1バイトとし、更に探索位置=探索位置+DLCにより示されるデータ長、とする。
Next, the start position of the CAN
続いて、調整データ長からこの時点での探索位置を減算した値が4バイトよりも大きい場合に、探索位置から次の3バイトのデータ(即ち、次のCAN通信フレームのCANID)が取得される(即ち、図中の(4))。引き続き(2)-(4)が繰り返される(即ち、図中の(5))。次に、取得した3バイトのデータが0である場合(即ち、CANID=0x00)、又は、調整データ長から現時点での探索位置を減算した値が4バイトよりも小さい場合に、探索が終了される(即ち、図中の(6))。 Next, if the value obtained by subtracting the current search position from the adjusted data length is greater than 4 bytes, the next 3 bytes of data (i.e., the CANID of the next CAN communication frame) are obtained from the search position (i.e., (4) in the diagram). (2)-(4) are then repeated (i.e., (5) in the diagram). Next, if the obtained 3 bytes of data are 0 (i.e., CANID = 0x00), or if the value obtained by subtracting the current search position from the adjusted data length is less than 4 bytes, the search is terminated (i.e., (6) in the diagram).
結果として、調整データ長から(6)での最終的な探索位置を減算した数値がパディング量に相当する(即ち、図中の(7))。つまり、例えばこのようにしてパディング量を特定するためには、CPUに対する負荷が必要とされ、所定の演算時間が必要となる。 As a result, the value obtained by subtracting the final search position in (6) from the adjusted data length corresponds to the amount of padding (i.e., (7) in the figure). In other words, for example, in order to determine the amount of padding in this way, a load is placed on the CPU, and a certain amount of calculation time is required.
[2.処理]
通信システム1では、管理ECU10i_1及び10i_2は、パディング量を示すデータ(以下、パディング情報)を格納するパディング情報領域204を、CAN FDデータ領域103の予め定められた位置に含むCAN FD通信フレームを用いる。以下、管理ECU10i_1及び10i_2が実行する処理を説明する。
2. Processing
In the communication system 1, the management ECUs 10i_1 and 10i_2 use a CAN FD communication frame that includes a
[2-1.送信処理]
管理ECU10(例えば、管理ECU10i_1)が実行する送信処理について、図5、図6、図7を用いて説明する。管理ECU10i_1(例えば、メッセージ処理部13iが備える管理送信処理部133)は、予め定められた第4周期T4毎に、送信処理を実行する。例えば、本実施形態では、第4周期T4は第3周期T3に等しいものとする(すなわち、T1>T2>T3=T4)。つまり、管理ECU10i_1は、第3周期T3でClassic CAN Cフレームを送信する毎に、送信処理を実行するように構成されてもよい。
[2-1. Transmission process]
The transmission process executed by the management ECU 10 (e.g., the management ECU 10i_1) will be described with reference to Figs. 5, 6, and 7. The management ECU 10i_1 (e.g., the management
まずS10では、管理ECU10i_1は、管理メッセージを生成する。管理メッセージは、データ長が所定範囲内で可変である上述の個別メッセージを少なくとも一つ含む。所定範囲は、CANIDが3バイト、DLCが1バイト、CANデータ領域におけるデータ長が0~8バイトであることから、例えば、4~12バイトの範囲であり得る。ここでいうデータ長が可変であるとは、CANデータ領域におけるデータ長が、ECU10毎に、即ち、各ECU10から受信するCAN通信フレーム毎に、異なり得ること、をいう。個別メッセージは、各ノード10(即ち、他のECU10又は自ノード10i)にて生成されたデータである。 First, in S10, the management ECU 10i_1 generates a management message. The management message includes at least one of the individual messages described above, whose data length is variable within a predetermined range. The predetermined range may be, for example, a range of 4 to 12 bytes, since the CANID is 3 bytes, the DLC is 1 byte, and the data length in the CAN data area is 0 to 8 bytes. Variable data length here means that the data length in the CAN data area may differ for each ECU 10, that is, for each CAN communication frame received from each ECU 10. The individual message is data generated by each node 10 (i.e., another ECU 10 or the own node 10i).
例えば、管理ECU10i_1は、本送信処理とは別処理によって、他のノード10から受信、又は管理ECU10i_1自らが送信したCAN通信フレームをメモリに記憶していてもよい。なお、本実施形態では、T1>T2>T3=T4であることから、本ステップの時点で、メモリには、Classic CAN Cフレームが常に記憶されている。 For example, the management ECU 10i_1 may store in memory a CAN communication frame received from another node 10 or transmitted by the management ECU 10i_1 itself through a process separate from this transmission process. In this embodiment, since T1>T2>T3=T4, at the time of this step, a Classic CAN C frame is always stored in the memory.
メモリには、第2周期T2と第3周期T3とが一致するタイミングでは、更にClassic CAN Bフレーム(即ち、Classic CAN B及びCフレーム)が記憶される。また、第1周期T1と第3周期T3とが一致するタイミングでは、更にClassic CAN A(即ち、Classic CAN A及びCフレーム)フレームが記憶される。また、第1周期T1と第2周期T2と第3周期T3とが一致するタイミングでは、Classic CAN A、B及びCフレームが記憶される。 When the second period T2 and the third period T3 coincide, the memory also stores Classic CAN B frames (i.e., Classic CAN B and C frames). When the first period T1 and the third period T3 coincide, the memory also stores Classic CAN A frames (i.e., Classic CAN A and C frames). When the first period T1 and the second period T2 and the third period T3 coincide, the memory also stores Classic CAN A, B, and C frames.
管理ECU10i_1は、本ステップでは、メモリに記憶されているCAN通信フレーム(即ち、Classic CAN A、B、Cフレームのうちの少なくとも一つ)から、CANID、DLC、及びCANデータ領域に含まれるメッセージ(以下、CANメッセージ)を抽出し、管理メッセージを生成する。結果として、管理メッセージには、上述の図3に示すように、Classic CAN Cフレームから抽出されたCANID、DLC、及びCANメッセージが常に含まれる。又、管理メッセージには、タイミングによって、更に、Classic CAN Aフレーム及びBフレームの少なくとも一方から抽出されたCANID、DLC、及びCANメッセージが含まれる。 In this step, the management ECU 10i_1 extracts the CANID, DLC, and a message contained in the CAN data area (hereinafter, the CAN message) from the CAN communication frame (i.e., at least one of the Classic CAN A, B, and C frames) stored in the memory, and generates a management message. As a result, the management message always contains the CANID, DLC, and CAN message extracted from the Classic CAN C frame, as shown in FIG. 3 above. Depending on the timing, the management message may further contain the CANID, DLC, and CAN message extracted from at least one of the Classic CAN A and B frames.
なお、管理ECU10i_1は、通信路3における調停状態を考慮して、本ステップにて所定期間待機した後に、メモリに記憶されているClassic CANフレームから個別データを生成(即ち、抽出)し、管理メッセージを生成してもよい。 Note that, taking into account the arbitration state in the communication path 3, the management ECU 10i_1 may wait for a predetermined period of time in this step, and then generate (i.e., extract) individual data from the Classic CAN frame stored in the memory and generate a management message.
管理ECU10i_1は、管理メッセージを生成しメモリに記憶するとともに、生成した管理メッセージのデータ長である管理メッセージ長を決定し、決定した管理メッセージ長をメモリに記憶する。 The management ECU 10i_1 generates a management message and stores it in memory, determines the management message length, which is the data length of the generated management message, and stores the determined management message length in memory.
次にS20では、管理ECU10i_1は、パディング量を決定する。パディング量を決定するために、管理ECU10i_1は、まず、CAN FDデータ領域103のデータ長(以下、指定データ長ともいう)を決定する。指定データ長とは、生成された管理メッセージを含むCAN FDデータ領域103のデータ長をいう。
Next, in S20, the management ECU 10i_1 determines the amount of padding. To determine the amount of padding, the management ECU 10i_1 first determines the data length of the CAN FD data area 103 (hereinafter also referred to as the designated data length). The designated data length refers to the data length of the CAN
具体的には、管理ECU10i_1は、有効メッセージのデータ長(以下、有効メッセージ長)を算出する。有効メッセージは、可変である(即ち、管理メッセージを生成するタイミングによって変化する)管理メッセージ長と、固定値である認証子データ長及びパディング情報領域204のデータ長とを足し合わせたデータである。管理ECU10i_1は、CAN FDデータ領域103がとり得るデータ長である0~8、12、16、20、24、32、48、64バイトのうち、有効メッセージ長以上であり、有効メッセージ長に最も近いデータ長を指定データ長として決定する。CAN FDデータ領域103がとり得るデータ長である0~8、12、16、20、24、32、48、64バイトを、データ長候補値ともいう。なお、管理ECU10i_1は、決定した指定データ長を示すデータを、CANFD通信フレームを生成(即ち、DLC領域102に格納)するために、メモリに記憶してもよい。
Specifically, the management ECU 10i_1 calculates the data length of the valid message (hereinafter, the valid message length). The valid message is data obtained by adding the variable (i.e., changing depending on the timing of generating the management message) management message length and the fixed value authentication code data length and data length of the
管理ECU10i_1は、決定した指定データ長から有効メッセージ長を減算し、減算結果であるデータ長をパディング量として特定する。パディング量は、例えば8バイト、2バイト、0バイト等といったように、バイト単位で表されてもよい。 The management ECU 10i_1 subtracts the effective message length from the determined specified data length, and identifies the data length resulting from the subtraction as the padding amount. The padding amount may be expressed in bytes, for example, 8 bytes, 2 bytes, 0 bytes, etc.
続くS30では、管理ECU10i_1は、CAN FDデータ領域103において、例えば、管理メッセージ領域201と認証子領域203との間の領域に、パディング量ぶんのパディングを格納する。以下では、パディングが格納される領域をパディング領域202ともいう。
In the next step S30, the management ECU 10i_1 stores the padding amount in the CAN
次にS40では、管理ECU10i_1は、CAN FDデータ領域103において、所定の位置をパディング情報領域204として、パディング情報をパディング情報領域204に格納する。本実施形態では、図7に示すように、CAN FDデータ領域103の先頭に、パディング情報領域204を含む。パディング情報のデータ長(即ち、パディング情報領域204のデータ長)は上述のように4ビットであり、例えば、パディング量が8バイトである場合、「1000」がパディング量を示すパディング情報としてパディング情報領域204に格納される。
Next, in S40, the management ECU 10i_1 designates a predetermined position in the CAN
続くS50では、管理ECU10i_1は、管理メッセージとMAC鍵KとからMACを算出する。
次にS60では、管理ECU10i_1は、S40にて算出したMACを示すデータを認証子領域203に格納する。
In the following S50, the management ECU 10i_1 calculates a MAC from the management message and the MAC key K.
Next, in S60, the management ECU 10i_1 stores data indicating the MAC calculated in S40 in the
続くS70では、管理ECU10i_1は、CAN FD通信フレームを通信路3に出力する。例えば、管理ECU10i_1は、S10-S60にて生成されたCAN FDデータ領域103に対して、更にCANID領域101、DLC領域102等を含むCAN FD通信フレームを、通信コントローラ12iに生成させる。通信コントローラ12iは、CANID領域101には、ID_Dを示すデータを格納し、DLC領域102には決定された指定データ長を示すデータを格納する。管理ECU10i_1は、通信コントローラ12iに、生成したCAN FD通信フレームを、通信路3へ出力させる。そして、管理ECU10i_1は、以上で送信処理を終了する。
In the next step S70, the management ECU 10i_1 outputs the CAN FD communication frame to the communication path 3. For example, the management ECU 10i_1 causes the
[2-2.受信処理]
次に、管理ECU10i(例えば、管理ECU10i_2)が実行する受信処理について、図7、図8、及び図9を用いて説明する。管理ECU10i_2(例えば、メッセージ処理部13iが備える管理受信処理部134)は、予め定められたCANID(例えば、上述のID_D)のCAN FD通信フレームを受信したことをきっかけとして、本受信処理を実行する。なお、管理ECU10i_2は、受信したCAN FD通信フレームをメモリに記憶した後に、本受信処理を実行してもよい。
[2-2. Reception processing]
Next, the reception process executed by the management ECU 10i (e.g., the management ECU 10i_2) will be described with reference to Fig. 7, Fig. 8, and Fig. 9. The management ECU 10i_2 (e.g., the management
まずS110では、管理ECU10i_2は、パディング情報領域204のパディング情報を取得し、パディング量を特定する。具体的には、管理ECU10i_2は、CAN FDデータ領域103におけるパディング情報領域204のデータ(即ち、先頭の4bitのデータ)をパディング情報として抽出し、パディング情報によって示されるパディング量を特定する。
First, in S110, the management ECU 10i_2 acquires padding information from the
次にS120では、管理ECU10i_2は、管理メッセージのデータ長を特定する。具体的には、管理ECU10i_2は、受信したCAN FD通信フレームのDLC領域102に含まれるDLCに基づいて指定データ長を特定する。管理ECU10i_2は、指定データ長から、S120にて特定したパディング量と、認証子としてのMACのデータ長(例えば、10バイト)と、パディング情報のデータ長(例えば、4ビット)とを減算した減算値を、管理メッセージのデータ長として算出する。
Next, in S120, the management ECU 10i_2 identifies the data length of the management message. Specifically, the management ECU 10i_2 identifies the designated data length based on the DLC included in the
続くS130では、管理ECU10i_2は、S120にて算出された減算値を用いてCAN FDデータ領域103に含まれる管理メッセージを特定する。例えば、管理ECU10i_2は、CAN FDデータ領域103において、CAN FDデータ領域103の先頭からパディング情報領域204(即ち、4bit)を除いた位置を先頭位置として、該先頭位置から指定データ長を加算した位置までの領域に含まれるデータを、管理メッセージとして特定する。
In the next step S130, the management ECU 10i_2 uses the subtraction value calculated in S120 to identify the management message contained in the CAN
次にS140では、管理ECU10i_2は、S130にて特定された管理メッセージと、鍵保持部14iに予め記憶されているMAC鍵Kとを用いて新たな認証子としてのMAC(以下、比較用MAC)を算出し、算出した比較用MACをメモリに記憶する。
Next, in S140, the management ECU 10i_2 calculates a MAC (hereinafter, a comparison MAC) as a new authenticator using the management message identified in S130 and the MAC key K prestored in the
続くS150では、管理ECU10i_2は、S140にて算出されたMACと、受信したCAN FD通信フレームのCAN FDデータ領域103の認証子領域203に含まれるMACとを比較する。ここで、管理ECU10i_2は、比較結果が一致する場合、受信しメモリに記憶した管理メッセージから各種個別メッセージを抽出し、個別メッセージに含まれるCANメッセージ(即ち、各種検出結果)を抽出する。これにより、制御部11iは各種検出結果に基づいて各種制御を実行する。一方、管理ECU10i_2は、比較結果が一致しない場合、メモリに記憶されている管理メッセージを破棄する。そして、管理ECU10i_2は、以上で本受信処理を終了する。
In the next step S150, the management ECU 10i_2 compares the MAC calculated in S140 with the MAC included in the
[3.効果]
以上詳述した第1実施形態によれば、以下の効果を奏する。
(3a)通信システム1は、相互に接続された複数のECU10を備える。複数のノード10のうち少なくとも一つを管理ECU10i_1とし、複数のノード10のうち管理ECU10i_1以外の少なくとも一つを、管理ECU10i_1と互いに通信可能に接続されたノード管理ECU10jとする。
3. Effects
According to the first embodiment described above in detail, the following effects are achieved.
(3a) The communication system 1 includes a plurality of ECUs 10 connected to each other. At least one of the plurality of nodes 10 is a management ECU 10i_1, and at least one of the plurality of nodes 10 other than the management ECU 10i_1 is a node management ECU 10j connected to the management ECU 10i_1 so as to be able to communicate with each other.
管理ECU10i_1は、CAN FD通信フレームを生成する管理送信処理部133と、CAN FD通信フレームを送信する通信コントローラ12iとを備える。
管理送信処理部133は、S10では、管理メッセージを生成し、生成した管理メッセージをCAN FD通信フレームのデータ領域103(即ち、管理メッセージ領域201)に格納する。管理送信処理部133は、S20では、CAN FDデータ領域103を管理メッセージのデータ長に応じた指定データ長に等しくするための補充データであるパディングのデータ長(即ち、パディング量)を決定する。管理送信処理部133は、S30では、決定したパディング量のパディングをCAN FDデータ領域103に格納する。管理送信処理部133は、S40では、パディング量を示すパディング情報をCAN FDデータ領域103内の予め定められた位置に格納する。
The management ECU 10i_1 includes a management
In S10, the management
管理ECU10i_2は、CAN FD通信フレームを受信する通信コントローラ12iと、パディング量を特定する管理受信処理部134とを備える。管理受信処理部134は、S110では、CAN FD通信フレームのCAN FDデータ領域103に含まれるパディング情報を取得し、パディング情報に基づいてパディング量を特定する。
The management ECU 10i_2 includes a
これにより、CAN FD通信フレームを受信するECU10i(即ち、管理ECU10i_2)では、CAN FD通信フレームからパディング情報を抽出することによってパディング量を容易に特定することができる。つまり、一又は複数の個別メッセージを含むことによりCAN FDデータ領域103の長さが異なるCAN FD通信フレームにおいて、CAN FDデータ領域103におけるパディング量の特定に要する時間を相対的に短縮することができる。
As a result, the ECU 10i (i.e., the management ECU 10i_2) that receives the CAN FD communication frame can easily identify the amount of padding by extracting padding information from the CAN FD communication frame. In other words, in a CAN FD communication frame in which the length of the CAN
(3b)管理ECU10i_1において、管理送信処理部133は、S50、S60では、認証子としてのMACを生成し、生成したMACをCAN FDデータ領域103に格納する。管理ECU10i_2において、管理受信処理部134は、S120では、指定データ長から、パディング量と認証子のデータ長とパディング情報のデータ長とを減算した減算値を、管理メッセージのデータ長として算出する。管理受信処理部134は、S130では、減算値を用いてCAN FDデータ領域103に含まれる管理メッセージを特定する。
(3b) In the management ECU 10i_1, the management
これにより、認証子を含む場合に、パディング量を特定する時間の短縮化に伴って、CAN FDデータ領域103に含まれる管理メッセージそのものを特定する時間も短縮することができる。
As a result, when an authenticator is included, the time required to identify the amount of padding is shortened, and the time required to identify the management message itself contained in the CAN
(3c)管理ECU10i_2において、管理受信処理部134は、S140では、特定された管理メッセージと、鍵保持部14iに記憶されている認証鍵としてのMAC鍵Kとに基づいて比較用MACを生成する。管理受信処理部134は、S150では、生成した比較用MACと受信したCAN FD通信用フレームに含まれるMACとを比較し、管理メッセージが改ざんされているか否かを判定する。
(3c) In the management ECU 10i_2, the management
これにより、認証子を含む場合に、パディング量を特定する時間の短縮化、及び、管理メッセージそのものを特定する時間の短縮化に伴って、管理メッセージが改ざんされているか否かを判定するまでに要する時間を短縮することができる。 This reduces the time required to determine whether a management message has been tampered with when it contains an authenticator, by shortening the time it takes to identify the amount of padding and the time it takes to identify the management message itself.
(3d)管理ECU10i_1において、管理送信処理部133は、S20では、管理メッセージ長と認証子データ長とパディング情報領域204のデータ長との加算値である有効メッセージ長を算出する。管理送信処理部133は、データ領域103のデータ長についての複数のデータ長候補値のうち、有効メッセージ長以上であり、有効メッセージ長に最も近いデータ長を指定データ長として決定する。このような、管理メッセージ長のデータ長に応じてCAN FDデータ領域103のデータ長も可変となるCAN FD通信フレームについても、管理ECU10i_2は、パディング量を容易に特定することができる。結果として、パディング量の特定に要する時間を相対的に短縮することができる。
(3d) In S20, the management
(3e)管理ECU10i_1は、パディング情報を示すパディング情報領域204をCAN FDデータ領域103の先頭に格納する。パディング情報を示すパディング情報領域204をCAN FDデータ領域103の先頭に格納することで、管理ECU10i_2は、パディング量をより容易に特定することができる。
(3e) The management ECU 10i_1 stores the
(3f)一又は複数の個別メッセージを含むことによりCAN FDデータ領域103の長さが異なるCAN FD通信フレームには、予め定められたメッセージ識別子として同一のCANIDが付与されている。つまり、管理ECU10i_1において、管理送信処理部133は、S10では、生成した管理メッセージを、予め定められた同一のメッセージ識別子が付与されたCAN FD通信フレームのデータ領域103に格納する。管理ECU10i_2において、通信コントローラ12iは、上述の同一のメッセージ識別子が付与されたCAN FD通信フレームを、管理ECU10i_2にて受信すべきCAN FD通信フレームとして取得する。
(3f) CAN FD communication frames having different lengths of the CAN
このような、CANIDとCAN FDデータ領域103におけるパディング量とが一対一に対応しないCAN FD通信フレームについても、管理ECU10i_2は、パディング量を容易に特定することができる。
Even for such CAN FD communication frames in which the CAN ID and the amount of padding in the CAN
(3g)複数のECU10のうち、管理ECU10i_1及び管理ECU10i_2以外の残りのECU10を通常ECU10nとする。管理ECU10i_2では、管理受信処理部134は、少なくとも第1通信プロトロルとしてのCAN FDに従うCAN FD通信フレームを受信する。管理ECU10i_1では、管理送信処理部133は、少なくともCAN FD通信フレームを送信する。又、管理ECU10i_1は、通常送受信処理部131を更に備える。通常送受信処理部131は、CAN FD通信フレームよりもデータ領域が短い、第2通信プロトロルとしてのCANに従うCAN通信フレームを送受信する。
(3g) Among the multiple ECUs 10, the remaining ECUs 10 other than the management ECU 10i_1 and the management ECU 10i_2 are normal ECUs 10n. In the management ECU 10i_2, the management
管理送信処理部133は、通常ECU10nであってCAN通信フレームを送受信する複数の通常ECU10nから受信したCAN通信フレームに含まれるCANメッセージを個別メッセージとして含む管理メッセージを生成する。管理送信処理部133は、予め定められた送信周期(例えば、上述の第4周期T4)で、該管理メッセージを生成する。
The management
このような通信システム1では、複数のCAN通信フレームが同一のタイミングで管理送信処理部133を備える管理ECU10i_1に送信されない状況が生じ得る。つまり、メッセージ識別子とパディング量とが一対一に対応しない状況が生じ得る。本実施形態の通信システム1では、メッセージ識別子としてのCAN FD通信フレームのCANIDとパディング量とが一対一に対応しない状況が生じる状況においても、上述のようにパディング情報に基づいて容易にパディング量を特定することができる。
In such a communication system 1, a situation may arise in which multiple CAN communication frames are not transmitted to the management ECU 10i_1 equipped with the management
(3h)管理ECU10i_1は、CAN FD通信フレームを受信する通信コントローラ12iと、上述の管理受信処理部134とを備える。管理ECU10i_2は、CAN FD通信フレームを送信する通信コントローラ12iと、上述の管理送信処理部133と、を備える。これにより、通信システム1では、例えば、管理ECU10i_1が管理ECU10i_1の機能を実行し、管理ECU10i_2が管理ECU10i_2の機能を実行することもできる。
(3h) The management ECU 10i_1 includes a
なお、上述の実施形態において、管理ECU10i_1が情報送信ノードに相当し、管理ECU10i_2が情報受信ノードに相当する。通信コントローラ12iが送信部、受信部に相当する。管理送信処理部133が生成部、管理部、補充実行部、補充情報部、認証情報部に相当し、S10が管理部としての処理に相当し、S20、S30が補充実行部としての処理に相当し、S40が補充情報部としての処理に相当する。S50、S60が認証情報部としての処理に相当する。
In the above embodiment, the management ECU 10i_1 corresponds to an information transmission node, and the management ECU 10i_2 corresponds to an information reception node. The
管理受信処理部134が特定部、補充特定部、メッセージ特定部、判定部に相当し、S110が補充特定部としての処理に相当し、S120、S130がメッセージ特定部としての処理に相当し、S140、S150が判定部としての処理に相当する。パディングが補充データに相当し、パディング量が補充データのデータ長に相当し、パディング情報が補充情報に相当し、パディング情報領域204が補充情報領域に相当する。
The management
CAN FD通信フレーム(即ち、CANIDがID_DであるCAN FD通信フレーム)が通信用フレームに相当し、CAN FDデータ領域103がデータ領域に相当し、認証子及びMACが認証用情報に相当する。CAN FD通信フレームのCANIDがメッセージ識別子に相当し、CAN FD通信フレームのDLC領域102に示されるDLCによって示されるデータ長が指定データ長に相当し、個別メッセージが個別メッセージデータに相当する。有効メッセージ長が加算値に相当する。
The CAN FD communication frame (i.e., a CAN FD communication frame whose CANID is ID_D) corresponds to the communication frame, the CAN
[4.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
4. Other embodiments
Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments and can be implemented in various modified forms.
(4a)上述の実施形態において、図10に示すように、管理ECU10i_1では、管理送信処理部133は、S40にて、パディング情報を認証子領域203の後方(即ち、CAN FDデータ領域103の最後尾)に格納してもよい。
(4a) In the above-described embodiment, as shown in FIG. 10, in the management ECU 10i_1, the management
(4b)上述の実施形態において、図11に示すように、管理ECU10i_1では、管理送信処理部133は、S40にて、パディング情報を認証子領域203の前方の領域(即ち、パディング領域202と認証子領域203との間の領域)に格納してもよい。
(4b) In the above-described embodiment, as shown in FIG. 11, in the management ECU 10i_1, the management
(4c)上述の実施形態において、図12に示すように、管理ECU10i_1では、管理送信処理部133は、S40にて、パディング領域202を管理メッセージ領域201の前方の領域(即ち、先頭に位置するパディング情報領域204の後方)に配置してもよい。パディング領域202は、CANFDデータ領域103における任意の位置に配置されてよい。
(4c) In the above-described embodiment, as shown in FIG. 12, in the management ECU 10i_1, the management
(4d)上述の実施形態において、通信システム1では、例えば、管理ECU10i_1は、管理受信処理部134、管理送信処理部133のうち、管理送信処理部133のみを備え、管理受信処理部134を備えていなくてもよい。又、管理ECU10i_2は、管理受信処理部134、管理送信処理部133のうち、管理受信処理部134のみを備え、管理送信処理部133を備えていなくてもよい。
(4d) In the above-described embodiment, in the communication system 1, for example, the management ECU 10i_1 may include only the management
(4e)上述の実施形態において、通信システム1では、例えば、管理ECU10i_2(即ち、メッセージ処理部13iが備える管理送信処理部133)が上述の送信処理を実行してもよい。又、管理ECU10i_1(即ち、メッセージ処理部13iが備える管理受信処理部134)が上述の受信処理を実行してもよい。この場合、例えば、管理ECU10i_1は、管理受信処理部134、管理送信処理部133のうち、管理受信処理部134のみを備え、管理送信処理部133を備えていなくてもよい。又、管理ECU10i_2は、管理受信処理部134、管理送信処理部133のうち、管理送信処理部133のみを備え、管理受信処理部134を備えていなくてもよい。この場合、管理ECU10i_2が情報送信ノードに相当し、管理ECU10i_1が情報受信ノードに相当する。
(4e) In the above embodiment, in the communication system 1, for example, the management ECU 10i_2 (i.e., the management
(4f)上述の実施形態において、通常ECU10nのうち少なくとも一つは、管理ECU10iと同様に、CAN及びCAN FD両方に対応するECUとして構成されてもよい。つまり、該通常ECU10nは、メッセージ処理部13nに、管理送信処理部133、及び管理受信処理部134を更に備えていてもよい。
(4f) In the above embodiment, at least one of the normal ECUs 10n may be configured as an ECU that supports both CAN and CAN FD, similar to the management ECU 10i. In other words, the normal ECU 10n may further include a management
(4g)上述の実施形態において、通信システム1は、上述のように、エンジンの制御を実行するシステムに限定されるものではない。通信システム1、及び各ECU10の機能は、上述の機能に限定されるものではなく、車両を制御するための種々の機能であり得る。 (4g) In the above-described embodiment, the communication system 1 is not limited to a system that performs engine control, as described above. The functions of the communication system 1 and each ECU 10 are not limited to the functions described above, and may be various functions for controlling the vehicle.
(4h)本開示に記載の管理ECU10i及びその手法は、コンピュータプログラムにより具体化された一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリを構成することによって提供された専用コンピュータにより、実現されてもよい。あるいは、本開示に記載の管理ECU10i及びその手法は、一つ以上の専用ハードウェア論理回路によってプロセッサを構成することによって提供された専用コンピュータにより、実現されてもよい。もしくは、本開示に記載の管理ECU10i及びその手法は、一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリと一つ以上のハードウェア論理回路によって構成されたプロセッサとの組み合わせにより構成された一つ以上の専用コンピュータにより、実現されてもよい。又、コンピュータプログラムは、コンピュータにより実行されるインストラクションとして、コンピュータ読み取り可能な非遷移有形記録媒体に記憶されてもよい。管理ECU10iに含まれる各部の機能を実現する手法には、必ずしもソフトウェアが含まれている必要はなく、その全部の機能が、一つあるいは複数のハードウェアを用いて実現されてもよい。 (4h) The management ECU 10i and the method described in the present disclosure may be realized by a dedicated computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a computer program. Alternatively, the management ECU 10i and the method described in the present disclosure may be realized by a dedicated computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the management ECU 10i and the method described in the present disclosure may be realized by one or more dedicated computers configured by a combination of a processor and a memory programmed to execute one or more functions and a processor configured with one or more hardware logic circuits. Also, the computer program may be stored in a computer-readable non-transient tangible recording medium as instructions executed by a computer. The method for realizing the functions of each part included in the management ECU 10i does not necessarily need to include software, and all of the functions may be realized using one or more hardware.
(4i)上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。又、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。又、上記実施形態の構成の一部を省略してもよい。又、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。 (4i) Multiple functions possessed by one component in the above embodiments may be realized by multiple components, or one function possessed by one component may be realized by multiple components. Also, multiple functions possessed by multiple components may be realized by one component, or one function realized by multiple components may be realized by one component. Also, part of the configuration of the above embodiments may be omitted. Also, at least part of the configuration of the above embodiments may be added to or substituted for the configuration of another of the above embodiments.
(4j)上述した管理ECU10i_1、管理ECU10i_2の他、当該管理ECU10i_1及び当該管理ECU10i_2を構成要素とする通信システム1、当該管理ECU10i_1を機能させるためのプログラム、当該管理ECU10i_2を機能させるためのプログラム、これらのプログラムを記録した半導体メモリ等の非遷移的実体的記録媒体、通信方法など、種々の形態で本開示を実現することもできる。 (4j) In addition to the above-mentioned management ECU 10i_1 and management ECU 10i_2, the present disclosure can also be realized in various forms, such as a communication system 1 having the management ECU 10i_1 and management ECU 10i_2 as components, a program for causing the management ECU 10i_1 to function, a program for causing the management ECU 10i_2 to function, a non-transitive physical recording medium such as a semiconductor memory on which these programs are recorded, and a communication method.
1…通信システム、10…ノード、ECU、10i_1、10i_2…管理ECU、12i…通信コントローラ、103…CAN FDデータ領域、133…管理送信処理部、134…管理受信処理部。 1... communication system, 10... node, ECU, 10i_1, 10i_2... management ECU, 12i... communication controller, 103... CAN FD data area, 133... management transmission processing unit, 134... management reception processing unit.
Claims (8)
前記情報送信ノードは、
予め定められた通信プロトコルに従う通信用フレームを生成するように構成された生成部(133)と、
前記生成部によって生成された前記通信用フレームを送信するように構成された送信部(12i)と、を備え、
前記生成部は、
前記複数のノードのうちの少なくとも一つにて生成されたデータであってデータ長が所定範囲内で可変である個別メッセージデータ、を少なくとも一つ含む管理メッセージを生成し、生成した前記管理メッセージを前記通信用フレームのデータ領域に格納するように構成された管理部(S10)と、
前記データ領域(103)を前記管理メッセージのデータ長に応じた指定データ長に等しくするための補充データのデータ長を決定し、決定したデータ長の前記補充データを前記データ領域に格納するように構成された補充実行部(S20、S30)と、
前記補充データのデータ長を示す補充情報を前記データ領域内の予め定められた位置に格納するように構成された補充情報部(S40)と、を備え、
前記情報受信ノードは、
前記通信用フレームを受信するように構成された受信部(12i)と、
前記受信部によって受信された前記通信用フレームにおける、前記補充データの前記データ長を特定するように構成された特定部(134)と、
を備え、
前記特定部は、前記通信用フレームの前記データ領域に含まれる前記補充情報を取得し、前記補充情報に基づいて前記補充データの前記データ長を特定するように構成された補充特定部(S110)を備え、
前記情報送信ノードでは、
前記管理部は、生成した前記管理メッセージを、予め定められた同一のメッセージ識別子が付与された前記通信用フレームの前記データ領域に格納し、
前記情報受信ノードでは、
前記受信部は、前記通信用フレームであって前記同一のメッセージ識別子が付与された前記通信用フレームを受信する、
通信システム。 A communication system (1) comprising a plurality of nodes connected to each other, at least one of the nodes being an information transmitting node (10i_1), and at least one of the nodes other than the information transmitting node being an information receiving node (10i_2) communicably connected to the information transmitting node,
The information sending node,
A generating unit (133) configured to generate a communication frame conforming to a predetermined communication protocol;
a transmission unit (12i) configured to transmit the communication frame generated by the generation unit,
The generation unit is
a management unit (S10) configured to generate a management message including at least one individual message data generated by at least one of the plurality of nodes, the individual message data having a data length variable within a predetermined range, and to store the generated management message in a data area of the communication frame;
a supplement execution unit (S20, S30) configured to determine a data length of supplementary data for making the data area (103) equal to a designated data length corresponding to the data length of the management message, and to store the supplementary data of the determined data length in the data area;
a supplementary information section (S40) configured to store supplementary information indicating a data length of the supplementary data at a predetermined position in the data area,
The information receiving node,
A receiving unit (12i) configured to receive the communication frame;
a determination unit (134) configured to determine the data length of the supplementary data in the communication frame received by the receiving unit;
Equipped with
the identification unit includes a supplement identification unit (S110) configured to acquire the supplement information included in the data area of the communication frame and identify the data length of the supplement data based on the supplement information ;
In the information sending node,
the management unit stores the generated management message in the data area of the communication frame to which a predetermined identical message identifier is assigned;
In the information receiving node,
the receiving unit receives the communication frame to which the same message identifier is assigned.
Communication systems.
前記情報送信ノードでは、
前記生成部は、
前記管理メッセージを用いて前記管理メッセージの改ざん検出を行うための認証用情報を生成し、生成した前記認証用情報を前記データ領域に格納するように構成された認証情報部(S50、S60)
を更に備え、
前記情報受信ノードでは、
前記特定部は、
前記指定データ長から、前記補充データの前記データ長と前記認証用情報の前記データ長と前記補充情報のデータ長とを減算した減算値を、前記管理メッセージの前記データ長として算出し、前記減算値を用いて前記データ領域に含まれる前記管理メッセージを特定するように構成されたメッセージ特定部(S120、S130)を更に備える
通信システム。 2. The communication system according to claim 1,
In the information sending node,
The generation unit is
an authentication information unit configured to generate authentication information for detecting tampering of the management message using the management message and to store the generated authentication information in the data area (S50, S60);
Further comprising:
In the information receiving node,
The identification unit is
a message identification unit (S120, S130) configured to calculate the data length of the management message by subtracting the data length of the supplementary data, the data length of the authentication information, and the data length of the supplementary information from the specified data length, and to identify the management message included in the data area using the subtraction value.
前記情報受信ノードでは、
前記特定部は、
特定された前記管理メッセージと前記情報受信ノードが備える鍵保持部(14i)に記憶されている認証鍵とに基づいて新たな前記認証用情報を生成し、生成した新たな前記認証用情報と受信した前記通信用フレームに含まれる前記認証用情報とを比較し、前記管理メッセージが改ざんされているか否かを判定するように構成された判定部(S140、S150)を更に備える
通信システム。 3. The communication system according to claim 2,
In the information receiving node,
The identification unit is
a determination unit (S140, S150) configured to generate new authentication information based on the identified management message and an authentication key stored in a key holding unit (14i) provided in the information receiving node, compare the generated new authentication information with the authentication information included in the received communication frame, and determine whether the management message has been tampered with.
前記情報送信ノードでは、
前記補充実行部は、前記管理メッセージの前記データ長と、前記認証用情報の前記データ長と、前記補充情報のデータ長と、を加算した加算値を算出し、前記データ領域のデータ長についての複数のデータ長候補値のうち、前記加算値以上であり、前記加算値に最も近いデータ長を前記指定データ長として決定する
通信システム。 A communication system according to claim 2 or 3,
In the information sending node,
The supplement execution unit calculates a sum by adding the data length of the management message, the data length of the authentication information, and the data length of the supplementary information, and determines, as the designated data length, a data length that is equal to or greater than the sum and closest to the sum among multiple data length candidate values for the data length of the data area.
前記補充情報部は、前記補充情報を前記データ領域内の先頭に格納する
通信システム。 A communication system according to any one of claims 1 to 4,
The supplemental information section stores the supplemental information at the beginning of the data area.
前記通信プロトコルは、CAN FDである
通信システム。 A communication system according to any one of claims 1 to 5 ,
The communication system, wherein the communication protocol is CAN FD.
前記通信プロトコルに従う前記通信用フレームを生成するように構成された生成部(133)と、
前記生成部によって生成された前記通信用フレームを送信するように構成された送信部(12i)と、を備え、
前記生成部は、
前記情報受信ノード及び当該情報送信ノードを含む複数のノードのうち少なくとも一つの前記ノードにて生成されたデータであってデータ長が所定範囲内で可変である個別メッセージデータ、を少なくとも一つ含む管理メッセージを生成し、生成した前記管理メッセージを前記通信用フレームの前記データ領域に格納するように構成された管理部(S10)と、
前記補充データであって前記データ領域(103)を前記管理メッセージのデータ長に応じた指定データ長に等しくするための前記補充データのデータ長を決定し、決定したデータ長の前記補充データを前記データ領域に格納するように構成された補充実行部(S20、S30)と、
前記補充情報であって前記補充データの前記データ長を示す前記補充情報を前記データ領域内の予め定められた位置に格納するように構成された補充情報部(S40)と、を備え、
前記管理部は、生成した前記管理メッセージを、前記同一のメッセージ識別子が付与された前記通信用フレームの前記データ領域に格納する、
情報送信ノード。 a communication frame that is assigned a predetermined identical message identifier, and an information receiving node that is communicatively connected to an information sending node, the communication frame being provided with a predetermined identical message identifier, the communication frame being provided with a predetermined identical message identifier, the communication frame being provided with a predetermined identical message identifier, the communication frame being provided with a predetermined identical message identifier, and an information sending node that is communicatively connected to an information receiving node, the communication frame being provided with a predetermined identical message identifier, the communication frame being provided with a predetermined identical message identifier, the communication frame being provided with a predetermined identical message identifier , and an information sending node that is communicatively connected to an information sending node,
A generating unit (133) configured to generate the communication frame conforming to the communication protocol;
a transmission unit (12i) configured to transmit the communication frame generated by the generation unit,
The generation unit is
a management unit (S10) configured to generate a management message including at least one individual message data, the individual message data being data generated in at least one of a plurality of nodes including the information receiving node and the information transmitting node, and storing the generated management message in the data area of the communication frame;
a supplement execution unit (S20, S30) configured to determine a data length of the supplement data so as to make the data area (103) equal to a designated data length corresponding to the data length of the management message, and to store the supplement data of the determined data length in the data area;
a supplementary information section (S40) configured to store the supplementary information, which is the supplementary information and indicates the data length of the supplementary data, at a predetermined position in the data area ;
the management unit stores the generated management message in the data area of the communication frame to which the same message identifier is assigned .
Information sending node.
前記複数のノードは、当該情報受信ノード及び前記情報送信ノードを含み、
前記通信用フレームを受信するように構成された受信部(12i)と、
前記受信部によって受信された前記通信用フレームにおける、前記補充データの前記データ長を特定するように構成された特定部(134)と、
を備え、
前記特定部は、前記通信用フレームの前記データ領域に含まれる前記補充情報を取得し、前記補充情報に基づいて前記補充データの前記データ長を特定するように構成された補充特定部(S110)を備え、
前記受信部は、前記通信用フレームであって前記同一のメッセージ識別子が付与された前記通信用フレームを受信する、
情報受信ノード。 The present invention is provided with a generating unit (133) configured to generate a communication frame conforming to a predetermined communication protocol, and a transmitting unit (12i) configured to transmit the communication frame generated by the generating unit, the generating unit generating a management message including at least one individual message data, the individual message data being data generated in at least one of a plurality of nodes and having a data length variable within a predetermined range, a management unit (S10) configured to store the generated management message in a data area of the communication frame, and a data area (103) configured to store the data of the management message. a supplement execution unit (S20, S30) configured to determine a data length of supplementary data to make the data length of the supplementary data equal to a designated data length corresponding to the length of the communication frame, and to store the supplementary data of the determined data length in the data area; and a supplementary information unit (S40) configured to store supplementary information indicating the data length of the supplementary data in a predetermined position in the data area, wherein the management unit comprises an information sending node (10i_1) that stores the generated management message in the data area of the communication frame to which the same predetermined message identifier is assigned , and an information receiving node (10i_2) communicably connected,
the plurality of nodes includes the information receiving node and the information transmitting node,
A receiving unit (12i) configured to receive the communication frame;
a determination unit (134) configured to determine the data length of the supplementary data in the communication frame received by the receiving unit;
Equipped with
the identification unit includes a supplement identification unit (S110) configured to acquire the supplement information included in the data area of the communication frame and identify the data length of the supplement data based on the supplement information ;
the receiving unit receives the communication frame to which the same message identifier is assigned .
Information receiving node.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022005259A JP7679772B2 (en) | 2022-01-17 | 2022-01-17 | COMMUNICATION SYSTEM, INFORMATION SENDING NODE, AND INFORMATION RECEIVING NODE |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022005259A JP7679772B2 (en) | 2022-01-17 | 2022-01-17 | COMMUNICATION SYSTEM, INFORMATION SENDING NODE, AND INFORMATION RECEIVING NODE |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023104336A JP2023104336A (en) | 2023-07-28 |
| JP7679772B2 true JP7679772B2 (en) | 2025-05-20 |
Family
ID=87379355
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022005259A Active JP7679772B2 (en) | 2022-01-17 | 2022-01-17 | COMMUNICATION SYSTEM, INFORMATION SENDING NODE, AND INFORMATION RECEIVING NODE |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7679772B2 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010219869A (en) | 2009-03-17 | 2010-09-30 | Sony Corp | Communication apparatus and communication method, computer program, and communication system |
| JP2019029993A (en) | 2017-07-26 | 2019-02-21 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America | Abnormality detection device and abnormality detection method |
| WO2020220328A1 (en) | 2019-04-30 | 2020-11-05 | Oppo广东移动通信有限公司 | Wireless communication method and apparatus |
| KR20210102408A (en) | 2018-12-17 | 2021-08-19 | 로베르트 보쉬 게엠베하 | Subscriber stations for serial bus systems and methods of communication in serial bus systems |
-
2022
- 2022-01-17 JP JP2022005259A patent/JP7679772B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010219869A (en) | 2009-03-17 | 2010-09-30 | Sony Corp | Communication apparatus and communication method, computer program, and communication system |
| JP2019029993A (en) | 2017-07-26 | 2019-02-21 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America | Abnormality detection device and abnormality detection method |
| KR20210102408A (en) | 2018-12-17 | 2021-08-19 | 로베르트 보쉬 게엠베하 | Subscriber stations for serial bus systems and methods of communication in serial bus systems |
| WO2020220328A1 (en) | 2019-04-30 | 2020-11-05 | Oppo广东移动通信有限公司 | Wireless communication method and apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023104336A (en) | 2023-07-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110168971B (en) | Method, computer-readable medium, system, and vehicle for validating a function of time | |
| US20180234248A1 (en) | Communication system, vehicle, and monitoring method | |
| US10104094B2 (en) | On-vehicle communication system | |
| US10432421B2 (en) | Communication control device and communication system | |
| EP2681901B1 (en) | Vehicle network system | |
| JP7132132B2 (en) | In-vehicle communication system, in-vehicle communication control device, in-vehicle communication device, computer program, communication control method and communication method | |
| US11075927B2 (en) | Fraud detection electronic control unit, electronic control unit, and non-transitory recording medium in which computer program is described | |
| US20160211974A1 (en) | Data generation apparatus, communication apparatus, communication system, mobile object, data generation method, and computer program product | |
| JP2017118487A (en) | Information aggregation method to be executed in communication system | |
| US20170142137A1 (en) | Communication system, receiving apparatus, receiving method, and computer program product | |
| JP2018121220A (en) | In-vehicle network system | |
| JP7006335B2 (en) | In-vehicle communication system, in-vehicle communication method, and program | |
| JP7679772B2 (en) | COMMUNICATION SYSTEM, INFORMATION SENDING NODE, AND INFORMATION RECEIVING NODE | |
| JP2016151871A (en) | On-vehicle system and ecu | |
| JP7067508B2 (en) | Network system | |
| CN112187704A (en) | Method, system and network equipment for checking valid time of license | |
| JP7328419B2 (en) | In-vehicle communication system, in-vehicle communication device, computer program and communication method | |
| CN103475634A (en) | Method and communication system for secure data transmission | |
| JP5454489B2 (en) | Wireless communication apparatus and communication system | |
| JP2016208536A (en) | Communication system, communication control device, and unauthorized information transmission prevention method | |
| JP7718324B2 (en) | In-vehicle device, information processing method, and program | |
| JP2020188314A (en) | Network system | |
| JP6512134B2 (en) | Data processing apparatus and data processing system | |
| JP6950540B2 (en) | Network system | |
| JP6950539B2 (en) | Network system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240510 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250128 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250313 |
|
| 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: 20250408 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250421 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7679772 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |