JP6569407B2 - Master communication device and slave communication device - Google Patents
Master communication device and slave communication device Download PDFInfo
- Publication number
- JP6569407B2 JP6569407B2 JP2015178363A JP2015178363A JP6569407B2 JP 6569407 B2 JP6569407 B2 JP 6569407B2 JP 2015178363 A JP2015178363 A JP 2015178363A JP 2015178363 A JP2015178363 A JP 2015178363A JP 6569407 B2 JP6569407 B2 JP 6569407B2
- Authority
- JP
- Japan
- Prior art keywords
- slave
- communication device
- master
- information
- abnormal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Small-Scale Networks (AREA)
Description
本発明は、マスタ通信装置からの指令に応じてスレーブ通信装置がデータを出力する方式であるマスタ・スレーブ方式の通信技術に関する。 The present invention relates to a master-slave communication technique in which a slave communication device outputs data in response to a command from a master communication device.
従来、マスタ・スレーブ方式で通信を行うマスタ通信装置及びスレーブ通信装置において、マスタ通信装置が、異常が生じたスレーブ通信装置から出力されるデータを少なくとも他のスレーブ通信装置に受信させないようにする技術が知られている。 Conventionally, in a master communication device and a slave communication device that perform communication by a master / slave method, a technique for preventing the master communication device from receiving data output from the slave communication device in which an abnormality has occurred at least other slave communication devices It has been known.
特許文献1には、マスタ通信装置からの指令に応じたスレーブ通信装置によるデータの送信が無い場合に、送信が無いスレーブ通信装置に異常が生じたとして、マスタ通信装置から該スレーブ通信装置に対する指令の送信を中止する技術が開示されている。
In
ところで、特許文献1に記載の技術では、スレーブ通信装置は、マスタ通信装置から送信された指令に応じてデータを送信するものであった。このようなスレーブ通信装置に対して、近年では、マスタ通信装置からの指令が送信されない場合であってもスレーブ通信装置から能動的にデータを送信させたいという、ユーザからの要求が有る。
By the way, in the technique described in
そこで、マスタ通信装置から指令が送信されない場合であっても、例えばスレーブ通信装置において所定のイベントが発生したとき等に、該スレーブ通信装置から能動的にデータを送信可能な新たなマスタ・スレーブ方式の通信技術が考えられている。 Therefore, even when a command is not transmitted from the master communication device, for example, when a predetermined event occurs in the slave communication device, a new master-slave method capable of actively transmitting data from the slave communication device Communication technology is considered.
しかしながら、スレーブ通信装置から能動的にデータを送信可能なマスタ・スレーブ方式の通信技術では、仮にスレーブ通信装置に異常が生じたとすると、異常が生じたスレーブ通信装置から出力されたデータが他のスレーブ通信装置に受信されて、例えば該データに基づく誤った制御等が行われるおそれがあった。 However, in the master-slave communication technology that can actively transmit data from the slave communication device, if an error occurs in the slave communication device, the data output from the slave communication device in which the error has occurred is transferred to another slave When received by the communication device, for example, there is a risk of erroneous control based on the data.
本発明は、マスタ・スレーブ通信方式で通信を行うマスタ通信装置及びスレーブ通信装置において、異常が生じたスレーブ通信装置から送信されたデータが他のスレーブ通信装置に利用されることを抑制する技術を提供することを目的としている。 The present invention provides a technique for suppressing data transmitted from a slave communication device in which an abnormality has occurred in a master communication device and a slave communication device that perform communication using a master / slave communication method from being used by another slave communication device. It is intended to provide.
本発明の一側面は、マスタ通信装置であって、該マスタ通信装置は、複数のスレーブ通信装置とバスを介して通信可能に接続される。マスタ通信装置は、特定情報取得手段と破棄情報送信手段とを備える。特定情報取得手段は、当該マスタ通信装置によってデータを送信すべき装置が指定された指令を表す送信指令に応じてデータを送信し、かつ当該マスタ通信装置からの送信指令が無い場合であっても予め設定された送信条件が成立したときにデータを送信する通信装置をスレーブ通信装置として、複数のスレーブ通信装置のうちいずれのスレーブ通信装置に異常が生じたかを特定可能な特定情報を取得する。破棄情報送信手段は、特定情報に基づいて、異常が生じたスレーブ通信装置を表す異常装置が送信元となるデータを破棄させるための破棄情報を、少なくとも該異常装置以外のスレーブ通信装置に送信する。 One aspect of the present invention is a master communication device, and the master communication device is communicably connected to a plurality of slave communication devices via a bus. The master communication device includes specific information acquisition means and discard information transmission means. The specific information acquisition means transmits data according to a transmission command indicating a command in which a device to which data is to be transmitted by the master communication device is specified, and even if there is no transmission command from the master communication device A communication device that transmits data when a preset transmission condition is satisfied is set as a slave communication device, and specific information that can identify which slave communication device among the plurality of slave communication devices has an abnormality is acquired. The discard information transmission means transmits at least the discard information for causing the abnormal device representing the slave communication device in which the abnormality has occurred to discard data that is a transmission source to at least a slave communication device other than the abnormal device based on the specific information. .
このような構成のマスタ通信装置によれば、正常なスレーブ通信装置に、異常なスレーブ通信装置を送信元とするデータを破棄させるため、該データが他のスレーブ通信装置に利用されることを抑制することができる。この結果、該データに基づいて正常なスレーブ通信装置に対する誤った制御等が行われることを抑制することができる。 According to the master communication device having such a configuration, the normal slave communication device is made to discard the data originating from the abnormal slave communication device, so that the data is prevented from being used by other slave communication devices. can do. As a result, it is possible to suppress erroneous control or the like on a normal slave communication device based on the data.
また、本発明の別の側面はスレーブ通信装置であって、該スレーブ通信装置は、マスタ通信装置および1または複数の他のスレーブ通信装置を通信相手として含み、マスタ通信装置によってデータを送信すべき装置が指定された指令を表す送信指令に応じてデータを送信し、かつマスタ通信装置からの送信指令が無い場合であっても予め設定された送信条件が成立したときにデータを送信する。スレーブ通信装置は、破棄情報受信手段とデータ破棄手段とを備える。破棄情報受信手段は、他のスレーブ通信装置のうちの異常が生じたスレーブ通信装置を表す異常装置が送信元となるデータを破棄するための破棄情報をマスタ通信装置から受信する。データ破棄手段は、破棄情報に基づいて、異常装置が送信元となるデータを破棄するよう設定する。 Another aspect of the present invention is a slave communication device, which includes a master communication device and one or more other slave communication devices as communication partners, and should transmit data by the master communication device. The device transmits data in response to a transmission command representing a designated command, and transmits data when a preset transmission condition is satisfied even when there is no transmission command from the master communication device. The slave communication device includes discard information receiving means and data discarding means. The discard information receiving unit receives, from the master communication device, discard information for discarding data that is the transmission source of the abnormal device representing the slave communication device in which the abnormality occurred among the other slave communication devices. The data discarding unit is configured to discard the data that is the source of the abnormal device based on the discard information.
このような構成のスレーブ通信装置によれば、破棄情報に基づいて異常なスレーブ通信装置を送信元とするデータを破棄するため、正常なスレーブ通信装置において該データに基づく誤った制御等が行われることを抑制することができる。 According to the slave communication device having such a configuration, data that originates from an abnormal slave communication device is discarded based on the discard information, and thus an erroneous control or the like based on the data is performed in a normal slave communication device. This can be suppressed.
なお、特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本発明の技術的範囲を限定するものではない。 In addition, the code | symbol in the parenthesis described in the claim shows the correspondence with the specific means as described in embodiment mentioned later as one aspect, Comprising: The technical scope of this invention is limited is not.
以下、本発明が適用された実施形態について、図面を用いて説明する。
[1.第1実施形態]
[1−1.構成]
[1−1−1.全体構成]
図1に示す通信システム1は、車両に搭載されたシステムであって、通信装置(ノード)としてのマスタノード(以下、単にマスタという)2と、3つのスレーブノード(以下、単にスレーブという)3とを備える。これらの各ノードは、バス5を介して互いに通信可能に接続される。スレーブノードは、本実施形態では3つであるが、複数であればいくつでもよい。以下において、3つのスレーブ3を区別して説明する場合は、それぞれについて、3a、3b、3cを符号として用いる。
Embodiments to which the present invention is applied will be described below with reference to the drawings.
[1. First Embodiment]
[1-1. Constitution]
[1-1-1. overall structure]
A
はじめに、マスタ2の構成について説明する。マスタ2は、トランシーバ23と制御部21とを備える。
トランシーバ23は、回路から構成され、バス5を介したデータの送受信を行う、周知の通信用のモジュールである。つまり、トランシーバ23は、制御部21から供給されたデータをバス5上に出力し、バス5上から入力されたデータを制御部21へ供給する。
First, the configuration of the
The
制御部21は、CPU211、ROM212、RAM213等を有する周知のマイクロコンピュータを備える。
CPU211は、ROM212やRAM213に記録されたプログラムを実行することにより、例えば、ボディ系やエンジン系の制御などのように、車両を制御するための各種機能を実現する処理を行う。
The
The
具体的には、制御部21は、スレーブ3との通信に基づいて車両を制御するための各種機能を実現する。
ここで、マスタ2とスレーブ3との通信に使用される通信フレームについて、図2を用いて説明する。以下、通信フレームを単にフレームという。フレームは、ヘッダとレスポンスとにより構成される。
Specifically, the
Here, a communication frame used for communication between the
ヘッダは、基本的に、マスタ2から、後述するスケジュールテーブルに従って送信される。
ただし、後述するイベントが発生したときは、該イベントに対応するスレーブ3からも送信される。
The header is basically transmitted from the
However, when an event described later occurs, it is also transmitted from the
ヘッダは、フレームごとに固有の8ビットで表される識別番号であり、レスポンスを送信させるべきノードを指定している番号である。つまり、ヘッダに基づいて、レスポンスの送信が許可されたノード(以下応答ノードという)を特定可能である。なお、本実施形態では、ヘッダは、スレーブ3と自マスタ2とを応答ノードとして指定可能となっている。
The header is an identification number represented by 8 bits unique to each frame, and is a number designating a node to which a response is to be transmitted. That is, based on the header, it is possible to identify a node that is permitted to transmit a response (hereinafter referred to as a response node). In the present embodiment, the header can designate the
レスポンスは、基本的に、スケジュールテーブルに従ってマスタ2から送信されたヘッダによって特定されたスレーブ3又はマスタ2から送信される。ただし、レスポンスは、イベントが発生したときは、該イベントに対応するスレーブ3が送信したヘッダによって特定されたスレーブ3から送信されてもよい。該イベントに対応するスレーブ3は、自スレーブ3(該イベントに対応するスレーブ3)を応答ノードとして指定してもよいし、他のスレーブ3を応答ノードとして指定してもよい。なお、本実施形態では、イベントが発生したときに、自スレーブ3を応答ノードとして指定する例について説明する。
The response is basically transmitted from the
以下では、スケジュールテーブルに従ってマスタ2が送信したヘッダ及び該ヘッダに対応するレスポンスからなるフレームを定期フレームという。また、イベントが発生したときに該イベントに対応するスレーブ3が送信したヘッダ及びレスポンスからなるフレームを、イベントフレームという。
Hereinafter, a frame composed of a header transmitted by the
レスポンスはフレーム情報部とデータ部とからなる。フレーム情報部は、1ビットのウェイクアップパルス送信情報と、1ビットのスリープ可否情報とを少なくとも含む。
ウェイクアップパルス送信情報は、ウェイクアップパルスを送信したか否かを示す情報である。ウェイクアップパルス送信情報は、該ウェイクアップパルス送信情報を含むレスポンスを送信したノードがウェイクアップパルスを送信した場合に1に設定され、送信していない場合に0に設定される。以下、ウェイクアップパルス送信情報を、WUP送信情報という。
The response consists of a frame information part and a data part. The frame information portion includes at least 1-bit wakeup pulse transmission information and 1-bit sleep availability information.
The wakeup pulse transmission information is information indicating whether or not a wakeup pulse has been transmitted. The wake-up pulse transmission information is set to 1 when the node that has transmitted the response including the wake-up pulse transmission information transmits a wake-up pulse, and is set to 0 when the node does not transmit. Hereinafter, the wakeup pulse transmission information is referred to as WUP transmission information.
スリープ可否情報は、スリープ状態に遷移可能か否かを示す情報である。スリープ可否情報は、該スリープ可否情報を含むレスポンスを送信したノードが、スリープを許可されている場合に1に設定され、許可されていない場合に0に設定される。 The sleep availability information is information indicating whether or not it is possible to transition to the sleep state. The sleep propriety information is set to 1 when the node that has transmitted the response including the sleep propriety information is permitted to sleep, and is set to 0 when the node is not permitted.
データ部は、ヘッダごとに予め指定されている種類のデータを含む。
図1に戻り、説明を続ける。制御部21(CPU211)は、例えば、定期送信処理、定期受信処理、マスタ定期処理を実行する。
The data part includes data of a type designated in advance for each header.
Returning to FIG. 1, the description will be continued. The control unit 21 (CPU 211) executes, for example, regular transmission processing, regular reception processing, and master regular processing.
定期送信処理は、送信指令を、予め設定されたスケジュールであるスケジュールテーブルに従って定期的に送信する処理である。送信指令とは、データを送信させるべきスレーブ3装置に対して該スレーブ3を指定する指令であり、前述のヘッダに相当する。また、ここでいうデータは、前述のレスポンスに相当する。つまり、定期送信処理は、ヘッダをスケジュールテーブルに従って定期的に送信する処理である。
The periodic transmission process is a process of periodically transmitting a transmission command according to a schedule table that is a preset schedule. The transmission command is a command for designating the
図3に一例として示すように、スケジュールテーブルST0には、ヘッダの送信順を示す送信順情報と、ヘッダを含むフレームの名称を示すフレーム名情報と、ヘッダに対応する応答ノードを示す応答ノード情報と、ヘッダの送信間隔を示す要求送信間隔情報との対応関係が設定されている。なお、ヘッダの送信間隔とは、ヘッダが送信されてから次のヘッダを送信するまでの送信間隔をいう。 As shown in FIG. 3 as an example, the schedule table ST 0 includes transmission order information indicating the transmission order of the header, frame name information indicating the name of the frame including the header, and a response node indicating the response node corresponding to the header. The correspondence between the information and the request transmission interval information indicating the transmission interval of the header is set. The header transmission interval is a transmission interval from when a header is transmitted to when the next header is transmitted.
スケジュールテーブルST0は、まずマスタ2を応答ノードとするヘッダ(1番目)を送信するように設定されている。そして、スケジュールテーブルST0は、1番目のヘッダが送信されてから1000msが経過した後に、スレーブ3aを応答ノードとするヘッダ(2番目)を送信するように設定されている。
The schedule table ST 0 is set to transmit a header (first) having the
スケジュールテーブルST0は、さらに2番目のヘッダが送信されてから2000msが経過した後にスレーブ3aを応答ノードとするヘッダ(3番目)を送信し、3番目のヘッダが送信されてから1000msが経過した後にマスタ2を応答ノードとするヘッダ(4番目)を送信するように設定されている。
The schedule table ST 0 transmits a header (third) having the
スケジュールテーブルST0は、同様に500msが経過した後にスレーブ3bを応答ノードとするヘッダ(5番目)を送信し、同様に500msが経過した後にスレーブ3cを応答ノードとするヘッダ(6番目)を送信するように設定されている。
Similarly, the schedule table ST 0 transmits a header (fifth) having the
スケジュールテーブルST0は、さらに6番目のヘッダが送信されてから1000msが経過した後に、マスタ2を応答ノードとするヘッダ(1番目)を送信するように設定されている。
The schedule table ST 0 is set to transmit a header (first) having the
定期受信処理は、スケジュールテーブルST0に従って定期的に送信したヘッダに対応するレスポンスを受信する処理である。制御部21は、受信したレスポンスに基づいて、レスポンスのデータ部に含まれるデータを用いて、車両を制御するための各種機能を実現する処理を行う。
Subscribe process is a process of receiving a response corresponding to the regularly transmitted header according to the schedule table ST 0. Based on the received response, the
マスタ定期処理は、スレーブ3に異常が生じた場合に、異常が生じたスレーブ3を応答ノードとするイベントフレームが他の正常なノードに利用されないようにするための処理である。マスタ定期処理の詳細については、後述する。
The master periodic process is a process for preventing an event frame having the
図1に戻り説明を続ける。ROM212は、前述の処理を実行するためのプログラムの他、スケジュールテーブルST0、ノード識別番号、対応管理テーブルKT0(図4(a)参照)、等を記録している。
Returning to FIG. The
ノード識別番号は、マスタ2、及びスレーブ3毎に付与された、それぞれを識別可能な識別番号である。
対応管理テーブルKT0は、スレーブ3との通信で用いる全ての定期フレーム及びイベントフレームについてのヘッダと応答ノードとの関係を示すテーブルである。
The node identification number is an identification number assigned to each of the
The correspondence management table KT 0 is a table showing the relationship between headers and response nodes for all periodic frames and event frames used in communication with the
図4(a)に一例として示すように、対応管理テーブルKT0には、ヘッダと、ヘッダを含むフレームの名称を示すフレーム名情報と、ヘッダに対応する応答ノードを示す応答ノード情報と、定期フレームであるかイベントフレームであるかの種別を示す種別情報との対応関係が設定されている。 As shown in FIG. 4A as an example, the correspondence management table KT 0 includes a header, frame name information indicating the name of the frame including the header, response node information indicating the response node corresponding to the header, A correspondence relationship with type information indicating the type of frame or event frame is set.
具体的には、対応管理テーブルKT0は、0x01というヘッダを、フレーム名称がA1であり、応答ノードがマスタ2であり、定期フレームである、と設定している。
また、対応管理テーブルKT0は、0x05というヘッダを、フレーム名称がC1であり、応答ノードがスレーブ3bであり、定期フレームであると設定し、0x06というヘッダを、フレーム名称がC2であり、応答ノードがスレーブ3bであり、イベントフレームであると設定している。
Specifically, the correspondence management table KT 0 sets a header of 0x01 as the frame name is A1, the response node is the
The correspondence management table KT 0 sets the header 0x05, the frame name is C1, the response node is the
つまり、対応管理テーブルKT0は、スレーブ3b及びスレーブ3cのみがイベントフレームを送信可能であると設定している。なお、以下では、フレーム名称がA1のフレームを単にフレームA1のように記載する。
That is, the correspondence management table KT 0 is set so that only the
次に、図1に戻り、スレーブ3の構成について説明する。
スレーブ3は、トランシーバ33と制御部31とスイッチ7とを備える。
トランシーバ33は、マスタ2が備えるトランシーバ23と同様の通信用のモジュールであり、制御部31から供給されたデータをバス5上に出力し、バス5から入力されたデータを制御部31へ供給する。
Next, returning to FIG. 1, the configuration of the
The
The
スイッチ7は、制御部31に接続されており、例えば、ドアロックの解錠や施錠、電動シートの移動等のような予め設定されたイベントが発生したときに、制御部31にイベント信号を出力する。
The switch 7 is connected to the
制御部31は、CPU311、ROM312、RAM313等を有する周知のマイクロコンピュータを備える。CPU311は、ROM312やRAM313に記録されたプログラムを実行することにより、予め割り当てられた各種機能を実現する処理を行う。
The
例えば、マスタ2がボディ系の制御を行う場合、スレーブ3は、ドアの施錠及び解錠、パワーウィンドウの制御のようなドアのまわりに関する制御や、エアコンに関する制御、電動シートに関する制御等のような予め割り当てられた各種機能を実現する処理を行う。
For example, when the
具体的には、制御部31は、マスタ2および1または複数の他のスレーブ3を通信相手として含み、これらの通信相手との通信に基づいて、各種機能を実現する。
制御部31は、例えば、レスポンス送信処理、フレーム受信処理、イベントフレーム送信処理、スレーブ定期処理を実行する。
Specifically, the
For example, the
レスポンス送信処理は、自ノードであるスレーブ3を応答ノードとして指定するヘッダに応じてレスポンスを送信する処理である。
フレーム受信処理は、自ノードを受信ノードとするヘッダを受信した場合に、ヘッダ続いて送信されたレスポンスを取り込み、取り込んだフレーム(レスポンス)を利用して、各種機能を実現する処理である。受信ノードとは、ヘッダと該ヘッダ続いて送信されたレスポンスとを取り込むノードのことをいう。
The response transmission process is a process of transmitting a response according to a header that designates the
The frame reception process is a process that, when receiving a header having its own node as a receiving node, captures a response transmitted after the header and implements various functions using the captured frame (response). The receiving node refers to a node that takes in a header and a response transmitted subsequent to the header.
なお、受信したヘッダが自ノードを受信ノードとするか否かは、後述する対応管理テーブルに基づいて判断される。
イベントフレーム送信処理は、予め設定された送信条件が成立した場合に、イベントフレームを送信する処理である。予め設定された送信条件が成立したときとは、スイッチ7からイベント信号が出力されたとき、つまり、予め設定されたイベントが発生したときをいう。
Whether or not the received header uses the own node as the receiving node is determined based on a correspondence management table described later.
The event frame transmission process is a process for transmitting an event frame when a preset transmission condition is satisfied. The time when the preset transmission condition is satisfied means when an event signal is output from the switch 7, that is, when a preset event occurs.
このようなイベントの発生に応じてスレーブ3が送信するイベントフレームは、該イベントに関連する他のスレーブ3を受信ノードとするフレームであり、データ部に該他のスレーブ3を制御するための制御データを含む。
The event frame transmitted by the
スレーブ定期処理は、他のスレーブ3に異常が生じた場合に、異常が生じた他のスレーブ3から送信されるイベントフレームを、正常な自ノードにて利用しないようにするための処理である。スレーブ定期処理の詳細については、後述する。
The slave periodic process is a process for preventing an event frame transmitted from another
ROM312は、前述の処理を実行するためのプログラムの他、ROM212と同様に、ノード識別番号、対応管理テーブルKT1(図4(b)参照)、等を記録している。
ただし、スレーブ3の対応管理テーブルKT1は、マスタ2の対応管理テーブルKT0とは異なり、自ノードが送受信する定期フレーム及びイベントフレームのみが示されるテーブルである。
The
However, correspondence management table KT 1 of the
図4(b)に一例として示すように、スレーブ3aの対応管理テーブルKT1では、自ノードであるスレーブ3aを応答ノードとして指定するヘッダは、0x03及び0x04のみである。つまり、スレーブ3aについては、対応管理テーブルKT1に基づいて、0x03及び0x04以外のヘッダが自ノード(スレーブ3a)を受信ノードとするヘッダであると判断される。
As shown as an example in FIG. 4 (b), the management table KT 1 slave 3a, header specifying the
[1−1−2.動作状態]
次に、マスタ2及びスレーブ3の動作状態について説明する。
マスタ2において、制御部21は、マスタ2としての動作状態をウェイクアップ状態とスリープ状態との間で変更する処理を行う。なお、スレーブ3において、制御部31も、制御部21と同様に、スレーブ3としての動作状態をウェイクアップ状態とスリープ状態との間で変更する処理を行う。このため、以下では、マスタ2についての動作状態について説明する。ただし、説明において、括弧内には、スレーブ3における対応する構成を記載する。
[1-1-2. Operational state]
Next, operation states of the
In the
ウェイクアップ状態は、マスタ2(スレーブ3)に予め割り当てられた全ての機能を実行可能な通常の動作状態であり、スリープ状態は、消費電力を抑えるために、マスタ2(スレーブ3)に予め割り当てられた機能のうちの一部の機能を停止した動作状態である。 The wake-up state is a normal operation state in which all functions assigned in advance to the master 2 (slave 3) can be executed. The sleep state is assigned in advance to the master 2 (slave 3) in order to reduce power consumption. This is an operation state in which some of the received functions are stopped.
具体的には、制御部21(制御部31)は、スリープ状態であるとき、自ノードであるマスタ2(スレーブ3)に予め定められたウェイクアップ要因が発生した場合に、ウェイクアップし、バス5にウェイクアップパルスを送信する。ウェイクアップとは、動作状態をスリープ状態からウェイクアップ状態に設定することをいう。ウェイクアップパルスとは、これを受信した全てのノードをウェイクアップさせることが可能な信号をいう。つまり、制御部21(制御部31)は、バス5を介して他のノードからウェイクアップパルスを受信した場合にも、ウェイクアップすることが可能である。
Specifically, the control unit 21 (control unit 31) wakes up when a predetermined wake-up factor occurs in the master 2 (slave 3) as its own node in the sleep state. A wakeup pulse is transmitted to 5. Wake-up refers to setting the operating state from the sleep state to the wake-up state. The wake-up pulse is a signal that can wake up all the nodes that have received the wake-up pulse. That is, even when the control unit 21 (control unit 31) receives a wake-up pulse from another node via the
[1−1−3.マスタ及びスレーブの作動例]
次に、マスタ2及びスレーブ3の作動の一例を説明する。なお、ここでは、正常時の作動の一例を説明する。正常時とは、スレーブ3に異常の生じていないときをいう。
[1-1-3. Example of master and slave operation]
Next, an example of the operation of the
マスタ2は、スケジュールテーブルST0に従って順番にヘッダを送信する(定期送信処理)。
スレーブ3は、マスタ2送信されたヘッダが自ノードを応答ノートとして指定するものである場合に、レスポンスを送信する(レスポンス送信処理)。
The
The
つまり、図5に示すように、バス5には、スケジュールテーブルST0に従い、フレームA1、B1、b2、A2、C1、D1が、順に、繰り返し出力される。
ただし、スレーブ3cまたはスレーブ3bに予め設定されたイベントが発生したときは、イベントが発生したスレーブ3cまたはスレーブ3bがイベントフレームを送信する。
That is, as shown in FIG. 5, the
However, when a preset event occurs in the
[1−1−4.異常ノードの検出]
ところで、仮に、イベントフレームを送信したスレーブ3に何らかの異常が生じていた場合は、このイベントフレームに異常が生じているおそれがある。仮に、イベントフレームに異常が生じていたとすると、異常が生じているイベントフレームを取り込んだ他の正常なスレーブ3が、該イベントフレームを利用して誤った制御を行ってしまう等の問題が生じるおそれがある。
[1-1-4. Abnormal node detection]
By the way, if any abnormality occurs in the
そこで、通信システム1では、マスタ2、及びスレーブ3は、いずれかのスレーブ3に異常が生じた場合に、異常が生じたスレーブ3から送信されるイベントフレームが正常なスレーブ3にて利用されないようにするために、それぞれ、マスタ定期処理、スレーブ定期処理を実行する。以下では、異常が生じたスレーブ3を異常ノードという。
Therefore, in the
[1−2.処理]
[1−2−1.マスタ定期処理]
マスタ2(制御部21)が実行するマスタ定期処理について、図6のフローチャートを用いて説明する。マスタ定期処理は、マスタ2の電源がオンされている間(例えばACCスイッチがオンされている間)、所定の周期で繰り返し実行される。マスタ定期処理は、定期送信処理を実行するとともに、異常が生じたスレーブ3を特定し、異常が生じたスレーブ3から送信されるイベントフレームを他の正常なスレーブ3にて利用されないようにする処理である。
[1-2. processing]
[1-2-1. Master periodic processing]
The master regular process which the master 2 (control part 21) performs is demonstrated using the flowchart of FIG. The master periodic process is repeatedly executed at a predetermined cycle while the power of the
なお、以下の説明文において主語が省略されている場合、制御部21(CPU211)を主語とする。
はじめに、S(ステップ)110では、過剰ウェイクアップ検出処理を実行する。過剰ウェイクアップ検出処理は、スレーブ3が送信したレスポンスに含まれるWUP送信情報に基づいて、異常ノードを特定する処理である。
In addition, when the subject is abbreviate | omitted in the following explanatory note, the control part 21 (CPU211) is made into a subject.
First, in S (step) 110, an excessive wakeup detection process is executed. The excessive wakeup detection process is a process for identifying an abnormal node based on WUP transmission information included in a response transmitted by the
次にS115では、スリープ禁止継続検出処理を実行する。スリープ禁止継続検出処理は、スレーブ3が送信したレスポンスに含まれるスリープ可否情報に基づいて、異常ノードを特定する処理である。
Next, in S115, a sleep prohibition continuation detection process is executed. The sleep prohibition continuation detection process is a process for identifying an abnormal node based on the sleep availability information included in the response transmitted by the
続くS120では、異常ノードが発生したか否かを判断する。具体的には、過剰ウェイクアップ検出処理またはスリープ禁止継続検出処理において異常ノードを特定した場合に、異常ノードが発生したと判断する。異常ノードが発生しなかった場合は処理をS125へ移行させ、異常ノードが発生した場合は処理をS145へ移行させる。 In subsequent S120, it is determined whether or not an abnormal node has occurred. Specifically, when an abnormal node is specified in the excessive wakeup detection process or the sleep prohibition continuation detection process, it is determined that an abnormal node has occurred. If an abnormal node has not occurred, the process proceeds to S125. If an abnormal node has occurred, the process proceeds to S145.
S125では、スリープ条件が成立しているか否かを判断する。ここでは、一例として、スケジュールテーブルST0に示されている1周分の全てのフレームにおけるスリープ可否情報がスリープ許可を示している場合に、スリープ条件が成立していると判断する。スリープ条件が成立していない場合は処理をS130へ移行させ、スリープ条件が成立している場合は処理をS135へ移行させる。 In S125, it is determined whether the sleep condition is satisfied. Here, as an example, it is determined that the sleep condition is satisfied when the sleep enable / disable information in all the frames for one turn shown in the schedule table ST 0 indicates sleep permission. If the sleep condition is not satisfied, the process proceeds to S130, and if the sleep condition is satisfied, the process proceeds to S135.
S125にてスリープ条件が成立していないと判断された場合に移行するS130では、スケジュールテーブルST0に従ってヘッダを送信する定期送信処理を実行する。そして、本マスタ定期処理を終了する。 In S130 the sleep condition at S125 is shifted when it is determined not to be satisfied, to perform periodic transmission process of transmitting the header according to the schedule table ST 0. Then, the master regular process is terminated.
S125にてスリープ条件が成立していると判断された場合に移行するS135では、スリープフレームを送信する。スリープフレームは、バス5に接続されている全てのスレーブ3をスリープ状態に遷移させるためにマスタ2(制御部21)が送信するフレームである。
In S135, which is shifted to when it is determined in S125 that the sleep condition is satisfied, a sleep frame is transmitted. The sleep frame is a frame transmitted by the master 2 (the control unit 21) in order to shift all the
続くS140では、マスタ2の動作状態をウェイクアップ状態からスリープ状態に遷移させる。そして、本マスタ定期処理を終了する。
S120にて異常ノードが発生したと判断されて移行するS145では、異常ノードを応答ノードとするフレーム及び異常ノードのイベントフレームを破棄する設定を行う。具体的には、対応管理テーブルKT0に基づいて、異常ノードを応答ノードとするヘッダ及び異常ノードのイベントフレームのヘッダを特定し、特定したヘッダをRAM213に記録する。
In subsequent S140, the operation state of the
In S145, where it is determined that an abnormal node has occurred in S120 and the process proceeds to S145, a setting is made to discard the frame having the abnormal node as a response node and the event frame of the abnormal node. Specifically, based on the correspondence management table KT 0 , a header having an abnormal node as a response node and an event frame header of the abnormal node are specified, and the specified header is recorded in the
これにより、制御部21は、RAM213に記録されているヘッダに基づいて、異常ノードを応答ノードとするフレーム及び異常ノードのイベントフレームを廃棄することが可能となる。
As a result, the
続くS150では、バス5にエラー通知フレームを送信し、本マスタ定期処理を終了する。エラー通知フレームは、前述の図4に示す対応管理テーブルには記載されていないが、全てのスレーブ3を受信ノードとするフレームである。エラー通知フレームは、データ部に、異常ノードのノード識別番号を含む。この異常ノードのノード識別番号は、特許請求の範囲における識別情報に相当する。
In subsequent S150, an error notification frame is transmitted to the
つまり、本マスタ定期処理では、異常ノードが発生しておらず、且つスリープ条件が成立していない場合に、定期送信処理を実行する(S130)。また、異常ノードが発生しておらず、且つスリープ条件が成立している場合に、マスタ2及びスレーブ3をスリープ状態に遷移させる(S135、S140)。そして、異常ノードが発生している場合に、エラー通知フレームを出力する(S150)。
That is, in the master regular process, the regular transmission process is executed when no abnormal node has occurred and the sleep condition is not satisfied (S130). Further, when no abnormal node has occurred and the sleep condition is satisfied, the
次に、マスタ定期処理のS110で実行される過剰ウェイクアップ検出処理について、図7のフローチャートを用いて説明する。
過剰ウェイクアップ検出処理は、スレーブ3から送信されたレスポンスに含まれるWUP送信情報に基づいて、予め定められた期間である監視期間内に予め定められたウェイクアップ閾値以上の回数、ウェイクアップパルスを送信したスレーブ3を異常ノードとして特定する処理である。
Next, the excessive wakeup detection process executed in S110 of the master regular process will be described with reference to the flowchart of FIG.
The excessive wakeup detection processing is performed based on the WUP transmission information included in the response transmitted from the
過剰ウェイクアップ検出処理では、マスタ2と通信可能に接続されている全てのスレーブ3a、3b、3cごとに、図7のフローチャートに示す処理が実行される。つまり、図7のフローチャートにおける「スレーブx」の記載は、スレーブ3a、3b、3cのそれぞれに置換される。以下では、「スレーブx」がスレーブ3aである場合について説明する。
In the excessive wakeup detection process, the process shown in the flowchart of FIG. 7 is executed for all the
S210では、マスタ2の電源がオンされてから予め定められた時間である監視時間が経過したか否かを判断する。図示していないが、制御部21は、マスタ2の電源がオンされてからの経過時間を測定する処理を本過剰ウェイクアップ検出処理とは別処理として実行しており、本ステップでは該経過時間を取得する。そして、該経過時間が監視時間以上である場合に、監視時間が経過したと判断する。
In S210, it is determined whether or not a monitoring time, which is a predetermined time, has elapsed since the
監視時間は、一例として数時間程度に設定される。ただし、監視時間は、通信システム1に応じて任意に設定されてよい。
監視時間が経過したと判断した場合は処理をS215へ移行させ、経過していないと判断した場合は処理をS220へ移行させる。
The monitoring time is set to about several hours as an example. However, the monitoring time may be arbitrarily set according to the
If it is determined that the monitoring time has elapsed, the process proceeds to S215. If it is determined that the monitoring time has not elapsed, the process proceeds to S220.
S210にて監視時間が経過したと判断された場合に移行するS215では、全てのスレーブ3a〜3cのウェイクアップ回数を初期化する。すなわち、ウェイクアップ回数の値として0を代入する。
In S215, which is shifted to when it is determined in S210 that the monitoring time has elapsed, the number of wakeups of all the
S210にて監視時間が経過したと判断された場合に移行するS220では、ウェイクアップパルスを受信したか否かを判断する。
ウェイクアップパルスを受信しなかったと判断した場合は、本過剰ウェイクアップ検出処理を終了し、受信したと判断した場合は処理をS225へ移行させる。
In S220, which is shifted to when it is determined in S210 that the monitoring time has elapsed, it is determined whether or not a wake-up pulse has been received.
If it is determined that the wake-up pulse has not been received, the excessive wake-up detection process is terminated. If it is determined that the wake-up pulse has been received, the process proceeds to S225.
S225では、スレーブ3aのレスポンスを確認する。具体的にはレスポンスに含まれるWUP送信情報を取得する。
S230では、スレーブ3aがウェイクアップパルスを送信したか否かを判断する。具体的には、WUP送信情報の値が1である場合に、スレーブ3aがウェイクアップパルスを送信したと判断する。スレーブ3aがウェイクアップパルスを送信していない場合は本過剰ウェイクアップ検出処理を終了し、ウェイクアップパルスを送信した場合は処理をS235へ移行させる。
In S225, the response of the
In S230, it is determined whether or not the
S235では、スレーブ3aのウェイクアップ回数をカウントアップする、つまりウェイクアップ回数を1増加させる。
S240では、スレーブ3aのウェイクアップ回数が予め定められた閾値であるウェイクアップ閾値以上であるか否かを判断する。スレーブ3aのウェイクアップ回数がウェイクアップ閾値未満である場合は本過剰ウェイクアップ検出処理を終了し、ウェイクアップ閾値以上である場合は処理をS245へ移行させる。
In S235, the number of wakeups of the
In S240, it is determined whether or not the number of wakeups of the
ウェイクアップ閾値は、スレーブ3aの異常を検出するために、スレーブ3aが正常であるときのウェイクアップ回数を大きく越えた値に設定される。ウェイクアップ閾値は、通信システム1に応じて適当な値に設定されてよい。
The wakeup threshold is set to a value that greatly exceeds the number of wakeups when the
S245では、スレーブ3aを異常ノードとしてRAM213に記録する。そして、本過剰ウェイクアップ検出処理を終了する。
なお、制御部21は、スレーブ3b、スレーブ3cをスレーブxとして、スレーブ3b、スレーブ3cについても同様の処理を実行した後に、マスタ定期処理へ処理を復帰させる。
In S245, the
The
次に、マスタ定期処理のS115で実行されるスリープ禁止継続検出処理について、図8のフローチャートを用いて説明する。
スリープ禁止継続検出処理は、スレーブ3から送信されるレスポンスに含まれるスリープ可否情報に基づいて、予め定められた期間である継続期間以上スリープが禁止されているスレーブ3を異常ノードとして特定する処理である。
Next, the sleep prohibition continuation detection process executed in S115 of the master regular process will be described with reference to the flowchart of FIG.
The sleep prohibition continuation detection process is a process for identifying, as an abnormal node, the
スリープ禁止継続検出処理は、過剰ウェイクアップ検出処理と同様に、マスタ2と通信可能に接続されている全てのスレーブ3a、3b、3cに対して実行される処理である。つまり、図8のフローチャートにおける「スレーブx」の記載は、スレーブ3a、3b、3cのそれぞれに置換される。以下では、「スレーブx」がスレーブ3aである場合について説明する。
The sleep prohibition continuation detection process is a process executed for all the
S310では、スレーブ3aのレスポンスを確認する。具体的にはレスポンスに含まれるスリープ可否情報を取得する。
S315では、スレーブ3aがスリープを許可されているか否かを判断する。具体的には、スリープ可否情報の値が1である場合に、スレーブ3aがスリープを許可されていると判断する。スレーブ3aがスリープを許可されている場合は処理をS335へ移行させ、許可されていない場合は処理をS320へ移行させる。
In S310, the response of the
In S315, it is determined whether or not the
S315にてスレーブ3aがスリープを許可されていない(スリープ禁止)と判断された場合に移行するS320では、スレーブ3aのスリープ禁止タイマが停止中であるか否かを判断する。スリープ禁止タイマは、制御部21が本スリープ禁止継続検出処理とは別処理として実行する処理であり、スレーブ3aがスリープ禁止に設定されている継続時間であるスリープ禁止継続時間を測定する処理である。
In S320, when it is determined in S315 that the
スレーブ3aのスリープ禁止タイマが停止中である場合は処理をS330へ移行させ、作動中である場合は処理をS325へ移行させる。
S320にてスレーブ3aのスリープ禁止タイマが作動中であると判断されて移行するS325では、スレーブ3aのスリープ禁止タイマの処理を継続させる。そして処理をS340へ移行させる。
If the sleep prohibit timer of the
In S325, where it is determined in S320 that the sleep prohibition timer of the
S320にてスレーブ3aのスリープ禁止タイマが停止中であると判断されて移行するS330では、スレーブ3aのスリープ禁止タイマの処理を開始させる。そして処理をS340へ移行させる。
In S320, when it is determined that the sleep prohibition timer of the
S315にてスレーブ3aがスリープを許可されていると判断された場合に移行するS335では、スレーブ3aのスリープ禁止タイマを停止させて、スリープ禁止タイマによる測定値であるスリープ禁止継続時間を初期化する、つまりスリープ禁止継続時間を0にする。そして、処理をS340へ移行させる。
In S335, which is shifted when it is determined in S315 that the
S340では、スレーブ3aのスリープ禁止継続時間が予め定められた閾値である継続閾値以上であるか否かを判断する。スレーブ3aのスリープ禁止継続時間が継続閾値未満である場合は本スリープ禁止継続検出処理を終了し、継続閾値以上である場合は処理をS345へ移行させる。
In S340, it is determined whether the sleep prohibition duration of the
継続閾値は、スレーブ3aの異常を検出するために、スレーブ3aが正常であるときのスリープ禁止継続時間を大きく越えた値に設定される。継続閾値は、通信システム1に応じて適当な値に設定されてよい。
The continuation threshold is set to a value that greatly exceeds the sleep prohibition continuation time when the
S345では、スレーブ3aを異常ノードとしてRAM213に記録する。
なお、制御部21は、スレーブ3b、スレーブ3cをスレーブxとして、スレーブ3b、スレーブ3cについても同様の処理を実行した後に、マスタ定期処理へ処理を復帰させる。
In S345, the
The
[1−2−2.スレーブ定期処理]
次に、スレーブ3(制御部31)が実行する処理であるスレーブ定期処理について、図9のフローチャートを用いて説明する。スレーブ定期処理は、スレーブ3の電源がオンされている間(例えばACCスイッチがオンされている間)、所定の周期で繰り返し実行される。スレーブ定期処理は、フレーム受信処理を実行するとともに、異常ノードを送信元とするイベントフレーム破棄するための処理である。以下では、スレーブ3aを例として説明する。
[1-2-2. Slave periodic processing]
Next, slave regular processing, which is processing performed by the slave 3 (control unit 31), will be described with reference to the flowchart of FIG. The slave periodic process is repeatedly executed at a predetermined cycle while the power supply of the
なお、以下の説明文において主語が省略されている場合、制御部31(CPU311)を主語とする。
S400では、破棄情報としてのエラー通知フレームを受信したか否かを判断する。破棄情報とは、マスタ2から送信される情報であって、自ノードであるスレーブ3a以外の、他のスレーブ3(スレーブ3b、3c)のうちの異常が生じたスレーブ3である異常ノードが送信元となるデータを破棄するための情報をいう。エラー通知フレームを受信した場合に処理をS420へ移行させ、受信していない場合に処理をS430へ移行させる。
In addition, when the subject is abbreviate | omitted in the following explanatory note, the control part 31 (CPU311) is made into a subject.
In S400, it is determined whether or not an error notification frame as discard information has been received. The discard information is information transmitted from the
S400にて破棄情報であるエラー通知フレームを受信した場合に移行するS420では、エラー通知フレームに基づいて、異常ノードを応答ノードとするデータであるイベントフレームを破棄する設定を行う。 In S420, which is shifted to when the error notification frame that is the discard information is received in S400, a setting is made to discard the event frame that is data having the abnormal node as the response node based on the error notification frame.
具体的には、エラー通知フレームに含まれるノード識別番号に基づいて、異常ノードであるスレーブ3を特定する。そして、例えば、スレーブ3bが異常ノードとして特定された場合であれば、一例として図10に示すように、スレーブ3bについての異常フラグをセットする。異常フラグは、セットされている場合に異常ノードであることを示すフラグである。
Specifically, the
そして、対応管理テーブルKT1に基づいて、異常ノードを応答ノードとするヘッダを特定し、特定したヘッダをRAM313に記録する。
S400にてエラー通知フレームを受信していない場合に移行するS430では、受信したフレームが破棄対象であるか否かを判断する。具体的には、受信したフレームのヘッダが、現サイクルより前のS420にて異常ノードを応答ノードとするヘッダであるとしてRAM313に記録されている場合に、破棄対象であると判断する。受信したフレームが破棄対象である場合に処理をS435へ移行させ、破棄対象でない場合に処理をS440へ移行させる。
Then, based on the correspondence management table KT 1 , a header having an abnormal node as a response node is specified, and the specified header is recorded in the
In S430, when the error notification frame is not received in S400, it is determined whether or not the received frame is to be discarded. Specifically, when the header of the received frame is recorded in the
受信したフレームが破棄対象である場合に移行するS435では、受信したフレームを破棄し、本スレーブ定期処理を終了する。
受信したフレームが破棄対象でない場合に移行するS440では、受信フレームがスリープフレームであるか否かを判断する。スリープフレームでない場合は処理をS450へ移行させ、スリープフレームである場合は処理をS460へ移行させる。
In S435, which shifts to the case where the received frame is to be discarded, the received frame is discarded, and this slave periodic processing ends.
In S440, which is shifted when the received frame is not a discard target, it is determined whether or not the received frame is a sleep frame. If it is not a sleep frame, the process proceeds to S450. If it is a sleep frame, the process proceeds to S460.
S440にてスリープフレームでないと判断された場合に移行するS450では、フレーム受信処理を実行し、本スレーブ定期タスクを終了する。
S440にてスリープフレームであると判断された場合に移行するS460では、自ノードをスリープ状態に遷移させ、本スレーブ定期タスクを終了する。
In S450, which is shifted when it is determined in S440 that the frame is not a sleep frame, frame reception processing is executed, and this slave periodic task is terminated.
In S460, which is shifted when it is determined in S440 that the frame is a sleep frame, the local node is shifted to the sleep state, and this slave periodic task is terminated.
次に、このように構成されたマスタ2及びスレーブ3の作動の一例を説明する。マスタ2及びスレーブ3は、スレーブ3のうちいずれのスレーブ3に異常が生じたかを特定可能な情報である特定情報、すなわちスリープ可否情報、WUP送信情報に基づいて、例えば次のように作動する。
Next, an example of the operation of the
スレーブ3bにおいてスリープを許可しない状態が継続閾値以上継続した場合、マスタ2は、バス5にスレーブ3bを異常ノードとして特定したエラー通知フレームを送信する。これにより、このエラー通知フレームが送信された以降は、マスタ2及びスレーブ3a、スレーブ3cでは、異常ノードであるスレーブ3bが送信するイベントフレームは廃棄され、該イベントフレームは受信されない(図4参照)。
When the
また、例えば、スレーブ3bにおいてウェイクアップパルスが送信された回数であるウェイクアップ回数がウェイクアップ閾値以上である場合、マスタ2及びスレーブ3a、3cでは、同様に、異常ノードであるスレーブ3bが送信するイベントフレームは廃棄され、該イベントフレームは受信されない。
For example, when the number of wakeups, which is the number of times the wakeup pulse is transmitted in the
このように構成されたマスタ2及びスレーブ3は、次のように作動する。
マスタ2は、正常時よりも頻繁にウェイクアップパルスを送信しているスレーブ3、又は、正常時よりも長期間にわたって自ノードのスリープを許可しない期間を継続しているスレーブ3を、異常ノードとして特定する。一例として示す図5では、スレーブ3bが正常時よりも長期間にわたって自ノードのスリープを許可しない期間を継続している例を示している。図5の場合、マスタ2は、スレーブ3bを異常ノードとして特定する。
The
The
マスタ2は、異常ノード(図5ではスレーブ3b)以外の他の正常なスレーブ3に、異常ノードから送信されるイベントフレームを破棄させるように、エラー通知フレームを送信する。エラー通知フレームは、異常ノードを応答ノードとするフレームを、正常なスレーブ3に破棄させるためのフレームであるといえる。
The
正常なスレーブ3であるスレーブ3(図5ではスレーブ3a、3c)は、エラー通知フレームの送信というマスタ2の作動に応じて、異常ノードであるスレーブ3bを応答ノードとするイベントフレームを破棄する。
The slave 3 (
[1−3.効果]
以上詳述した第1実施形態によれば、以下の効果が得られる。
[1A]マスタ2(制御部21)は、少なくとも正常なスレーブ3に、異常ノードを応答ノードとするイベントフレームを破棄させる。これによれば、異常ノードを応答ノードとするイベントフレームが他の正常なスレーブ3に利用されることを抑制できる。この結果、異常ノードを応答ノードとするイベントフレームに基づいて他の正常なスレーブ3に対する誤った制御等が行われることを抑制することができる。
[1-3. effect]
According to the first embodiment described in detail above, the following effects can be obtained.
[1A] The master 2 (control unit 21) causes at least a
[1B]マスタ2(制御部21)は、具体的には、異常ノードを特定可能な情報であるノード識別番号を含むエラー通知フレームを送信する。これによれば、スレーブ3側で異常ノードを特定する手段を備える必要が無いため、スレーブ3(制御部31)を簡易に構成できる。
[1B] Specifically, the master 2 (the control unit 21) transmits an error notification frame including a node identification number that is information that can identify an abnormal node. According to this, since it is not necessary to provide a means for identifying an abnormal node on the
[1C]マスタ2(制御部21)は、WUP送信情報を、特定情報として用いる。これによれば、頻繁にウェイクアップパルスを送信することにより通信システム1の省電力化を妨げる状態にあるスレーブ3を、異常ノードとして特定することができる。
[1C] Master 2 (control unit 21) uses WUP transmission information as specific information. According to this, the
[1D]マスタ2(制御部21)は、スリープ可否情報を、特定情報として用いる。これによれば、スリープが許可されない期間の継続により通信システム1の省電力化を妨げる状態にあるスレーブ3を、異常ノードとして特定することができる。
[1D] The master 2 (control unit 21) uses the sleep availability information as specific information. According to this, it is possible to identify the
[1E]スレーブ3(制御部31)は異常ノードを送信元(応答ノード)とするイベントフレームを破棄する。これによれば、正常なスレーブ3において、異常ノードを送信元とするイベントフレームに基づく誤った制御等が行われることを抑制することができる。
[1E] The slave 3 (control unit 31) discards the event frame having the abnormal node as the transmission source (response node). According to this, it is possible to suppress erroneous control or the like based on the event frame having the abnormal node as the transmission source in the
[1F]スレーブ3は、異常ノードを特定可能な情報であるノード識別番号を含むエラー通知フレームに基づいて、異常ノードから送信されるイベントフレームを破棄する。これによれば、異常ノードの特定を簡易に行うことができるため、スレーブ3(制御部31)を簡易に構成できる。
[1F] The
なお、第1実施形態では、マスタ2がマスタ通信装置の一例に相当し、スレーブ3がスレーブ通信装置の一例に相当する。また、制御部21が特定情報取得手段、破棄情報送信手段、としての一例に相当し、S110、S115が特定情報取得手段としての処理の一例に相当し、S150が破棄情報送信手段としての処理の一例に相当する。
In the first embodiment, the
また、制御部31が破棄情報受信手段、データ破棄手段としての一例に相当し、S400が破棄情報受信手段としての処理の一例に相当し、S420がデータ破棄手段としての処理の一例に相当する。また、UWP送信情報及びスリープ可否情報が特定情報としての一例に相当し、異常通知フレームが破棄情報の一例に相当する。
The
[2.第2実施形態]
[2−1.第1実施形態との相違点]
第2実施形態は、基本的な構成は第1実施形態と同様であるため、共通する構成については説明を省略し、相違点を中心に説明する。
[2. Second Embodiment]
[2-1. Difference from the first embodiment]
Since the basic configuration of the second embodiment is the same as that of the first embodiment, the description of the common configuration will be omitted, and the description will focus on the differences.
前述した第1実施形態では、マスタ2は、エラー通知フレームを、正常なスレーブ3に異常が生じたスレーブ3が応答ノード(送信元)となるイベントフレームを破棄させるための情報である破棄情報として送信した。
In the first embodiment described above, the
これに対し、第2実施形態では、マスタ2からヘッダが送信されないスレーブ3を異常ノードであると認識する機能を有するスレーブ3に対して、破棄情報として、異常ノード以外のスレーブ3のみに対してレスポンスを送信させるためのヘッダを送信する点で、第1実施形態と相違する。
On the other hand, in the second embodiment, for the
なお、この相違点によって、本実施形態のマスタ2が実行するマスタ定期処理(図11)では、図6に示すフローチャートに対してS150がS160に置換される点が相違する。また、本実施形態のスレーブ3が実行するスレーブ定期処理(図13)では、図9に示すフローチャートに対してS405、S415、S425が追加され、S400がS410に置換される点が相違する。
Note that this difference is different from the flowchart shown in FIG. 6 in that S150 is replaced with S160 in the master periodic process (FIG. 11) executed by the
[2−2.処理]
[2−2−1.マスタが実行する処理]
本実施形態において、マスタ2(制御部21)が実行するマスタ定期処理について、図11のフローチャートを用いて説明する。
[2-2. processing]
[2-2-1. Process executed by master]
In the present embodiment, the master regular processing executed by the master 2 (control unit 21) will be described with reference to the flowchart of FIG.
制御部21はS160以外は第1実施形態と同様の処理を実行するため、異常ノードが発生した場合(S120;YES)、異常ノードからのフレームの破棄を設定した(S145)後に移行する、S160についてのみ説明する。
Since the
S160では、スケジュール切替処理を実行する。スケジュール切替処理とは、異常ノード以外のスレーブ3のみに対して、つまり、正常なスレーブ3に対してのみ、レスポンスを送信させるためのヘッダを送信する処理である。
In S160, a schedule switching process is executed. The schedule switching process is a process of transmitting a header for transmitting a response only to the
具体的には、スケジュール切替処理では、スケジュールテーブルST0から、異常ノードとして特定されたスレーブ3を応答ノードとするヘッダを削除した、新たなスケジュールテーブルを生成する。
Specifically, the schedule switching process, from the schedule table ST 0, deleting the header to the responding node to the
図12に一例として、スレーブ3bが異常ノードとして特定された場合の、新たなスケジュールテーブルST1を示す。新たなスケジュールテーブルST1では、スケジュールテーブルST0からフレームC1が削除され、マスタ2を応答ノードとするヘッダ(4番目)を送信し、さらに500msが経過した後にスレーブ3cを応答ノードとするヘッダ(5番目)を送信するように設定される。スケジュールテーブルST1は、さらに1000msが経過した後に、マスタ2を応答ノードとするヘッダ(1番目)を送信するように設定される。
As an example in Figure 12, when the
つまり、本実施形態では、異常ノードが発生すると、異常ノードとして特定されたスレーブ3bを応答ノードとするヘッダを削除した、新たなスケジュールテーブルST1を生成する。これにより、新たなスケジュールテーブルST1が設定された以降は、定期送信処理(S130)において、異常ノードとして特定されたスレーブ3bを応答ノードとするヘッダが送信されないようになる。
That is, in the present embodiment, when the failed node is generated, and deletes the header to the responding node to the identified
[2−2−2.スレーブが実行する処理]
次に、本実施形態において、スレーブ3(制御部31)が実行するスレーブ定期処理について、図13のフローチャートを用いて説明する。なお以下では、より具体的な例を説明する必要がある場合には、スレーブ3aを例として説明する。
[2-2-2. Processing executed by the slave]
Next, slave regular processing executed by the slave 3 (control unit 31) in the present embodiment will be described with reference to the flowchart of FIG. In the following description, the
S405では、フレーム途絶検出処理を実行する。フレーム途絶検出処理は、新たなスケジュールテーブルST1に基づいて異常ノードであるスレーブ3にレスポンスを要求するヘッダを送信しないよう設定されたマスタ2が、異常ノードであるスレーブ3以外のスレーブ3に送信したヘッダを破棄情報として受信し、該ヘッダに基づいて異常ノードを特定する処理である。
In S405, a frame break detection process is executed. In the frame interruption detection process, the
つまり、フレーム途絶検出処理は、定期的に受信するはずのフレームの受信が途絶したことを検出する。フレーム途絶検出処理では、受信が途絶したフレームがある場合に通信途絶検出フラグをセットし、受信が途絶したフレームである通信途絶フレームを示す情報をRAM313に記録する。
That is, the frame interruption detection process detects that the reception of a frame that should be received periodically has been interrupted. In the frame interruption detection process, when there is a frame in which reception has been interrupted, a communication interruption detection flag is set, and information indicating a communication interruption frame, which is a frame in which reception has been interrupted, is recorded in the
続くS410では、受信が途絶したフレームがあるか否かを判断する。具体的には、通信途絶検出フラグがセットされている場合に、受信が途絶したフレームがあると判断する。受信が途絶したフレームがある場合に処理をS415へ移行させ、無い場合に処理をS430へ移行させる。 In subsequent S410, it is determined whether there is a frame in which reception is interrupted. Specifically, when the communication interruption detection flag is set, it is determined that there is a frame in which reception has been interrupted. If there is a frame in which reception has been interrupted, the process proceeds to S415, and if not, the process proceeds to S430.
受信が途絶したフレームがある場合に移行するS415では、異常ノードを特定する。具体的には、例えばスレーブ3aは、受信が途絶したフレームのヘッダが0x05である場合は、対応管理テーブルKT1に基づいて、スレーブ3bを異常ノードとして特定する。そして、スレーブ3bの異常フラグをセットする(図10参照)。
In S415, where there is a frame in which reception has been interrupted, an abnormal node is identified. Specifically, the
次にS420では、図9に示すS420と同様に、S415にて特定された異常ノードを応答ノードとするフレームを破棄する設定を行う。
続くS425では、通信途絶検出フラグをリセットし、本スレーブ定期処理を終了する。
Next, in S420, similarly to S420 shown in FIG. 9, a setting is made to discard a frame that uses the abnormal node identified in S415 as a response node.
In subsequent S425, the communication interruption detection flag is reset, and the slave periodic processing is terminated.
なお、受信が途絶したフレームがある場合に移行するS430以降は、図9と同様の処理を実行する。
次に、スレーブ定期処理のS405で実行されるフレーム途絶検出処理について、図14のフローチャートを用いて説明する。フレーム途絶検出処理は、スレーブ3の対応管理テーブルに設定されている定期フレームのそれぞれについて、フレームの受信の途絶があったか否かを検出するための処理である。具体的には、例えばスレーブ3aの場合、対応管理テーブルKT1に基づいて、フレームA1、B1、B2、C1、D1のそれぞれについて、フレーム途絶検出処理を実行した後に、スレーブ定期処理へ処理を復帰させる。
It should be noted that the same processing as in FIG. 9 is executed after S430 when there is a frame in which reception is interrupted.
Next, the frame interruption detection process executed in S405 of the slave periodic process will be described with reference to the flowchart of FIG. The frame interruption detection process is a process for detecting whether or not there has been a frame reception interruption for each of the periodic frames set in the correspondence management table of the
S510では、フレームを正常に受信したか否かを判断する。ヘッダ及びレスポンスの両方を正常に受信した場合に、フレームを正常に受信したと判断する。フレームを正常に受信した場合に処理をS530へ移行させ、正常に受信しなかった場合に処理をS515へ移行させる。 In S510, it is determined whether the frame is normally received. When both the header and the response are normally received, it is determined that the frame is normally received. If the frame is normally received, the process proceeds to S530. If the frame is not normally received, the process proceeds to S515.
S510にてフレームを正常に受信しなかったと判断された場合に移行するS515では、フレームの通信途絶タイマが停止中であるか否かを判断する。以下では、フレームA1をフレームの一例として説明する。 In S515, which is shifted when it is determined in S510 that the frame has not been normally received, it is determined whether or not the frame communication interruption timer is stopped. Hereinafter, the frame A1 will be described as an example of the frame.
フレームA1の通信途絶タイマが停止中である場合は処理をS525へ移行させ、作動中である場合は処理をS520へ移行させる。通信途絶タイマは、制御部31が本フレーム途絶検出処理とは別処理として実行する処理であり、フレームA1が受信されてから次に受信されるまでの時間である通信途絶時間を測定する処理である。
If the communication interruption timer of frame A1 is stopped, the process proceeds to S525, and if it is in operation, the process proceeds to S520. The communication interruption timer is a process executed by the
S515にてフレームA1の通信途絶タイマが作動中であると判断されて移行するS520では、フレームA1の通信途絶タイマの処理を継続させる。そして処理をS535へ移行させる。 In S520, where it is determined that the communication interruption timer for the frame A1 is operating in S515 and the process proceeds to S520, the processing of the communication interruption timer for the frame A1 is continued. Then, the process proceeds to S535.
S515にてフレームA1の通信途絶タイマが停止中であると判断されて移行するS525では、通信途絶タイマの処理を開始させる。そして処理をS535へ移行させる。
S510にてフレームを正常受信したと判断されて移行するS530では、フレームA1の通信途絶タイマを停止させて、通信途絶時間を初期化する、つまり測定値を0にする。そして、処理をS535へ移行させる。
In S525, where it is determined that the communication interruption timer of the frame A1 is stopped in S515, the process of the communication interruption timer is started. Then, the process proceeds to S535.
In S530, where it is determined that the frame has been normally received in S510, and the communication interruption timer of the frame A1 is stopped, the communication interruption time is initialized, that is, the measured value is set to zero. Then, the process proceeds to S535.
S535では、フレームA1が受信が途絶したフレームであるか否かを判断する。具体的には、通信途絶時間が予め定められた判定期間である通信途絶閾値以上である場合に、フレームA1が、受信が途絶したフレームであると判断する。通信途絶閾値は、例えば、スケジュールテーブルST0を一巡する期間の十〜数十倍というように、フレームA1が受信される周期よりも十分長い時間に設定される。ただし、通信途絶閾値は、通信システム1に応じて任意の値に設定されてよい。
In S535, it is determined whether or not the frame A1 is a frame in which reception is interrupted. Specifically, when the communication interruption time is equal to or greater than a communication interruption threshold which is a predetermined determination period, it is determined that the frame A1 is a frame in which reception is interrupted. Communication interruption threshold, for example, so on ten to several tens of times the period for one cycle of the schedule table ST 0, is set to a sufficiently longer time than the period in which the frame A1 is received. However, the communication interruption threshold may be set to an arbitrary value according to the
受信が途絶したフレームであると判断された場合に処理をS540へ移行させ、受信が途絶したフレームであると判断されなかった場合に本フレーム途絶検出処理を終了する。
S540では、フレームA1を通信途絶フレームとしてRAM313に記録する。
If it is determined that the received frame is interrupted, the process proceeds to S540. If it is not determined that the received frame is interrupted, the present frame interrupt detection process is terminated.
In S540, the frame A1 is recorded in the
S545では、通信途絶検出フラグをセットする。そして、本フレーム途絶検出処理を終了する。
そして、このようにフレームA1についてのフレーム途絶検出処理を終了した後は、前述のように、フレームB1、B2、C1、D1のそれぞれについても同様にフレーム途絶検出処理を実行した後に、スレーブ定期処理へ処理を復帰させる。
In S545, a communication interruption detection flag is set. Then, the frame interruption detection process is terminated.
After the frame break detection process for the frame A1 is completed in this way, as described above, the frame break detection process is similarly performed for each of the frames B1, B2, C1, and D1, and then the slave periodic process is performed. Return processing to.
このように構成されたスレーブ3の作動について説明する。一例としてスレーブ3aでは、通信途絶閾値で示される判定期間内にヘッダ0x05が受信されない場合、次のように作動する。
The operation of the
つまり、スレーブ3aは、通信途絶閾値で示される判定期間内にヘッダ0x05が受信されない場合、すなわちフレームC1が受信されない場合、スレーブ3bを異常ノードとして特定する(S415)。そして、スレーブ3aは、スレーブ3bを異常ノードとして特定した以降は、異常ノードであるスレーブ3bが送信するイベントフレームを受信しないように、つまり廃棄するように作動する(S435)。
That is, when the header 0x05 is not received within the determination period indicated by the communication interruption threshold, that is, when the frame C1 is not received, the
[2−3.効果]
以上詳述した第2実施形態によれば、前述した第1実施形態の効果[1A]、[1C]〜[1E]に加え、以下の効果が得られる。
[2-3. effect]
According to the second embodiment described in detail above, the following effects are obtained in addition to the effects [1A] and [1C] to [1E] of the first embodiment described above.
[2A]スレーブ3は、マスタ2がヘッダを送信しないスレーブ3を異常ノードとして認識するよう構成されている。マスタ2は、スケジュールテーブルに基づいて、破棄情報として、異常ノード以外のスレーブ3のみに対してレスポンスを送信させるための送信指令であるヘッダを送信する(S160)。
[2A] The
これによれば、第1実施形態におけるエラー通知フレームを用いること無く異常ノードの特定が可能になるため、エラー通知フレームに割り当てられていたヘッダを他の制御等に用いることができる。 According to this, since an abnormal node can be identified without using the error notification frame in the first embodiment, the header assigned to the error notification frame can be used for other control and the like.
[2B]マスタ2は異常ノードにヘッダを送信しないように構成される。スレーブ3は、このように構成されたマスタ2から異常ノード以外のスレーブ3に送信されたヘッダを破棄情報として受信する(S405)。スレーブ3は、破棄情報としての前述のように送信されたヘッダに基づいて、通信途絶閾値で表される期間である判定期間以内にマスタ2からヘッダが送信されなかったスレーブ3を異常ノートとして特定する(S415)。そして、スレーブ3は、異常ノードとして特定されたスレーブ3が送信元となるイベントデータを破棄するよう設定する。
[2B] The
これによれば、上記[2A]と同様の効果が奏される。
なお、第2実施形態では、S160が破棄情報送信手段の処理としての一例に相当し、S405(S510)が破棄情報受信手段の処理としての一例に相当し、S415が異常装置特定手段としての一例に相当する。
According to this, the same effect as the above [2A] is obtained.
In the second embodiment, S160 corresponds to an example of processing of the discard information transmitting unit, S405 (S510) corresponds to an example of processing of the discard information receiving unit, and S415 is an example of abnormal device specifying unit. It corresponds to.
[3.他の実施形態]
以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されることなく、種々の形態を採り得ることは言うまでもない。
[3. Other Embodiments]
As mentioned above, although embodiment of this invention was described, it cannot be overemphasized that this invention can take a various form, without being limited to the said embodiment.
[3A]上記実施形態では、スレーブ3は、イベントが発生したときにイベントフレームを送信する構成であった。具体的には、スレーブ3は、イベントが発生したときに、バス5が該バス5上へのフレームの出力が行われていないアイドル状態となった場合に、イベントフレームを送信するように構成されてもよい。または、スレーブ3は、マスタ2からイベントフレームの送信を許可する情報がバス5に出力されている場合に、イベントフレームを送信するように構成されてもよい。
[3A] In the above embodiment, the
[3B]通信システム1にて用いられるフレーム構成を一例として図2に示したが、フレーム構成はこれに限るものではなく、通信システム1に応じて適宜設定されてよい。
[3C]通信システム1は、マスタ−スレーブ方式やCSMA/CA方式やこれらを融合した方式であるCXPI(Clock Extension Peripheral Interface)方式等に従って作動する通信システムであってよい。
[3B] Although the frame configuration used in the
[3C] The
[3D]上記実施形態における1つの構成要素が有する機能を複数の構成要素として分散させたり、複数の構成要素が有する機能を1つの構成要素に統合させたりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。なお、特許請求の範囲に記載した文言のみによって特定される技術思想に含まれるあらゆる態様が本発明の実施形態である。 [3D] The functions of one constituent element in the above embodiment may be distributed as a plurality of constituent elements, or the functions of a plurality of constituent elements may be integrated into one constituent element. Moreover, you may abbreviate | omit a part of structure of the said embodiment. In addition, at least a part of the configuration of the above embodiment may be added to or replaced with the configuration of the other embodiment. In addition, all the aspects included in the technical idea specified only by the wording described in the claim are embodiment of this invention.
[3E]本発明は、前述した通信システム1、マスタ2、スレーブ3、制御部21、制御部31、当該制御部21または制御部31を機能させるためのプログラム、このプログラムを記録した媒体、通信方法など、種々の形態で実現することができる。
[3E] The present invention relates to the
1…通信システム 2…マスタ 3…スレーブ 21…制御部 31…制御部 211…CPU 311…CPU。
DESCRIPTION OF
Claims (5)
当該マスタ通信装置によってデータを送信すべき装置が指定された指令を表す送信指令に応じてデータを送信し、かつ当該マスタ通信装置からの送信指令が無い場合であっても予め設定された送信条件が成立したときにデータを送信する通信装置をスレーブ通信装置として、前記複数のスレーブ通信装置のうちいずれのスレーブ通信装置に異常が生じたかを特定可能な特定情報を取得する特定情報取得手段(S110、S115)と、
前記特定情報に基づいて、異常が生じたスレーブ通信装置を表す異常装置が送信元となるデータを破棄させるための破棄情報を、少なくとも該異常装置以外のスレーブ通信装置に送信する破棄情報送信手段(S150、S160)と、
を備え、
前記特定情報取得手段(S110)は、前記スレーブ通信装置がウェイクアップパルスを送信した否かを示す情報であるウェイクアップパルス送信情報を前記特定情報として取得する
ことを特徴とするマスタ通信装置 A master communication device (2) connected to be able to communicate with a plurality of slave communication devices (3) via a bus (5),
A transmission condition that is set in advance even when the master communication device transmits data in response to a transmission command that represents a command in which a device to which data is to be transmitted is specified, and there is no transmission command from the master communication device Specific information acquisition means (S110) for acquiring specific information that can specify which slave communication device out of the plurality of slave communication devices is abnormal, with the communication device that transmits data when is established as a slave communication device. , S115),
Discard information transmission means for transmitting, to at least slave communication devices other than the abnormal device, discard information for causing the abnormal device representing the slave communication device in which the abnormality has occurred to discard data that is a transmission source based on the specific information S150, S160),
With
The specific information acquisition means (S110) acquires, as the specific information, wakeup pulse transmission information that is information indicating whether or not the slave communication device has transmitted a wakeup pulse.
当該マスタ通信装置によってデータを送信すべき装置が指定された指令を表す送信指令に応じてデータを送信し、かつ当該マスタ通信装置からの送信指令が無い場合であっても予め設定された送信条件が成立したときにデータを送信する通信装置をスレーブ通信装置として、前記複数のスレーブ通信装置のうちいずれのスレーブ通信装置に異常が生じたかを特定可能な特定情報を取得する特定情報取得手段(S110、S115)と、
前記特定情報に基づいて、異常が生じたスレーブ通信装置を表す異常装置が送信元となるデータを破棄させるための破棄情報を、少なくとも該異常装置以外のスレーブ通信装置に送信する破棄情報送信手段(S150、S160)と、
を備え、
前記特定情報取得手段(S115)は、前記スレーブ通信装置のスリープが許可されているか禁止されているかを示す情報であるスリープ可否情報を前記特定情報として取得する
ことを特徴とするマスタ通信装置 A master communication device (2) connected to be able to communicate with a plurality of slave communication devices (3) via a bus (5),
A transmission condition that is set in advance even when the master communication device transmits data in response to a transmission command that represents a command in which a device to which data is to be transmitted is specified, and there is no transmission command from the master communication device Specific information acquisition means (S110) for acquiring specific information that can specify which slave communication device out of the plurality of slave communication devices is abnormal, with the communication device that transmits data when is established as a slave communication device. , S115),
Discard information transmission means for transmitting, to at least slave communication devices other than the abnormal device, discard information for causing the abnormal device representing the slave communication device in which the abnormality has occurred to discard data that is a transmission source based on the specific information S150, S160),
With
The specific information acquisition unit (S115) acquires sleep permission / prohibition information, which is information indicating whether sleep of the slave communication device is permitted or prohibited, as the specific information.
前記破棄情報送信手段(S150)は、前記破棄情報に、前記特定情報にて特定された異常装置を識別するための識別情報を含めて送信する
ことを特徴とするマスタ通信装置。 The master communication device according to claim 1 or 2,
The discard information transmitting means (S150) transmits the discard information including identification information for identifying the abnormal device specified by the specific information.
前記破棄情報送信手段(S160)は、当該マスタ通信装置から前記送信指令が送信されないスレーブ通信装置を前記異常装置であると認識する機能を有するスレーブ通信装置に対して、前記破棄情報として、前記異常装置以外のスレーブ通信装置のみに対して、データを送信させるための送信指令を送信する
ことを備えることを特徴とするマスタ通信装置。 The master communication device according to claim 1 or 2,
The discard information transmitting means (S160) provides, as the discard information, the abnormal information for the slave communication device having a function of recognizing that the slave communication device to which the transmission command is not transmitted from the master communication device is the abnormal device. A master communication device comprising: transmitting a transmission command for transmitting data only to a slave communication device other than the device.
前記異常装置が送信元となるデータを破棄するための破棄情報を前記マスタ通信装置から受信する破棄情報受信手段であって、前記マスタ通信装置が前記異常装置以外の前記スレーブ通信装置に送信した前記送信指令を前記破棄情報として受信する破棄情報受信手段(S400、S405)と、
前記破棄情報に基づいて、予め定められた期間である判定期間内に、前記マスタ通信装置が前記送信指令を送信しなかったスレーブ通信装置を前記異常装置として特定する異常装置特定手段(S415)と、
前記破棄情報に基づいて、前記異常装置特定手段によって前記異常装置として特定された前記スレーブ通信装置が送信元となるデータを破棄するよう設定するデータ破棄手段(S420)と、
を備えることを特徴とするスレーブ通信装置。 A communication system including a master communication device and a plurality of slave communication devices, wherein the master communication device transmits a transmission command in which a device to which data is to be transmitted is specified, and the slave communication device transmits data according to the transmission command. And the slave communication device transmits data when a preset transmission condition is satisfied even when there is no transmission command from the master communication device. The slave communication device used in a communication system that does not transmit the transmission command to an abnormal device representing a slave communication device in which an abnormality has occurred among slave communication devices,
Discard information receiving means for receiving, from the master communication device, discard information for discarding data from which the abnormal device is a transmission source, wherein the master communication device has transmitted to the slave communication device other than the abnormal device Discard information receiving means (S400, S405) for receiving a transmission command as the discard information;
An abnormal device specifying means (S415) for specifying, as the abnormal device, a slave communication device that has not transmitted the transmission command by the master communication device within a determination period that is a predetermined period based on the discard information; ,
Based on the discard information, a data discarding unit (S420) for setting the slave communication device identified as the abnormal device by the abnormal device identifying unit to discard the data to be transmitted;
A slave communication device comprising:
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015178363A JP6569407B2 (en) | 2015-09-10 | 2015-09-10 | Master communication device and slave communication device |
| DE102016217038.4A DE102016217038B4 (en) | 2015-09-10 | 2016-09-07 | MASTER COMMUNICATION DEVICE AND SLAVE COMMUNICATION DEVICE |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015178363A JP6569407B2 (en) | 2015-09-10 | 2015-09-10 | Master communication device and slave communication device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017055289A JP2017055289A (en) | 2017-03-16 |
| JP6569407B2 true JP6569407B2 (en) | 2019-09-04 |
Family
ID=58160743
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015178363A Expired - Fee Related JP6569407B2 (en) | 2015-09-10 | 2015-09-10 | Master communication device and slave communication device |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP6569407B2 (en) |
| DE (1) | DE102016217038B4 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7200812B2 (en) * | 2019-04-15 | 2023-01-10 | 株式会社デンソー | Communication systems, electronic devices and repeaters |
| JP7852492B2 (en) | 2022-12-27 | 2026-04-28 | トヨタ自動車株式会社 | Information processing system, information processing program, and information processing method |
| CN120934929B (en) * | 2025-10-11 | 2026-01-27 | 山东云海国创云计算装备产业创新中心有限公司 | Communication method, electronic device, computer program product, and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01258522A (en) * | 1988-04-08 | 1989-10-16 | Ricoh Co Ltd | Network failure diagnosis/recovery method |
| JP2007312043A (en) | 2006-05-17 | 2007-11-29 | Omron Corp | Remote I / O system |
| JP5617875B2 (en) | 2012-08-10 | 2014-11-05 | 株式会社デンソー | In-vehicle network system |
| JP6375979B2 (en) | 2015-02-10 | 2018-08-22 | 株式会社デンソー | Communication device |
-
2015
- 2015-09-10 JP JP2015178363A patent/JP6569407B2/en not_active Expired - Fee Related
-
2016
- 2016-09-07 DE DE102016217038.4A patent/DE102016217038B4/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017055289A (en) | 2017-03-16 |
| DE102016217038B4 (en) | 2022-11-17 |
| DE102016217038A1 (en) | 2017-03-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107409081B (en) | Abnormality detection method, abnormality detection electronic control unit, and abnormality detection system | |
| EP1879326B1 (en) | Communication network system and wakeup method for un-wakeup node | |
| CN108900313B (en) | Network management method and system based on CAN bus | |
| JP6569407B2 (en) | Master communication device and slave communication device | |
| WO2008069564A1 (en) | Sensor node of wireless sensor networks and operating method thereof | |
| JP2019084942A (en) | Electronic control apparatus | |
| US20190132105A1 (en) | Parent node device, terminal device for wireless network and data transmission method thereof | |
| JP6375979B2 (en) | Communication device | |
| JP2024020459A (en) | In-vehicle device, program and information processing method | |
| JP5928358B2 (en) | Information processing device, monitoring device, control device | |
| JP6332040B2 (en) | Communication system and submaster node | |
| JP6477438B2 (en) | Communication apparatus and communication system | |
| US11645089B2 (en) | Network system | |
| CN121425105A (en) | An ECU operation control method, device, and electronic device | |
| CN118963844B (en) | Memory optimization method, device, equipment and readable storage medium for vehicle-mounted chips | |
| JP2008107914A (en) | Microcomputer, program, and electronic control device for vehicle | |
| JP2016058944A (en) | node | |
| JP4083598B2 (en) | Network system | |
| US9483105B2 (en) | Communication system and electronic control unit | |
| JP6488982B2 (en) | Electronic control unit | |
| JP6451399B2 (en) | Relay device | |
| US20140105081A1 (en) | Communication network system | |
| JP2008222051A (en) | Microcomputer, program, electronic control device, and communication system | |
| JP6520729B2 (en) | Communication device | |
| JP6984178B2 (en) | Communication device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180112 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20181114 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20181120 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190109 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190416 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190515 |
|
| 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: 20190709 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190722 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6569407 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |