JP2936671B2 - Communication device - Google Patents

Communication device

Info

Publication number
JP2936671B2
JP2936671B2 JP2216693A JP21669390A JP2936671B2 JP 2936671 B2 JP2936671 B2 JP 2936671B2 JP 2216693 A JP2216693 A JP 2216693A JP 21669390 A JP21669390 A JP 21669390A JP 2936671 B2 JP2936671 B2 JP 2936671B2
Authority
JP
Japan
Prior art keywords
transmission
priority
information
station
communication
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
Application number
JP2216693A
Other languages
Japanese (ja)
Other versions
JPH0498934A (en
Inventor
和広 樋口
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2216693A priority Critical patent/JP2936671B2/en
Publication of JPH0498934A publication Critical patent/JPH0498934A/en
Application granted granted Critical
Publication of JP2936671B2 publication Critical patent/JP2936671B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、通信装置に関し、詳しくは通信回線を多重
化して情報伝送を行う多重伝送網の一局を構成する通信
装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication device, and more particularly, to a communication device that forms one station of a multiplex transmission network that multiplexes a communication line and transmits information.

[従来の技術] 従来より、複数の通信装置(以下、ノードという)が
通信回線を多重化して相互に通信を行うネットワーク、
たとえば、中央局としてのマスタ・ノードとマスタ・ノ
ードとのみ通信を行う複数のスレーブ・ノードとが時分
割方式により多重化された通信回線を介してシリアル双
方向通信を行う車両用の多重伝送システムが知られてい
る。
[Prior Art] Conventionally, a network in which a plurality of communication devices (hereinafter, referred to as nodes) multiplex communication lines and communicate with each other,
For example, a multiplex transmission system for a vehicle in which a master node as a central station and a plurality of slave nodes communicating only with the master node perform serial bidirectional communication via a communication line multiplexed by a time division method. It has been known.

この種の多重伝送システムでは、各スレーブ・ノード
は、各種スイッチやアクチュエータなどの外部機器に接
続されており、マスタ・ノードから伝送された操作情報
に従って外部機器へ操作信号を出力する。また、外部機
器からの入力信号の変化時に、その信号状態に関する情
報をマスター・ノードへ送信する通常の送信を行うと共
に、周期的に、直前の通常送信で送った信号状態情報を
マスタ・ノードへ再送信して自局が正常に作動している
ことを知らせるバックアップ送信も行う。一方、マスタ
・ノードは、各スレーブ・ノードからの情報を収集・処
理すると共に各スレーブ・ノードへ操作情報を送信す
る。
In this type of multiplex transmission system, each slave node is connected to external devices such as various switches and actuators, and outputs an operation signal to the external device according to operation information transmitted from the master node. In addition, when an input signal from an external device changes, normal transmission for transmitting information about the signal state to the master node is performed, and the signal state information transmitted in the immediately preceding normal transmission is periodically transmitted to the master node. Backup transmission is also performed to re-transmit and inform that the own station is operating normally. On the other hand, the master node collects and processes information from each slave node, and transmits operation information to each slave node.

このようにマスタ・ノードと各スレーブ・ノードとの
間で送信が頻繁に行われコンテンションが起こることが
あるので、多重伝送システムにおいては、一般に、送信
の優先順位が予め決められており、優先順位の高いノー
ドの送信が優先されることで通信秩序を保つようにして
いる。
As described above, since transmission frequently occurs between the master node and each slave node and contention may occur, in a multiplex transmission system, transmission priorities are generally determined in advance, and priority is given to transmission priorities. The communication order is maintained by giving priority to the transmission of the node with the higher rank.

[発明が解決しようとする課題] しかし、上記多重伝送システムでは、優先順位の低い
スレーブ・ノードが信号状態情報を送信する際、優先順
位の高いスレーブ・ノードのバックアップ送信と衝突す
ると、後者の送信が優先され、前者の送信が遅れるの
で、マスタ・ノードでの情報収集・処理に時間が掛かる
ことになり、そのためマスタ・ノードからスレーブ・ノ
ードへの操作情報の送信が遅れて外部機器の操作に支障
を来すことがあった。
[Problems to be Solved by the Invention] However, in the multiplex transmission system, when a slave node having a lower priority transmits signal state information and collides with backup transmission of a slave node having a higher priority, the latter transmission is performed. Priority is given to the former, and the former transmission is delayed, so it takes time for information collection and processing at the master node, and as a result, the transmission of operation information from the master node to the slave node is delayed, and operation of external devices is delayed. There was a problem.

そこで、本発明は迅速に情報伝送ができる通信装置を
提供することを目的としてなされた。
Therefore, an object of the present invention is to provide a communication device capable of transmitting information quickly.

[課題を解決するための手段] 本発明の要旨とするところは、 通信回線を多重化して情報伝送を行う多重伝送網の一
局を構成し、他局との間で互いの送信が衝突するコンテ
ンションの発生時に何れの局の送信を優先するかについ
ての該多重通信網における優先順位が予め定められた通
信装置であって、 上記優先順位の情報を設定する第1の優先順位情報設
定手段と、 予め定められた他局の上記優先順位より低い優先順位
の情報を設定する第2の優先順位情報設定手段と、 外部機器から入力される信号の状態変化を検出する検
出手段と、 該検出手段により信号の状態変化が検出されると、該
変化状態を表す状態情報に上記第1の優先順位情報設定
手段により設定された優先順位情報を付け加えて送信す
る第1の送信手段と、 上記検出手段により信号の状態変化が検出されない間
の所定の時期に、自局の作動状態を表す作動情報に上記
第2の優先順位情報設定手段により設定された優先順位
情報を付け加えて送信する第2の送信手段と、 上記第1又は第2の送信手段の送信時にコンテンショ
ンが発生すると、自局の優先順位と送信衝突の相手であ
る他局の優先順位との高低を判定する判定手段と、 該判定手段により自局の優先順位が該他局の優先順位
より低いと判定されると、上記第1又は第2の送信手段
の送信を停止する送信停止手段と、 を備えたことを特徴とする通信装置にある。
Means for Solving the Problems The gist of the present invention is that a communication line is multiplexed to constitute one station of a multiplex transmission network for transmitting information, and mutual transmission between other stations collides. A communication device in which priorities in a multiplex communication network regarding which station is to be prioritized when contention occurs are determined in advance in said multiplex communication network, and said first priority information setting means sets said priority information. Second priority information setting means for setting information of a priority lower than the predetermined priority of another station; detection means for detecting a change in the state of a signal input from an external device; A first transmitting unit that, when a change in the state of the signal is detected by the unit, transmits the state information indicating the change state by adding the priority information set by the first priority information setting unit; By means A second transmission in which, at a predetermined time during which no change in the signal state is detected, the priority information set by the second priority information setting means is added to the operation information indicating the operation state of the own station and transmitted. Means for determining when the contention occurs during transmission by the first or second transmitting means, the level of the priority of the own station and the priority of the other station which is the partner of the transmission collision; Communication stopping means for stopping transmission of the first or second transmitting means when the priority of the own station is determined to be lower than the priority of the other station by the means. In the device.

[作用] 以上のように構成された本発明の通信装置によれば、
第2の送信手段は、検出手段により信号の状態変化が検
出されない間の所定の時期に、自局の作動状態を表す作
動情報に他局の優先順位より低い優先順位情報を付け加
えて送信する。このとき、コンテンションが発生する
と、判定手段が自局の優先順位は送信衝突先である他局
の優先順位より低いと判定する。すると、送信停止手段
が第2の送出手段の送信を停止する。
[Operation] According to the communication device of the present invention configured as described above,
The second transmission means transmits the operation information indicating the operation state of the own station with priority information lower than the priority of the other station added to the operation information at a predetermined time while the detection means does not detect a change in the state of the signal. At this time, when contention occurs, the determination unit determines that the priority of the own station is lower than the priority of the other station that is the transmission collision destination. Then, the transmission stopping means stops the transmission of the second sending means.

このため、上記構成の通信装置が複数で構成された多
重伝送網においては、コンテンション発生時に、自局の
作動情報の送信より他局の状態情報の送信が常に優先さ
れると共に、他局の作動情報の送信より自局の状態情報
の送信が常に優先される。
Therefore, in a multiplex transmission network including a plurality of communication devices having the above-described configuration, when contention occurs, transmission of status information of another station is always given priority over transmission of operation information of the own station, and transmission of status information of another station is always performed. The transmission of the status information of the own station always takes priority over the transmission of the operation information.

[実施例] 以下に本発明の実施例を図面と共に説明する。Embodiment An embodiment of the present invention will be described below with reference to the drawings.

まず、第1図は本発明を適用した実施例の通信装置の
構成を表すブロック図、第2図はローカル・エリア・ネ
ットワーク(以下、単にネットワークという)のブロッ
ク図、第3図は当該ネットワークにおいて伝送されるメ
ッセージの構成を表す説明図である。
First, FIG. 1 is a block diagram showing a configuration of a communication apparatus according to an embodiment to which the present invention is applied, FIG. 2 is a block diagram of a local area network (hereinafter simply referred to as a network), and FIG. FIG. 4 is an explanatory diagram illustrating a configuration of a message to be transmitted.

第2図に示すように、ネットワークNWは、一系統の通
信回線Wに接続された中央通信装置3及び複数の通信装
置5で構成され、一般にバス型ネットワークと呼ばれて
いる。このネットワークNWにおいては、時分割方式によ
り通信回線Wは多重化されパルス幅変調方式(PWM)に
よるシリアル双方向通信が行われる。
As shown in FIG. 2, the network NW includes a central communication device 3 and a plurality of communication devices 5 connected to one system of communication line W, and is generally called a bus network. In this network NW, the communication line W is multiplexed by a time division method, and serial bidirectional communication is performed by a pulse width modulation method (PWM).

また、中央通信装置3はマスタ・ノードと呼ばれ、任
意の通信装置5と通信を行い、各通信装置5はスレーブ
・ノードと呼ばれ、中央通信装置3とのみ通信を行うよ
うにされており、たとえば、車両に搭載され、車両各部
の各種スイッチSWからの状態情報が各通信装置5から中
央通信装置3へ送られると共に、中央通信装置3から各
通信装置5へ各種指令情報が送られアクチュエータACが
操作される。
The central communication device 3 is called a master node and communicates with an arbitrary communication device 5, and each communication device 5 is called a slave node and communicates only with the central communication device 3. For example, when mounted on a vehicle, status information from various switches SW of each part of the vehicle is transmitted from each communication device 5 to the central communication device 3, and various command information is transmitted from the central communication device 3 to each communication device 5, and the actuator is AC is operated.

さらに、ネットワークNWにおいては、所定の通信手順
(たとえば、米国自動車技術会の通信手順J1850)に従
って通信が進められると共に、通信秩序が保たれるよう
にコンテンション発生時の優先順位(後述する)が予め
決められている。また、メッセージは、一定の構成・形
式で伝送される。たとえば、第3図に示すように、メッ
セージの始まりを示す伝送制御キャラクタSOM、優先順
位情報PRI、送信先及び送信元のコード番号ID、テキス
トデータD1〜Dn、誤り検出符号CRC、メッセージの終り
を示す伝送制御キャラクタEOM、各局間の同期をとるた
めの伝送制御キャラクタIMSなどで構成されている。
Further, in the network NW, the communication proceeds in accordance with a predetermined communication procedure (for example, the communication procedure J1850 of the American Society of Automotive Engineers of Japan), and the priority when contention occurs (to be described later) is maintained so that the communication order is maintained. It is predetermined. Further, the message is transmitted in a fixed configuration and format. For example, as shown in FIG. 3, the transmission control character SOM indicating the beginning of the message, the priority information PRI, the code numbers ID of the transmission destination and the transmission source, the text data D1 to Dn, the error detection code CRC, and the end of the message. It comprises a transmission control character EOM shown, a transmission control character IMS for synchronizing between stations, and the like.

中央通信装置3は、周知のCPU3a、ROM3b、RAM3c及び
シリアル通信コントローラ3dなどを備え判断処理能力を
有するもので、各通信装置5との通信を行なう。なお、
中央通信装置3は、シリアル通信制御装置として周知で
あるので詳細は省略する。
The central communication device 3 includes a well-known CPU 3a, a ROM 3b, a RAM 3c, a serial communication controller 3d and the like and has a judgment processing capability, and communicates with each communication device 5. In addition,
The central communication device 3 is well-known as a serial communication control device, and thus details are omitted.

次に各通信装置5は、第1図に示すように、送受信を
制御する通信制御回路10と、外部の各種スイッチSWから
入力回路12に入力される信号が変化すると変化検出信号
Ssgを出力する入力モニタ回路14と、所定周期で周期信
号Stiを出力するタイマ回路16と、入力モニタ回路14か
らの変化検出信号Ssgまたはタイマ回路16からの周期信
号Stiに応じて、予め設定された優先順位情報PRIまたは
PRIαを夫々通信制御回路10へ出力する優先順位情報設
定回路18と、通信制御回路10や入力回路12からのパラレ
ル情報をシリアル情報へ変換する送信シフトレジスタ20
と、シリアル送受信及びアービトレーション(後述す
る)を行う通信インタフェース回路22と、通信インタフ
ェース回路22からのシリアル情報をパラレル情報に変換
する受信シフトレジスタ24と、受信シフトレジスタ24か
らのパラレル情報をラッチして外部のアクチュエータAC
へ出力するラッチ回路26と、これら各部10〜26へクロッ
ク信号を供給するクロック供給回路28とを主要部として
構成されている。
Next, as shown in FIG. 1, each communication device 5 includes a communication control circuit 10 for controlling transmission and reception, and a change detection signal when a signal input from various external switches SW to the input circuit 12 changes.
An input monitor circuit 14 for outputting Ssg, a timer circuit 16 for outputting a periodic signal Sti at a predetermined cycle, and a change detection signal Ssg from the input monitor circuit 14 or a preset according to the periodic signal Sti from the timer circuit 16 Priority information PRI or
A priority information setting circuit 18 that outputs PRIα to the communication control circuit 10, and a transmission shift register 20 that converts parallel information from the communication control circuit 10 and the input circuit 12 into serial information.
A communication interface circuit 22 that performs serial transmission / reception and arbitration (described later); a reception shift register 24 that converts serial information from the communication interface circuit 22 into parallel information; and a latch circuit that latches parallel information from the reception shift register 24. External actuator AC
And a clock supply circuit 28 for supplying a clock signal to each of the units 10 to 26.

なお、本実施例では優先順位情報設定回路18が第1及
び第2の優先順位情報設定手段に相当し、通信インタフ
ェース回路22が判定手段に相当する。
In this embodiment, the priority information setting circuit 18 corresponds to the first and second priority information setting means, and the communication interface circuit 22 corresponds to the determination means.

通信制御回路10は、入力モニタ回路14から変化検出信
号Ssgが入力されると、テキストデータとして、入力回
路12からのスイッチSWの信号状態を表す情報D1〜Dnの送
信を送信シフトレジスタ20及び通信インタフェース回路
22に指令する(以下、通常送信という)。また、タイマ
回路16から周期信号Stiが入力されると、直前の通常送
信で送った信号状態情報D1〜Dnの再送信を指令して自局
が正常に作動していることを中央通信装置3に知らせる
(以下、バックアップ送信という)。
When the change detection signal Ssg is input from the input monitor circuit 14, the communication control circuit 10 transmits the information D1 to Dn indicating the signal state of the switch SW from the input circuit 12 as text data to the transmission shift register 20 and the communication control circuit 10. Interface circuit
22 (hereinafter referred to as normal transmission). Further, when the periodic signal Sti is input from the timer circuit 16, the central communication device 3 instructs that the own station is operating normally by instructing retransmission of the signal state information D1 to Dn transmitted in the immediately preceding normal transmission. (Hereinafter referred to as backup transmission).

一方、受信時には、通信インタフェース回路22及び受
信シフトレジスタ24を介して入力されたキャラクタID及
びCRCをチェックしてコード番号の照合及び符号誤りの
チェックを行う。
On the other hand, at the time of reception, the character ID and CRC input via the communication interface circuit 22 and the reception shift register 24 are checked to check the code numbers and check for code errors.

タイマ回路16は所定周期で周期信号Stiを通信制御回
路10へ出力するが、そのタイムカウントは通常通信の終
了時に通信制御回路10からのリセット信号Sreでリセッ
トされる。
The timer circuit 16 outputs a periodic signal Sti to the communication control circuit 10 at a predetermined cycle, and its time count is reset by a reset signal Sre from the communication control circuit 10 at the end of the normal communication.

優先順位情報設定回路18は、入力モニタ回路14から変
化検出信号Ssgが入力されると所定の優先順位情報PRI
を、タイマ回路16から周期信号Stiが入力されると他の
局より低い所定の優先順位情報PRIαを、夫々通信制御
回路10へ出力する。
When the change detection signal Ssg is input from the input monitor circuit 14, the priority information setting circuit 18
When the periodic signal Sti is input from the timer circuit 16, the predetermined priority information PRIα lower than the other stations is output to the communication control circuit 10, respectively.

ここで、中央通信装置3が1局、通信装置5が3局あ
るネットワークでの優先順位の一例を第1表に示す。こ
のネットワークでは各局を識別するために中央通信装置
3をノード0、各通信装置5の夫々をノード1、ノード
2、ノード3と呼び、優先順位情報の値が小さいほど優
先順位が高くなるように定められている。なお、数値は
16進数で表される。
Here, an example of the priority order in a network having one central communication device 3 and three communication devices 5 is shown in Table 1. In this network, in order to identify each station, the central communication device 3 is called a node 0, and each of the communication devices 5 is called a node 1, a node 2, and a node 3, and the smaller the value of the priority information, the higher the priority. Stipulated. The numerical value is
Represented in hexadecimal.

通信インタフェース回路22は、送信時には、送信の最
初及び最後にSOM及びEOM・IMSをシンボル・ビットパタ
ーンとして、そして送信シフトレジスタ20からのシリア
ル情報をパルス幅変調されたビットパルスとして、夫々
通信回線Wへ送り出す。
At the time of transmission, the communication interface circuit 22 uses SOM and EOM / IMS as a symbol / bit pattern at the beginning and end of the transmission, and converts the serial information from the transmission shift register 20 into a pulse width-modulated bit pulse. Send to

また、通信インタフェース回路22は、送信と同時にコ
ンテンションの発生の有無を監視する。すなわち、キャ
ラクタPRI(PRIα)を送信する際、自局がビットパルス
を送出する毎に、ビットパルスのレベルがLowのときに
通信回線WのレベルがHighであるか否かを判定すること
で、自局の優先順位が相手局より低いか高いかを判定し
(アービトレーション)、自局の優先順位が相手局より
低い(通信回線WのレベルがHigh)と判定すると、送信
停止要求信号Sstを通信制御回路10へ出力する。なお、
判定ロジックはワイヤード・オアのロジックであるが、
その詳細はJ1850に記載されているので省略する。
Further, the communication interface circuit 22 monitors the presence or absence of contention simultaneously with the transmission. That is, when transmitting the character PRI (PRIα), every time the own station transmits a bit pulse, it is determined whether or not the level of the communication line W is high when the level of the bit pulse is low. If the priority of the own station is lower or higher than that of the partner station (arbitration), and if the priority of the own station is lower than the partner station (the level of the communication line W is High), the transmission stop request signal Sst is transmitted. Output to the control circuit 10. In addition,
The decision logic is wired or logic,
The details are described in J1850, and are omitted.

次に、通信装置5の動作について説明する。 Next, the operation of the communication device 5 will be described.

通常送信時には、通信制御回路10は、通信回線Wが空
いているアイドル状態(IDLE)にあることを示す検出信
号Sidが通信インタフェース回路22から入力されると、
まず通信インタフェース回路22にキャラクタSOMの送信
を指令する。次に、通信制御回路10は、キャラクタPRI
・ID及びキャラクタCRCを、信号状態情報D1〜Dn(テキ
ストデータ)の前及び後に付け加えて、送信シフトレジ
スタ20から通信インタフェース回路22へ出力すると共に
通信インタフェース回路22に送信を指令する。最後に、
通信制御回路10は、キャラクタEOM及びIMSの送信を指令
する。
At the time of normal transmission, the communication control circuit 10 receives a detection signal Sid from the communication interface circuit 22 indicating that the communication line W is idle and in an idle state (IDLE).
First, transmission of the character SOM is instructed to the communication interface circuit 22. Next, the communication control circuit 10 transmits the character PRI
The ID and the character CRC are added before and after the signal state information D1 to Dn (text data), output from the transmission shift register 20 to the communication interface circuit 22, and instruct the communication interface circuit 22 to transmit. Finally,
The communication control circuit 10 instructs transmission of the characters EOM and IMS.

そして、通信インタフェース回路22から送信終了の信
号が入力されると、通信制御回路10は受信態勢に入る。
Then, when a transmission end signal is input from the communication interface circuit 22, the communication control circuit 10 enters a receiving state.

このようにしてメッセージが中央通信装置3へ送信さ
れるが、この送信過程でコンテンションが起こり通信イ
ンタフェース回路22にて自局の優先順位が他局より低い
と判定されたときには、通信インタフェース回路22から
送信停止要求信号Sstが入力されるので、通信制御回路1
0は、送信から受信への切り換えを通信インタフェース
回路22に指令し送信を停止させる。
The message is transmitted to the central communication device 3 in this manner. When contention occurs in the transmission process and the communication interface circuit 22 determines that the priority of the own station is lower than that of the other station, the communication interface circuit 22 The transmission stop request signal Sst is input from the
A value of 0 instructs the communication interface circuit 22 to switch from transmission to reception, and stops transmission.

バックアップ送信時には、優先順位情報PRIに代えて
他局より低い所定の優先順位情報PRIαが、またテキス
トデータとして直前の通常送信で送った信号状態情報D1
〜Dnが、夫々メッセージを構成して、通常送信と同様に
して中央通信装置3へ送信される。
At the time of backup transmission, predetermined priority information PRIα lower than the other stations is used instead of the priority information PRI, and the signal state information D1 transmitted in the immediately preceding normal transmission as text data.
To Dn form a message, respectively, and are transmitted to the central communication device 3 in the same manner as the normal transmission.

この送信過程でコンテンションが起こったときには、
自局の優先順位は全ての他局の優先順位(通常送信時)
より低いので、通信インタフェース回路22が送信停止要
求信号Sstを通信制御回路10へ出力する。すると、通信
制御回路10は通信インタフェース回路22へ送信停止を指
令して送信を停止させる。また、他局のバックアップ送
信と衝突したときには、バックアップ送信についても優
先順位が決められているので、その優先順位に従って送
信続行または送信停止が決まる。
If contention occurs during this transmission process,
The priority of the own station is the priority of all other stations (normal transmission)
Since it is lower, the communication interface circuit 22 outputs the transmission stop request signal Sst to the communication control circuit 10. Then, the communication control circuit 10 instructs the communication interface circuit 22 to stop transmission and stops transmission. Further, when a collision occurs with the backup transmission of another station, the priority of the backup transmission is also determined, so that transmission continuation or transmission stop is determined according to the priority.

一方、受信時には、通信インタフェース回路22からキ
ャラクタSOMのシンボル・ビットパターンを検出したこ
とを表す検出信号が入力すると、通信制御回路10は通信
インタフェース回路22へ受信を指令する。そして、キャ
ラクタIDが受信シフトレジスタ24を介して転送される
と、通信制御回路10は受信したコード番号が自局のコー
ド番号に一致しているか否かを判定し一致しているとき
には、コード番号に続いて情報を受信するように通信イ
ンタフェース回路22に指令する(コード番号が一致して
いないときには受信停止を指令する)。それで、受信シ
フトレジスタ24にテキストデータD1〜Dnが入力され、通
信制御回路10にテキストデータD1〜Dn及びキャラクタCR
Cが転送されると、通信制御回路10は、キャラクタCRCを
チェックして誤りを検出しなければ、テキストデータD1
〜Dnデータをラッチ回路26を介してアクチュエータACへ
出力するように受信シフトレジスタ24に指令する。その
後は、次の送信まで受信態勢を継続する。
On the other hand, during reception, when a detection signal indicating that the symbol / bit pattern of the character SOM has been detected is input from the communication interface circuit 22, the communication control circuit 10 instructs the communication interface circuit 22 to receive. When the character ID is transferred via the reception shift register 24, the communication control circuit 10 determines whether or not the received code number matches the code number of the own station. Then, the communication interface circuit 22 is instructed to receive the information (if the code numbers do not match, the reception stop is instructed). Then, the text data D1 to Dn are input to the reception shift register 24, and the text data D1 to Dn and the character CR are input to the communication control circuit 10.
When C is transferred, the communication control circuit 10 checks the character CRC, and if no error is detected, the text data D1.
受 信 Dn is instructed to output to the shift register 24 via the latch circuit 26 to the actuator AC. Thereafter, the reception state is continued until the next transmission.

このようにして各通信装置5から中央通信装置3に通
常送信と共にバックアップ送信が行われると、中央通信
装置3は、送られた信号状態情報D1〜Dnに基づいて各種
指令を各通信装置3へ送信してアクチュエータACを操作
する。
When the backup transmission is performed together with the normal transmission from each communication device 5 to the central communication device 3 in this way, the central communication device 3 issues various commands to each communication device 3 based on the transmitted signal state information D1 to Dn. Transmit to operate actuator AC.

さらに、中央通信装置3は、バックアップ送信で送ら
れてきた信号状態情報D1〜Dnと直前の通常送信で送られ
た信号状態情報D1〜Dnとを照合して、両者が一致してい
るか否かをチェックすることにより、受信データの信頼
性を高めると共に、バックアップ送信が周期的に行われ
ているか否かを判断することによって各通信装置5が正
常に動作しているか否かを判断する。つまり中央通信装
置3は、各通信装置5からのバックアップ送信によっ
て、各通信装置5の動作状態をモニタすると共に受信デ
ータの信頼性を高める。
Further, the central communication device 3 checks the signal state information D1 to Dn sent in the backup transmission and the signal state information D1 to Dn sent in the immediately preceding normal transmission, and determines whether or not they match. Is checked, the reliability of the received data is increased, and whether or not each communication device 5 is operating normally is determined by determining whether or not backup transmission is performed periodically. That is, the central communication device 3 monitors the operation state of each communication device 5 and increases the reliability of the received data by the backup transmission from each communication device 5.

上記したように本実施例では、各通信装置5が他の局
の優先順位(通常送信時)よりも低い優先順位でバック
アップ送信を行うので、各通信装置5の通常送信は、他
局のバックアップ送信と衝突したときには優先される。
そのため各通信装置5は、スイッチSWの状態変化を直ち
に中央通信装置3へ送信することができる。
As described above, in the present embodiment, since each communication device 5 performs backup transmission with a priority lower than the priority of other stations (during normal transmission), normal transmission of each communication device 5 performs backup transmission of another station. If there is a collision with the transmission, priority is given.
Therefore, each communication device 5 can immediately transmit a change in the state of the switch SW to the central communication device 3.

したがって、中央通信装置3においても各通信装置5
からの信号状態情報の収集・処理が迅速に行われるの
で、アクチュエータACへの指令情報も遅滞無く各通信装
置5へ送信することができる。それ故、従来のようにア
クチュエータACの動作に遅れがでることがない。
Therefore, even in the central communication device 3, each communication device 5
Since the collection and processing of the signal state information from the AC is quickly performed, the command information to the actuator AC can be transmitted to each communication device 5 without delay. Therefore, the operation of the actuator AC is not delayed as in the related art.

ここで、本実施例では第1表に示すようにバックアッ
プ送信時のノード1〜3の優先順位を、通常通信時の順
位の並びと同じように設定したが、このほかに第2表に
示すように設定してもよい。すなわち、ノード3につい
ては、通常送信時の優先順位をノード1及びノード2よ
り低く設定したが、バックアップ送信時の優先順位はノ
ード1及びノード2より高く設定してもよい。
Here, in this embodiment, as shown in Table 1, the priorities of the nodes 1 to 3 at the time of backup transmission are set in the same order as the order of the order at the time of normal communication. May be set as follows. That is, the priority of the node 3 during normal transmission is set lower than that of the nodes 1 and 2, but the priority of backup transmission may be set higher than that of the nodes 1 and 2.

このようにバックアップ送信時の優先順位を設定すれ
ば、たとえば、ノード3において通常送信の回数(単位
時間当りの)がノード1及びノード2より少ないが、よ
り短い周期でバックアップ送信を行う必要があるといっ
た場合に、通信効率の向上に功を奏する。
By setting the priorities at the time of backup transmission in this way, for example, the number of normal transmissions (per unit time) in the node 3 is smaller than that of the nodes 1 and 2, but the backup transmission needs to be performed in a shorter cycle. In such a case, the communication efficiency is improved.

また、本実施例では通信装置5は周期的にバックアッ
プ送信を行うように構成されているが、このほかに中央
通信装置3からの送信要求でバックアップ送信を行うよ
うに構成してもよい。あるいは、周期的なバックアップ
送信に加えて、外部からの入力信号の変化時に、通常送
信を行なうと共に通常通信に続いて所定回数バックアッ
プ送信を行うようにしてもよい。
Further, in the present embodiment, the communication device 5 is configured to periodically perform backup transmission, but may be configured to perform backup transmission in response to a transmission request from the central communication device 3. Alternatively, in addition to the periodic backup transmission, when the input signal from the outside changes, the normal transmission may be performed and the backup transmission may be performed a predetermined number of times following the normal communication.

[発明の効果] 以上説明したように、本発明によれば自局の作動状態
を表す作動情報を送信するときにはに他局の優先順位よ
り低い優先順位情報を付け加えて送信するので、多重伝
送網においてコンテンションが発生したときには、自局
の作動情報の送信より他局の状態情報の送信が常に優先
されると共に他局の作動情報の送信より自局の状態情報
の送信よりが常に優先される。
[Effects of the Invention] As described above, according to the present invention, when transmitting operation information indicating the operation state of the own station, priority information lower than the priority of other stations is added and transmitted. When a contention occurs, the transmission of the status information of the other station is always given priority over the transmission of the operation information of the own station, and the transmission of the status information of the own station is always given priority over the transmission of the operation information of the other station. .

したがって、状態情報の伝送が迅速に行われる。 Therefore, the transmission of the state information is performed quickly.

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

第1図は実施例の通信装置の構成を表すブロック図、第
2図はネットワークの構成を表すブロック図、第3図は
メッセージの構成を表す説明図である。 3……中央通信装置、5……通信装置 10……通信制御回路、16……タイマ回路 18……優先順位設定回路 22……通信インタフェース回路 NW……ネットワーク、W……通信回線
FIG. 1 is a block diagram illustrating a configuration of a communication device according to an embodiment, FIG. 2 is a block diagram illustrating a configuration of a network, and FIG. 3 is an explanatory diagram illustrating a configuration of a message. 3 central communication device, 5 communication device 10 communication control circuit, 16 timer circuit 18 priority setting circuit 22 communication interface circuit NW network W communication line

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】通信回線を多重化して情報伝送を行う多重
伝送網の一局を構成し、他局との間で互いの送信が衝突
するコンテンションの発生時に何れの局の送信を優先す
るかについての該多重通信網における優先順位が予め定
められた通信装置であって、 上記優先順位の情報を設定する第1の優先順位情報設定
手段と、 予め定められた他局の上記優先順位より低い優先順位の
情報を設定する第2の優先順位情報設定手段と、 外部機器から入力される信号の状態変化を検出する検出
手段と、 該検出手段により信号の状態変化が検出されると、該変
化状態を表す状態情報に上記第1の優先順位情報設定手
段により設定された優先順位情報を付け加えて送信する
第1の送信手段と、 上記検出手段により信号の状態変化が検出されない間の
所定の時期に、自局の作動状態を表す作動情報に上記第
2の優先順位情報設定手段により設定された優先順位情
報を付け加えて送信する第2の送信手段と、 上記第1又は第2の送信手段の送信時にコンテンション
が発生すると、自局の優先順位と送信衝突の相手である
他局の優先順位との高低を判定する判定手段と、 該判定手段により自局の優先順位が該他局の優先順位よ
り低いと判定されると、上記第1又は第2の送信手段の
送信を停止する送信停止手段と、 を備えたことを特徴とする通信装置。
1. A multiplex transmission network for multiplexing communication lines and transmitting information, wherein one of the stations is given priority when contention occurs in which transmissions conflict with each other. A first priority information setting means for setting the priority information, wherein the first priority information setting means sets the priority information, and Second priority information setting means for setting low-priority information; detecting means for detecting a change in the state of a signal input from an external device; First transmission means for adding the priority information set by the first priority information setting means to the state information indicating the change state and transmitting the information; and a predetermined state while the state change of the signal is not detected by the detection means. Time A second transmitting means for adding the priority information set by the second priority information setting means to the operating information indicating the operating state of the own station and transmitting the added information; When contention occurs at the time of transmission, determining means for determining the level of the priority of the own station and the priority of the other station which is the partner of the transmission collision; and determining the priority of the own station by the determining means. A communication stopping means for stopping the transmission of the first or second transmitting means when it is determined that the order is lower than the ranking.
JP2216693A 1990-08-16 1990-08-16 Communication device Expired - Fee Related JP2936671B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2216693A JP2936671B2 (en) 1990-08-16 1990-08-16 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2216693A JP2936671B2 (en) 1990-08-16 1990-08-16 Communication device

Publications (2)

Publication Number Publication Date
JPH0498934A JPH0498934A (en) 1992-03-31
JP2936671B2 true JP2936671B2 (en) 1999-08-23

Family

ID=16692445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2216693A Expired - Fee Related JP2936671B2 (en) 1990-08-16 1990-08-16 Communication device

Country Status (1)

Country Link
JP (1) JP2936671B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2806807B2 (en) * 1994-08-12 1998-09-30 静岡日本電気株式会社 Time division multiplexing device

Also Published As

Publication number Publication date
JPH0498934A (en) 1992-03-31

Similar Documents

Publication Publication Date Title
US4988990A (en) Dual master implied token communication system
CN101960789A (en) Communication system having a CAN bus and method for operating such a communication system
KR20010022555A (en) Method and system for automatic address allocation and telecommunication stations which can be inserted into the bus system or within the framework of said method
JP2006511172A (en) Automatic address assignment method in bus system
US8230146B2 (en) Communication method and master-slave system for a field bus configured according to the AS-interface standard
CN106537851B (en) Access method with access time slot and priority resolution
EP1182162B1 (en) Elevator communication controller and communication control method
AU2020310454C1 (en) Method and data network for communicating data content, in particular in an elevator system
JP2006520118A (en) Method, interface, and network for periodically transmitting Ethernet messages
KR101018937B1 (en) Time division multiple access communication network system
JP2936671B2 (en) Communication device
JP2019097088A (en) Serial communication system
JP4850704B2 (en) Data transmission method and apparatus
KR20190013659A (en) Data transmission method between a rotary encoder and a motor control device or an evaluation unit
CN112398901B (en) Method and system for performing double message arbitration
JP3761129B2 (en) Transmission control method and transmission control system for data link system of programmable controller
CN111555946A (en) Subscriber station of a bus system and method for transmitting data in a bus system
JP2007243747A (en) Transmission timing setting method of on-vehicle lan and electronic control unit
JP2940102B2 (en) Communication device
US11736318B2 (en) Initialization of data bus subscribers
JP3827121B2 (en) Communication control device
JP2000040013A (en) Method for detecting line abnormality for duplex communication system
JP2926934B2 (en) Communication device
JPH0498931A (en) Communication equipment
WO2020255787A1 (en) Control device and control method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100611

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees