JP5215894B2 - Communication control circuit, communication node, communication system, and communication control method and program - Google Patents
Communication control circuit, communication node, communication system, and communication control method and program Download PDFInfo
- Publication number
- JP5215894B2 JP5215894B2 JP2009023924A JP2009023924A JP5215894B2 JP 5215894 B2 JP5215894 B2 JP 5215894B2 JP 2009023924 A JP2009023924 A JP 2009023924A JP 2009023924 A JP2009023924 A JP 2009023924A JP 5215894 B2 JP5215894 B2 JP 5215894B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- frame
- communication node
- time slot
- slot
- 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
本発明は、通信制御回路、通信ノード、通信システム、並びに通信制御方法及びプログラムに関し、特にFlexRayに則したデータ通信に好適な技術に関する。 The present invention relates to a communication control circuit, a communication node, a communication system, a communication control method, and a program, and more particularly to a technique suitable for data communication conforming to FlexRay.
FlexRayは、自動車制御等に関する通信システムへの適用を目的として策定されたLAN(Local Area Network)規格の1つである。通信方式には、通信システムを構成する通信ノード毎に一定のタイミングでデータ送信権を与える方式(タイムトリガ方式)が採用されている。 FlexRay is one of LAN (Local Area Network) standards formulated for the purpose of application to communication systems related to automobile control and the like. As a communication method, a method (time trigger method) in which a data transmission right is given at a certain timing for each communication node constituting the communication system is adopted.
このFlexRayにおける通信サイクルは、図7に示すように、通信期間である静的セグメント700及び動的セグメント800と、非通信期間であるアイドル時間900とから成る。 As shown in FIG. 7, the communication cycle in the FlexRay includes a static segment 700 and a dynamic segment 800 that are communication periods, and an idle time 900 that is a non-communication period.
この内、静的セグメント700は、固定時間長を有するl個の静的スロット710_1〜710_l(以下、符号710で総称することがある)により構成される。各静的スロット710は、1つの通信ノードによるデータ(フレーム)送信に使用される。 Among these, the static segment 700 is composed of l static slots 710_1 to 710_1 having a fixed time length (hereinafter may be collectively referred to as reference numeral 710). Each static slot 710 is used for data (frame) transmission by one communication node.
一方、動的セグメント800は、m個の動的スロット810_1〜810_m(以下、符号810で総称することがある)により構成される。各動的スロット810は、固定時間長を有するn個のミニスロット820_1〜820_n(以下、符号820で総称することがある)により構成される。但し、nは、動的スロット毎に異なる可変値である。すなわち、動的スロット810_1〜810_mは、互いに異なる時間長を有し得る。 On the other hand, the dynamic segment 800 is configured by m dynamic slots 810_1 to 810_m (hereinafter may be collectively referred to as reference numeral 810). Each dynamic slot 810 includes n minislots 820_1 to 820_n (hereinafter, may be collectively referred to as reference numeral 820) having a fixed time length. However, n is a variable value different for each dynamic slot. That is, the dynamic slots 810_1 to 810_m may have different time lengths.
また、各ミニスロット820は、1組のマクロチック831及び832から成る。各通信ノードは、マクロチック831及び832の境界をミニスロット活動点840とし、このミニスロット活動点840におけるデータ送受信の有無により、動的スロット810_1〜810_mを識別する。
Each mini-slot 820 includes a set of
より具体的には、送信側の通信ノードは、データ送信を、一の動的スロット内の一のミニスロット活動点で開始し、最終のミニスロット活動点で終了する。データ送信の終了時、当該通信ノードは、動的スロットの識別番号(カウンタ値)を"1"だけインクリメントする。一方、受信側の通信ノードは、ミニスロット活動点毎にデータ受信の有無(受信チャネルのアクティブ/アイドル)を監視すると共に、"データ受信無し"の場合に動的スロットのカウンタ値を"1"だけインクリメントし、"データ受信有り"の場合には当該カウンタ値のインクリメントを中断する。これにより、送信側及び受信側の両通信ノード同士間で、動的スロットのカウンタ値が整合(すなわち、各動的スロット810の位相が一致)することとなる(例えば、特許文献1参照)。 More specifically, the transmitting communication node starts data transmission at one minislot activity point in one dynamic slot and ends at the last minislot activity point. At the end of data transmission, the communication node increments the identification number (counter value) of the dynamic slot by “1”. On the other hand, the receiving communication node monitors the presence / absence of data reception (active / idle of the reception channel) for each minislot activity point, and sets the counter value of the dynamic slot to “1” when “no data reception”. Incrementing the counter value is interrupted when the data is received. As a result, the counter values of the dynamic slots are matched between the communication nodes on the transmission side and the reception side (that is, the phases of the dynamic slots 810 are matched) (see, for example, Patent Document 1).
近年、上記の動的セグメントにおける通信方式の利用が、CAN(Controller Area Network)に代表されるイベントトリガ方式(事象に合わせてノードが通信要求を発生する通信方式)の代替として要望されている。 In recent years, the use of a communication method in the dynamic segment has been demanded as an alternative to an event trigger method represented by CAN (Controller Area Network) (a communication method in which a node generates a communication request in accordance with an event).
しかしながら、上記の特許文献1には、動的セグメントにおいて一の通信ノードがノイズ等の影響に因り動的スロットを誤って識別した場合、当該一の通信ノードと他の通信ノードとの通信が不可となり、以て通信効率を著しく低下させてしまうという課題があった。これは、大略、通信ノード同士間で動的スロットの位相ずれが生じるためである。 However, in Patent Document 1 described above, when one communication node in a dynamic segment erroneously identifies a dynamic slot due to the influence of noise or the like, communication between the one communication node and another communication node is not possible. Therefore, there is a problem that the communication efficiency is remarkably lowered. This is because a phase shift of a dynamic slot occurs between communication nodes.
この課題を、図8(a)に示す如く2台の通信ノード1a及び1bがネットワークバスB1を介して通信を行う場合を例に取って詳細に説明する。
This problem will be described in detail by taking as an example a case where two
図8(b)に示すように、通信ノード1a及び1bは、互いに独立してスロットを順次割り当てると共に、各スロットに対してID(Identifier)を付与する。なお、以降の説明においては、このIDを割当スロットIDと呼称する。
As shown in FIG. 8B, the
今、通信ノード1aが、送信チャネルTxを介して、フレームFR1を割当スロットID 100s="5"のスロットで送出したとする。この時、通信ノード1aは、フレームFR1に割当スロットID 100s="5"を付加する。また、フレームFR1の送出完了時、通信ノード1aは、割当スロットID 100sを"6"にインクリメントして次の通信に備える。
Now, it is assumed that the
一方、通信ノード1bは、受信チャネルRxを介して、フレームFR1を割当スロットID 100s="5"のスロットで受信する。この時、割当スロットID 100sとフレームFR1に付加されたスロットIDとが一致するため、通信ノード1bは、フレームFR1を正常に受信したと判断する。また、フレームFR1の受信完了時、通信ノード1bは、割当スロットID 100sを"6"にインクリメントして次の通信に備える。
On the other hand, the
この後、割当スロットID 100s="6"のスロットにおいて、通信ノード1aのみがノイズ発生に伴う受信チャネルRxのアクティブを検出したとする。この場合、通信ノード1aは、ノイズ発生期間中、割当スロットIDのインクリメントを中断する。一方、受信チャネルRxのアイドルを検出した通信ノード1bは、割当スロットIDのインクリメントを継続する。
Thereafter, it is assumed that only the
この結果、例えば図示の如く、通信ノード1aにおける割当スロットID 100sが"7"となる一方、通信ノード1bにおける割当スロットID 100sが"8"となる。すなわち、通信ノード1a−1b間でスロットの位相が不一致となる。このため、通信ノード1a−1b間での以降の通信が不可となる。
As a result, for example, as shown in the figure, the
具体的には、例えば通信ノード1bがスロットID="8"を付加したフレームFR2を送信した場合、通信ノード1aは、自通信ノードにおける割当スロットID 100s="7"とフレームFR2に付加されたスロットIDとが一致しないため、フレームFR2に受信エラーが発生したと判断する。同様に、通信ノード1aがスロットID="9"を付加したフレームFR3を送信した場合、通信ノード1bは、自通信ノードにおける割当スロットID 100s="10"とフレームFR3に付加されたスロットIDとが一致しないため、フレームFR3に受信エラーが発生したと判断する。
Specifically, for example, when the
本発明の一態様に係る通信制御回路は、通信ノードに実装され、他の通信ノードとの通信に用いる複数のタイムスロットを割り当てる割当部と、前記他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定する判定部と、前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を前記通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する指示部とを備える。 A communication control circuit according to an aspect of the present invention is implemented in a communication node, receives an allocation unit that allocates a plurality of time slots used for communication with another communication node, and a frame from the other communication node A determination unit that determines whether or not the frame is received in one time slot to be received, and when the frame is not received in the one time slot, the phase of the subsequent time slot is set to the other communication node. And an instruction unit for instructing correction in accordance with the phase of the time slot in the communication node.
また、本発明の他の一態様に係る通信制御回路は、通信ノードに実装され、他の通信ノードとの通信に用いる複数のタイムスロットを割り当てると共に、前記他の通信ノードからの指示に応じて、前記タイムスロットの位相を前記他の通信ノードにおけるタイムスロットの位相に合わせて補正する。 A communication control circuit according to another aspect of the present invention is mounted on a communication node, assigns a plurality of time slots used for communication with another communication node, and responds to an instruction from the other communication node. The phase of the time slot is corrected in accordance with the phase of the time slot in the other communication node.
また、本発明の一態様に係る通信ノードは、他の通信ノードとの通信に用いる複数のタイムスロットを割り当てると共に、前記他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定し、前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を自通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する制御回路と、前記フレームを、これが前記一のタイムスロットで受信された場合に処理する処理回路とを備える。 In addition, the communication node according to one aspect of the present invention allocates a plurality of time slots used for communication with other communication nodes, and a frame from the other communication node is received in one time slot to receive the frame. If the frame is not received in the one time slot, the phase of the subsequent time slot is matched with the phase of the time slot in the own communication node when the frame is not received in the one time slot. A control circuit for instructing to correct; and a processing circuit for processing the frame when it is received in the one time slot.
また、本発明の他の一態様に係る通信ノードは、他の通信ノードとの通信に用いる複数のタイムスロットを割り当てると共に、前記他の通信ノードからの指示に応じて、前記タイムスロットの位相を前記他の通信ノードにおけるタイムスロットの位相に合わせて補正する制御回路と、一のタイムスロットで送信するフレームを生成する生成回路とを備える。 In addition, a communication node according to another aspect of the present invention allocates a plurality of time slots used for communication with other communication nodes, and sets the phase of the time slot according to an instruction from the other communication node. A control circuit that performs correction in accordance with the phase of the time slot in the other communication node; and a generation circuit that generates a frame to be transmitted in one time slot.
また、本発明の一態様に係る通信システムは、通信に用いる複数のタイムスロットをそれぞれ割り当てる複数の通信ノードを備える。この通信システムにおいては、一の通信ノードが、他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定し、前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を自通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する。前記他の通信ノードは、前記指示に応じて、自通信ノードにおけるタイムスロットの位相を補正する。 In addition, a communication system according to one embodiment of the present invention includes a plurality of communication nodes that respectively allocate a plurality of time slots used for communication. In this communication system, one communication node determines whether or not a frame from another communication node is received in one time slot to receive the frame, and the frame is received in the one time slot. If not, the other communication node is instructed to correct the phase of the subsequent time slot in accordance with the phase of the time slot in the own communication node. The other communication node corrects the phase of the time slot in its own communication node according to the instruction.
また、本発明の一態様に係る通信制御方法は、通信ノードにおける通信制御方法を提供する。この通信制御方法は、他の通信ノードとの通信に用いる複数のタイムスロットを割り当て、前記他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定し、前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を前記通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する。 A communication control method according to an aspect of the present invention provides a communication control method in a communication node. This communication control method allocates a plurality of time slots used for communication with another communication node, determines whether or not a frame from the other communication node is received in one time slot to receive the frame, When the frame is not received in the one time slot, the other communication node is instructed to correct the phase of the subsequent time slot in accordance with the phase of the time slot in the communication node.
また、本発明の他の一態様に係る通信制御方法は、通信ノードにおける通信制御方法を提供する。この通信制御方法は、他の通信ノードとの通信に用いる複数のタイムスロットを割り当て、前記他の通信ノードからの指示に応じて、前記タイムスロットの位相を前記他の通信ノードにおけるタイムスロットの位相に合わせて補正する。 A communication control method according to another aspect of the present invention provides a communication control method in a communication node. In this communication control method, a plurality of time slots used for communication with another communication node are allocated, and in response to an instruction from the other communication node, the phase of the time slot is set to the phase of the time slot in the other communication node. Correct according to.
また、本発明の一態様に係る通信制御プログラムは、通信ノードに、他の通信ノードとの通信に用いる複数のタイムスロットを割り当てる処理と、前記他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定する処理と、前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を前記通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する処理とを実行させる。 The communication control program according to an aspect of the present invention receives a process for assigning a plurality of time slots used for communication with another communication node to the communication node and a frame from the other communication node. A process for determining whether or not the frame has been received in one power slot, and when the frame is not received in the one time slot, the phase of the subsequent time slot is set to the communication node with respect to the other communication node. And a process for instructing correction in accordance with the phase of the time slot at.
さらに、本発明の他の一態様に係る通信制御プログラムは、通信ノードに、他の通信ノードとの通信に用いる複数のタイムスロットを割り当てる処理と、前記他の通信ノードからの指示に応じて、前記タイムスロットの位相を前記他の通信ノードにおけるタイムスロットの位相に合わせて補正する処理とを実行させる。 Furthermore, the communication control program according to another aspect of the present invention includes a process of assigning a plurality of time slots used for communication with another communication node to the communication node, and an instruction from the other communication node, And processing for correcting the phase of the time slot in accordance with the phase of the time slot in the other communication node.
すなわち、本発明では、ノイズ等の影響に因るタイムスロットの位相ずれを検出した一の通信ノードが、他の通信ノードに当該位相ずれを補正させる。このため、上述した動的セグメントにおける通信ノード同士間での通信不可期間を、大幅に短縮することが可能である。 That is, in the present invention, one communication node that has detected a time slot phase shift due to the influence of noise or the like causes another communication node to correct the phase shift. For this reason, it is possible to greatly shorten the communication disabled period between the communication nodes in the dynamic segment described above.
本発明によれば、動的セグメントにおける通信効率を向上させることができ、以て通信システムにおける各種制御処理のリアルタイム性を確保することが可能である。 According to the present invention, it is possible to improve the communication efficiency in the dynamic segment, and thus it is possible to ensure the real-time property of various control processes in the communication system.
以下、本発明に係る通信制御回路及びこれを実装する通信ノードの実施の形態を、図1〜図6を参照して説明する。なお、各図面において同一要素には同一の符号が付されており、説明の明確化のため、必要に応じて重複説明は省略される。 Embodiments of a communication control circuit according to the present invention and a communication node that implements the communication control circuit will be described below with reference to FIGS. In the drawings, the same elements are denoted by the same reference numerals, and redundant description is omitted as necessary for the sake of clarity.
[構成例]
図1に示す本実施の形態に係る通信ノード1は、ネットワークバスB1を介したフレーム送受信を行うトランシーバ10と、通信制御回路20と、CPU(Central Processing Unit)30と、このCPU30により実行されるプログラム等を記憶するメモリ40と、センサ等の各種デバイス50と、これらのデバイス50とのインタフェースとして機能する外部I/F60とで構成されている。通信制御回路20、CPU30、メモリ40、及び外部I/F60は、内部バスB2により相互接続される。また、CPU30は、上述した処理回路及び生成回路に相当し、他の通信ノードから受信したフレーム(以下、受信フレームと呼称することがある)FRrを処理する一方、当該他の通信ノードに対して送信するフレーム(以下、送信フレームと呼称することがある)FRtを生成する。なお、以降の説明においては、受信フレームFRr及び送信フレームFRtを、符号FRで総称することがある。
[Configuration example]
The communication node 1 according to the present embodiment shown in FIG. 1 is executed by a
また、通信制御回路20は、受信フレームFRr及び送信フレームFRtをビット毎にドライブ(サンプル)するシフトレジスタ21と、受信フレームFRr及び送信フレームFRtを記憶するためのフレームバッファ22と、FlexRayに則してシフトレジスタ21−フレームバッファ22間でフレームFRを転送するプロトコルコントローラ23とを備えている。ここで、フレームバッファ22には、受信フレームFRrを記憶するための領域(以下、受信フレーム記憶領域と呼称する)221と、送信フレームFRtを記憶するための領域(以下、送信フレーム記憶領域と呼称する)222とが形成されている。また、受信フレームFRrには、その送信時に他の通信ノードにより付加されたスロットID(以下、受信スロットIDと呼称する)100rと、当該他の通信ノードが生成したデータ(以下、受信データと呼称する)200rとが含まれる。同様に、送信フレームFRtには、これを送信すべき、通信ノード1におけるスロットID(以下、送信スロットIDと呼称する)100tと、上記のCPU30により生成されたデータ(以下、送信データと呼称する)200tとが含まれる。
Further, the communication control circuit 20 conforms to the FlexRay, a shift register 21 that drives (samples) the reception frame FRr and the transmission frame FRt bit by bit, a frame buffer 22 for storing the reception frame FRr and the transmission frame FRt. And a
さらに、プロトコルコントローラ23は、図2に示すように、スロット割当部231と、受信エラー判定部232と、スロット補正指示部233と、スロット補正情報テーブル234とを有する。
Further, as shown in FIG. 2, the
この内、スロット割当部231は、上記の特許文献1と同様、通信ノード1におけるスロットを順次割り当てると共に、各スロットに対して割当スロットID 100sを付与し、受信エラー判定部232及びスロット補正指示部233にそれぞれ与える。
Among them, the
また、受信エラー判定部232は、スロット割当部231から出力された割当スロットID 100sと、シフトレジスタ21から取得した受信フレームFRrに付加された受信スロットID 100rとを比較することにより、フレームFRrの受信エラーを判定する。受信エラーが発生していない場合、受信エラー判定部232は、受信フレームFRrをフレームバッファ22へ転送する。
In addition, the reception error determination unit 232 compares the
一方、受信エラーが発生している場合、受信エラー判定部232は、下記(A)及び(B)に示すスロット補正フレームFRaに関する処理を実行する。ここで、スロット補正フレームFRaは、他の通信ノードにスロットの位相ずれを補正させるためのフレームである。また、スロット補正フレームFRaを用いるのは、FlexRayにおいてフレーム以外の伝送が禁止されているためである。なお、通信ノード1を、フレーム以外の伝送が許可された通信規格に則して動作させる場合には、スロット補正フレームFRaに代えて各種の制御信号等を用いても良い。 On the other hand, when a reception error has occurred, the reception error determination unit 232 executes processing related to the slot correction frame FRa shown in (A) and (B) below. Here, the slot correction frame FRa is a frame for causing another communication node to correct the phase shift of the slot. The slot correction frame FRa is used because transmission other than the frame is prohibited in the FlexRay. When the communication node 1 is operated in accordance with a communication standard that permits transmission other than frames, various control signals or the like may be used instead of the slot correction frame FRa.
(A) スロット補正フレームFRaを送信すべき、通信ノード1におけるスロットのID(以下、補正フレーム送信スロットIDと呼称する)100ta、及び他の通信ノードに対して指示するスロットIDの補正値(以下、補正スロットIDと呼称する)100aを決定すると共に、これらのID 100ta及び100aをスロット補正情報テーブル234に記憶する処理。
(B) スロット補正指示部233に対して受信エラー検出信号SGを出力し、以てスロット補正フレームFRaの送信を指示する処理。
(A) Slot ID in the communication node 1 (hereinafter referred to as a correction frame transmission slot ID) 100ta to which the slot correction frame FRa is to be transmitted, and a correction value (hereinafter referred to as a slot ID) instructed to other communication nodes (Referred to as correction slot ID) 100a and processing for storing these IDs 100ta and 100a in the slot correction information table 234.
(B) Processing for outputting the reception error detection signal SG to the slot correction instruction unit 233 and instructing transmission of the slot correction frame FRa.
また、受信エラー判定部232は、他の通信ノードからのスロット補正フレームFRaの受信を検知した場合、下記(C)に示すスロット補正に関する処理を実行する。ここで、受信エラー判定部232は、受信フレームFRr中に特定の補正フレームコード400が設定されている場合に、スロット補正フレームFRaの受信を検知する。補正フレームコード400は、スロット補正情報テーブル234に予め記憶されている。 When the reception error determination unit 232 detects reception of the slot correction frame FRa from another communication node, the reception error determination unit 232 executes processing related to slot correction shown in (C) below. Here, the reception error determination unit 232 detects reception of the slot correction frame FRa when a specific correction frame code 400 is set in the reception frame FRr. The correction frame code 400 is stored in advance in the slot correction information table 234.
(C) スロット補正フレームFRa中に設定された補正スロットID 100aをスロット補正情報テーブル234に記憶すると共に、スロット割当部231に対してスロット補正指示INSを出力し、以て割当スロットID 100sを補正スロットID 100aで補正させる処理。
(C) The
また、スロット補正指示部233は、スロット割当部231から出力された割当スロットID 100sとスロット補正情報テーブル234に記憶された補正フレーム送信スロットID 100taとが一致した場合、内部のテンポラリバッファ2331からスロット補正フレームFRaを読み出し、シフトレジスタ21へ転送する。ここで、テンポラリバッファ2331には、スロット補正フレームFRaと、このフレームFRaに対応して設けた送信要求ビット300とが記憶される。スロット補正指示部233は、この送信要求ビット300を受信エラー判定部232から受信エラー検出信号SGを受けた際に"ON"に設定し、割当スロットID 100sと補正フレーム送信スロットID 100taとが一致するのを待機する。また、スロット補正フレームFRaは、図1に示した送信フレームFRtと同様のフォーマットを有している。スロット補正指示部233は、スロット補正フレームFRa中の送信データ200tに、スロット補正情報テーブル234に記憶された補正スロットID 100a、及び上記の補正フレームコード400を設定する。
In addition, the slot correction instruction unit 233, when the
なお、図示を省略するが、通信制御回路20は、上記の特許文献1と同様にして送信フレームFRtの送出(フレームバッファ22からシフトレジスタ21への転送)を行う送信部も有している。 Although not shown, the communication control circuit 20 also includes a transmission unit that transmits the transmission frame FRt (transfer from the frame buffer 22 to the shift register 21) in the same manner as in Patent Document 1 described above.
次に、本実施の形態の動作を、図3〜図6を参照して説明する。 Next, the operation of the present embodiment will be described with reference to FIGS.
[動作例]
図3に示すように、まず、図1に示したトランシーバ10が、ネットワークバスB1を介して受信したフレームFRrを、通信制御回路20内のシフトレジスタ21へ格納する(ステップS1)。これを検知したプロトコルコントローラ23内の受信エラー判定部232は、受信フレームFRrに付加された受信スロットID 100rと、スロット割当部231から出力された割当スロットID 100sとが一致するか否かを判定する(ステップS2)。
[Example of operation]
As shown in FIG. 3, first, the
図4に示す如く、図1に示した通信ノード1を図8(a)に示した通信ノード1a及び1bとして適用し、且つこれらの通信ノード1a及び1b同士間で図8(b)と同様のフレームFR1〜FR3を送受信する場合を例に取ると、フレームFR1を受信した通信ノード1b内の受信エラー判定部232は、上記のステップS2で受信スロットID 100r("5")と割当スロットID 100s("5")とが一致すると判定する。そして、受信エラー判定部232は、フレームFR1をフレームバッファ22へ転送する(ステップS3)。これを検知したCPU30は、フレームバッファ22からフレームFR1を読み出して処理する。
As shown in FIG. 4, the communication node 1 shown in FIG. 1 is applied as the
この後、割当スロットID 100s="6"のスロットにおいて、通信ノード1aのみがノイズ発生に伴う受信チャネルRxのアクティブを検出したとする。この場合、通信ノード1a内のスロット割当部231は、ノイズ発生期間中、割当スロットID 100sのインクリメントを中断する。一方、受信チャネルRxのアイドルを検出した通信ノード1b内のスロット割当部231は、割当スロットID 100sのインクリメントを継続する。この結果、図8(b)と同様、通信ノード1aにおける割当スロットID 100sが"7"となる一方、通信ノード1bにおける割当スロットID 100sが"8"となる。すなわち、通信ノード1a−1b間でスロットの位相が不一致となる。
Thereafter, it is assumed that only the
この場合、フレームFR2を受信した通信ノード1a内の受信エラー判定部232は、上記のステップS2で受信スロットID 100r("8")と割当スロットID 100s("7")の不一致を検出する。そして、受信エラー判定部232は、フレームFR2がスロット補正フレームFRaであるか否かを判定する(ステップS4)。
In this case, the reception error determination unit 232 in the
今、フレームFR2はスロット補正フレームFRaでは無いため(上述した補正フレームコード400が設定されていないため)、受信エラー判定部232は、フレームFR2の受信エラーを検出し(ステップS5)、スロット補正指示部233との協働動作によりスロット補正フレームFRaの送信処理を実行する(ステップS6)。 Now, since the frame FR2 is not the slot correction frame FRa (because the correction frame code 400 described above is not set), the reception error determination unit 232 detects a reception error of the frame FR2 (step S5), and performs a slot correction instruction. The slot correction frame FRa is transmitted by the cooperative operation with the unit 233 (step S6).
具体的には、図5に示すように、まず受信エラー判定部232が、補正フレーム送信スロットID 100ta及び補正スロットID 100aを決定し、スロット補正情報テーブル234に記憶する(ステップS61)。図4の例では、補正フレーム送信スロットID 100taが、受信エラー検出直後のスロットID("8")に設定され、補正スロットID 100aが、補正フレーム送信スロットID 100taの次のスロットID("9")に設定されている。
Specifically, as shown in FIG. 5, first, the reception error determination unit 232 determines the correction frame transmission slot ID 100ta and the
そして、受信エラー判定部232は、スロット補正指示部233に対する受信エラー検出信号SGを発生し、以て図2に示した送信要求ビット300を"ON"に設定する(ステップS62)。
Then, the reception error determination unit 232 generates a reception error detection signal SG for the slot correction instruction unit 233, and sets the
これを検知したスロット補正指示部233は、テンポラリバッファ2331内のスロット補正フレームFRaの内容設定を行う。具体的には、スロット補正指示部233は、スロット補正フレームFRa中の送信スロットID 100t及び送信データ200tに、スロット補正情報テーブル234から読み出した補正フレーム送信スロットID 100ta及び補正スロットID 100aをそれぞれ設定する(ステップS63)。
Upon detecting this, the slot correction instruction unit 233 sets the contents of the slot correction frame FRa in the temporary buffer 2331. Specifically, the slot correction instruction unit 233 sets the correction frame transmission slot ID 100ta and the
そして、スロット補正指示部233は、スロット割当部231から出力された割当スロットID 100sと補正フレーム送信スロットID 100taとが一致(すなわち、スロット補正フレームFRaの送信タイミングが到来)するのを待機する(ステップS64)。
Then, the slot correction instruction unit 233 waits for the
割当スロットID 100sと補正フレーム送信スロットID 100taとが一致した場合、スロット補正指示部233は、スロット補正フレームFRaをシフトレジスタ21へ転送する(ステップS65)。このスロット補正フレームFRaは、トランシーバ10(図1参照)によりネットワークバスB1へ送出される。
When the
図2に戻って、スロット補正フレームFRaを受信した通信ノード1b内の受信エラー判定部232は、上記のステップS2及びS4を経由した後、スロット割当部231との協働動作により割当スロットID 100sの補正処理を実行する(ステップS7)。
Returning to FIG. 2, the reception error determination unit 232 in the
具体的には、図6に示すように、まず受信エラー判定部232が、スロット補正フレームFRa中から補正スロットID 100aを抽出し、スロット補正情報テーブル234に記憶する(ステップS71)。そして、受信エラー判定部232は、スロット割当部231に対するスロット補正指示INSを発生する(ステップS72)。
Specifically, as shown in FIG. 6, first, the reception error determination unit 232 extracts the
この指示INSを受けたスロット割当部231は、次の割当スロットID 100sを、スロット補正情報テーブル234から読み出した補正スロットID 100aに補正する(ステップS73)。
Receiving this instruction INS, the
図4の例では、通信ノード1bにおけるスロット補正フレームFRa受信直後の割当スロットID 100sが"9"に補正されている。従って、通信ノード1aが送信した、スロットID="9"が付加されたフレームFR3は、通信ノード1bにおいて正常に受信される。また、これ以降の各スロットの位相(各割当スロットID)も、通信ノード1a及び1b同士間で一致する。
In the example of FIG. 4, the assigned
このように、本実施の形態においては、通信ノード同士間でノイズ発生に起因するスロットの位相ずれが生じた場合であっても、通信不可期間を、上記の特許文献1と比較して大幅に短縮することができる。また、スロット補正フレームをスロットの位相ずれを検出した直後に送信した場合には、当該通信不可期間を最小限に留めることができる。 As described above, in the present embodiment, even when a slot phase shift occurs due to noise generation between communication nodes, the communication disabled period is significantly larger than that in Patent Document 1 described above. It can be shortened. Further, when the slot correction frame is transmitted immediately after detecting the phase shift of the slot, the communication disabled period can be minimized.
なお、上記の実施の形態によって本発明は限定されるものではなく、特許請求の範囲の記載に基づき、当業者によって種々の変更が可能なことは明らかである。例えば、上記の実施の形態に示した通信制御回路の各処理を、通信ノードに実行させるためのプログラム(例えば、既存の通信制御回路に組み込まれたファームウェアへのプラグイン)として提供することもできる。 Note that the present invention is not limited to the above-described embodiments, and it is apparent that various modifications can be made by those skilled in the art based on the description of the scope of the claims. For example, each process of the communication control circuit shown in the above embodiment can be provided as a program for causing a communication node to execute (for example, a plug-in to firmware incorporated in an existing communication control circuit). .
1, 1a, 1b 通信ノード
10 トランシーバ
20 通信制御回路
21 シフトレジスタ
22 フレームバッファ
23 プロトコルコントローラ
30 CPU
40 メモリ
50 各種デバイス
60 外部I/F
100s 割当スロットID
100r 受信スロットID
100t 送信スロットID
100ta 補正フレーム送信スロットID
100a 補正スロットID
200r 受信データ
200t 送信データ
221 受信フレーム記憶領域
222 送信フレーム記憶領域
231 スロット割当部
232 受信エラー判定部
233 スロット補正指示部
234 スロット補正情報テーブル
300 送信要求ビット
400 補正フレームコード
700 静的セグメント
710, 710_1〜710_l 静的スロット
800 動的セグメント
810, 810_1〜810_m 動的スロット
820, 820_1〜820_n ミニスロット
831, 832 マクロチック
840 ミニスロット活動点
900 アイドル時間
2331 テンポラリバッファ
FR, FR1〜FR3 フレーム
FRr 受信フレーム
FRt 送信フレーム
FRa スロット補正フレーム
SG 受信エラー検出信号
INS スロット補正指示
B1 ネットワークバス
B2 内部バス
Tx 送信チャネル
Rx 受信チャネル
1, 1a,
40
100s Allocated slot ID
100r Receive slot ID
100t Transmission slot ID
100ta correction frame transmission slot ID
100a Correction slot ID
Claims (17)
他の通信ノードとの通信に用いる複数のタイムスロットを割り当てる割当部と、
前記他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定する判定部と、
前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を前記通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する指示部と、
を備えた通信制御回路。 A communication control circuit implemented in a communication node,
An assigning unit for assigning a plurality of time slots used for communication with other communication nodes;
A determination unit for determining whether or not a frame from the other communication node is received in one time slot to receive the frame;
An instruction unit that instructs the other communication node to correct the phase of the subsequent time slot in accordance with the phase of the time slot in the communication node when the frame is not received in the one time slot; ,
A communication control circuit.
前記フレームに、前記他の通信ノードが送信に用いたタイムスロットの識別子が付加され、
前記割当部が、前記複数のタイムスロットの各々に識別子を付与し、
前記判定部が、前記フレームを前記一のタイムスロットで受信したか否かを、前記フレームに付加された識別子と、前記割当部により付与された識別子との比較により判定することを特徴とした通信制御回路。 In claim 1,
An identifier of a time slot used for transmission by the other communication node is added to the frame,
The assigning unit assigns an identifier to each of the plurality of time slots;
The communication is characterized in that the determination unit determines whether or not the frame has been received in the one time slot by comparing an identifier added to the frame with an identifier given by the allocation unit. Control circuit.
前記指示部が、前記補正をフレームにより指示することを特徴とした通信制御回路。 In claim 1 or 2,
The communication control circuit, wherein the instruction unit instructs the correction by a frame.
前記指示部が、前記補正を指示するフレームを、前記一のタイムスロットに連続する次のタイムスロットで送信することを特徴とした通信制御回路。 In claim 3,
The communication control circuit, wherein the instruction unit transmits a frame instructing the correction in a next time slot that is continuous with the one time slot.
他の通信ノードとの通信に用いる複数のタイムスロットを割り当てると共に、前記他の通信ノードからの指示に応じて、前記タイムスロットの位相を前記他の通信ノードにおけるタイムスロットの位相に合わせて補正する通信制御回路。 A communication control circuit implemented in a communication node,
A plurality of time slots used for communication with other communication nodes are allocated, and the phase of the time slot is corrected in accordance with the time slot phase of the other communication node according to an instruction from the other communication node. Communication control circuit.
前記指示が、前記他の通信ノードからのフレームにより行われることを特徴とした通信制御回路。 In claim 5,
The communication control circuit, wherein the instruction is performed by a frame from the other communication node.
前記フレームを、これが前記一のタイムスロットで受信された場合に処理する処理回路と、
を備えた通信ノード。 A plurality of time slots used for communication with other communication nodes are allocated, and it is determined whether or not a frame from the other communication node is received in one time slot to receive the frame. A control circuit that instructs the other communication nodes to correct the phase of the subsequent time slot in accordance with the phase of the time slot in the communication node,
Processing circuitry for processing the frame when it is received in the one time slot;
A communication node with
一のタイムスロットで送信するフレームを生成する生成回路と、
を備えた通信ノード。 A plurality of time slots used for communication with other communication nodes are allocated, and the phase of the time slot is corrected in accordance with the time slot phase of the other communication node according to an instruction from the other communication node. A control circuit;
A generation circuit for generating a frame to be transmitted in one time slot;
A communication node with
一の通信ノードが、他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定し、前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を自通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示し、
前記他の通信ノードが、前記指示に応じて、自通信ノードにおけるタイムスロットの位相を補正する通信システム。 A plurality of communication nodes that respectively allocate a plurality of time slots used for communication,
If one communication node receives a frame from another communication node in one time slot to receive it, and if the frame is not received in the one time slot, the other communication node Instructing the communication node to correct the phase of the subsequent time slot in accordance with the phase of the time slot in the communication node,
The communication system in which the other communication node corrects the phase of the time slot in the own communication node according to the instruction.
他の通信ノードとの通信に用いる複数のタイムスロットを割り当て、
前記他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定し、
前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を前記通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する通信制御方法。 A communication control method in a communication node,
Allocate multiple time slots used for communication with other communication nodes,
It is determined whether or not the frame from the other communication node is received in one time slot to receive the frame,
A communication control method for instructing the other communication node to correct the phase of the subsequent time slot in accordance with the phase of the time slot in the communication node when the frame is not received in the one time slot. .
前記フレームを前記一のタイムスロットで受信したか否かを、前記フレームに付加された、前記他の通信ノードが送信に用いたタイムスロットの識別子と、前記複数のタイムスロットの各々に付与した識別子との比較により判定することを特徴とした通信制御方法。 In claim 10,
Whether or not the frame is received in the one time slot is added to the frame, the identifier of the time slot used for transmission by the other communication node, and the identifier assigned to each of the plurality of time slots. The communication control method characterized by determining by comparison with.
前記補正を、フレームにより指示することを特徴とした通信制御方法。 In claim 10 or 11,
A communication control method, wherein the correction is instructed by a frame.
前記補正を指示するフレームを、前記一のタイムスロットに連続する次のタイムスロットで送信することを特徴とした通信制御方法。 In claim 12,
A communication control method, wherein a frame instructing the correction is transmitted in a next time slot following the one time slot.
他の通信ノードとの通信に用いる複数のタイムスロットを割り当て、
前記他の通信ノードからの指示に応じて、前記タイムスロットの位相を前記他の通信ノードにおけるタイムスロットの位相に合わせて補正する通信制御方法。 A communication control method in a communication node,
Allocate multiple time slots used for communication with other communication nodes,
A communication control method for correcting a phase of the time slot according to an instruction from the other communication node according to a phase of the time slot in the other communication node.
前記指示が、前記他の通信ノードからのフレームにより行われることを特徴とした通信制御方法。 In claim 14,
The communication control method, wherein the instruction is performed by a frame from the other communication node.
他の通信ノードとの通信に用いる複数のタイムスロットを割り当てる処理と、
前記他の通信ノードからのフレームを、これを受信すべき一のタイムスロットで受信したか否か判定する処理と、
前記フレームが前記一のタイムスロットで受信されなかった場合、前記他の通信ノードに対して、以降のタイムスロットの位相を前記通信ノードにおけるタイムスロットの位相に合わせて補正するよう指示する処理と、
を実行させるための通信制御プログラム。 In the communication node,
A process of assigning a plurality of time slots used for communication with other communication nodes;
A process of determining whether or not a frame from the other communication node has been received in one time slot to receive the frame;
If the frame is not received in the one time slot, instructing the other communication node to correct the phase of the subsequent time slot according to the phase of the time slot in the communication node;
Communication control program to execute.
他の通信ノードとの通信に用いる複数のタイムスロットを割り当てる処理と、
前記他の通信ノードからの指示に応じて、前記タイムスロットの位相を前記他の通信ノードにおけるタイムスロットの位相に合わせて補正する処理と、
を実行させるための通信制御プログラム。 In the communication node,
A process of assigning a plurality of time slots used for communication with other communication nodes;
In accordance with an instruction from the other communication node, a process of correcting the phase of the time slot according to the phase of the time slot in the other communication node;
Communication control program to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009023924A JP5215894B2 (en) | 2009-02-04 | 2009-02-04 | Communication control circuit, communication node, communication system, and communication control method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009023924A JP5215894B2 (en) | 2009-02-04 | 2009-02-04 | Communication control circuit, communication node, communication system, and communication control method and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010183270A JP2010183270A (en) | 2010-08-19 |
JP5215894B2 true JP5215894B2 (en) | 2013-06-19 |
Family
ID=42764473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009023924A Expired - Fee Related JP5215894B2 (en) | 2009-02-04 | 2009-02-04 | Communication control circuit, communication node, communication system, and communication control method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5215894B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190103983A (en) | 2018-02-28 | 2019-09-05 | 주식회사 마더스제약 | Composition for treating hair loss and promoting hair growth |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6862231B2 (en) * | 2017-03-17 | 2021-04-21 | 日立Astemo株式会社 | Control system, monitoring device |
WO2020039538A1 (en) * | 2018-08-23 | 2020-02-27 | 三菱電機株式会社 | Communication device, communication method, and communication program |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2997279B2 (en) * | 1989-12-28 | 2000-01-11 | 沖電気工業株式会社 | Time-division communication path |
GB2396084B (en) * | 2002-12-03 | 2004-11-17 | Motorola Inc | System node and method for providing media arbitration |
JP2008022071A (en) * | 2006-07-10 | 2008-01-31 | Nissan Motor Co Ltd | Communication network system and method for informing reception error |
WO2008041271A1 (en) * | 2006-09-29 | 2008-04-10 | Fujitsu Microelectronics Limited | Transmitting/receiving system, node and communication method |
-
2009
- 2009-02-04 JP JP2009023924A patent/JP5215894B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190103983A (en) | 2018-02-28 | 2019-09-05 | 주식회사 마더스제약 | Composition for treating hair loss and promoting hair growth |
KR20210058772A (en) | 2018-02-28 | 2021-05-24 | 주식회사 마더스제약 | Composition for treating hair loss and promoting hair growth |
Also Published As
Publication number | Publication date |
---|---|
JP2010183270A (en) | 2010-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10212081B2 (en) | Systems and methods for implementing a time-stamped controller area network (CAN) bus message | |
US10624089B2 (en) | Network system and communication method | |
KR20180066049A (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM, AND COMMUNICATION SYSTEM | |
JP5233770B2 (en) | GATEWAY DEVICE, ITS CONTROL METHOD, SYSTEM, PROGRAM FOR EXECUTING CONTROL METHOD, AND RECORDING MEDIUM CONTAINING THE PROGRAM | |
KR20130116335A (en) | Coexistence mechanism for noncompatible powerline communication devices | |
US20110238774A1 (en) | Data transmitting and receiving method, data transmitting and receiving system, master device, and slave device | |
JP6265058B2 (en) | Network transmission system, its master node, slave node | |
CN107528747B (en) | Method and device for diagnosing communication state of master station and slave station and computer readable storage medium | |
WO2023030336A1 (en) | Data transmission method, tsn node, and computer readable storage medium | |
JP5215894B2 (en) | Communication control circuit, communication node, communication system, and communication control method and program | |
US7428608B2 (en) | Communication system, communication circuit and communication method | |
JP6037446B2 (en) | Network device and method for controlling network device | |
KR20220031008A (en) | Methods and data networks for communicating data content in particular in elevator systems | |
US8989203B2 (en) | Electronic device, communication control method, and recording medium | |
JP2003078536A (en) | Serial communication system | |
US8605733B2 (en) | Method of data transmission, data transmitting apparatus, and network system | |
KR101601303B1 (en) | Method for mediating message with differed typed protocol | |
JP2007074641A (en) | Communication system | |
JP6328324B2 (en) | Wireless communication apparatus, wireless communication method, and wireless communication program | |
JP5320571B2 (en) | Internode data response system | |
US11233624B2 (en) | Cyclic time-slotted operation in a wireless industrial network | |
JP7315980B2 (en) | BASE STATION, COMMUNICATION SYSTEM AND METHOD OF CONTROLLING BASE STATION | |
US20230179312A1 (en) | Time synchronization device, time synchronization system, and recording medium | |
JP2017063390A (en) | Communication method | |
US8095703B2 (en) | Data transfer method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111202 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130111 |
|
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: 20130212 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130301 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160308 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |