JP2010103603A - Transmission control apparatus and transmission control method - Google Patents

Transmission control apparatus and transmission control method Download PDF

Info

Publication number
JP2010103603A
JP2010103603A JP2008270605A JP2008270605A JP2010103603A JP 2010103603 A JP2010103603 A JP 2010103603A JP 2008270605 A JP2008270605 A JP 2008270605A JP 2008270605 A JP2008270605 A JP 2008270605A JP 2010103603 A JP2010103603 A JP 2010103603A
Authority
JP
Japan
Prior art keywords
communication
start bit
transmission control
monitoring
period
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.)
Granted
Application number
JP2008270605A
Other languages
Japanese (ja)
Other versions
JP5396812B2 (en
Inventor
Yoshihiro Nakagawa
善博 中川
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.)
Daikin Industries Ltd
Original Assignee
Daikin Industries 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 Daikin Industries Ltd filed Critical Daikin Industries Ltd
Priority to JP2008270605A priority Critical patent/JP5396812B2/en
Publication of JP2010103603A publication Critical patent/JP2010103603A/en
Application granted granted Critical
Publication of JP5396812B2 publication Critical patent/JP5396812B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a transmission control apparatus and a transmission control method which, when communication errors are generated during communication, and restores synchronization between apparatuses to perform communication. <P>SOLUTION: The transmission control apparatus 60 includes: an error detecting part 621 for detecting whether a communication error is generated during communication; a monitoring part 622 which, when the generation of the communication error is detected by the error detection part 621, monitors whether a signal change is generated in a monitoring period, after a start bit until it is confirmed that there is no signal change on a transmission line 100; and a control part 623 which, when no signal change is confirmed by the monitoring part 622, starts a suspended period from the end of the start bit, after the confirmed monitoring period. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、データごとに同期を取る調歩同期方式で通信を行う伝送制御装置および伝送制御方法に関する。   The present invention relates to a transmission control apparatus and a transmission control method for performing communication in an asynchronous manner that synchronizes each data.

ホームバスシステムにおいては、一般的にシリアルデータで転送する調歩同期方式が採用されている。シリアルデータ転送は、パラレルデータを1ビット単位で順次送出する方式であり、調歩同期方式では、シリアルデータの開始を表すスタートビットがそのデータの先頭に付けられ、また、シリアルデータの終了を表すストップビットがそのデータの最後に付けられている。このような技術は、例えば、以下の文献に開示されている。
特開2004−356935号公報
The home bus system generally employs an asynchronous method in which serial data is transferred. Serial data transfer is a method in which parallel data is sequentially transmitted in 1-bit units. In the start-stop synchronization method, a start bit indicating the start of serial data is attached to the head of the data, and a stop indicating the end of serial data. A bit is appended to the end of the data. Such a technique is disclosed in the following documents, for example.
JP 2004-356935 A

しかしながら、特許文献1に開示されている方法では、通信中に通信エラーが発生すると、同期を取るために必要な休止期間を開始するタイミングがずれ、複数の装置間の同期が回復せずに通信が行えなくなってしまうおそれがある。   However, in the method disclosed in Patent Document 1, when a communication error occurs during communication, the timing for starting a pause period necessary for synchronization is shifted, and communication between a plurality of devices is not recovered. May not be able to be performed.

そこで、通信中に通信エラーが発生した場合に複数の装置間の同期を回復して通信を行えるようにすることが望まれている。   Therefore, when a communication error occurs during communication, it is desired to restore communication between a plurality of devices so that communication can be performed.

本発明は、上記状況下においてなされたもので、通信中に通信エラーが発生した場合に装置間の同期を回復して通信を行うための伝送制御装置および伝送制御方法を提供することを課題とする。   The present invention has been made under the above circumstances, and it is an object of the present invention to provide a transmission control device and a transmission control method for performing communication by restoring synchronization between devices when a communication error occurs during communication. To do.

第1発明に係る伝送制御装置は、先頭にスタートビットを含む複数のデータを順に伝送路を介して送受信する伝送制御装置であって、エラー検知部と、監視部と、制御部とを備えている。エラー検知部は、通信中に通信エラーが発生したか否かを検知する。監視部は、エラー検知部により通信エラーの発生が検知された場合は、伝送路上に信号変化がないことを確認するまで、第1スタートビットを含む複数のスタートビット後の各監視期間に、信号変化があるかないかを監視する。制御部は、監視部により信号変化がないことが確認された場合は、確認された監視期間後のスタートビットの終了時から伝送路上を無信号状態にする休止期間を開始する。   A transmission control apparatus according to a first aspect of the present invention is a transmission control apparatus that sequentially transmits and receives a plurality of data including a start bit at the head via a transmission line, and includes an error detection unit, a monitoring unit, and a control unit. Yes. The error detection unit detects whether a communication error has occurred during communication. When the error detection unit detects the occurrence of a communication error, the monitoring unit outputs a signal in each monitoring period after a plurality of start bits including the first start bit until it is confirmed that there is no signal change on the transmission line. Monitor for changes. When it is confirmed by the monitoring unit that there is no signal change, the control unit starts a pause period in which the transmission line is in a no-signal state from the end of the start bit after the confirmed monitoring period.

この伝送制御装置では、通信中に通信エラーが発生した場合は、監視期間内の信号変化の有無に基づいて休止期間を開始するタイミングを制御するようにしている。これにより、休止期間を開始するタイミングにずれが生じずに休止期間が開始される。よって、伝送制御装置間の同期が回復して通信を行うことができる。   In this transmission control apparatus, when a communication error occurs during communication, the timing for starting the suspension period is controlled based on the presence or absence of a signal change within the monitoring period. As a result, the pause period is started without any deviation in the timing of starting the pause period. Therefore, the communication between the transmission control devices can be restored and communication can be performed.

第2発明に係る伝送制御装置は、第1発明の伝送制御装置であって、監視部が、第1スタートビット後の監視期間に信号変化がないことを確認した場合、制御部は、第1スタートビットの次の第2スタートビットの終了時から休止期間を開始するようにしてもよい。   The transmission control device according to the second invention is the transmission control device according to the first invention, and when the monitoring unit confirms that there is no signal change in the monitoring period after the first start bit, the control unit The pause period may be started from the end of the second start bit next to the start bit.

これにより、第2スタートビットの終了から休止期間が開始される。よって、伝送制御装置間の同期が回復して通信を行うことができる。   As a result, the suspension period starts from the end of the second start bit. Therefore, the communication between the transmission control devices can be restored and communication can be performed.

第3発明に係る伝送制御装置は、第1発明または第2発明の伝送制御装置であって、休止期間中にノイズが発生したか否かを検知するノイズ検知部、をさらに備えるようにしてもよい。その場合、監視部は、ノイズ検知部によりノイズの発生が検知された場合はさらに、当該ノイズの信号をスタートビットとみなし、そのスタートビット後の各監視期間に信号変化があるかないかを監視するようにしてもよい。   The transmission control device according to a third aspect of the present invention is the transmission control device of the first or second aspect, further comprising a noise detection unit that detects whether noise has occurred during the pause period. Good. In that case, when the generation of noise is detected by the noise detection unit, the monitoring unit further regards the noise signal as a start bit and monitors whether there is a signal change in each monitoring period after the start bit. You may do it.

これにより、この伝送制御装置では、休止期間にノイズが発生した場合も、監視期間内の信号変化の有無に基づいて休止期間を開始するタイミングを制御することができる。よって、伝送制御装置間の同期が回復して通信を行うことができる。   Thereby, in this transmission control apparatus, even when noise occurs during the pause period, the timing for starting the pause period can be controlled based on the presence or absence of a signal change within the monitoring period. Therefore, the communication between the transmission control devices can be restored and communication can be performed.

第4発明に係る伝送制御装置は、第1発明の伝送制御装置であって、伝送路には、空調機の室外機と室内機とが接続され、エラー検知部は、空調機の室外機と室内機との間の信号伝送のための通信中に通信エラーが発生したか否かを検知するようにしてもよい。   A transmission control device according to a fourth invention is the transmission control device according to the first invention, wherein an outdoor unit of the air conditioner and the indoor unit are connected to the transmission path, and the error detection unit is connected to the outdoor unit of the air conditioner. You may make it detect whether the communication error generate | occur | produced during communication for signal transmission between indoor units.

これにより、この伝送制御装置を、空調機の室外機と室内機とを備えるシステムに適用することができる。   Thereby, this transmission control apparatus is applicable to the system provided with the outdoor unit and indoor unit of an air conditioner.

第5発明に係る伝送制御方法は、先頭にスタートビットを含む複数のデータを順に伝送路を介して送受信する伝送制御方法であって、次のステップを備えている。すなわち、この伝送制御方法は、通信中に通信エラーが発生したか否かを検知するステップと、通信エラーの発生が検知された場合は、伝送路上に信号変化がないことを確認するまで、第1スタートビットを含む複数のスタートビット後の各監視期間に、信号変化があるかないかを監視するステップと、信号変化がないことが確認された場合は、確認された監視期間後のスタートビットの終了時から前記伝送路上を無信号状態にする休止期間を開始するステップと、を備えている。   A transmission control method according to a fifth aspect of the present invention is a transmission control method for transmitting / receiving a plurality of data including a start bit at the head via a transmission path in order, and includes the following steps. In other words, the transmission control method includes a step of detecting whether or not a communication error has occurred during communication, and, if the occurrence of a communication error is detected, until the confirmation that there is no signal change on the transmission path. A step of monitoring whether or not there is a signal change in each monitoring period after a plurality of start bits including one start bit; and if it is confirmed that there is no signal change, the start bit after the confirmed monitoring period And a step of starting a pause period in which no signal is transmitted on the transmission line from the end.

この伝送制御方法では、通信中に通信エラーが発生した場合は、監視期間内の信号変化の有無に基づいて休止期間を開始するタイミングを制御するようにしている。これにより、休止期間を開始するタイミングにずれが生じずに休止期間が開始される。よって、同期回復して通信を行うことができる。   In this transmission control method, when a communication error occurs during communication, the timing for starting the pause period is controlled based on the presence or absence of a signal change within the monitoring period. As a result, the pause period is started without any deviation in the timing of starting the pause period. Therefore, communication can be performed with synchronization recovery.

第1発明に係る伝送制御装置では、通信中に通信エラーが発生した場合に伝送制御装置間の同期を回復して通信を行うことができる。   In the transmission control apparatus according to the first aspect of the present invention, when a communication error occurs during communication, communication can be performed while recovering the synchronization between the transmission control apparatuses.

第2発明に係る伝送制御装置では、伝送制御装置間の同期を回復して通信を行うことができる。   In the transmission control apparatus according to the second aspect of the invention, communication can be performed while recovering the synchronization between the transmission control apparatuses.

第3発明に係る伝送制御装置では、休止期間にノイズが発生した場合にも伝送制御装置間の同期を回復して通信を行うことができる。   In the transmission control apparatus according to the third aspect of the invention, communication can be performed while recovering the synchronization between the transmission control apparatuses even when noise occurs during the idle period.

第4発明に係る伝送制御装置は、空調機の室外機と室内機とを備えるシステムに適用することができる。   The transmission control device according to the fourth invention can be applied to a system including an outdoor unit and an indoor unit of an air conditioner.

第5発明に係る伝送制御方法では、通信中に通信エラーが発生した場合は同期回復して通信を行うことができる。   In the transmission control method according to the fifth aspect of the present invention, when a communication error occurs during communication, communication can be performed with recovery of synchronization.

実施形態
図1は本発明の実施形態における伝送制御装置を含むシステム全体の構成例を示す図である。
Embodiment FIG. 1 is a diagram illustrating a configuration example of an entire system including a transmission control apparatus according to an embodiment of the present invention.

図1の空調機システム1では、伝送路100(バス)上に、複数の室外機10、20、30および複数の室内機11〜14、21〜24、31〜34が配置されている。伝送路100として、例えばツイストペア線が用いられる。   In the air conditioner system 1 of FIG. 1, a plurality of outdoor units 10, 20, 30 and a plurality of indoor units 11-14, 21-24, 31-34 are arranged on a transmission path 100 (bus). As the transmission line 100, for example, a twisted pair line is used.

各室外機10、20、30は、伝送路100を介して、管理コントローラ40と通信可能に接続され、管理コントローラ40は、制御線200を介して、監視装置50と通信可能に接続されている。この実施形態では、管理コントローラ40として、監視装置50との接続が可能なパネル型のコントローラを一例にあげて説明する。   Each outdoor unit 10, 20, 30 is communicably connected to the management controller 40 via the transmission line 100, and the management controller 40 is communicably connected to the monitoring device 50 via the control line 200. . In this embodiment, a panel-type controller that can be connected to the monitoring device 50 will be described as an example of the management controller 40.

管理コントローラ40は、マイコンと、表示装置と、操作ボタンと、後述する伝送制御装置60とを備え、各室内機の運転を制御するように構成されている。運転制御の種類としては、室内機の個別制御、ゾーン制御、一括運転、温度制御などがある。   The management controller 40 includes a microcomputer, a display device, an operation button, and a transmission control device 60 described later, and is configured to control the operation of each indoor unit. The types of operation control include indoor unit individual control, zone control, collective operation, temperature control, and the like.

監視装置50は、CPUと、メモリと、ディスプレイと、キーボード等の入力装置とを備え、空調機システム1全体の運転状況を監視するように構成されている。例えば、この監視装置50のディスプレイ上には、各室内機の運転状況や運転モードなどが表示される。また、監視装置50においては、各室内機の運転状況や運転モードなどの切替えが制御できるようになっている。図1の例では、監視装置50として、パーソナルコンピュータが記載されているが、サーバコンピュータ等のコンピュータを適用してもよい。   The monitoring device 50 includes a CPU, a memory, a display, and an input device such as a keyboard, and is configured to monitor the operation status of the entire air conditioner system 1. For example, on the display of the monitoring device 50, the operation status and operation mode of each indoor unit are displayed. Moreover, in the monitoring apparatus 50, switching of the operation condition of each indoor unit, an operation mode, etc. can be controlled. In the example of FIG. 1, a personal computer is described as the monitoring device 50, but a computer such as a server computer may be applied.

各室外機10、20、30および各室内機11〜14、21〜24、31〜34は、いわゆるビル用マルチエアコンの機種であり、伝送制御装置60を有する。この実施形態では、伝送制御装置60は、各室外機および各室内機に組み込まれているものとするが、別個独立に構成するようにしてもよい。また、伝送制御装置60は、ビル用ネットワークのための通信プロトコル規格であるBACnet(登録商標)に対応して通信を行うものとするが、他の通信プロトコル規格を適用してもよい。なお、BACnet(登録商標)は、Building Automation and Control Networking protocolの略である。   Each of the outdoor units 10, 20, 30 and each of the indoor units 11-14, 21-24, 31-34 is a so-called multi-air conditioner for buildings, and has a transmission control device 60. In this embodiment, the transmission control device 60 is incorporated in each outdoor unit and each indoor unit, but may be configured separately. Further, although the transmission control device 60 performs communication in accordance with BACnet (registered trademark), which is a communication protocol standard for building networks, other communication protocol standards may be applied. BACnet (registered trademark) is an abbreviation for Building Automation and Control Networking protocol.

[伝送制御装置の構成]
次に、伝送制御装置60の構成について説明する。図2には、他の伝送制御装置60aが示されているが、この伝送制御装置60aの構成も、伝送制御装置60の構成と同一である。
[Configuration of transmission control device]
Next, the configuration of the transmission control device 60 will be described. Although another transmission control device 60a is shown in FIG. 2, the configuration of this transmission control device 60a is the same as that of the transmission control device 60.

図2は伝送制御装置の構成例を示す図である。図2の伝送制御装置60は、通信ドライバ61と、プロトコルコントローラ62(以下、コントローラ62という)と、CPU(Central Processing Unit)63とを備える。   FIG. 2 is a diagram illustrating a configuration example of the transmission control apparatus. The transmission control device 60 of FIG. 2 includes a communication driver 61, a protocol controller 62 (hereinafter referred to as controller 62), and a CPU (Central Processing Unit) 63.

CPU63は、コントローラ62と接続され、伝送制御装置60全体の動作を制御するように構成されている。   The CPU 63 is connected to the controller 62 and is configured to control the operation of the entire transmission control device 60.

コントローラ62は、他の伝送制御装置60aとの通信を実現するのに必要なデータを生成する。この実施形態では、制御方式として、例えばCSMA/CD(Carrier Sense Multiple Access with Collision Detection)の勝ち残り方式を採用し、同期方式として、例えば調歩同期を採用する。このため、図3の例では、生成されるデータ(キャラクタ)は、上述した制御方式および同期方式に対応する11ビット構成となっている。すなわち、1データは、1ビットのスタートビットSTと、8ビットの転送データD0〜D7と、1ビットのパリティPと、1ビットのストップビットSPの計11ビットで構成される。   The controller 62 generates data necessary for realizing communication with the other transmission control device 60a. In this embodiment, as the control method, for example, a CSMA / CD (Carrier Sense Multiple Access with Collision Detection) winning method is adopted, and as the synchronization method, for example, start-stop synchronization is adopted. For this reason, in the example of FIG. 3, the generated data (character) has an 11-bit configuration corresponding to the control method and the synchronization method described above. That is, one data is composed of a total of 11 bits including a 1-bit start bit ST, 8-bit transfer data D0 to D7, 1-bit parity P, and 1-bit stop bit SP.

スタートビットSTは、データの送信開始を示すビットであり、ストップビットSPは、データの区切りを示すビットである。ストップビットSPは、スタートビットSTと対で用いられる。   The start bit ST is a bit indicating the start of data transmission, and the stop bit SP is a bit indicating a data delimiter. The stop bit SP is used in pairs with the start bit ST.

図2に戻って、コントローラ62について詳述する。   Returning to FIG. 2, the controller 62 will be described in detail.

コントローラ62は、エラー検知部621と、監視部622と、制御部623と、ノイズ検知部624と、送出部625とを有する。これら各部621〜625は、いずれもレジスタ、バッファなどの回路で構成される。以下にこれらの機能について説明する。   The controller 62 includes an error detection unit 621, a monitoring unit 622, a control unit 623, a noise detection unit 624, and a sending unit 625. Each of these units 621 to 625 is composed of circuits such as a register and a buffer. These functions will be described below.

送出部625は、スタートビットSTを含むデータを送出する。その場合、送出部625は、データ中のビットに基づいて生成された送出データ信号を通信ドライバ61へ出力するようになっている。図3の例で説明すると、スタートビットSTは、データの先頭に付加されている。このため、まず送出部625は、スタートビットSTに同期して、論理0(−)の送出データ信号を通信ドライバ61へ出力するようになっている。また、送出部625は、他のビット(転送データなど)に同期して、論理1(+)または論理0(−)の送出データ信号を通信ドライバ61へ出力するようになっている。   The sending unit 625 sends data including the start bit ST. In that case, the transmission unit 625 outputs a transmission data signal generated based on the bits in the data to the communication driver 61. In the example of FIG. 3, the start bit ST is added to the head of the data. For this reason, the sending unit 625 first outputs a send data signal of logic 0 (−) to the communication driver 61 in synchronization with the start bit ST. Further, the sending unit 625 outputs a sending data signal of logic 1 (+) or logic 0 (−) to the communication driver 61 in synchronization with other bits (transfer data or the like).

エラー検知部621は、他の伝送制御装置60aとの通信中に通信エラーが発生したか否かを検知する。この実施形態では、エラー検知部621は、通信ドライバ61からの受信データ信号に基づいて通信エラーの発生の有無を判断するようになっている。   The error detection unit 621 detects whether or not a communication error has occurred during communication with another transmission control device 60a. In this embodiment, the error detection unit 621 determines whether or not a communication error has occurred based on the received data signal from the communication driver 61.

受信データ信号は、通信デバイス61が取り込んだ伝送路100上のデータに基づいて生成される。生成される受信データ信号の波形は、伝送路100上のデータの波形と対応するようになっている。例えば、伝送路100上のデータが(−)であれば、受信データ信号はL(“0”)となり、伝送路100上のデータが(+)であれば、受信データ信号はH(“1”)となる。   The reception data signal is generated based on the data on the transmission line 100 taken in by the communication device 61. The waveform of the received data signal to be generated corresponds to the waveform of data on the transmission line 100. For example, if the data on the transmission line 100 is (−), the received data signal is L (“0”), and if the data on the transmission line 100 is (+), the received data signal is H (“1”). )).

ここで通信エラーとしては、バスエラーと受信データエラーとがある。バスエラーとは、送出データ信号と受信データ信号との間に生じる論理レベルの不整合のことである。受信データエラーとは、スタートビットが受信可能なときにスタートビットが不検出となることである。   Here, the communication error includes a bus error and a reception data error. A bus error is a logic level mismatch occurring between a transmission data signal and a reception data signal. The reception data error means that the start bit is not detected when the start bit can be received.

この実施形態では、伝送路100上は、論理0のデータが論理1のデータよりも優先度が高くなっている。したがって、送出部625が論理0のデータを出力したにもかかわらず、エラー検知部621が論理1のデータを通信ドライバ61から受信した場合は、論理レベルの不整合が生じたこととなり、バスエラーとなる。例えば、送出部625がスタートビットを出力したにもかかわらず、エラー検知部621が論理1の信号を通信ドライバ61から受信した場合は、バスエラーとなる。   In this embodiment, on the transmission line 100, the logic 0 data has a higher priority than the logic 1 data. Therefore, when the error detection unit 621 receives logic 1 data from the communication driver 61 even though the sending unit 625 outputs logic 0 data, a logic level mismatch has occurred and a bus error has occurred. It becomes. For example, when the error detection unit 621 receives a logic 1 signal from the communication driver 61 even though the transmission unit 625 outputs a start bit, a bus error occurs.

また、この実施形態では、伝送制御装置60がデータ(通信パケット)を送信せずに受信のみを行っている場合、エラー検知部621は、規定のタイミングでスタートビットを検出するようになっている。そのときにエラー検知部621がスタートビットを検出しない場合は、受信データエラーとなる。   In this embodiment, when the transmission control device 60 performs only reception without transmitting data (communication packet), the error detection unit 621 detects a start bit at a specified timing. . If the error detection unit 621 does not detect the start bit at that time, a reception data error occurs.

通信エラーの検知時は、エラー検知部621は、不図示のエラーフラグを例えば“1”にする。そして、エラー検知部621は、“1”のエラーフラグが示すエラーをCPU63に通知し、CPU63への割り込みを発生させる。   When detecting a communication error, the error detection unit 621 sets an error flag (not shown) to, for example, “1”. Then, the error detection unit 621 notifies the CPU 63 of the error indicated by the error flag “1”, and generates an interrupt to the CPU 63.

なお、エラーフラグが“1”になった場合、エラー検知部621が次の受信データ信号(伝送路100から取り込まれる次のデータ)を受信することにより、通信エラーの要因がクリアされ、エラー検知部621は、エラーフラグを初期値(0)にする。   When the error flag becomes “1”, the error detection unit 621 receives the next reception data signal (next data fetched from the transmission line 100), thereby clearing the cause of the communication error and detecting the error. The unit 621 sets the error flag to an initial value (0).

監視部622は、エラー検知部621により通信エラーの発生が検知された場合は、監視期間内において、伝送路100上に信号変化がないことを確認するまで、信号変化があるかないかを監視する。   When the error detection unit 621 detects the occurrence of a communication error, the monitoring unit 622 monitors whether there is a signal change until it is confirmed that there is no signal change on the transmission line 100 within the monitoring period. .

監視期間は、伝送路100上の信号変化の有無を監視(バス監視)するための期間である。監視期間として、例えば10ビット相当時間(転送データD0〜D7とパリティPとストップビットSPの計10ビット相当時間)を設定するものとする。   The monitoring period is a period for monitoring the presence or absence of a signal change on the transmission line 100 (bus monitoring). As the monitoring period, for example, a time corresponding to 10 bits (a total time corresponding to 10 bits of the transfer data D0 to D7, the parity P, and the stop bit SP) is set.

監視部622による監視期間の監視は、監視部622が信号変化を確認しなくなるまで続けられる。その場合、監視期間は、順次設定される。例えば、バスエラーの検知時は、監視期間は、まず、検知後の最初のスタートビット(第1スタートビット)の終了から次のスタートビット(第2スタートビット)の開始までの期間となる。そして、この期間内で監視部622が信号変化を確認した場合は、次の監視期間は、第2スタートビットの終了から次のスタートビットの開始までの期間となる。   Monitoring of the monitoring period by the monitoring unit 622 is continued until the monitoring unit 622 no longer confirms a signal change. In that case, the monitoring periods are sequentially set. For example, when a bus error is detected, the monitoring period is first a period from the end of the first start bit (first start bit) after detection to the start of the next start bit (second start bit). If the monitoring unit 622 confirms a signal change within this period, the next monitoring period is a period from the end of the second start bit to the start of the next start bit.

受信データエラーの検知時は、監視期間は、まず、本来検出されるべきスタートビット(第1スタートビット)の終了から次のスタートビット(第2スタートビット)の開始までの期間となる。そして、この期間内で監視部622が信号変化を確認した場合は、次の監視期間は、第2スタートビットの終了から次のスタートビットの開始までの期間となる。   When a received data error is detected, the monitoring period is first a period from the end of the start bit (first start bit) that should be detected to the start of the next start bit (second start bit). If the monitoring unit 622 confirms a signal change within this period, the next monitoring period is a period from the end of the second start bit to the start of the next start bit.

制御部623は、監視部622により信号変化がないことが確認された場合は、確認された監視期間後のスタートビットの終了から休止期間を開始する。休止期間は、伝送路100上を無信号状態にするための期間である。   When the monitoring unit 622 confirms that there is no signal change, the control unit 623 starts the suspension period from the end of the start bit after the confirmed monitoring period. The idle period is a period for setting the transmission line 100 on a no-signal state.

通信エラー検知時の休止期間中は、制御部623は、不図示の状態カウンタ(MDR)を“0”→“2”にする。状態カウンタ(MDR)が“0”の場合、制御部623はバス空きを検出する(状態S0)。そして、状態カウンタが“2”の場合、制御部623はデータの入力を待つ(状態S2)。   During the suspension period when a communication error is detected, the control unit 623 changes a state counter (MDR) (not shown) from “0” to “2”. When the status counter (MDR) is “0”, the control unit 623 detects that the bus is empty (status S0). When the state counter is “2”, the control unit 623 waits for data input (state S2).

なお、状態カウンタ(MDR)と状態との関係は、BACnet(登録商標)の規定に準じてあらかじめ定められている。制御部623は、状態カウンタ(MDR)の値に基づいて所定の処理を行うようになっている。   The relationship between the state counter (MDR) and the state is determined in advance according to the provisions of BACnet (registered trademark). The controller 623 performs a predetermined process based on the value of the state counter (MDR).

ノイズ検知部624は、休止期間中にノイズが発生したか否かを検知する。この実施形態では、ノイズ検知部624は、通信ドライバ61からの受信データ信号に基づいてノイズ発生の有無を判断するようになっている。   The noise detection unit 624 detects whether noise has occurred during the pause period. In this embodiment, the noise detection unit 624 determines whether noise has occurred based on the received data signal from the communication driver 61.

ノイズ検知部624において、休止期間であるにもかかわらず、パルス幅をもつ受信データ信号が受信されたときは、ノイズの発生が確認される。その場合、監視部622は、ノイズの信号をスタートビットとみなし、そのスタートビット後の監視期間に信号変化があるかないかを監視する。   When the noise detection unit 624 receives a reception data signal having a pulse width in spite of the pause period, the generation of noise is confirmed. In that case, the monitoring unit 622 regards the noise signal as a start bit, and monitors whether there is a signal change in the monitoring period after the start bit.

なお、ノイズの信号がスタートビットとみなされる場合、送出部625は、そのノイズの信号に同期して、論理0(−)の送出データ信号を通信ドライバ61へ出力する。   If the noise signal is regarded as a start bit, the transmission unit 625 outputs a transmission data signal of logic 0 (−) to the communication driver 61 in synchronization with the noise signal.

通信ドライバ61は、入力端子INおよび出力端子OUTを有し、伝送路100上へデータを送出したり、伝送路100上のデータを入力したりするように構成されている。   The communication driver 61 has an input terminal IN and an output terminal OUT, and is configured to send data onto the transmission line 100 and to input data on the transmission line 100.

データの送出時は、通信ドライバ61は、送出部621からの送出データ信号に基づくデータ(通信パケット)を出力端子OUTから送出する。   At the time of data transmission, the communication driver 61 transmits data (communication packet) based on the transmission data signal from the transmission unit 621 from the output terminal OUT.

データの入力時は、通信ドライバ61は、伝送路100上のデータ(通信パケット)を入力端子INから入力する。   When inputting data, the communication driver 61 inputs data (communication packet) on the transmission line 100 from the input terminal IN.

[通信パケットと休止期間との関係]
図4は通信パケットと休止期間との関係を示す説明図である。
[Relationship between communication packet and pause period]
FIG. 4 is an explanatory diagram showing the relationship between communication packets and idle periods.

通信パケットは、休止期間T20が終わってから送出される。これは、通信パケットの同期を取るためである。   The communication packet is transmitted after the pause period T20 ends. This is for synchronizing communication packets.

休止期間T20は、ノイズ検知部624によりノイズ判定が行われ、休止期間T20が終わって伝送路100上に通信パケットが送出されると、エラー検知部621により通信エラー判定が行われる。   During the suspension period T20, noise determination is performed by the noise detection unit 624, and when the communication packet is transmitted on the transmission line 100 after the suspension period T20 ends, a communication error determination is performed by the error detection unit 621.

[ノイズ検知時の同期回復動作]
図5はノイズ検知時の同期回復動作を示す説明図である。
[Synchronous recovery operation when noise is detected]
FIG. 5 is an explanatory diagram showing the synchronization recovery operation when noise is detected.

図5(a)の例では、休止期間T20にノイズが検出されない場合が示されているので、通信パケットは、休止期間T20の後に送出される。その場合、制御部623は、不図示の状態カウンタ(MDR)を“0(状態S0)”→“1(状態S1)”にして休止期間T20を制御する。状態S1の場合、伝送路100上は無信号状態になる。   In the example of FIG. 5A, the case where noise is not detected in the pause period T20 is shown, so that the communication packet is transmitted after the pause period T20. In this case, the control unit 623 controls the suspension period T20 by changing a state counter (MDR) (not shown) from “0 (state S0)” to “1 (state S1)”. In the state S1, there is no signal on the transmission line 100.

これに対し、図5(b)の例では、図5(a)の休止期間T20と同じタイミングで休止期間が始まるが、ノイズが検知され、休止期間T20がノイズ信号の終わり(所定時間t)から始まる。   On the other hand, in the example of FIG. 5B, the pause period starts at the same timing as the pause period T20 of FIG. 5A, but noise is detected and the pause period T20 is the end of the noise signal (predetermined time t). start from.

[通信エラー検知時の通常の同期回復動作]
図6は通信エラー検知時を含む通常の同期回復動作を示す説明図である。
[Normal synchronization recovery operation when a communication error is detected]
FIG. 6 is an explanatory diagram showing a normal synchronization recovery operation including when a communication error is detected.

図6(a)の例では、通信エラーが検知されない場合が示されているので、通信パケットは、休止期間T20の後に送出される。   In the example of FIG. 6A, a case where a communication error is not detected is shown, so that the communication packet is transmitted after the suspension period T20.

これに対し、図6(b)の例では、通信パケットは、図6(a)の通信パケットの送出と同じタイミングで送出されるが、通信エラーが検知され、休止期間T20は、通信エラーの発生後に開始される。   On the other hand, in the example of FIG. 6B, the communication packet is transmitted at the same timing as the transmission of the communication packet of FIG. 6A. However, a communication error is detected, and the pause period T20 indicates that the communication error is Started after occurrence.

図6(c)の例でも、通信エラーが検知される場合が示されているが、休止期間T20は、通信エラーの発生後すぐに開始(図6(b))されずに、他の装置(伝送制御装置)からのデータ受信が終了してから開始される。通信エラーが発生した場合、他の装置はデータを送出しないようにするのが一般的であるが、通信環境(伝送路の距離が長い、伝送路の分岐が多い、装置の数が多いなど)によっては、通信エラー発生後もデータを送出し得る。   The example of FIG. 6C also shows a case where a communication error is detected, but the suspension period T20 is not started immediately after the occurrence of the communication error (FIG. 6B), but other devices It starts after the data reception from the (transmission control device) is completed. When a communication error occurs, it is common to prevent other devices from sending data, but the communication environment (such as a long transmission line distance, many transmission line branches, or a large number of devices) Depending on the situation, data can be transmitted even after a communication error occurs.

そのため、図6(b)の例において示した休止期間T20が、図6(a)、(c)の例において示した休止期間T20の開始タイミングと一致せず、各装置からの通信パケットが伝送路100上で衝突し得る。その状態を図7に示す例で説明する。   Therefore, the suspension period T20 shown in the example of FIG. 6B does not coincide with the start timing of the suspension period T20 shown in the examples of FIGS. 6A and 6C, and communication packets from each device are transmitted. Collisions on the road 100 may occur. This state will be described with reference to an example shown in FIG.

図7の例では、3台の装置(伝送制御装置)A、B、Cの場合について示されている。図7(a)の装置Aの例では、通信エラーが発生せずに、休止期間T20は、通信パケットの終了から始まり、状態S0→状態S1(MDR=0→1)に移行する。   In the example of FIG. 7, three devices (transmission control devices) A, B, and C are shown. In the example of the device A in FIG. 7A, the communication period does not occur, and the suspension period T20 starts from the end of the communication packet and shifts from the state S0 to the state S1 (MDR = 0 → 1).

図7(b)の装置Bの例では、通信エラーが検知され、休止期間T20は、通信エラーの発生後すぐに始まる。その場合、休止期間T20は、状態S0→状態S2(MDR=0→2)に移行する。   In the example of the apparatus B in FIG. 7B, a communication error is detected, and the suspension period T20 starts immediately after the occurrence of the communication error. In this case, the suspension period T20 shifts from the state S0 to the state S2 (MDR = 0 → 2).

図7(c)の装置Cの例では、通信エラーが検知されずに、休止期間T20は、図7(a)の例で示したタイミングと同じタイミングで始まる。その場合、休止期間T20は、状態S0→状態S1(MDR=0→1)に移行する。   In the example of the device C in FIG. 7C, no communication error is detected, and the suspension period T20 starts at the same timing as the timing shown in the example in FIG. In that case, the suspension period T20 shifts from the state S0 to the state S1 (MDR = 0 → 1).

そうすると、各装置A、B、C間において、休止期間T20の開始タイミングが一致しない。また、2台の装置A、Cでは、休止期間T20が状態S0→状態S1(無信号状態)に移行するため、状態S1のときに装置Bからの通信パケットに同期することができない。したがって、各装置A、B、Cからの通信パケットが伝送路100上で衝突する。   Then, the start timing of the suspension period T20 does not match between the devices A, B, and C. Further, in the two apparatuses A and C, the suspension period T20 shifts from the state S0 to the state S1 (no signal state), and therefore cannot synchronize with the communication packet from the apparatus B in the state S1. Accordingly, communication packets from the devices A, B, and C collide on the transmission line 100.

そこで、この実施形態の伝送制御装置60では、通信エラーの検知時は、休止期間T20を開始するタイミングを一致させるような制御を行っている。以下にその場合の動作について説明する。   Therefore, in the transmission control device 60 of this embodiment, when a communication error is detected, control is performed so that the timings at which the suspension period T20 starts are matched. The operation in that case will be described below.

[本実施形態における通信エラー検知時の同期回復動作]
図8は本実施形態における受信データエラー検知時の同期回復動作を示す説明図である。なお、図8では、伝送制御装置60がデータ(通信パケット)を送信せずに受信のみを行っている場合を想定して説明する。
[Synchronous recovery operation when a communication error is detected in this embodiment]
FIG. 8 is an explanatory diagram showing a synchronization recovery operation when a received data error is detected in this embodiment. In FIG. 8, description will be made assuming that the transmission control device 60 performs only reception without transmitting data (communication packet).

図8の例では、規定のタイミングで検出されるべきスタートビット(第1スタートビット)が示されているが、エラー検知部621では、そのスタートビットが検出できず、受信データエラーの発生が検知される。その場合、監視期間T10は、本来検出されるべきスタートビット(第1スタートビット)の終了から始まる。   In the example of FIG. 8, the start bit (first start bit) to be detected at a specified timing is shown, but the error detection unit 621 cannot detect the start bit and detects the occurrence of a reception data error. Is done. In this case, the monitoring period T10 starts from the end of the start bit (first start bit) that should be detected originally.

監視期間T10内に信号変化が確認されなかった場合は、休止期間T20は、第2スタートビットの終了から始まる(図8(a))。他方、信号変化が確認された場合は、監視期間T10が第2スタートビットの終了から引き続き始まる(図8(b))。   When no signal change is confirmed within the monitoring period T10, the pause period T20 starts from the end of the second start bit (FIG. 8A). On the other hand, when the signal change is confirmed, the monitoring period T10 continues from the end of the second start bit (FIG. 8B).

図9は本実施形態におけるバスエラー検知時の同期回復動作を示す説明図である。   FIG. 9 is an explanatory diagram showing a synchronization recovery operation when a bus error is detected in the present embodiment.

図9の例では、エラー検知部621において、スタートビットの後にバスエラーの発生が検知される。その場合、監視期間T10は、検知後の最初のスタートビット(第1スタートビット)の終了から始まる。   In the example of FIG. 9, the error detection unit 621 detects the occurrence of a bus error after the start bit. In this case, the monitoring period T10 starts from the end of the first start bit (first start bit) after detection.

監視期間T10内に信号変化が確認されなかった場合は、休止期間T20は、第2スタートビットの終了から始まる(図9(a))。他方、信号変化が確認された場合は、監視期間T10が第2スタートビットの終了から引き続き始まる(図9(b))。   When no signal change is confirmed within the monitoring period T10, the pause period T20 starts from the end of the second start bit (FIG. 9A). On the other hand, when the signal change is confirmed, the monitoring period T10 continues from the end of the second start bit (FIG. 9B).

[本実施形態におけるノイズ検知時の同期回復動作]
図10は本実施形態におけるノイズ検知時の同期回復動作を示す説明図である。
[Synchronous recovery operation when noise is detected in this embodiment]
FIG. 10 is an explanatory diagram showing a synchronization recovery operation at the time of noise detection in the present embodiment.

図10の例では、休止期間中にノイズが発生する場合を示しているので、ノイズ検知部624では、ノイズを検知する。その場合、監視部622では、そのノイズをスタートビットとみなすので、監視期間T10は、ノイズの信号の終了から始まる。   Since the example of FIG. 10 shows a case where noise occurs during the pause period, the noise detection unit 624 detects noise. In that case, since the monitoring unit 622 regards the noise as a start bit, the monitoring period T10 starts from the end of the noise signal.

監視期間T10内に信号変化が確認されなかった場合は、休止期間T20は、次のスタートビットの終了から始まる(図10(a))。他方、信号変化が確認された場合は、監視期間T10が次のスタートビットの終了から引き続き始まる(図10(b))。   When no signal change is confirmed within the monitoring period T10, the pause period T20 starts from the end of the next start bit (FIG. 10A). On the other hand, when the signal change is confirmed, the monitoring period T10 continues from the end of the next start bit (FIG. 10B).

図11は本実施形態における同期回復動作を示すフローチャートである。   FIG. 11 is a flowchart showing the synchronization recovery operation in the present embodiment.

まず、伝送制御装置60(制御部623)は、休止期間T20を開始する(ステップS11)。この実施形態では、制御部623は、状態カウンタ(MDR)の値に基づいて休止期間T20を開始するようになっている。   First, the transmission control device 60 (control unit 623) starts a suspension period T20 (step S11). In this embodiment, the control unit 623 starts the suspension period T20 based on the value of the state counter (MDR).

休止期間T20において、伝送制御装置60(ノイズ検知部624)は、ノイズの有無を検知する(ステップS12)。この実施形態では、ノイズ検知部624は、伝送路100上のデータに基づいて生成された受信データ信号を通信ドライバ61から受信し、その受信データ信号のパルス幅に基づいてノイズ発生の有無を判断する。   In the suspension period T20, the transmission control device 60 (noise detection unit 624) detects the presence or absence of noise (step S12). In this embodiment, the noise detection unit 624 receives a reception data signal generated based on data on the transmission line 100 from the communication driver 61, and determines whether noise has occurred based on the pulse width of the reception data signal. To do.

ノイズが検知されなければ(ステップS12のNo)、伝送制御装置60(制御部623)は、休止期間T20が終了したかどうかを判断し(ステップS13)、終了していなければ(ステップS13のNo)、ステップS12に戻る。他方、終了していれば(ステップS13のYes)、ステップS21に移行する。   If no noise is detected (No in step S12), the transmission control device 60 (control unit 623) determines whether or not the suspension period T20 has ended (step S13), and if it has not ended (No in step S13). ), The process returns to step S12. On the other hand, if completed (Yes in step S13), the process proceeds to step S21.

ステップS12に戻って説明する。ノイズが検知された場合(ステップS12のYes)、伝送制御装置60(監視部622)は、監視期間T10に信号変化を監視する(ステップS14)。その場合、図10に示した例で説明すると、監視期間T10は、ノイズの信号の終了から開始する。そして、伝送制御装置60(監視部622)において、信号変化があるかどうかが判断される(ステップS15)。この実施形態では、監視部622は、伝送路100上のデータ(通信パケット)に基づいて生成された受信データ信号を通信ドライバ61から受信し、その受信データ信号のパルス幅に基づいて信号変化を監視する。   Returning to step S12, description will be given. When noise is detected (Yes in step S12), the transmission control device 60 (monitoring unit 622) monitors a signal change during the monitoring period T10 (step S14). In that case, to explain with the example shown in FIG. 10, the monitoring period T10 starts from the end of the noise signal. Then, the transmission control device 60 (monitoring unit 622) determines whether or not there is a signal change (step S15). In this embodiment, the monitoring unit 622 receives a reception data signal generated based on the data (communication packet) on the transmission line 100 from the communication driver 61, and changes the signal based on the pulse width of the reception data signal. Monitor.

その結果、信号変化があれば(ステップS15のYes)、ステップS14に戻り、伝送制御装置60(監視部622)は、引き続き監視期間T10において信号変化を監視する。その場合、図10(b)に示した場合を例にすると、監視期間T10は、次のスタートビットの終了から始まる。他方、信号変化がなければ(ステップS15のNo)、ステップS11に戻り、伝送制御装置60(制御部623)は、休止期間T20を開始する。その場合、図10(a)に示した場合を例にすると、休止期間T20は、次のスタートビットの終了から始まる。   As a result, if there is a signal change (Yes in step S15), the process returns to step S14, and the transmission control device 60 (monitoring unit 622) continuously monitors the signal change in the monitoring period T10. In that case, taking the case shown in FIG. 10B as an example, the monitoring period T10 starts from the end of the next start bit. On the other hand, if there is no signal change (No in step S15), the process returns to step S11, and the transmission control device 60 (control unit 623) starts the suspension period T20. In that case, taking the case shown in FIG. 10A as an example, the pause period T20 starts from the end of the next start bit.

ステップS21では、伝送制御装置60は、他の伝送制御装置60aとの通信を開始する(ステップS21)。その場合、例えば、送出部625において、CPU63からの送出要求(コマンド)に応じて生成された送出データ信号を通信デバイス61へ出力する。送出データ信号を受信した通信デバイス61では、その送出データ信号に基づいて生成されたデータ(通信パケット)を出力端子OUTから伝送路100へ送出することとなる。   In step S21, the transmission control device 60 starts communication with another transmission control device 60a (step S21). In this case, for example, the sending unit 625 outputs a sending data signal generated in response to a sending request (command) from the CPU 63 to the communication device 61. In the communication device 61 that has received the transmission data signal, data (communication packet) generated based on the transmission data signal is transmitted to the transmission line 100 from the output terminal OUT.

その場合、図3に示した例で説明すると、スタートビットSTがデータの先頭に付加されているので、伝送路100上には先頭にスタートビットSTを含むデータが送出される。   In this case, as described with reference to the example shown in FIG. 3, since the start bit ST is added to the head of data, data including the start bit ST at the head is transmitted on the transmission path 100.

次に、伝送制御装置60(エラー検知部621)は、スタートビットSTを検知したかどうかを判断する(ステップS22)。この実施形態では、エラー検知部621は、伝送路100上のデータに基づいて生成された受信データ信号を通信ドライバ61から受信し、その受信データ信号のパルス幅に基づいてスタートビットSTの有無を検知する。エラー検知部621では、所定時に規定値のパルス幅をもつ受信データ信号が存在すれば、スタートビットSTを検知することになる。   Next, the transmission control device 60 (error detection unit 621) determines whether or not the start bit ST is detected (step S22). In this embodiment, the error detection unit 621 receives a reception data signal generated based on the data on the transmission line 100 from the communication driver 61, and determines whether the start bit ST is present based on the pulse width of the reception data signal. Detect. The error detection unit 621 detects the start bit ST if there is a received data signal having a predetermined pulse width at a predetermined time.

その結果、スタートビットSTが検知されなければ(ステップS22のNo)、上述したステップS14に移行する。例えば、伝送制御装置60がデータ(通信パケット)を送信せずに受信のみを行っている場合において、エラー検知部621が規定のタイミングでスタートビットSTを検知しないときは(ステップS22のNo)、受信データエラーとなり、ステップS14に移行する。ステップS14では、伝送制御装置60(監視部622)は、監視期間T10に信号変化を監視する。その場合、図8に示した場合を例に説明すると、監視期間T10は、第1スタートビット(本来検出されるべきスタートビット)の終了から開始される。   As a result, if the start bit ST is not detected (No in step S22), the process proceeds to step S14 described above. For example, in the case where the transmission control device 60 is only receiving data without transmitting data (communication packet), when the error detection unit 621 does not detect the start bit ST at a specified timing (No in step S22), A reception data error occurs, and the process proceeds to step S14. In step S14, the transmission control device 60 (monitoring unit 622) monitors signal changes during the monitoring period T10. In that case, the case shown in FIG. 8 will be described as an example. The monitoring period T10 starts from the end of the first start bit (start bit that should be detected originally).

他方、スタートビットSTが検知されれば(ステップS22のYes)、伝送制御装置60(エラー検知部621)は、所定の期間(この実施形態では、例えば、検知されたスタートビットSTの終了から次のスタートビットSTの開始までの期間)にバスエラーがあるかどうかを判断する(ステップS23)。エラー検知部621では、送出部625が論理0のスタートビットSTを出力したにもかかわらず、論理1の受信データ信号を通信ドライバ61から受信した場合は、バスエラーがあるものと判断する。   On the other hand, if the start bit ST is detected (Yes in step S22), the transmission control device 60 (error detection unit 621) performs a predetermined period (in this embodiment, for example, after the end of the detected start bit ST). It is determined whether or not there is a bus error during a period until the start bit ST of (step S23). The error detection unit 621 determines that there is a bus error when the transmission unit 625 receives the logic 1 reception data signal from the communication driver 61 even though the transmission unit 625 outputs the logic 0 start bit ST.

上述した判断の結果、バスエラーがなければ(ステップS23のNo)、ステップS24に移行し、伝送制御装置60(エラー検知部621)は、通信が終了したかどうかを判断する(ステップS24)。通信が終了していなければ(ステップS24のNo)、ステップS23に戻り、通信が終了すれば(ステップS24のYes)、休止期間T20を開始するステップS11に移行する。その場合、図8(a)に示した場合を例にすると、休止期間T20は、第2スタートビットの終了から始まる。   As a result of the determination described above, if there is no bus error (No in step S23), the process proceeds to step S24, and the transmission control device 60 (error detection unit 621) determines whether the communication is completed (step S24). If the communication has not ended (No in step S24), the process returns to step S23. If the communication has ended (Yes in step S24), the process proceeds to step S11 for starting the suspension period T20. In that case, taking the case shown in FIG. 8A as an example, the pause period T20 starts from the end of the second start bit.

他方、バスエラーがあれば(ステップS23のYes)、伝送制御装置60(監視部622)は、引き続き次の監視期間T10において信号変化を監視する。その場合、図9(b)に示した場合を例にすると、監視期間T10は、第2スタートビットの終了から始まる。   On the other hand, if there is a bus error (Yes in step S23), the transmission control device 60 (monitoring unit 622) continuously monitors the signal change in the next monitoring period T10. In that case, taking the case shown in FIG. 9B as an example, the monitoring period T10 starts from the end of the second start bit.

なお、通信エラー(バスエラーおよび受信データエラー)の検知時は、エラー検知部621は、“1”のエラーフラグが示すエラーをCPU63に通知し、CPU63への割り込みを発生させる。   When a communication error (bus error and reception data error) is detected, the error detection unit 621 notifies the CPU 63 of the error indicated by the error flag “1” and generates an interrupt to the CPU 63.

なお、エラーフラグが“1”になった場合、エラー検知部621が次の受信データ信号(伝送路100から取り込まれる次のデータ)を受信することにより、通信エラーの要因がクリアされ、エラー検知部621は、エラーフラグを初期値(0)にする。   When the error flag becomes “1”, the error detection unit 621 receives the next reception data signal (next data fetched from the transmission line 100), thereby clearing the cause of the communication error and detecting the error. The unit 621 sets the error flag to an initial value (0).

このように、この実施形態によると、伝送制御装置60では、監視部622は、エラー検知部621により通信エラーの発生が検知された場合は、伝送路100上に信号変化がないことを確認するまで、監視期間T10において信号変化があるかないかを監視する。そして、制御部623は、監視部622により信号変化がないことが確認された場合は、その監視期間T10の後のスタートビットの終了から休止期間T20を開始する。   Thus, according to this embodiment, in the transmission control device 60, the monitoring unit 622 confirms that there is no signal change on the transmission line 100 when the error detection unit 621 detects the occurrence of a communication error. Until then, it is monitored whether there is a signal change in the monitoring period T10. When the monitoring unit 622 confirms that there is no signal change, the control unit 623 starts the suspension period T20 from the end of the start bit after the monitoring period T10.

したがって、通信中に通信エラーが発生した場合は、監視期間T10内における信号変化の有無に基づいて、休止期間T20を開始するタイミングを制御することができる。これにより、休止期間T20が、いずれかのスタートビットの終了から開始される。よって、伝送制御装置間の同期が回復して通信を行うことができる。   Therefore, when a communication error occurs during communication, the timing for starting the suspension period T20 can be controlled based on the presence or absence of a signal change within the monitoring period T10. Thereby, the rest period T20 is started from the end of any start bit. Therefore, the communication between the transmission control devices can be restored and communication can be performed.

<他の実施形態>
以上、本発明の実施形態について説明したが、実施上のハードウエア構成および処理順序は、本発明の趣旨を逸脱しない限り、変更してもよい。
<Other embodiments>
The embodiment of the present invention has been described above. However, the hardware configuration and processing order in practice may be changed without departing from the spirit of the present invention.

本発明は、空調機システム等においてデータ通信を行う伝送制御装置として有用である。   The present invention is useful as a transmission control device that performs data communication in an air conditioner system or the like.

本発明の実施形態における伝送制御装置を含むシステム全体の構成例を示す図である。It is a figure which shows the structural example of the whole system containing the transmission control apparatus in embodiment of this invention. 図1の伝送制御装置の構成例を示す図である。It is a figure which shows the structural example of the transmission control apparatus of FIG. 本発明の実施形態におけるデータの構成例を示す図である。It is a figure which shows the structural example of the data in embodiment of this invention. 通信パケットと休止期間との関係を示す説明図である。It is explanatory drawing which shows the relationship between a communication packet and a dormant period. ノイズ検知時の同期回復動作を示す説明図である。It is explanatory drawing which shows the synchronous recovery operation | movement at the time of noise detection. 通信エラーの検知時を含む通常の同期回復動作を示す説明図である。It is explanatory drawing which shows the normal synchronous recovery operation | movement including the time of the detection of a communication error. 通信パケットが伝送路上で衝突する状態を示す説明図である。It is explanatory drawing which shows the state which a communication packet collides on a transmission line. 本実施形態における受信データエラー検知時の同期回復動作を示す説明図である。It is explanatory drawing which shows the synchronous recovery operation | movement at the time of the reception data error detection in this embodiment. 本実施形態におけるバスエラー検知時の同期回復動作を示す説明図である。It is explanatory drawing which shows the synchronous recovery operation | movement at the time of the bus error detection in this embodiment. 本実施形態におけるノイズ検知時の同期回復動作を示す説明図である。It is explanatory drawing which shows the synchronous recovery operation | movement at the time of the noise detection in this embodiment. 本実施形態における同期回復動作を示すフローチャートである。It is a flowchart which shows the synchronous recovery operation | movement in this embodiment.

符号の説明Explanation of symbols

10、20、30 室外機
11〜14、21〜24、31〜34 室内機
60 伝送制御装置
61 通信デバイス
62 プロトコルコントローラ
63 CPU
621 エラー検知部
622 監視部
623 制御部
624 ノイズ検知部
625 送出部
T10 監視期間
T20 休止期間
10, 20, 30 Outdoor unit 11-14, 21-24, 31-34 Indoor unit 60 Transmission control device 61 Communication device 62 Protocol controller 63 CPU
621 Error detection part 622 Monitoring part 623 Control part 624 Noise detection part 625 Sending part T10 Monitoring period T20 Rest period

Claims (5)

先頭にスタートビットを含む複数のデータを順に伝送路(100)を介して送受信する伝送制御装置(60)であって、
通信中に通信エラーが発生したか否かを検知するエラー検知部(621)と、
前記エラー検知部により通信エラーの発生が検知された場合は、前記伝送路上に信号変化がないことを確認するまで、第1スタートビットを含む複数のスタートビット後の各監視期間(T10)に、信号変化があるかないかを監視する監視部(622)と、
前記監視部により信号変化がないことが確認された場合は、確認された監視期間後のスタートビットの終了時から前記伝送路上を無信号状態にする休止期間(T20)を開始する制御部(623)と、
を備えた伝送制御装置。
A transmission control device (60) for sequentially transmitting and receiving a plurality of data including a start bit at the head via a transmission line (100),
An error detection unit (621) for detecting whether a communication error has occurred during communication;
When the occurrence of a communication error is detected by the error detection unit, until it is confirmed that there is no signal change on the transmission path, in each monitoring period (T10) after a plurality of start bits including the first start bit, A monitoring unit (622) that monitors whether there is a signal change;
When it is confirmed by the monitoring unit that there is no signal change, the control unit (623) starts a pause period (T20) in which the transmission line is in a no-signal state from the end of the start bit after the confirmed monitoring period. )When,
A transmission control device.
前記監視部(622)が、前記第1スタートビット後の監視期間(T10)に信号変化がないことを確認した場合、
前記制御部(623)は、前記第1スタートビットの次の第2スタートビットの終了時から前記休止期間(T20)を開始する、
請求項1に記載の伝送制御装置。
When the monitoring unit (622) confirms that there is no signal change in the monitoring period (T10) after the first start bit,
The controller (623) starts the pause period (T20) from the end of the second start bit next to the first start bit.
The transmission control apparatus according to claim 1.
前記休止期間中にノイズが発生したか否かを検知するノイズ検知部(624)、をさらに備え、
前記監視部(622)は、前記ノイズ検知部によりノイズの発生が検知された場合はさらに、当該ノイズの信号をスタートビットとみなし、そのスタートビット後の各監視期間(T10)に信号変化があるかないかを監視する、
請求項1または2に記載の伝送制御装置。
A noise detector (624) for detecting whether noise has occurred during the pause period,
When the generation of noise is detected by the noise detection unit, the monitoring unit (622) further regards the noise signal as a start bit, and there is a signal change in each monitoring period (T10) after the start bit. Monitoring whether or not
The transmission control device according to claim 1 or 2.
前記伝送路(100)には、空調機の室外機(10、20、30)と室内機(11〜14、21〜24、31〜34)とが接続され、
前記エラー検知部(621)は、前記空調機の室外機と室内機との間の信号伝送のための通信中に通信エラーが発生したか否かを検知する、
請求項1に記載の伝送制御装置。
Outdoor units (10, 20, 30) and indoor units (11-14, 21-24, 31-34) of air conditioners are connected to the transmission path (100),
The error detection unit (621) detects whether a communication error has occurred during communication for signal transmission between the outdoor unit and the indoor unit of the air conditioner,
The transmission control apparatus according to claim 1.
先頭にスタートビットを含む複数のデータを順に伝送路を介して送受信する伝送制御方法であって、
通信中に通信エラーが発生したか否かを検知するステップ(S23)と、
前記通信エラーの発生が検知された場合は(S23のYES)、前記伝送路上に信号変化がないことを確認するまで(S26)、第1スタートビットを含む複数のスタートビット後の各監視期間に、信号変化があるかないかを監視するステップ(S25)と、
前記信号変化がないことが確認された場合は(S26のNO)、確認された監視期間後のスタートビットの終了時から前記伝送路上を無信号状態にする休止期間を開始するステップ(S11)と、
を備えた伝送制御方法。
A transmission control method for transmitting and receiving a plurality of data including a start bit at the beginning via a transmission path in order,
Detecting whether a communication error has occurred during communication (S23);
When the occurrence of the communication error is detected (YES in S23), until it is confirmed that there is no signal change on the transmission path (S26), in each monitoring period after a plurality of start bits including the first start bit. Monitoring whether there is a signal change (S25);
When it is confirmed that there is no signal change (NO in S26), a step (S11) of starting a pause period in which the transmission line is in a no-signal state from the end of the start bit after the confirmed monitoring period; ,
A transmission control method comprising:
JP2008270605A 2008-10-21 2008-10-21 Transmission control apparatus and transmission control method Active JP5396812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008270605A JP5396812B2 (en) 2008-10-21 2008-10-21 Transmission control apparatus and transmission control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008270605A JP5396812B2 (en) 2008-10-21 2008-10-21 Transmission control apparatus and transmission control method

Publications (2)

Publication Number Publication Date
JP2010103603A true JP2010103603A (en) 2010-05-06
JP5396812B2 JP5396812B2 (en) 2014-01-22

Family

ID=42293869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008270605A Active JP5396812B2 (en) 2008-10-21 2008-10-21 Transmission control apparatus and transmission control method

Country Status (1)

Country Link
JP (1) JP5396812B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103104961A (en) * 2013-01-30 2013-05-15 广东美的制冷设备有限公司 Communication failure detection method and detection device
CN104807129A (en) * 2014-01-23 2015-07-29 广东美的制冷设备有限公司 Control method of air conditioner

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0368230A (en) * 1989-08-07 1991-03-25 Fujitsu Ltd Synchronization slip preventing device for data bus
JPH03220939A (en) * 1990-01-26 1991-09-30 Matsushita Electric Works Ltd Transmission processing system for home bus system
JPH04157850A (en) * 1990-10-20 1992-05-29 Fujitsu Ltd Data bus system
JPH0766819A (en) * 1993-08-26 1995-03-10 Smk Corp Synchronization recovery method for home bus system
JPH0856391A (en) * 1994-08-12 1996-02-27 Daikin Ind Ltd Transmitter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0368230A (en) * 1989-08-07 1991-03-25 Fujitsu Ltd Synchronization slip preventing device for data bus
JPH03220939A (en) * 1990-01-26 1991-09-30 Matsushita Electric Works Ltd Transmission processing system for home bus system
JPH04157850A (en) * 1990-10-20 1992-05-29 Fujitsu Ltd Data bus system
JPH0766819A (en) * 1993-08-26 1995-03-10 Smk Corp Synchronization recovery method for home bus system
JPH0856391A (en) * 1994-08-12 1996-02-27 Daikin Ind Ltd Transmitter

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103104961A (en) * 2013-01-30 2013-05-15 广东美的制冷设备有限公司 Communication failure detection method and detection device
CN104807129A (en) * 2014-01-23 2015-07-29 广东美的制冷设备有限公司 Control method of air conditioner
CN104807129B (en) * 2014-01-23 2017-08-25 广东美的制冷设备有限公司 The control method of air conditioner

Also Published As

Publication number Publication date
JP5396812B2 (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN108139954B (en) Communication device, communication method, program, and communication system
WO2006080433A1 (en) Information processing apparatus and information processing method
US6145008A (en) Conflict free time-triggered method and apparatus for the transmission of messages in a distributed real-time computer system
JP2017208710A (en) Communication device, communication method, program, and communication system
JP6828271B2 (en) Communication devices, communication methods, programs, and communication systems
JP5396812B2 (en) Transmission control apparatus and transmission control method
CN109074343B (en) Communication device, communication method, program, and communication system
WO2017022463A1 (en) Data transmission device and data transmission method, reception device and reception method, program, and data transmission system
JP5018396B2 (en) Communication apparatus and communication system
JP2010141819A (en) Communication device, communication method, and communication program
JP5886510B2 (en) Transmission control apparatus and transmission control method
WO2017199762A1 (en) Communication device, communication method, program, and communication system
JP2017208713A (en) Communication device, communication method, program, and communication system
JP2011188322A (en) Method of controlling communication, communication control program, and master communication device
JP6739983B2 (en) Communication device, communication method, program, and communication system
JP4229453B2 (en) Tunnel disaster prevention equipment
JP2006254290A (en) Master/slave communication system and communication method
JP2016058944A (en) node
JP2000207373A (en) Process input-output device and method for controlling it
JP5374025B2 (en) Differential transmission equipment
JP2005229446A (en) Serial data communication method
JP2013175958A (en) Differential type transmission apparatus and data collision detection method of the same
JPH0766819A (en) Synchronization recovery method for home bus system
JP2004363761A (en) Data communication method
JP3708105B2 (en) Data transmission apparatus and data transmission system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110825

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130130

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130611

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130829

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20130906

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: 20130924

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131007

R151 Written notification of patent or utility model registration

Ref document number: 5396812

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151