JPH0495429A - Multiplex communication equipment - Google Patents

Multiplex communication equipment

Info

Publication number
JPH0495429A
JPH0495429A JP21302590A JP21302590A JPH0495429A JP H0495429 A JPH0495429 A JP H0495429A JP 21302590 A JP21302590 A JP 21302590A JP 21302590 A JP21302590 A JP 21302590A JP H0495429 A JPH0495429 A JP H0495429A
Authority
JP
Japan
Prior art keywords
data
code
node
bus
signal
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.)
Pending
Application number
JP21302590A
Other languages
Japanese (ja)
Inventor
Masaya Tanaka
昌也 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Komatsu Ltd
Original Assignee
Komatsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP21302590A priority Critical patent/JPH0495429A/en
Publication of JPH0495429A publication Critical patent/JPH0495429A/en
Pending legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To save a memory capacity for a common data or the like by using two signals as a data identification signal and a node priority signal to manage a bus. CONSTITUTION:When a data is sent to each node in the reception enable state, a reception data is sent to a data reception circuit 15 via a bus BS input output interface 14, in which an error is checked and a data ID code DID and a main data DT are extracted from a data frame signal and they are inputted to a data buffer control section 11. The control section 11 checks whether or not a same data as the code DID is registered in a data buffer 21 and stores the inputted code DID and main data DT to the buffer 21 when the same code is in existence and inputs a data reception request designating the code DID to a communication control section 50. When the same code DID is not in existence according to the comparison above, the received data frame signal is aborted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、自動車や建設車両などの車両内通信あるい
は産業機械の機械内通信に適用される多重通信装置に関
し、特に機械内谷部に複数の制御器(ノード)を分散し
、これら複数のノード間で情報交換を行なう分散型の多
重通信装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a multiplex communication device applied to in-vehicle communication such as automobiles and construction vehicles, or in-machine communication in industrial machinery, and particularly relates to a multiplex communication device that is applied to in-vehicle communication such as automobiles and construction vehicles, or in-machine communication in industrial machinery. The present invention relates to a distributed multiplex communication device in which controllers (nodes) are distributed and information is exchanged between the plurality of nodes.

〔従来の技術〕[Conventional technology]

昨今の電子制御技術の進歩に伴い車両内、特に自動車に
おいて多くのマイクロコンピュータが導入され、性能や
快適性向上に貢献している。ところがその反面、これら
のシステムではセンサやスイッチとコントローラとアク
チュエータとの間の配線がシステム毎に別個に引かれて
いるために、高度な機能の絹み込みか増えるにつれてス
ペース・重量の増大、設計・保守の煩雑化、コントロー
ラ間での情報交換手段の不備等が問題になってきた。そ
こで既にオフィスでは普及している多重通信システムを
応用しこれらの問題を解決しようという試みがなされ、
いくつかのシステムが提案・実用化されてきた。
With recent advances in electronic control technology, many microcomputers have been introduced into vehicles, especially automobiles, contributing to improved performance and comfort. On the other hand, however, in these systems, the wiring between sensors, switches, controllers, and actuators is routed separately for each system, so as the number of advanced functions increases, the space and weight increase, and the design becomes more complicated. - Complicated maintenance and inadequate means of exchanging information between controllers have become problems. Therefore, attempts were made to solve these problems by applying the multiplex communication system that is already widespread in offices.
Several systems have been proposed and put into practical use.

これらシステエムの1つに、CAN(Controll
er  Area  Network)として知られて
いる第6図に示すような車両内多重通信システムかある
。このシステムでは、ボディ電装系、自己診断系、パワ
ートレイン、ブレーキ、サスペンシヨン系のそれぞれに
いくつかの制御器(ノード)を配し、これら複数のノー
ド間をノ1ス接続するようにしている。このシステムで
は、通信用プロトコルとして第5図に示すようなデータ
フレーム信号を用いている。
One of these systems is CAN (Control
There is an in-vehicle multiplex communication system as shown in FIG. 6, which is known as an in-vehicle area network. In this system, several controllers (nodes) are arranged for each of the body electrical system, self-diagnosis system, power train, brake, and suspension system, and a node is connected between these multiple nodes. . This system uses a data frame signal as shown in FIG. 5 as a communication protocol.

DID、データ識別コート(データIDコート)DL 
、データ長コード DT 、データ本体 ERRCRCなとのエラーチエツクコートデータIDツ
ー)” D I Dは、当該データフレーム信号のメツ
セージの内容(データ名)を識別させるだめのもので、
このデータIDコートDIDはバス使用の優先順位の識
別も兼ねている。
DID, data identification coat (data ID coat) DL
, data length code DT, data body ERRCRC, error check code data ID2)" DI D is used to identify the message content (data name) of the data frame signal.
This data ID code DID also serves to identify the priority order of bus use.

この場合は、数の最も小さい00・ 0か最優先であり
、数か増加するに伴ない優先度か下かるようになってい
る。
In this case, the lowest number 00/0 has the highest priority, and as the number increases, the priority decreases.

また、このCANシステムでは各ノートはハスを常時監
視していてバスか空くと各自送信を開始する。この際、
マルチアクセス方式なので複数のノードか同時にハスに
アクセスしてよく、同時アクセスか有ったときは、前記
データフレーム信号中の先頭にあるデータIDコードD
ID(優先度)を1ビツトごと比べることによって使用
権を奪い合う。CANハス上では「0」か優勢で、!・
ス上て「0」と「]」か衝突した場合バス上の信号は「
0」になるようにプルダウン処理かなされているので、
結局その時バスに送信されているメツセージのデータI
Dのうち最も優先度の高いものだけか残り、他は破壊さ
れる。各ノードはバスをモニタしているので、このメカ
ニズムによりバス上に自分の送ったメツセージより優先
度の高いものがあるかどうかを知ることができ、あれば
その時点で自分は受信側にまわる。従って送信されたメ
ツセージのうち最高優先度のものだけか最後まで送信さ
れる。
Furthermore, in this CAN system, each node constantly monitors the bus and starts transmitting itself when the bus becomes free. On this occasion,
Since it is a multi-access method, multiple nodes can access the lot at the same time, and when there is simultaneous access, the data ID code D at the beginning of the data frame signal is
They compete for the right to use by comparing IDs (priorities) bit by bit. On the CAN lotus, it is "0" or dominant,!・
If there is a collision between "0" and "]" on the bus, the signal on the bus will be "0" and "]".
Since it has been pulled down so that it becomes 0,
After all, the data I of the message being sent to the bus at that time
Among D, only the one with the highest priority remains, and the others are destroyed. Since each node monitors the bus, this mechanism allows it to know if there is a message on the bus that has higher priority than its own, and if so, it can take over as the receiver. Therefore, among the messages sent, only the one with the highest priority is sent to the end.

また、CANシステムでは、メツセージを全ノートに発
信して受信側で必要なメツサージかとうかを判断する。
Furthermore, in the CAN system, a message is sent to all notes, and the receiving side determines whether the message is a necessary message or not.

どのメツセージを取り込むかは各ノードの初期化の際に
各ノートに所要のデータIDを登録することで決める。
Which message to import is determined by registering a required data ID in each note when each node is initialized.

すなわち、各ノートが登録されているデータIDとバス
上のメツセージを見比べて一致したメツセージだけを取
り込み、不要なメツセージは捨てられる。
That is, the data ID registered with each note is compared with the message on the bus, and only messages that match are taken in, and unnecessary messages are discarded.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このように、このCANシステムでは、データ送信の調
停はデータIDコードDIDを用い優先度による制御を
行っている。この調停方式はノドか増加するなとして通
信負荷が大きくなっても優先度の高いデータの応答性は
悪化しないため、高応答性を要求される車両用などの実
時間制御システムに適している。
In this way, in this CAN system, data transmission arbitration is controlled based on priority using the data ID code DID. This arbitration method is suitable for real-time control systems such as those for vehicles that require high responsiveness because the responsiveness of high-priority data does not deteriorate even if the communication load increases.

しかしながら、このCANシステムにおいて、複数のノ
ートに亘って共通に使用されるデータが存在する場合に
は次のような不都合が発生してしまう。すなわち、複数
のノードに亘っての共通データ夫々に同しデータIDコ
ートDIDを割当てると、複数のノートかこれら同しデ
ータIDコートDIDを持つデータフレーム信号を送出
してしまった場合、全く同し優先度を持つデータか同時
に送出されることになり、データ内容が保障されなくな
ってしまう。
However, in this CAN system, if there is data that is commonly used across multiple notes, the following inconvenience will occur. In other words, if the same data ID code DID is assigned to each common data across multiple nodes, if multiple nodes send out data frame signals with the same data ID code DID, the data frame signals will be completely identical. Data with priority will be sent out at the same time, and the data content will no longer be guaranteed.

また、これら共通データに対して各ノート毎に別のID
コードを割当てた場合には、M個のノド、N個の共通デ
ータに対してMXN個のIDコードか必要となり、ID
コードの管理が面倒、複雑になるとともに、これらID
コード用の記憶領域か増大してしまうという問題がある
In addition, for these common data, a separate ID is provided for each note.
When assigning codes, MXN ID codes are required for M nodes and N common data, and ID
Managing codes becomes troublesome and complicated, and these IDs
There is a problem that the storage area for the code increases.

この発明はこのような事情に鑑みてなされたもので、共
通データの管理を容易にするとともに、共通データ格納
領域を削減することができる多重通信装置を提供しよう
とするものである。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a multiplex communication device that can facilitate the management of common data and reduce the common data storage area.

〔課題を解決するための手段〕[Means to solve the problem]

この発明では、2値信号レベルのうち一方の信号レベル
が優先されるバスに複数のノードを接続し、これら複数
のノード間で多重通信を行なう多重通信装置において、
前記各ノードは、デ・−夕名およびそのデータの優先度
を示すデータ識別信号と、当該ノードの優先度を示すノ
ード優先信号と、データとを含むデータフレーム信号を
送信する送信手段と、前記バス上に送出されたデータフ
レーム信号中の前記データ識別信号およびノード優先信
号の状態からバス使用権の有無を判定し、この判定結果
に対応して前記送信手段を制御するバス調停手段とを送
信側に具えるとともに、バス上のデータフレーム信号中
のデータ識別信号を当該ノードに予め登録されたデータ
識別信号と比較し、この比較結果に対応して受信データ
フレーム信号の取捨制御を行なうデータ取捨制御手段を
受信側に具えるようにする。
In the present invention, in a multiplex communication device in which a plurality of nodes are connected to a bus in which one of the binary signal levels is given priority, and multiplex communication is performed between the plurality of nodes,
Each of the nodes transmits a data frame signal including a data identification signal indicating a data name and the priority of the data, a node priority signal indicating the priority of the node, and data; bus arbitration means for determining the presence or absence of the right to use the bus from the states of the data identification signal and node priority signal in the data frame signal sent on the bus, and controlling the transmission means in accordance with the determination result; and a data discarding device that compares the data identification signal in the data frame signal on the bus with the data identification signal registered in advance in the node concerned, and controls the discarding of the received data frame signal in accordance with the comparison result. A control means is provided on the receiving side.

〔作用〕[Effect]

かかる構成によれば、バス使用権の有無をデータ識別信
号およびノード優先信号の2つの信号を用いて判定する
According to this configuration, the presence or absence of the right to use the bus is determined using two signals, the data identification signal and the node priority signal.

〔実施例〕〔Example〕

以下、この発明を添付図面に示す実施例にしたがって説
明する。
The present invention will be described below with reference to embodiments shown in the accompanying drawings.

第1図はこの実施例システムの全体的構成を示すもので
、複数の制御器(ノード)1〜Mが1ビツトのバスBS
に接続されている。これら複数のノード1〜Mは全て同
一構成であり、内部に通信部10やメモリ20を備えて
いる。
FIG. 1 shows the overall configuration of this embodiment system, in which a plurality of controllers (nodes) 1 to M are connected to a 1-bit bus BS.
It is connected to the. These plurality of nodes 1 to M all have the same configuration and include a communication section 10 and a memory 20 inside.

第2図は、この実施例システムで用いるデータフレーム
信号を示すもので、第5図に示した従来のデータフレー
ム信号に対してノード識別コート(ノードIDコード)
NIDを付加するようにしている。すなわち、第2図に
おいて、 DID 、データIDコード NID・ノートIDコード DL  、データ長コード DT ;データ本体 ERR、CRCなどのエラーチエツクコードである。
FIG. 2 shows a data frame signal used in this embodiment system. In contrast to the conventional data frame signal shown in FIG. 5, a node identification code (node ID code)
I am trying to add an NID. That is, in FIG. 2, DID, data ID code NID/note ID code DL, data length code DT; data body ERR, error check code such as CRC.

ノードIDコードNIDは、各ノード1〜Mの識別と各
ノードの優先順位の識別を兼ねたものであり、各ノード
毎に異なるコード内容が設定されるようになっている。
The node ID code NID serves both to identify each of the nodes 1 to M and to identify the priority order of each node, and different code contents are set for each node.

このコードNIDもデータIDコードDIDと同様、数
か小さくなるに伴い優先順位が上がるようになっており
、000・・0が最優先である。
Like the data ID code DID, this code NID also has a priority order that increases as the number decreases, with 000...0 having the highest priority.

データIDコードDIDは前述したように、メツセージ
内容(データ名)を識別させるだめのものであり、複数
のノードに亘って共通に使用される共通データに対して
は、同一のコードを設定している。そして、これら共通
データについては、ノードIDコードNIDを使って優
先順位を区別し、データ同時送出時のバス調停を行える
ようにしている。
As mentioned above, the data ID code DID is used to identify the message content (data name), and the same code should be set for common data that is commonly used across multiple nodes. There is. Regarding these common data, the priority order is distinguished using the node ID code NID, so that bus arbitration can be performed when data is simultaneously transmitted.

すなわち、本装置においては、ノードIDコードNID
との2つのコードを使ってデータの送信を管理する。
That is, in this device, the node ID code NID
Manage data transmission using two codes:

なお、上記データフレーム信号によって、例えば、ライ
トの「オン」を表わす場合、データIDコードDIDで
ライトの点灯/消灯に関する命令であることを表わし、
データ本体DTで「オン」を表わしている。
Note that, for example, when the data frame signal indicates "on" of a light, the data ID code DID indicates that it is a command regarding turning on/off the light,
The data body DT indicates "on".

第1図に示したバスBSにはプルダウン処理が施されて
おり、このバスBSにおいては次の2つのルールに従っ
てバスの状態が決定される。
The bus BS shown in FIG. 1 is subjected to pull-down processing, and the state of the bus is determined according to the following two rules.

・ルール1.全てのノードが「1」を発信した場合、バ
スBSの状態は「1」になる。
・Rule 1. If all nodes transmit "1", the state of bus BS becomes "1".

・ルール2:1つでも「0」を発信しているノードがあ
ると、バスBSの状態は「0」になる。
-Rule 2: If there is even one node transmitting "0", the state of bus BS becomes "0".

第3図は各ノード1〜Mの内部構成を示すものであり、
通信部10、メモリ20、情報処理部30、制御入出力
インターフェース40および通信制御部50を備えてい
る。
FIG. 3 shows the internal configuration of each node 1 to M.
It includes a communication section 10, a memory 20, an information processing section 30, a control input/output interface 40, and a communication control section 50.

制御入出力インターフェース40は、当該ノード]から
の制御データに応して負荷を駆動するアクチュエータ類
と当該ノード1に検出データ等を入力するセンサ類と接
続されており、これらとの間で、インターフェース合わ
せを行なう。
The control input/output interface 40 is connected to actuators that drive a load according to control data from the node 1 and sensors that input detection data etc. to the node 1. Perform alignment.

情報処理部30ては、受信したデータフレーム信号中の
データDTを当該ノードに接続されたアクチュエータを
駆動できる信号に変換する処理、当該ノードに接続され
たセンサ類からの信号をデータフレーム信号のデータD
Tのフォーマットに変換スる処理、エラーチエ・ツク処
理等を行なう。
The information processing unit 30 converts the data DT in the received data frame signal into a signal that can drive the actuator connected to the node, and converts the signals from the sensors connected to the node into data of the data frame signal. D
Performs processing such as conversion to the T format and error checking processing.

メモリ20のデータバッファ21には、当該ノードで使
用するデータに対応するデータIDコードDIDが予め
登録されている。また、このデータバッファ21には、
送受信データを一時記憶するワークエリアも有している
In the data buffer 21 of the memory 20, a data ID code DID corresponding to data used in the node is registered in advance. Moreover, this data buffer 21 has
It also has a work area for temporarily storing transmitted and received data.

ノードID設定用メモリ22は、当該ノードに対応する
ノードIDコードNIDが予め設定されており、その出
力はID付加回路12に接続されている。
The node ID setting memory 22 has a node ID code NID corresponding to the node set in advance, and its output is connected to the ID adding circuit 12.

通信部10は、データバッファ制御部]1、ID付加回
路12、バス調停回路13、バス入出力インターフェー
ス14およびデータ受信回路15を備えている。
The communication section 10 includes a data buffer control section 1, an ID addition circuit 12, a bus arbitration circuit 13, a bus input/output interface 14, and a data reception circuit 15.

データバッファ制御部11はデータバッファ21に対す
る読み書きを行なうとともに、受信処理では、受信デー
タのデータIDコートDIDをデータバッファ21に登
録されたデータIDコードDIDと比較し、一致したと
きのみ受信データをデータバッファ21に書き込む。
The data buffer control unit 11 reads and writes data from and to the data buffer 21, and in the reception process, compares the data ID code DID of the received data with the data ID code DID registered in the data buffer 21, and only when they match, transfers the received data to the data buffer 21. Write to buffer 21.

ID付加回路12はデータノ・ツファ制御部]]を介し
て受入したデータIDコードDID、データ長コードD
L、データ本体DTに対してノードID設定用メモリ2
2に登録されたノードIDコードNIDを付加する。
The ID addition circuit 12 receives the data ID code DID and data length code D received through the data transfer control unit].
L, memory 2 for setting node ID for data body DT
Add the registered node ID code NID to 2.

データ受信回路15てはバス入出力インターフェース1
4を介して受信データの受信処理を行ない、受信データ
をデータバッファ制御部11に人力する。
Data receiving circuit 15 is bus input/output interface 1
4, and manually inputs the received data to the data buffer control section 11.

バス調停回路13は、データ送出の際、バスBSを監視
してデータフレーム信号中のデータIDコードDIDお
よびノードIDコートNIDを1ビット毎比べることで
バス使用の調停を行なうものであり、具体的には、ある
ノードが自分がrlJを発信したのにバスか「0」であ
ることを検知したら、(自分の発信しているメツセージ
より優先度の高いメツセージが発信されているというこ
となので)送信を止め、受信処理を開始するようにして
いる。
The bus arbitration circuit 13 arbitrates bus usage by monitoring the bus BS and comparing the data ID code DID and node ID code NID in the data frame signal bit by bit when transmitting data. In this case, if a certain node detects that the rlJ is a bus or "0" even though it has sent an rlJ, it will send it (because this means that a message with a higher priority than the message it is sending is being sent). is stopped, and reception processing is started.

通信制御部50は情報処理部30のデータ送信要求に応
答して通信部10の各構成要素に送信動作を行なわせる
とともに、データバッファ制御部11のデータ受信要求
を情報処理部30に伝える動作を行なう。
The communication control unit 50 causes each component of the communication unit 10 to perform a transmission operation in response to a data transmission request from the information processing unit 30, and also performs an operation of transmitting a data reception request from the data buffer control unit 11 to the information processing unit 30. Let's do it.

次に、送信動作を説明すると、情報処理部30は制御入
出力インターフェース40を介して受入したセンサ類の
データから第2図に示したデータフレーム信号中のデー
タIDコードD I D、データ長コードDLおよびデ
ータ本体DTを形成し、通信制御部50にデータIDコ
ードDIDを指定してデータ送信要求を出し、これらを
データバッファ21に書き込む。
Next, to explain the transmission operation, the information processing unit 30 calculates the data ID code DI and data length code in the data frame signal shown in FIG. 2 from the sensor data received via the control input/output interface 40. DL and data body DT are formed, a data transmission request is issued to the communication control unit 50 by designating the data ID code DID, and these are written into the data buffer 21.

これに応答して通信制御部50は、通信部1゜の各構成
要素に送信時の動作を行わせるとともに、データバッフ
ァ制御部11にデータIDコードDIDを指定する。デ
ータバッファ制御部11は指定されたデータIDコード
DIDに対応するデータ(DID、DLおよびDT)を
データバッファ21から読出し、これらをID付加回路
12に入力する。ID付加回路12は入力されたデータ
にノードID設定用メモリ22の設定内容すなわちノー
ドIDコードNIDを付加し、更にエラーチエツクコー
ドERRを付加して第2図に示したデータフレーム信号
を形成した後、これをバス調停回路13に入力する。
In response to this, the communication control unit 50 causes each component of the communication unit 1° to perform a transmission operation, and also specifies the data ID code DID to the data buffer control unit 11. The data buffer control unit 11 reads data (DID, DL, and DT) corresponding to the designated data ID code DID from the data buffer 21 and inputs them to the ID adding circuit 12. The ID adding circuit 12 adds the setting contents of the node ID setting memory 22, that is, the node ID code NID, to the input data, and further adds an error check code ERR to form the data frame signal shown in FIG. , which is input to the bus arbitration circuit 13.

バス調停回路13では第4図に示す手順に従ってバスの
調停を行なう。すなわち、まずバスBSの状態を調べ、
バスBSが空きであると送信動作を開始する(ステップ
・・・100〜12o)。送信動作が開始されると、デ
ータの衝突の有無が判定され(ステップ・・・130)
、衝突がない場合はこれ以降送信が終了するまで送信動
作が続行される(ステップ・・・170、]80)。デ
ータ衝突がある場合は、まずバスBSを監視してデータ
フレーム信号中の先頭にあるデータIDコードDIDを
1ビット毎比べることて、自ノードより優先度の高いデ
ータが有るか否かを調べ(ステップ・・・140)、有
る場合は送信動作を中断する(ステップ・・・160)
The bus arbitration circuit 13 performs bus arbitration according to the procedure shown in FIG. In other words, first check the status of the bus BS,
When the bus BS is empty, a transmission operation is started (steps 100 to 12o). When the transmission operation is started, it is determined whether or not there is a data collision (step...130).
If there is no collision, the transmission operation continues from now on until the transmission is completed (steps 170, ]80). If there is a data collision, first monitor the bus BS and compare the data ID code DID at the head of the data frame signal bit by bit to check whether there is data with a higher priority than the own node ( Step...140), if there is, interrupt the transmission operation (Step...160)
.

しかし、ステップ140の判定で自ノードより優先度の
高いデータが存在しない場合は、今度はデータフレーム
信号中のノードIDコードNIDを1ビット毎比べるこ
とで自ノードより優先度の高いノードIDコードNID
による送信動作か有るか否かを調べ(ステップ・ 15
0)、有る場合には送信動作を中断し、無い場合は送信
動作を続行する。
However, if it is determined in step 140 that there is no data with a higher priority than the own node, then the node ID code NID in the data frame signal is compared bit by bit to determine the node ID code NID with a higher priority than the own node.
(Step 15)
0), if there is, the transmission operation is interrupted; otherwise, the transmission operation is continued.

すなわち、前述したようにハスBSにおいてはrOJが
優勢でバスBS上で「0」と「1」とか衝突した場合ハ
スBS上の信号は「0コになるので、バスBS上のデー
タIDコードDIDおよびノードIDコードNIDを監
視することで、自分の送ったメツセージより優先度の高
いものが有るか否かを知ることができ、結果的に送信さ
れたメツセージのうち最高優先度のものだけか最後まで
残る。
That is, as mentioned above, in the Hass BS, rOJ is dominant, and if "0" and "1" collide on the bus BS, the signal on the Hass BS becomes "0", so the data ID code DID on the bus BS By monitoring the node ID code NID, you can know whether there is a message with a higher priority than the one you sent, and as a result, among the messages sent, only the one with the highest priority or the last remain until

例えば、第1図において、ノード1とノート2とがノー
ド1とノード2との共通データを同時に送出したとする
。ノード番号の小さい方が優先順位が高いとする。ノー
ド1およびノード2のバス調停回路13では、まずバス
BS上のデータIDコードDIDを調べるか、この場合
は共通データであるため優先順位は同してあり、この時
点てはノード1とノード2との両方にハスBS使用権は
ある。次に、各ノード1.2において、バスBS上のノ
ードIDコードNIDが調べられるか、この場合、番号
の小さいノード1側の優先度が高いので、結果的にノー
ド1側にハスBS使用権か与えられる。
For example, in FIG. 1, assume that node 1 and node 2 simultaneously send out common data between nodes 1 and 2. It is assumed that a node with a smaller node number has a higher priority. The bus arbitration circuit 13 of node 1 and node 2 first checks the data ID code DID on the bus BS, or in this case, since the data is common data, the priority order is the same, and at this point, node 1 and node 2 Both have the right to use Hass BS. Next, in each node 1.2, the node ID code NID on the bus BS is checked.In this case, since the node 1 side with the smaller number has a higher priority, the node 1 side is given the right to use the bus BS. or given.

なお、上記送信動作において、データの衝突によって送
信が中断や終了されたノードでは、即座に受信側にまわ
り、データ受信に待機する(ステップ・・・190.2
00)。
In the above transmission operation, if the transmission is interrupted or terminated due to a data collision, the node immediately goes to the receiving side and waits to receive data (step...190.2).
00).

次に、受信動作について説明する。Next, the reception operation will be explained.

各ノードは送信動作以外のときはデータ受信に備え、受
信動作可能状態となっている。
Each node prepares for data reception and is ready for data reception when not in a transmission operation.

この状態のときにデータが送られてくると、受信データ
はハスBS入出力インターフェース14を介してデータ
受信回路15に送られ、ここでエラーチエツクが行われ
るとともにデータフレーム信号中からデータIDコード
DIDとデータ本体DTが取り出され、データバッファ
制御部11に入力される。データバッファ制御部11て
は人力されるデータIDコードDIDと同じものがデー
タバッファ21に登録されているか否かを調べ、同じも
のがあれば、入力されたデータIDコードDIDとデー
タ本体DTをデータバッファ21に記憶するとともに、
データIDコードDIDを指定したデータ受信要求を通
信制御部50に入力する。上記比較により同じデータI
DコードDIDが存在しない場合は、受信されたデータ
フレーム信号は廃棄される。
When data is sent in this state, the received data is sent to the data receiving circuit 15 via the Hass BS input/output interface 14, where an error check is performed and the data ID code DID is detected from the data frame signal. The data body DT is taken out and input to the data buffer control section 11. The data buffer control unit 11 checks whether the same data ID code DID as the manually entered data ID code DID is registered in the data buffer 21. If the data ID code DID entered manually is the same as the data ID code DID, the input data ID code DID and the data body DT are transferred to the data buffer 21. While storing it in the buffer 21,
A data reception request specifying the data ID code DID is input to the communication control unit 50. The same data I according to the above comparison
If the D-code DID is not present, the received data frame signal is discarded.

通信制御部50は入力されたデータ受信要求およびデー
タIDコードDIDを情報処理部30に入力する。これ
により、情報処理部30はデータバッファ21から対応
するデータ本体DTを読み出し、これに基き所定の情報
処理を行う。例えばデータを制御入出力インターフェー
ス40を介して当該ノードのアクチュエータ類に出力し
てアクチュエータを駆動する。
The communication control unit 50 inputs the input data reception request and data ID code DID to the information processing unit 30. Thereby, the information processing section 30 reads the corresponding data body DT from the data buffer 21, and performs predetermined information processing based on this. For example, data is output to the actuators of the node via the control input/output interface 40 to drive the actuators.

このように本実施例によれば、データフレーム信号に各
ノードの優先度を示すノードIDコードNIDを付加し
、ハスBS調停をこのノードIDコードNIDとデータ
IDコードDIDとの2つのIDコードを用いて行なう
ようにしたので、IDコードおよび共通データ用のメモ
リ容量を削減できる。また、受信時には、上記2つのI
DコードのうちデータIDコードDIDだけを用いて受
信動作を行えるので、共通データが多く存在した場合で
も共通データの管理が容易になる。
According to this embodiment, the node ID code NID indicating the priority of each node is added to the data frame signal, and the Hass BS arbitration is performed using two ID codes, the node ID code NID and the data ID code DID. Since this is done by using the ID code and common data, the memory capacity for the ID code and common data can be reduced. Also, when receiving, the above two I
Since the receiving operation can be performed using only the data ID code DID among the D codes, management of the common data becomes easy even when a large amount of common data exists.

〔発明の効果〕〔Effect of the invention〕

以上説明したようにこの発明によれば、データ識別信号
とノード優先信号との2つの信号を用いてバス管理を行
うようにしたので、ノード数や共通データか増加した場
合でも、共通データ等のためのメモリ容量を削減できる
とともに、共通データの管理が簡単になる。
As explained above, according to the present invention, bus management is performed using two signals, the data identification signal and the node priority signal, so even if the number of nodes or common data increases, common data, etc. In addition to reducing the memory capacity required for data processing, the management of common data becomes easier.

フェース、15・・データ受信回路、20・・・メモリ
、21・・・データバッファ、22・・・ノードID設
定用メモリ、30・・・情報処理部、40・・・制御入
出力インターフェース、50・・・通信制御部
15... Data receiving circuit, 20... Memory, 21... Data buffer, 22... Memory for node ID setting, 30... Information processing section, 40... Control input/output interface, 50 ...Communication control section

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明の一実施例を示すブロック図、第2図
は実施例で用いるデータフレーム信号を示す図、第3図
は各ノードの内部構成を示すブロック図、第4図はバス
調停の動作を示すフローチャート、第5図は従来のデー
タフレーム信号を示す図、第6図は車載多重通信システ
ムの外観構成図である。 1〜M・・・ノード(制御器)、10・・・通信部、]
1・・データバッファ制御部、12・・・I’D付加回
路、13・・ハス調停回路、]4 ハス入出力インター
第1図
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a diagram showing data frame signals used in the embodiment, Fig. 3 is a block diagram showing the internal configuration of each node, and Fig. 4 is a bus arbitration diagram. FIG. 5 is a diagram showing a conventional data frame signal, and FIG. 6 is an external configuration diagram of an in-vehicle multiplex communication system. 1 to M...Node (controller), 10...Communication unit,]
1...Data buffer control unit, 12...I'D addition circuit, 13...Has arbitration circuit, ]4 Hass input/output interface Figure 1

Claims (1)

【特許請求の範囲】  2値信号レベルのうち一方の信号レベルが優先される
バスに複数のノードを接続し、これら複数のノード間で
多重通信を行なう多重通信装置において、 前記各ノードは、 データ名およびそのデータの優先度を示すデータ識別信
号と、当該ノードの優先度を示すノード優先信号と、デ
ータとを含むデータフレーム信号を送信する送信手段と
、 前記バス上に送出されたデータフレーム信号中の前記デ
ータ識別信号およびノード優先信号の状態からバス使用
権の有無を判定し、この判定結果に対応して前記送信手
段を制御するバス調停手段とを送信側に具えるとともに
、 バス上のデータフレーム信号中のデータ識別信号を当該
ノードに予め登録されたデータ識別信号と比較し、この
比較結果に対応して受信データフレーム信号の取捨制御
を行なうデータ取捨制御手段を受信側に具えるようにし
たことを特徴とする多重通信装置。
[Scope of Claim] A multiplex communication device in which a plurality of nodes are connected to a bus in which one of binary signal levels is given priority, and multiplex communication is performed between the plurality of nodes, wherein each of the nodes transmits data. transmitting means for transmitting a data frame signal including a data identification signal indicating a name and the priority of the data, a node priority signal indicating the priority of the node, and data; and a data frame signal sent onto the bus. The transmitting side includes bus arbitration means for determining the presence or absence of the right to use the bus from the states of the data identification signal and node priority signal in the bus, and controlling the transmitting means in accordance with the result of this determination; The receiving side is provided with a data discard control means for comparing the data identification signal in the data frame signal with a data identification signal registered in advance in the node, and controlling the discarding of the received data frame signal in accordance with the comparison result. A multiplex communication device characterized by:
JP21302590A 1990-08-10 1990-08-10 Multiplex communication equipment Pending JPH0495429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21302590A JPH0495429A (en) 1990-08-10 1990-08-10 Multiplex communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21302590A JPH0495429A (en) 1990-08-10 1990-08-10 Multiplex communication equipment

Publications (1)

Publication Number Publication Date
JPH0495429A true JPH0495429A (en) 1992-03-27

Family

ID=16632264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21302590A Pending JPH0495429A (en) 1990-08-10 1990-08-10 Multiplex communication equipment

Country Status (1)

Country Link
JP (1) JPH0495429A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014222588A1 (en) 2013-11-12 2015-05-13 Denso Corporation COMMUNICATION DEVICE

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014222588A1 (en) 2013-11-12 2015-05-13 Denso Corporation COMMUNICATION DEVICE

Similar Documents

Publication Publication Date Title
KR920001576B1 (en) Network system using token-passing bus with multiple priority levels
JP3115322B2 (en) How the message is formed
US5303348A (en) Method of arbitrating access to a data bus and apparatus therefor
US7602779B2 (en) Microprocessor, network system and communication method
CA2103895C (en) Method and apparatus for controlling data communication operations within stations of a local area network
US4727537A (en) Flow control arrangement for the transmission of data packets to a communication network
US4887075A (en) Local area network system with a multi-computer system coupled thereto and method for controlling the same
JP2006191337A (en) Gateway device for transferring message between buses and network system using the device
US5388089A (en) Apparatus for connecting multiplex transmission systems
EP0616450A2 (en) Communication control device
US4910732A (en) Onechip-computers as network-controller and computer
JPH0495429A (en) Multiplex communication equipment
JP2000224208A (en) Packet transfer controller and packet transfer method
KR100583811B1 (en) The can message identifier allocation method and the can message transfer arbitration method for the humanoid robot
JP2001094537A (en) Transmission device equipped with error processing function and error processing method
JPS5986940A (en) Information transmitting system of multi-drop system
JP3797049B2 (en) Communication device between control nodes
JP2001325212A (en) Method and device for transmitting data block from source processor to destination processor in multiprocessor system
JPS61210740A (en) Emergency communicating control system for token bus type local network system
JPH0720109B2 (en) Network system using token passing bus method
JPH063929B2 (en) Data transmission control method in loop-shaped transmission system
JPH0816501A (en) Communication equipment and communication system using this equipment
JPH09181754A (en) Communication control system and communication control method
JPH0482344A (en) Bus type local network system
JPH06152604A (en) Transmission request controller in lan