JP6365876B2 - node - Google Patents
node Download PDFInfo
- Publication number
- JP6365876B2 JP6365876B2 JP2014185079A JP2014185079A JP6365876B2 JP 6365876 B2 JP6365876 B2 JP 6365876B2 JP 2014185079 A JP2014185079 A JP 2014185079A JP 2014185079 A JP2014185079 A JP 2014185079A JP 6365876 B2 JP6365876 B2 JP 6365876B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- node
- unit
- communication
- acquired
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、通信バスに接続されたノードに関する。 The present invention relates to a node connected to a communication bus.
車両の各部に搭載され、車内LANなどの通信バスを介して接続されるECU(「ノード」ともいう)は、通信管理上の必要から、同じ機能を持つECUであっても、それぞれ固有のIDを付与している。 ECUs (also referred to as “nodes”) mounted on each part of the vehicle and connected via a communication bus such as an in-vehicle LAN have unique IDs even if the ECUs have the same function because of communication management needs. Is granted.
通信バスに接続される1つのマスタと2つ以上のスレーブとで構成される通信ネットワークシステムにおいて、バスに接続するスレーブの数が増加する場合でも、必要な信号線数を増加させることなく、ネットワーク上で異なるIDを確実に付与することを可能とする通信ネットワークシステムのID割付け方法が考案されている(特許文献1参照)。 In a communication network system composed of one master and two or more slaves connected to a communication bus, even if the number of slaves connected to the bus increases, the network is not increased without increasing the number of necessary signal lines. There has been devised an ID assignment method for a communication network system that can reliably assign different IDs (see Patent Document 1).
また、1つのマスタと複数のスレーブとを、高電位側、低電位側の一対の通信バスでデイジーチェーン接続して構成される通信ネットワークに使用されるスレーブにおいて、高電位側バスの下流側に挿入される抵抗素子の上流側端子と、低電位側バスとの電位差のレベルに応じて、マスタと通信を行うためのIDを設定する通信用スレーブが考案されている(特許文献2参照)。 In a slave used in a communication network configured by daisy chaining one master and a plurality of slaves with a pair of communication buses on the high potential side and the low potential side, on the downstream side of the high potential bus A communication slave has been devised in which an ID for communicating with the master is set in accordance with the level of the potential difference between the upstream terminal of the inserted resistance element and the low potential bus (see Patent Document 2).
従来技術では、通信ネットワークシステム内で、ノイズ等の一時的な外乱によって一部のノードのIDが異常なものになった場合、該ノードの不作動や、他の正常なノードの動作の支障となる虞がある。また、従来技術では、エンジン始動時など特定の動作時にしか復帰動作を行えず、その場合も正常なIDのノードもIDの割り振りをし直すので、別のノードのIDの異常なものになる可能性もある。 In the prior art, when the IDs of some nodes become abnormal due to a temporary disturbance such as noise in the communication network system, the failure of the nodes or the trouble of the operation of other normal nodes There is a risk of becoming. Also, with the conventional technology, the return operation can be performed only during a specific operation such as when the engine is started, and even in this case, the normal ID node also reassigns the ID, so that the ID of another node can be abnormal. There is also sex.
特許文献1、2とも、1つのマスタノードと複数のスレーブノードを有する構成である。しかし、ノードのIDをソフトウエア、または接続されるハードウエア(ワイヤハーネス等)で判別・設定するといった、マスタノードの存在しない構成には適用できない。 Both Patent Documents 1 and 2 are configured to have one master node and a plurality of slave nodes. However, the present invention is not applicable to a configuration in which a master node does not exist, such as determining and setting the node ID by software or connected hardware (wire harness or the like).
上記問題点を背景として、本発明は、コスト増大を抑制する簡易な方法でIDの自動的な再設定を可能とするノードを提供する。 Against the background of the above problems, the present invention provides a node that enables automatic resetting of an ID by a simple method that suppresses cost increase.
上記課題を解決するためのノードは、通信バスに接続されたノードであって、ノードを識別するためのIDを取得するID取得部と、通信バスを介してデータの通信を行う通信部と、データの通信状態を監視する監視部と、監視したデータの通信状態に基づいて、取得したIDが適正なものか否かを判定するID判定部と、を備え、ID判定部が、取得したIDが適正なものでないと判定したとき、ID取得部は、IDを再取得する。 A node for solving the above problem is a node connected to a communication bus, an ID acquisition unit that acquires an ID for identifying the node, a communication unit that performs data communication via the communication bus, A monitoring unit that monitors the communication state of the data, and an ID determination unit that determines whether or not the acquired ID is appropriate based on the communication state of the monitored data. When it is determined that is not appropriate, the ID acquisition unit reacquires the ID.
IDが異常なものになると、当該ノードの動作が正常でなくなるだけではなく、他の正常なノードへ影響を及ぼすこともある。本発明では、IDが異常なものになることで起こることが予想される通信上のエラーを各ノードで検出することで、ノード単位でIDの自動復帰を実施できる。これにより、IDが異常となったノードによる、IDが正常であるノードへの影響を低減でき、通信ネットワークシステム(通信バスと、通信バスに接続されたノードを含んで構成されるもの)の信頼性向上が期待できる。また、IDが異常な状態から復帰させるには、従来ではエンジンの停止やバッテリのつなぎ直しが必要であったが、本発明では自動復帰するのでそれらの操作が不要になる。 If the ID becomes abnormal, not only does the operation of the node become abnormal, but it may also affect other normal nodes. In the present invention, automatic recovery of ID can be performed on a node-by-node basis by detecting at each node a communication error that is expected to occur due to an abnormal ID. As a result, the influence of the node having the abnormal ID on the node having the normal ID can be reduced, and the communication network system (including the communication bus and the node connected to the communication bus) can be trusted. Can be expected. Further, in order to recover the ID from an abnormal state, it has been conventionally necessary to stop the engine or reconnect the battery. However, in the present invention, since the automatic recovery is performed, these operations are unnecessary.
図1に、本発明のノードが通信バス60に接続された、例えば車両における通信ネットワークシステム1を示す。通信バス60にマスタノード10、ノード20、30、40、50が接続されている。ノード(20、30、40、50の総称、以下同じ)は、スレーブノードに相当する。図1では、各ノードは、LINプロトコルにしたがって通信を行う。ノード20、30、40、50には、それぞれ、ノード識別のためのIDとして、A、B、C、Dが割り当てられている。
FIG. 1 shows a communication network system 1 in a vehicle, for example, in which a node of the present invention is connected to a
LINプロトコルでは、マスタノード10が全体の通信を制御するマスタ−スレーブ方式を用いる。マスタノード10は、送信するIDや送信の順番、送信する時間間隔が定義されたLINスケジュールに基づいて、LINネットワーク全体の通信の制御を行う。マスタノード10は、LINスケジュールに基づいて、通信バス60に送信要求「トークン」を送信する。ノードは、マスタノード10から送信されるトークンを監視し、「トークン」にしたがって、データを送信するノードがトークンの後にデータを送信する。
The LIN protocol uses a master-slave system in which the
上述の構成が、「通信バスにはマスタノードが接続され、ノードは、スレーブノードとして動作し、通信部は、LINプロトコルにしたがって、マスタノードと通信を行う」ものである。本構成によって、LINプロトコルを用いたマスタ−スレーブ方式の通信ネットワークシステムにおいても、本発明の構成を適用できる。 The above configuration is “a master node is connected to the communication bus, the node operates as a slave node, and the communication unit communicates with the master node according to the LIN protocol”. With this configuration, the configuration of the present invention can be applied to a master-slave type communication network system using the LIN protocol.
図2に、通信ネットワークシステム1の構成の別例を示す。図2の例は、CAN(Controller Area Network)のような、ライン型構造で通信バス60に接続されるノード(20、30、40、50)に、平等なバスアクセスが可能な「マルチマスタ方式」を用いている。また、IDの割り当ては、図1と同様である。本構成が、「ノードと通信バスは、マルチマスタ方式の通信ネットワークシステムを構成する」ものである。本構成によって、マルチマスタ方式の通信ネットワークシステムにおいても、本発明の構成を適用できる。
FIG. 2 shows another example of the configuration of the communication network system 1. The example of FIG. 2 is a “multi-master method” that enables equal bus access to nodes (20, 30, 40, 50) connected to the
図3に、ノード20の構成例を示す。ノード20は、演算部21(本発明のID取得部、監視部、ID判定部)、入力回路22、ドライバ回路23、通信I/F24(本発明の通信部、監視部、ID取得部)、メモリ25、ID設定部26を含む。
FIG. 3 shows a configuration example of the
演算部21は、CPUおよび周辺回路等を含む構成としてもよいし、論理回路等を含む1つあるいは複数のICあるいはASIC等としてハードウエア的に構成されていてもよい。
The
入力回路22は、スイッチ群27およびセンサ群28からの入力信号の波形整形やA/D変換等の信号処理を行う。ドライバ回路23は、アクチュエータ群29を駆動制御する。通信I/F24は、通信バス60を介して他のノードとのデータ通信を行うための通信インターフェース回路である。メモリ25は、例えば、不揮発性記憶媒体であるフラッシュメモリを含み、ノード20の動作に必要なデータを記憶する。
The
ID設定部26は、ハードウエアの状態に基づいてIDを取得するためのもので、例えば、ディップスイッチ群、または、電源側あるいは接地側に接続された抵抗素子を含む。ID設定部26は、演算部21のID設定用端子に接続され、演算部21がID設定部26の状態を検出することでIDを取得する。例えば、ID設定用端子毎にショート(接地側に接続)またはオープン(電源側に接続)の2通りに切り替え設定するので、ID設定端子数の2乗分のノードを識別できる。
The
上述の構成が、「IDを設定するID設定部を備え、ID取得部は、ID設定部からIDを取得する」ものである。本構成によって、通信ネットワークシステムの構成形態によらず、また、他のノードの動作状態によらず、確実にIDを取得することができる。 The above-described configuration is “including an ID setting unit for setting an ID, and the ID acquisition unit acquires an ID from the ID setting unit”. With this configuration, it is possible to reliably acquire an ID regardless of the configuration form of the communication network system and regardless of the operating state of other nodes.
ノード20には、ユーザが操作入力を行うスイッチ群27、例えば、回転センサ、圧力センサ、温度センサ等を含むセンサ群28、例えば、モータ,ソレノイド等を含むアクチュエータ群29が接続される。
The
上記構成により、ノード20は、通信バス60を介して受信したマスタノード10からの制御指令あるいは他のノードから取得したデータ、入力回路33を介して取得したスイッチ群27、センサ群28、およびアクチュエータ群29の動作状態に基づいて動作制御指令値を演算し、ドライバ回路23を介してアクチュエータ群29の駆動制御を行う。
With the above configuration, the
ノード(30、40、50)も、ノード20と概ね同様の構成であるが、ノードの実現する機能によって、構成(スイッチ群、センサ群、アクチュエータ群の有無あるいは構成内容)は異なる。
The nodes (30, 40, 50) have substantially the same configuration as that of the
図4に、ノード20(他のノードも同様)のメモリ25に記憶された制御プログラムに含まれ、演算部21で実行するID取得処理を示す。まず、ノード20をバッテリに接続したとき、車両の原動機(エンジンまたはモータ)を始動許可状態とするイグニッションスイッチがオン状態に変化したとき、あるいは、ノード20を通信バス60に接続したときなど(すなわち、ID取得タイミング)に、以下のいずれかの方法を用いてIDを取得する(S11)。取得したIDは、メモリ25の所定領域に記憶する。
FIG. 4 shows an ID acquisition process included in the control program stored in the
(ハードウエアの状態に基づいてIDを取得)
・上述したように、演算部21がID設定部26の状態を検出することでIDを取得する。
(Acquire ID based on hardware status)
As described above, the
(ソフトウエアによりIDを取得)
・メモリ25に予めIDを記憶し、ID取得タイミングで読み出して取得する。この場合、メモリ25が、本発明のID設定部に相当する。
・図1の構成のとき、マスタノード10に各ノードのIDが記憶される。ノード20は、ID取得タイミングでマスタノード10に、ノード情報(例えば、メーカ情報や機能情報)を送信し、マスタノード10から自ノードのIDを受信して取得する。本構成が、「ID取得部は、マスタノードからIDを取得する」ものである。本構成によって、ノード(スレーブノード)は、自らのIDを保持する必要がなく、ID設定部が不要となる。また、通信ネットワークシステム上のノードに対するID設定の自由度が高くなり、マスタノードが適宜スレーブノードのIDを設定(変更を含む)できる。
(Acquire ID by software)
An ID is stored in advance in the
In the configuration of FIG. 1, the ID of each node is stored in the
次に、データ送信状態監視用のタイマA、および、データ受信状態監視用のタイマBをリセット(ゼロクリア)して、計測を開始する(S12)。 Next, the timer A for monitoring the data transmission state and the timer B for monitoring the data reception state are reset (zero cleared), and measurement is started (S12).
次に、データ送信状態を監視し、データ送信が正しく行われているか否かを判定する。送信データは通信I/F24に含まれるバッファ24a(本発明のデータ格納部)に格納され、通信バス60に送信される。通信I/F24あるいは演算部21は、バッファ24aに格納された送信データと、通信バス60をサンプリングしたデータ(すなわち、実際に送信されたデータ)との相違をチェックし、相違があればデータ送信が正しく行われなかったと判定する。
Next, the data transmission state is monitored to determine whether or not the data transmission is performed correctly. The transmission data is stored in the buffer 24 a (data storage unit of the present invention) included in the communication I /
上述の構成が、「通信部は、送信用のデータを格納するデータ格納部を含み、監視は、データ送信時の通信バスの状態と、データ格納部に格納された送信用のデータとを比較することで、データの送信が適正に行われているか否かを監視する」ものである。本構成によって、いわゆる、通信部がビットモニタリング機能を有するときは、ビットモニタリング機能を用いて、取得したIDが適正なものか否かを判定できる。 The above-described configuration is as follows: “The communication unit includes a data storage unit that stores data for transmission, and monitoring is performed by comparing the state of the communication bus at the time of data transmission with the data for transmission stored in the data storage unit. By doing so, it is monitored whether or not data transmission is properly performed. " With this configuration, when the so-called communication unit has a bit monitoring function, it is possible to determine whether or not the acquired ID is appropriate using the bit monitoring function.
データ送信が正しく行われたとき(S13:yes)、タイマAをリセットし(S14)、ステップS15に進む。タイマAは、ゼロから計測を再開する。一方、データ送信が正しく行われなかったとき(S13:no)、何もせずステップS15に進む。 When the data transmission is correctly performed (S13: yes), the timer A is reset (S14), and the process proceeds to step S15. The timer A restarts measurement from zero. On the other hand, when the data transmission is not performed correctly (S13: no), the process proceeds to step S15 without doing anything.
ステップS15では、マスタノード10あるいは他のノード(30、40、50)からのデータを正しく受信しているか否かを判定する。CRCチェック、フォームチェック、スタッフチェック等を行って、正常データのみを判定の対象とする。また、ブロードキャストフレームのような、複数のノードを送信先とするデータは判定の対象とせず、自ノードのみを送信先とするデータのみを判定の対象とする。
In step S15, it is determined whether or not data from the
上述の構成が、「監視部は、送信先がノードのみであるデータを受信したか否かに基づいて、データの受信が適正に行われているか否かを監視する」ものである。複数あるいは不特定のノードを送信先とするデータは、特定のノードを送信先とするデータとでは、データの構成が異なる場合があり、IDが異常となっているノードでも受信できることがある。本構成によって、送信先を自身のみのデータに限定することで、より確実に、データの受信が適正に行われているか否かを監視できる。 The above-described configuration is “the monitoring unit monitors whether or not data is properly received based on whether or not data whose destination is only a node has been received”. Data having a plurality of or unspecified nodes as transmission destinations may differ in data configuration from data having a specific node as a transmission destination, and may be received even by a node having an abnormal ID. With this configuration, it is possible to more reliably monitor whether or not the data is properly received by limiting the transmission destination to data of only itself.
データ受信が正しく行われたとき(S15:yes)、タイマBをリセットし(S16)、ステップS17に進む。タイマBは、ゼロから計測を再開する。一方、データ送信が正しく行われなかったとき(S15:no)、何もせずステップS17に進む。 When the data is correctly received (S15: yes), the timer B is reset (S16), and the process proceeds to step S17. Timer B resumes measurement from zero. On the other hand, when the data transmission is not correctly performed (S15: no), the process proceeds to step S17 without doing anything.
ステップS17では、タイマAがタイムアウト(予め定められた時間を経過)したか否かを判定する。タイマAがタイムアウトしたとき、すなわち、データの送信が適正に行われない状態が予め定められた時間を超えて継続したとき、(S17:yes)、ステップS11へ戻り、IDを再度取得する。 In step S17, it is determined whether or not the timer A has timed out (a predetermined time has elapsed). When the timer A times out, that is, when the state in which data transmission is not performed properly continues beyond a predetermined time (S17: yes), the process returns to step S11 to acquire the ID again.
上述の構成が、「監視部は、データの送信が適正に行われているか否かを監視し、ID判定部は、データの送信が適正に行われていない状態が、予め定められた時間を超えて継続したとき、取得したIDが適正なものでないと判定する」ものである。本構成によって、別途、監視用の回路等を追加することなく、データ送信の際に、取得したIDが適正なものか否かを判定できる。また、判定するための時間を適切に設定することで、ノイズ等による一時的な送信エラーを、IDが適正なものでないことによるものと誤認することを防止できる。 The above-mentioned configuration is that “the monitoring unit monitors whether or not the data transmission is properly performed, and the ID determination unit determines that the state in which the data transmission is not performed properly is a predetermined time. When it continues beyond, it is determined that the acquired ID is not appropriate. " With this configuration, it is possible to determine whether or not the acquired ID is appropriate at the time of data transmission without adding a monitoring circuit or the like separately. Further, by appropriately setting the time for determination, it is possible to prevent a temporary transmission error due to noise or the like from being misidentified as being due to an improper ID.
一方、タイマAがタイムアウトしていないとき(S17:no)、タイマBがタイムアウトしたか否かを判定する。タイマBがタイムアウトしたとき、すなわち、データの受信が適正に行われていない状態が予め定められた時間を超えて継続したとき(S18:yes)、ステップS11へ戻り、IDを再度取得する。一方、タイマBがタイムアウトしていないとき(S18:no)、ステップS13へ戻る。 On the other hand, when the timer A has not timed out (S17: no), it is determined whether or not the timer B has timed out. When the timer B times out, that is, when the state in which data is not properly received continues for a predetermined time (S18: yes), the process returns to step S11, and the ID is acquired again. On the other hand, when the timer B has not timed out (S18: no), the process returns to step S13.
上述の構成が、「監視部は、データの受信が適正に行われているか否かを監視し、ID判定部は、データの受信が適正に行われていない状態が予め定められた時間を超えて継続したとき、取得したIDが適正なものでないと判定する」ものである。本構成によって、監視用の回路等を追加することなく、データ受信の際に、取得したIDが適正なものか否かを判定できる。また、判定するための時間を適切に設定することで、ノイズ等による一時的な受信エラーを、IDが適正なものでないことによるものと誤認することを防止できる。 The above configuration is “the monitoring unit monitors whether or not the data is properly received, and the ID determination unit exceeds the predetermined time when the data is not properly received. The acquired ID is not appropriate ”. With this configuration, it is possible to determine whether or not the acquired ID is appropriate at the time of data reception without adding a monitoring circuit or the like. Further, by appropriately setting the time for determination, it is possible to prevent a temporary reception error due to noise or the like from being misidentified as being due to an improper ID.
タイマAおよびタイマBのタイムアウト判定値は、例えば、数秒のような比較的長い値に設定する。これは、ノイズ等の、IDが適正なものでないこと以外の原因で発生する、突発的で継続性のない通信エラーにより、IDを再取得することを防ぐためである。 The timeout determination values of timer A and timer B are set to relatively long values such as several seconds, for example. This is to prevent re-acquisition of the ID due to a sudden and non-continuous communication error that occurs due to a reason other than that the ID is not appropriate, such as noise.
図5および図6を用いて、ID取得異常時のID取得処理の流れを説明する。図5は、マスタ−スレーブ方式で、本来は「B」であるノード30のIDが、ノード40と同じ「C」となった場合、すなわち、通信バス60に、同一IDのノードが複数接続された状態である。
The flow of the ID acquisition process when the ID acquisition is abnormal will be described with reference to FIGS. FIG. 5 is a master-slave method, and when the ID of the
マスタノード10からの指令に基づいて、ノード30がデータを送信しようとすると、同じIDのノード40(こちらが正しいID)も、概ね同時にデータを送信するので、データの衝突が起き、データを送信できない。よって、上述のビットモニタリングで、送信データと、通信バス60上をサンプリングしたデータとが異なるので、データ送信に失敗する。図4のID取得処理では、ステップS13:noを通り、タイマAはリセットされない。
When the
図2のような、マスタ−スレーブ方式でないとき、すなわち、各ノードが自発的にデータを送信する場合も、データの衝突が起こりうる、一度データの衝突が発生すると、データの再送を試みるので、さらにデータの衝突の可能性は高くなり、データ送信に失敗する。よって、タイマAはリセットされない。 As shown in FIG. 2, when the master-slave system is not used, that is, when each node transmits data spontaneously, data collision can occur. Once data collision occurs, data retransmission is attempted. Furthermore, the possibility of data collision increases and data transmission fails. Therefore, timer A is not reset.
一方、ノード30でのデータの受信は、送信元がノード40へ向けてデータを送信するので、これを受信するため正常に行われる。この結果、タイマBはリセットされるが、タイマAはタイムアウトし、図4のID取得処理では、ステップS17:yesを通り、IDの再取得が行われる。
On the other hand, the reception of data at the
このとき、ノード40でも、データ送信に失敗するので、ノード30と同様に、IDの再取得を行う。ノード20およびノード50の動作には影響を及ぼさないので、これら2つのノードは、IDの再取得は行わない。
At this time, since the data transmission also fails in the
上述のように、通信ネットワークシステム1の構成が、マスタ−スレーブ方式(図1)、マルチマスタ方式(図2)のいずれであっても、ノードIDの重複が発生したとき、重複したIDを取得したノードでIDの再取得が行われる。 As described above, even if the configuration of the communication network system 1 is either the master-slave method (FIG. 1) or the multi-master method (FIG. 2), the duplicate ID is acquired when the node ID is duplicated. The ID is reacquired at the node that has been selected.
図6は、マスタ−スレーブ方式で、本来は「B」であるノード30のIDが「E」となった場合、すなわち、通信バス60に、存在し得ないIDのノードが接続された状態である。
FIG. 6 shows a master-slave system, where the ID of the
図6では、データ送信時には、以下の2通りの状況が考えられる。
・マスタノード10からの指令に基づいて、ノード30がデータを送信する場合、ID「E」に対する指令は送信されないので、データを全く送信しない。データを全く送信しないことを、データ送信失敗と判定すれば、タイマAはリセットされない。
・マスタノード10から、LINで、複数のノードからの送信を処理可能な、発生頻度の少ないイベントに使用するイベントトリガフレームが送信されたときには、データを送信できる。マスタノード10では、データが適正なものではないと判断するが、データの送信は正常に行われる。このとき、タイマAはリセットされる。
・図2のように、マスタ−スレーブ方式でないとき、すなわち、各ノードが自発的にデータを送信する場合、他のノードのIDと異なっているので、データの送信は正常に行われる可能性がある。このとき、タイマAはリセットされる。
In FIG. 6, at the time of data transmission, the following two situations can be considered.
When the
Data can be transmitted from the
As shown in FIG. 2, when the master-slave system is not used, that is, when each node transmits data voluntarily, it is different from the IDs of other nodes, so there is a possibility that data transmission is normally performed. is there. At this time, timer A is reset.
よって、データ送信時は、ネットワークの構成によって、タイマAがリセットされる場合と、リセットされない場合がある。 Therefore, at the time of data transmission, the timer A may or may not be reset depending on the network configuration.
一方、マスタノード10および他のノードから、ID「E」宛のデータは送信されないので、ノード30でのデータの受信は全く行われない。よって、図4のID取得処理では、ステップS15:noを通り、タイマBはリセットされない。その結果、タイマBはタイムアウトし、図4のID取得処理では、ステップS18:yesを通り、ノード30は、IDの再取得を行う、他のノード(20、40、50)は、IDの再取得を行わない。
On the other hand, since the data addressed to the ID “E” is not transmitted from the
図7に、ID取得処理の別例を示す。本処理は、図4の変形例であるため、図4と同様の処理ステップについては同様の符号を付与し、ここでの詳細な説明は割愛する。図4と異なる点は、タイマAに代えてカウンタAを用いることである。 FIG. 7 shows another example of the ID acquisition process. Since this process is a modification of FIG. 4, the same reference numerals are given to the same process steps as those in FIG. 4, and detailed description thereof will be omitted. The difference from FIG. 4 is that counter A is used instead of timer A.
ステップS11でIDを取得した後、カウンタAをリセット(ゼロクリア)する(S11A)。次に、タイマBのみ(タイマAは使用しない)をリセットして、計測を開始する(S12A)。 After acquiring the ID in step S11, the counter A is reset (zero cleared) (S11A). Next, only timer B (timer A is not used) is reset and measurement is started (S12A).
次に、ノードからのデータ送信が成功したとき(S13:yes)、カウンタAをデクリメント(現在のカウンタ値から、1のような所定値を減算)する(S14A)。一方、ノードからのデータ送信に失敗したとき(S13:no)、カウンタAをインクリメント(現在のカウンタ値に、8のような所定値を加算)する(S14B)。加算値および減算値は、同じ値でも異なる値でもよいが、エラー判定を確実に行うため、加算値を減算値よりも大きくすることが望ましい。 Next, when the data transmission from the node is successful (S13: yes), the counter A is decremented (a predetermined value such as 1 is subtracted from the current counter value) (S14A). On the other hand, when data transmission from the node fails (S13: no), the counter A is incremented (a predetermined value such as 8 is added to the current counter value) (S14B). The added value and the subtracted value may be the same value or different values, but it is desirable to make the added value larger than the subtracted value in order to ensure error determination.
データの受信が成功したか否かの判定(ステップS15、S16)の後、ステップS17Aでは、カウンタAの値が予め定められた閾値を超えたか否かを判定する。例えば、正常時では起こりえない失敗回数(十数回〜数十回)となるように閾値を定める。 After determining whether or not the data has been successfully received (steps S15 and S16), in step S17A, it is determined whether or not the value of the counter A has exceeded a predetermined threshold value. For example, the threshold value is determined so that the number of failures (ten times to several tens times) that cannot occur in normal time is obtained.
カウンタAの値が閾値を超えたとき(S17A:yes)、ステップS11へ戻り、IDを再取得する。一方、カウンタAの値が閾値を超えないとき(S17A:no)、ステップS18へ進み、タイマBの判定を行う。 When the value of the counter A exceeds the threshold value (S17A: yes), the process returns to step S11, and the ID is reacquired. On the other hand, when the value of the counter A does not exceed the threshold value (S17A: no), the process proceeds to step S18 and the timer B is determined.
上述の構成が、「監視部は、データの送信が適正に行われているか否かを監視し、ID判定部は、判定用カウンタを含み、データの送信が適正に行われなかったときに判定用カウンタを加算し、データの送信が適正に行われたときに判定用カウンタを減算し、判定用カウンタの値が、予め定められた閾値を超えたとき、取得したIDが適正なものでないと判定する」ものである。本構成によっても、別途、監視用の回路等を追加することなく、データ送信の際に、取得したIDが適正なものか否かを判定できる。また、判定するための閾値を適切に設定することで、ノイズ等による一時的な送信エラーを、IDが適正なものでないことによるものと誤認することを防止できる。 The above-described configuration is “the monitoring unit monitors whether or not data transmission is properly performed, and the ID determination unit includes a determination counter and determines when data transmission is not performed properly. Counter is added when the data is properly transmitted, and when the value of the determination counter exceeds a predetermined threshold, the acquired ID is not appropriate. Judgment ". Also with this configuration, it is possible to determine whether or not the acquired ID is appropriate at the time of data transmission without adding a monitoring circuit or the like separately. In addition, by appropriately setting a threshold value for determination, it is possible to prevent a temporary transmission error due to noise or the like from being misidentified as being due to an inappropriate ID.
以上、本発明の実施の形態を説明したが、これらはあくまで例示にすぎず、本発明はこれらに限定されるものではなく、特許請求の範囲の趣旨を逸脱しない限りにおいて、当業者の知識に基づく種々の変更が可能である。 Although the embodiments of the present invention have been described above, these are merely examples, and the present invention is not limited to these embodiments, and the knowledge of those skilled in the art can be used without departing from the spirit of the claims. Various modifications based on this are possible.
1 通信ネットワークシステム
10 マスタノード
20、30、40、50 ノード(スレーブノード)
21 演算部(ID取得部、監視部、ID判定部)
24 通信I/F(通信部、監視部、ID取得部)
24a バッファ(データ格納部)
25 メモリ(ID設定部)
26 ID設定部
60 通信バス
1
21 operation part (ID acquisition part, monitoring part, ID determination part)
24 Communication I / F (communication unit, monitoring unit, ID acquisition unit)
24a buffer (data storage unit)
25 Memory (ID setting part)
26
Claims (12)
前記ノードは、
前記ノードを識別するためのIDを取得するID取得部と、
前記通信バスを介してデータの通信を行う通信部と、
前記データの通信状態を監視する監視部と、
監視した前記データの通信状態に基づいて、取得したIDが適正なものか否かを判定するID判定部と、
を備え、
前記ID判定部が、前記取得したIDが適正なものでないと判定したとき、前記ID取得部は、前記IDを再取得し、
前記監視部は、前記データの送信が適正に行われているか否かを監視し、
前記ID判定部は、前記データの送信が適正に行われていない状態が、予め定められた時間を超えて継続したとき、前記取得したIDが適正なものでないと判定することを特徴とするノード。 A node connected to a communication bus,
The node is
An ID acquisition unit for acquiring an ID for identifying the node;
A communication unit for communicating data via the communication bus;
A monitoring unit for monitoring a communication state of the data;
An ID determination unit that determines whether or not the acquired ID is appropriate based on the monitored communication state of the data;
With
The ID determination unit, when the acquired ID is determined not intended proper, the ID acquisition unit reacquires the ID,
The monitoring unit monitors whether or not the transmission of the data is properly performed,
The ID determination unit determines that the acquired ID is not appropriate when a state where the transmission of the data is not properly performed continues for a predetermined time. .
前記ノードは、
前記ノードを識別するためのIDを取得するID取得部と、
前記通信バスを介してデータの通信を行う通信部と、
前記データの通信状態を監視する監視部と、
監視した前記データの通信状態に基づいて、取得したIDが適正なものか否かを判定するID判定部と、
を備え、
前記ID判定部が、前記取得したIDが適正なものでないと判定したとき、前記ID取得部は、前記IDを再取得し、
記監視部は、前記データの送信が適正に行われているか否かを監視し、
前記ID判定部は、判定用カウンタを含み、
前記データの送信が適正に行われなかったときに前記判定用カウンタを加算し、
前記データの送信が適正に行われたときに前記判定用カウンタを減算し、
前記判定用カウンタの値が、予め定められた閾値を超えたとき、前記取得したIDが適正なものでないと判定することを特徴とするノード。 A node connected to a communication bus,
The node is
An ID acquisition unit for acquiring an ID for identifying the node;
A communication unit for communicating data via the communication bus;
A monitoring unit for monitoring a communication state of the data;
An ID determination unit that determines whether or not the acquired ID is appropriate based on the monitored communication state of the data;
With
The ID determination unit, when the acquired ID is determined not intended proper, the ID acquisition unit reacquires the ID,
The monitoring unit monitors whether the data is properly transmitted,
The ID determination unit includes a determination counter,
When the transmission of the data is not properly performed, the determination counter is added,
When the transmission of the data is properly performed, the determination counter is subtracted,
A node characterized in that when the value of the determination counter exceeds a predetermined threshold value, the acquired ID is determined to be inappropriate.
前記ノードは、
前記ノードを識別するためのIDを取得するID取得部と、
前記通信バスを介してデータの通信を行う通信部と、
前記データの通信状態を監視する監視部と、
監視した前記データの通信状態に基づいて、取得したIDが適正なものか否かを判定するID判定部と、
を備え、
前記ID判定部が、前記取得したIDが適正なものでないと判定したとき、前記ID取得部は、前記IDを再取得し、
前記監視部は、前記データの受信が適正に行われているか否かを監視し、
前記ID判定部は、前記データの受信が適正に行われていない状態が予め定められた時間を超えて継続したとき、前記取得したIDが適正なものでないと判定することを特徴とするノード。 A node connected to a communication bus,
The node is
An ID acquisition unit for acquiring an ID for identifying the node;
A communication unit for communicating data via the communication bus;
A monitoring unit for monitoring a communication state of the data;
An ID determination unit that determines whether or not the acquired ID is appropriate based on the monitored communication state of the data;
With
The ID determination unit, when the acquired ID is determined not intended proper, the ID acquisition unit reacquires the ID,
The monitoring unit monitors whether the data is properly received,
The node, wherein the ID determination unit determines that the acquired ID is not appropriate when a state in which the data is not properly received continues for a predetermined time.
前記ID判定部は、前記データの送信が適正に行われていない状態が、予め定められた時間を超えて継続したとき、前記取得したIDが適正なものでないと判定する請求項3に記載のノード。 The monitoring unit monitors whether or not the transmission of the data is properly performed,
The ID determination unit, a state in which transmission of the data has not been properly is, when continued beyond a predetermined time, according to judges claim 3 and the acquired ID is not one proper node.
前記ID判定部は、判定用カウンタを含み、
前記データの送信が適正に行われなかったときに前記判定用カウンタを加算し、
前記データの送信が適正に行われたときに前記判定用カウンタを減算し、
前記判定用カウンタの値が、予め定められた閾値を超えたとき、前記取得したIDが適正なものでないと判定する請求項3に記載のノード。 The monitoring unit monitors whether or not the transmission of the data is properly performed,
The ID determination unit includes a determination counter,
When the transmission of the data is not properly performed, the determination counter is added,
When the transmission of the data is properly performed, the determination counter is subtracted,
The node according to claim 3 , wherein when the value of the determination counter exceeds a predetermined threshold, the acquired ID is determined not to be appropriate.
前記監視部は、データ送信時の前記通信バスの状態と、前記データ格納部に格納された送信用のデータとを比較することで、前記データの送信が適正に行われているか否かを監視する請求項1、2、4、5のいずれか1項に記載のノード。 The communication unit includes a data storage unit that stores data for transmission,
The monitoring unit monitors whether or not the data is properly transmitted by comparing the state of the communication bus at the time of data transmission and the data for transmission stored in the data storage unit. The node according to any one of claims 1, 2, 4, and 5 .
前記ID判定部は、前記データの受信が適正に行われていない状態が予め定められた時間を超えて継続したとき、前記取得したIDが適正なものでないと判定する請求項1または請求項2に記載のノード。 The monitoring unit monitors whether the data is properly received,
The ID determination unit, wherein when the state reception is not performed properly in the data has continued beyond a predetermined time, the acquired ID is proper ones not the judges claim 1 or claim 2 Node described in.
前記ノードは、スレーブノードとして動作し、
前記通信部は、LINプロトコルにしたがって、前記マスタノードと通信を行う請求項1ないし請求項8のいずれか1項に記載のノード。 A master node is connected to the communication bus,
The node acts as a slave node;
The node according to claim 1 , wherein the communication unit communicates with the master node according to a LIN protocol.
前記ID取得部は、前記ID設定部から前記IDを取得する請求項1ないし請求項10のいずれか1項に記載のノード。 An ID setting unit for setting the ID;
The node according to claim 1 , wherein the ID acquisition unit acquires the ID from the ID setting unit.
前記ノードは、
前記ノードを識別するためのIDを取得するID取得部と、
前記通信バスを介してデータの通信を行う通信部と、
前記データの通信状態を監視する監視部と、
監視した前記データの通信状態に基づいて、取得したIDが適正なものか否かを判定するID判定部と、
を備え、
前記ID判定部が、前記取得したIDが適正なものでないと判定したとき、前記IDが適正なものでないと判定された前記ノードの前記ID取得部のみが前記IDを再取得することを特徴とするノード。 A node connected to a communication bus,
The node is
An ID acquisition unit for acquiring an ID for identifying the node;
A communication unit for communicating data via the communication bus;
A monitoring unit for monitoring a communication state of the data;
An ID determination unit that determines whether or not the acquired ID is appropriate based on the monitored communication state of the data;
With
When the ID determination unit determines that the acquired ID is not appropriate, only the ID acquisition unit of the node determined that the ID is not appropriate acquires the ID again. Node to perform.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014185079A JP6365876B2 (en) | 2014-09-11 | 2014-09-11 | node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014185079A JP6365876B2 (en) | 2014-09-11 | 2014-09-11 | node |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016058944A JP2016058944A (en) | 2016-04-21 |
JP6365876B2 true JP6365876B2 (en) | 2018-08-01 |
Family
ID=55759062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014185079A Expired - Fee Related JP6365876B2 (en) | 2014-09-11 | 2014-09-11 | node |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6365876B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10328199B2 (en) | 2009-05-05 | 2019-06-25 | Carefusion 303, Inc. | Model-based infusion site monitor |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7010257B2 (en) * | 2019-03-14 | 2022-01-26 | オムロン株式会社 | Control system and control unit |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3247074B2 (en) * | 1997-06-26 | 2002-01-15 | 矢崎総業株式会社 | Address setting method and communication system to which the address setting method is applied |
JP4306512B2 (en) * | 2004-01-13 | 2009-08-05 | 株式会社デンソー | Communication network system and communication network system ID setting method |
JP2012182607A (en) * | 2011-03-01 | 2012-09-20 | Toyota Motor Corp | Communication disruption determination system and communication node, and communication disruption determination method |
-
2014
- 2014-09-11 JP JP2014185079A patent/JP6365876B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10328199B2 (en) | 2009-05-05 | 2019-06-25 | Carefusion 303, Inc. | Model-based infusion site monitor |
US11636937B2 (en) | 2009-05-05 | 2023-04-25 | Carefusion 303, Inc. | Model-based infusion site monitor |
Also Published As
Publication number | Publication date |
---|---|
JP2016058944A (en) | 2016-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10693905B2 (en) | Invalidity detection electronic control unit, in-vehicle network system, and communication method | |
EP1879326B1 (en) | Communication network system and wakeup method for un-wakeup node | |
US20180144119A1 (en) | Misuse detection method, misuse detection electronic control unit, and misuse detection system | |
US8868807B2 (en) | Communication system, master node, and slave node | |
JP2009161148A (en) | Fault location detecting device, communication device, and fault location detecting method | |
KR102286050B1 (en) | Method for preventing diagnostic errors in vehicle network and apparatus for the same | |
JP2006191338A (en) | Gateway apparatus for diagnosing fault of device in bus | |
JP2013106200A (en) | Communication repeater for vehicle and sleep control method | |
JP2006253921A (en) | Network system for vehicle | |
JP6365876B2 (en) | node | |
JP6176199B2 (en) | Transmission line abnormality detection device | |
EP2680476B1 (en) | Communications apparatus, system and method with error mitigation | |
JP2012239143A (en) | Electronic control unit, on-vehicle network and data transmission method | |
WO2014039032A1 (en) | Method and apparatus for isolating a fault-active controller in a controller area network | |
JP4968169B2 (en) | Communication system and communication method | |
JP2015154189A (en) | Communication system, gateway device, communication node and communication control method | |
JP5405927B2 (en) | Network node | |
JP4225285B2 (en) | Communication node failure detection apparatus and method | |
JP5018396B2 (en) | Communication apparatus and communication system | |
JP6410914B1 (en) | Serial communication system | |
JP2009111911A (en) | Communication apparatus, communication system, and communication method | |
JP2006135375A (en) | Can network system | |
JP2015192216A (en) | Communication device and communication method | |
WO2007119424A1 (en) | Electric device and communication function normality judging method in the electric device | |
JP6120171B2 (en) | Electronic control unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170320 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180201 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180220 |
|
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: 20180607 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180620 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6365876 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |