JP2013175958A - Differential type transmission apparatus and data collision detection method of the same - Google Patents

Differential type transmission apparatus and data collision detection method of the same Download PDF

Info

Publication number
JP2013175958A
JP2013175958A JP2012039595A JP2012039595A JP2013175958A JP 2013175958 A JP2013175958 A JP 2013175958A JP 2012039595 A JP2012039595 A JP 2012039595A JP 2012039595 A JP2012039595 A JP 2012039595A JP 2013175958 A JP2013175958 A JP 2013175958A
Authority
JP
Japan
Prior art keywords
pulse width
data
transmission
collision
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012039595A
Other languages
Japanese (ja)
Inventor
Koji Yokohama
浩二 横浜
Takashi Inaba
隆 稲葉
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.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy 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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP2012039595A priority Critical patent/JP2013175958A/en
Publication of JP2013175958A publication Critical patent/JP2013175958A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Dc Digital Transmission (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a differential type transmission apparatus which can more securely detect data collision in a transmission path having a branch.SOLUTION: A differential type transmission apparatus is connected to a transmission path having a branch and is arranged in each node which differentially transmits a serial signal. The differential type transmission apparatus includes: a signal comparison section 90 for comparing signal waveforms of transmission data and reception data and generating a non-matching signal; a maximum detection section 66 for detecting maximum pulse width (Tmax) of the non-matching signal; a serial transmission interface 62 for checking an error of reception data; and a collision determination section 64 for determining data collision of transmission/reception data when the maximum pulse width (Tmax) is reference pulse width (Tj) or more. When the serial transmission interface 62 detects the error, the collision determination section 64 updates the reference pulse width (Tj) to the maximum pulse width(Tmax) when the maximum pulse width (Tmax) is smaller than the reference pulse width (Tj).

Description

本発明は、差動型伝送装置に関し、より詳細には、分岐を有する伝送路においてもデータ衝突を検知することができる差動型伝送装置及びそのデータ衝突検知方法に関する。   The present invention relates to a differential transmission apparatus, and more particularly to a differential transmission apparatus capable of detecting a data collision even in a transmission line having a branch, and a data collision detection method thereof.

一台の室外機ユニットに対し、複数台の室内機ユニットが並列に接続されたマルチ型空気調和装置が知られている。この装置の各機器間の信号伝送には、省線化を図るためシリアル(直列符号化信号)伝送技術を利用した2本線渡り配線方式が採用されている。この配線方式によって、1つのリモコンにより複数台の室内機/室外機の制御が可能となっている。   There is known a multi-type air conditioner in which a plurality of indoor unit units are connected in parallel to one outdoor unit. For signal transmission between each device of this apparatus, a two-wire crossover wiring system using a serial (serial encoded signal) transmission technique is adopted in order to save the line. With this wiring system, it is possible to control a plurality of indoor units / outdoor units with one remote controller.

マルチ型空気調和装置のリモコン、室内機及び室外機といった各機器(ノード)は、信号伝送を実行するために差動型伝送装置を備えている。この差動型伝送装置には、調歩同期式通信方式(start/stop synchronous communication)が採用されている。調歩同期式通信方式とは、1バイト(8ビット)の文字データの直前にスタート・ビット(STR)を付加するとともに、文字データの直後にストップ・ビット(STP)を付加して送信するシリアル伝送方式をいう。このシリアル伝送方式は、文字データ単位で同期をとってはいるが、各文字データを送出するタイミングは任意で良いため、非同期式とも呼ばれる。また、通常は、文字データの後に誤り検出用のパリティデータ(1ビット)が挿入される   Each device (node) such as a remote controller, an indoor unit, and an outdoor unit of the multi-type air conditioner includes a differential transmission device to perform signal transmission. This differential transmission apparatus employs an asynchronous communication system (start / stop synchronous communication). Asynchronous communication system is a serial transmission in which a start bit (STR) is added immediately before 1 byte (8 bits) of character data and a stop bit (STP) is added immediately after the character data. Refers to the method. Although this serial transmission method is synchronized in character data units, the timing of sending each character data may be arbitrary, so it is also called asynchronous. Normally, parity data (1 bit) for error detection is inserted after the character data.

さらに、マルチ型空気調和装置の各機器(ノード)が一つの伝送路を共有する場合、各ノードは伝送路の「空き」状態を監視しながら、伝送路上に通信データを送信する。これには、CSMA/CD(Carrier Sense Multiple Access with Collision Detection:搬送波感知多重アクセス/衝突検出方式)が用いられている。   Furthermore, when each device (node) of the multi-type air conditioner shares one transmission path, each node transmits communication data on the transmission path while monitoring the “vacant” state of the transmission path. For this, CSMA / CD (Carrier Sense Multiple Access with Collision Detection) is used.

従来のシリアル伝送技術では、(1)差動型伝送装置を構成するマイクロコンピュータに内蔵されたシリアル受信回路によるエラー検出と、(2)送受信データの1バイト毎の照合とにより、データ衝突の検知とが行われていた。上記(1)のエラー検出では、シリアル受信回路で、パリティチェック及びストップビットのHレベルチェックによりエラー検出が行われる。しかし、かかるエラー検出の精度は必ずしも高くないため、エラー検出だけではデータ衝突が検出されないことがあった。また、上記(2)の送受信データの照合では、データ衝突により通信データの信号波形に歪みが生じることによって、データの衝突が検出される。しかし、送信ノードの近傍では通信データの信号波形に歪みが生じないことがあるため、信号波形の歪みだけではデータ衝突が検出されないことがあった。   In the conventional serial transmission technology, (1) error detection by a serial reception circuit built in the microcomputer constituting the differential transmission device, and (2) collation of each byte of transmission / reception data is detected. And was done. In error detection (1) above, error detection is performed by a parity check and an H level check of stop bits in the serial reception circuit. However, since the accuracy of such error detection is not necessarily high, data collision may not be detected only by error detection. Further, in the collation of transmitted / received data in (2) above, data collision is detected by causing distortion in the signal waveform of communication data due to data collision. However, since the signal waveform of the communication data may not be distorted in the vicinity of the transmission node, the data collision may not be detected only by the distortion of the signal waveform.

さらに、伝送路が長距離(〜2000m)になると、伝送路の直流抵抗、コンデンサ及びインダクタ成分による影響が大きくなる。その結果、同時に送信を開始した衝突相手ノードどうしが電気的に遠距離に位置する場合(抵抗値が大きい場合)、衝突相手ノードが互いにデータ衝突を検知できないことがあった。この場合、送信先の相手ノードが、データ衝突を検知して当該データの読み捨てを行うため、送信先から応答が送信元へ帰って来ない。その場合、送信元は再度送信動作を行うことになるため、伝送路の無駄遣いとなり、伝送路の使用効率が悪化していた。   Further, when the transmission path is a long distance (up to 2000 m), the influence of the DC resistance, the capacitor, and the inductor component of the transmission path is increased. As a result, when the collision partner nodes that started transmission at the same time are electrically located at a long distance (when the resistance value is large), the collision partner nodes may not be able to detect data collision with each other. In this case, since the counterpart node of the transmission destination detects a data collision and discards the data, a response does not return from the transmission destination to the transmission source. In this case, since the transmission source performs the transmission operation again, the transmission line is wasted, and the use efficiency of the transmission line is deteriorated.

上記の問題に関して、既に本出願に係る発明者は、送信データと伝送路上のデータを受信した信号とを比較する比較回路から出力される不一致信号のパルス幅が、データ衝突が生じていないときは短く、かつデータ衝突が生じているときは長くなる現象を見出し、下記の特許文献1において、この不一致信号のパルス幅に基づいてデータ衝突の有無を判定する技術を提案している。   Regarding the above problem, the inventor according to the present application has already confirmed that the pulse width of the mismatch signal output from the comparison circuit that compares the transmission data and the signal that has received the data on the transmission path is such that no data collision occurs. A phenomenon that is short and becomes long when a data collision occurs is found, and the following Patent Document 1 proposes a technique for determining the presence or absence of a data collision based on the pulse width of the mismatch signal.

特開2011−66722号公報JP 2011-66722 A

ところで、マルチ型空気調和装置の各機器(ノード)間の信号伝送においては、伝送路の分岐数と各分岐の伝送路長との組合せに応じて、通信データの遅れ時間が長くなる現象が新たに見出された。ここで、図6に、伝送路の分岐数と通信データの遅れ時間との関係を示す。図6中の曲線Iに示すように、伝送路の分岐数が増加するほど、通信データの遅れ時間が増加する傾向がある。その結果、不一致信号のパルス幅は、データ衝突の有無だけではなく、伝送路の分岐数と各分岐の伝送路長の組合せにも依存して変化することになる。このため、データ衝突の有無を判定するにあたり、単に不一致信号のパルス幅を一定の閾値と比較するだけでは、実際にはデータ衝突が発生していないにも拘わらず、データ衝突が発生していると誤判定してしまう可能性がある。   By the way, in the signal transmission between each device (node) of the multi-type air conditioner, a phenomenon in which the delay time of communication data becomes longer depending on the combination of the number of branches of the transmission path and the transmission path length of each branch is new. Found in FIG. 6 shows the relationship between the number of branches in the transmission path and the delay time of communication data. As shown by curve I in FIG. 6, the delay time of communication data tends to increase as the number of transmission path branches increases. As a result, the pulse width of the mismatch signal changes depending on not only the presence / absence of data collision but also the combination of the number of transmission path branches and the transmission path length of each branch. For this reason, in determining whether or not there is a data collision, simply comparing the pulse width of the mismatch signal with a certain threshold value causes a data collision even though no data collision actually occurs. May be misjudged.

ビル等の建築物に設置されたマルチ型空気調和装置では、建築物ごとに伝送路の分岐数及び各分岐の伝送路長が異なっている。そのうえ、マルチ型空気調和装置では、室内機の増設、取り外し又は移動により、伝送路の分岐数及び各分岐の伝送路長が後から変更されることが多い。このため、データ衝突の有無を判定するのに最適な不一致信号の基準となるパルス幅は、マルチ型空気調和装置ごとに異なっており、またノードの追加等により変化することがある。   In a multi-type air conditioner installed in a building such as a building, the number of transmission path branches and the transmission path length of each branch are different for each building. In addition, in the multi-type air conditioner, the number of transmission path branches and the transmission path length of each branch are often changed later by adding, removing, or moving indoor units. For this reason, the pulse width that is the standard of the mismatch signal that is optimal for determining the presence or absence of data collision differs for each multi-type air conditioner, and may change due to the addition of a node or the like.

そこで、本発明は、分岐を有する伝送路においてもデータ衝突をより確実に検出することができる差動型伝送装置及びそのデータ衝突検知方法を提供することを目的としている。   Accordingly, an object of the present invention is to provide a differential transmission apparatus and a data collision detection method thereof that can more reliably detect a data collision even in a transmission line having a branch.

上記の目的を達成するため、本発明の差動型伝送装置は、分岐を有する伝送路に接続され、シリアル信号の差動伝送を行う複数のノードの各々に設けられた差動型伝送装置であって、前記伝送路へ送信した送信データの信号波形と前記伝送路から受信した受信データの信号波形とを比較して、パルス列から成る不一致信号を生成する信号比較部と、前記不一致信号のパルス列の各パルスのパルス幅のうちの最大パルス幅を検出する最大検出部と、前記受信データのエラーチェックを行って前記受信信号のエラーを検出するシリアル受信回路と、前記最大パルス幅が基準パルス幅以上であるときに、前記送信データと受信データとのデータ衝突が発生していると判定する衝突判定部と、を備え、前記衝突判定部は、前記シリアル受信回路がエラーを検出した場合、又は送受信データの照合結果が不一致の場合において、前記最大パルス幅が基準パルス幅よりも小さいときに、前記基準パルス幅を前記最大パルス幅に更新することを特徴としている。   In order to achieve the above object, a differential transmission apparatus according to the present invention is a differential transmission apparatus provided at each of a plurality of nodes connected to a transmission line having a branch and performing differential transmission of serial signals. A signal comparison unit that compares a signal waveform of transmission data transmitted to the transmission path with a signal waveform of reception data received from the transmission path to generate a mismatch signal composed of a pulse train; and a pulse train of the mismatch signal A maximum detector for detecting a maximum pulse width of pulse widths of each of the pulses, a serial reception circuit for detecting an error in the received signal by performing an error check on the received data, and the maximum pulse width being a reference pulse width A collision determination unit that determines that a data collision between the transmission data and the reception data has occurred. The collision determination unit is configured such that the serial reception circuit has an error. In the case when it is detected, or received data in the verification result is a mismatch, and when the maximum pulse width is smaller than the reference pulse width is characterized by updating said reference pulse width to the maximum pulse width.

このように構成された本発明によれば、シリアル受信回路がエラーを検出した場合、又は送受信データの照合結果が不一致の場合において時に、最大パルス幅が基準パルス幅よりも小さいときに、基準パルス幅が最大パルス幅に更新される。その結果、データ衝突の有無を判定するための基準パルス幅がより適正な値に変更される。このため、分岐を有する伝送路においてもデータ衝突がより確実に検出される。また、データ衝突の誤検出が低減することにより、データ衝突に起因する再送信の発生が低減される。その結果、伝送路の使用効率が向上するとともに、送信が成功裡に完了する迄の期待時間が低減される。
さらに、伝送路の分岐数及び各分岐の伝送路長が後から変更された場合であっても、変更後の伝送路に適応した新たな基準パルス幅が設定される。これにより、伝送路が後から変更された場合においても、データ衝突がより確実に検出される。
According to the present invention configured as described above, when the serial reception circuit detects an error or when the collation result of the transmission / reception data does not match, the reference pulse has a maximum pulse width smaller than the reference pulse width. The width is updated to the maximum pulse width. As a result, the reference pulse width for determining the presence or absence of data collision is changed to a more appropriate value. For this reason, a data collision is detected more reliably even in a transmission line having a branch. Moreover, the occurrence of retransmission due to data collision is reduced by reducing false detection of data collision. As a result, the use efficiency of the transmission path is improved and the expected time until the transmission is completed successfully is reduced.
Furthermore, even if the number of branches of the transmission path and the transmission path length of each branch are changed later, a new reference pulse width adapted to the changed transmission path is set. Thereby, even when the transmission path is changed later, the data collision is detected more reliably.

また、本発明において好ましくは、前記衝突判定部は、前記シリアル受信回路がエラーを検出しなかった場合,もしくは送受信データの照合結果が一致であった場合であっても、前記最大パルス幅が基準パルス幅以上であるときに、前記データ衝突が発生していると判定する。
これにより、より確実にデータ衝突が検出される。
In the present invention, it is preferable that the collision determination unit uses the maximum pulse width as a reference even when the serial reception circuit does not detect an error or when the collation result of the transmission / reception data matches. When the pulse width is greater than or equal to the pulse width, it is determined that the data collision has occurred.
Thereby, a data collision is detected more reliably.

また、本発明において好ましくは、前記衝突判定部は、前記データ衝突が発生していると所定の回数判定した場合に、前記基準パルス幅を、前記最大パルス幅に更新される前の当初の基準パルス幅に変更する。
これにより、データ衝突の検知感度が高すぎることによる誤検知の発生が抑制される。
Preferably, in the present invention, when the collision determination unit determines that the data collision has occurred a predetermined number of times, the reference pulse width is updated to the initial reference before being updated to the maximum pulse width. Change to pulse width.
Thereby, generation | occurrence | production of the misdetection by the detection sensitivity of a data collision being too high is suppressed.

また、本発明において好ましくは、前記衝突判定部は、送信データの送信開始から所定のバイト数以内の送信データについてデータ衝突の有無を判定する。
送信データの送信開始後、所定のバイト数以内にデータ衝突が発生しなければ、その後は、データ衝突が発生しない。したがって、送信データの送信開始後、所定のバイト数以内の送信データについて処理することにより、マイクロコンピュータ等の処理装置の処理負荷が低減される。これによりマイクロコンピュータ等の処理装置に要求される性能が緩和され、処理装置のコストの低減を図ることが可能となる。
In the present invention, it is preferable that the collision determination unit determines whether or not there is a data collision for transmission data within a predetermined number of bytes from the start of transmission of transmission data.
If no data collision occurs within a predetermined number of bytes after transmission data transmission starts, no data collision occurs thereafter. Therefore, by processing transmission data within a predetermined number of bytes after transmission data transmission starts, the processing load on a processing device such as a microcomputer is reduced. As a result, the performance required for a processing apparatus such as a microcomputer is alleviated, and the cost of the processing apparatus can be reduced.

また、本発明において好ましくは、前記衝突判定部がデータ衝突が発生していると判定した場合に、前記最大検出部及び前記衝突判定部による処理を停止する。
このように、データ衝突検知後に、最大検出部及び衝突判定部による処理を停止(無効)にすることにより、マイクロコンピュータ等の処理装置の処理負荷が低減される。これによりマイクロコンピュータ等の処理装置に要求される性能が緩和され、処理装置のコストの低減を図ることが可能となる。
Preferably, in the present invention, when the collision determination unit determines that a data collision has occurred, processing by the maximum detection unit and the collision determination unit is stopped.
As described above, after the data collision is detected, the processing load of the processing device such as the microcomputer is reduced by stopping (invalidating) the processing by the maximum detection unit and the collision determination unit. As a result, the performance required for a processing apparatus such as a microcomputer is alleviated, and the cost of the processing apparatus can be reduced.

また、本発明の差動型伝送装置のデータ衝突検知方法は、分岐を有する伝送路に接続され、シリアル信号の差動伝送を行う複数のノードの各々に設けられた差動型伝送装置のデータ衝突検知方法であって、前記伝送路へ送信した送信データの信号波形と前記伝送路から受信した受信データの信号波形とを比較して、パルス列から成る不一致信号を生成する信号比較と、前記不一致信号のパルス列の各パルスのパルス幅のうちの最大パルス幅を検出する最大検出と、シリアル受信回路で前記受信データのエラーチェックを行って前記受信信号のエラーを検出するエラー検出処理と、前記最大パルス幅が基準パルス幅以上であるときに、前記送信データと受信データとのデータ衝突が発生していると判定する衝突判定と、前記シリアル受信回路がエラーを検出した場合において、前記最大パルス幅が基準パルス幅よりも小さいときに、前記基準パルス幅を前記最大パルス幅に更新する更新処理と、を含むことを特徴としている。   Also, the data collision detection method of the differential transmission device according to the present invention is the data of the differential transmission device provided in each of a plurality of nodes that are connected to a transmission line having branches and perform differential transmission of serial signals. A collision detection method, comprising: comparing a signal waveform of transmission data transmitted to the transmission path with a signal waveform of reception data received from the transmission path to generate a mismatch signal composed of a pulse train; and the mismatch A maximum detection for detecting a maximum pulse width of pulse widths of each pulse of a pulse train of the signal, an error detection process for detecting an error of the reception signal by performing an error check of the reception data in a serial reception circuit, and the maximum A collision determination for determining that a data collision between the transmission data and the reception data occurs when a pulse width is equal to or greater than a reference pulse width; and the serial reception circuit In case of detecting the error, when the maximum pulse width is smaller than the reference pulse width, it is characterized in that it comprises, a updating process for updating the reference pulse width to the maximum pulse width.

このように構成された本発明によれば、シリアル受信回路がエラーを検出した場合において、最大パルス幅が基準パルス幅よりも小さいときに、基準パルス幅が最大パルス幅に更新される。その結果、データ衝突の有無を判定するための基準パルス幅がより適正な値となる。このため、分岐を有する伝送路においてもデータ衝突がより確実に検出される。 また、データ衝突が検知できない状況(検知不能)が低減することにより、データ衝突に起因する再送信の発生が低減される。その結果、伝送路の使用効率が向上するとともに、送信が成功裡に完了する迄の期待時間が低減される。
さらに、伝送路の分岐数及び各分岐の伝送路長が変更された場合であっても、変更後の伝送路に適応した基準パルス幅が設定される。これにより、伝送路が後から変更された場合においても、データ衝突がより確実に検出される。
According to the present invention configured as described above, when the serial reception circuit detects an error, the reference pulse width is updated to the maximum pulse width when the maximum pulse width is smaller than the reference pulse width. As a result, the reference pulse width for determining the presence or absence of data collision becomes a more appropriate value. For this reason, a data collision is detected more reliably even in a transmission line having a branch. In addition, the occurrence of retransmission due to data collision is reduced by reducing the situation in which data collision cannot be detected (undetectable). As a result, the use efficiency of the transmission path is improved and the expected time until the transmission is completed successfully is reduced.
Furthermore, even when the number of transmission path branches and the transmission path length of each branch are changed, a reference pulse width adapted to the changed transmission path is set. Thereby, even when the transmission path is changed later, the data collision is detected more reliably.

本発明の差動型伝送装置及びそのデータ衝突検知方法によれば、分岐を有する伝送路においてもデータ衝突をより確実に検出することができる。   According to the differential transmission apparatus and the data collision detection method of the present invention, it is possible to more reliably detect a data collision even in a transmission path having a branch.

本発明の適用されるマルチ型空気調和装置の構成を示すブロック図である。It is a block diagram which shows the structure of the multi-type air conditioning apparatus to which this invention is applied. 本発明の実施形態による差動型伝送装置の構成を示すブロック図である。It is a block diagram which shows the structure of the differential type | mold transmission apparatus by embodiment of this invention. 受信データ及び不一致信号を示すタイミングチャートである。It is a timing chart which shows received data and a mismatch signal. 不一致信号のパルス幅の最大値の検出処理を示すフローチャートである。It is a flowchart which shows the detection process of the maximum value of the pulse width of a mismatch signal. 本発明の実施形態による差動型伝送装置のデータ衝突検知方法を示すフローチャートである。3 is a flowchart illustrating a data collision detection method of a differential transmission apparatus according to an exemplary embodiment of the present invention. 伝送路の分岐数と通信データの遅れ時間との関係を示すグラフである。It is a graph which shows the relationship between the number of branches of a transmission line, and the delay time of communication data.

以下、添付の図面を参照して、本発明の差動型伝送装置及びそのデータ衝突検知方法の実施形態を説明する。
図1は、本発明の適用される、分岐を有する伝送路に接続され、シリアル信号の差動伝送を行う複数のノードを有する装置としてのマルチ型空気調和装置の構成を示すブロック図である。このマルチ型空気調和装置は、室内機11〜16と、リモコン21〜26と、室外機31及び32と、空調監視盤41と、これらを接続する伝送路1〜8とから構成されている。伝送路1〜8は、極性の決められた2本の配線からなる2本線渡り配線の信号線で構成されている。
Hereinafter, embodiments of a differential transmission apparatus and a data collision detection method thereof according to the present invention will be described with reference to the accompanying drawings.
FIG. 1 is a block diagram showing a configuration of a multi-type air conditioner as a device having a plurality of nodes connected to a transmission line having a branch and performing differential transmission of serial signals, to which the present invention is applied. This multi-type air conditioner is composed of indoor units 11 to 16, remote controllers 21 to 26, outdoor units 31 and 32, an air conditioning monitoring panel 41, and transmission paths 1 to 8 connecting them. Each of the transmission lines 1 to 8 is configured by a signal line of a two-line crossover wiring composed of two wirings having a determined polarity.

室内機11及び12と室外機31は、伝送路1及び3で接続され一体となって空調運転を行い、室内機13〜16と室外機32も、伝送線路2及び4〜6で接続され一体となって空調運転を行っている。室内機11及び12は、それぞれ設定温度に対する室温の偏差をもとに必要な空調能力を演算し、室外機31に対して必要な空調能力を常時要求している。空調能力の要求は、要求信号として、伝送路1及び3を介して室外機31に送信される。また、室内機13〜16も室外機32に対して伝送路2及び4〜6を介して要求信号を送信している。   The indoor units 11 and 12 and the outdoor unit 31 are connected by the transmission lines 1 and 3 to perform air conditioning operation integrally, and the indoor units 13 to 16 and the outdoor unit 32 are also connected by the transmission lines 2 and 4 to 6 and integrated. It has become air conditioning operation. Each of the indoor units 11 and 12 calculates a necessary air conditioning capability based on a deviation of the room temperature with respect to the set temperature, and always requests the outdoor unit 31 for the necessary air conditioning capability. The request for the air conditioning capability is transmitted as a request signal to the outdoor unit 31 via the transmission paths 1 and 3. The indoor units 13 to 16 also transmit request signals to the outdoor unit 32 via the transmission paths 2 and 4 to 6.

空調監視盤41は、伝送路7及び8を介して、室内外機間の伝送路1〜6に接続されている。このため、空調監視盤41は、各室内機11〜16から室外機31又は32に送信される要求信号を受信して、室内機11〜16の要求空調能力を常に把握している。   The air conditioning monitoring panel 41 is connected to transmission paths 1 to 6 between the indoor and outdoor units via transmission paths 7 and 8. For this reason, the air-conditioning monitoring board 41 receives the request signal transmitted from each indoor unit 11-16 to the outdoor unit 31 or 32, and always grasps the required air-conditioning capability of the indoor units 11-16.

室内機11から16、リモコン21〜26、室外機31、32及び空調監視盤41には、それぞれ差動型伝送装置50が設けられている。図2を参照して、差動型伝送装置50を説明する。各差動型伝送装置50は、マイクロコンピュータ60と、ライン・ドライバ/レシーバ回路70と、信号比較部90と、レシーバ出力選択回路95とを備えている。   The indoor units 11 to 16, the remote controllers 21 to 26, the outdoor units 31 and 32, and the air conditioning monitoring panel 41 are each provided with a differential transmission device 50. The differential transmission apparatus 50 will be described with reference to FIG. Each differential transmission device 50 includes a microcomputer 60, a line driver / receiver circuit 70, a signal comparison unit 90, and a receiver output selection circuit 95.

マイクロコンピュータ60は、制御部61と、シリアル伝送インターフェース62と、タイマ63と、衝突判定部64と、メモリ65と、最大検出部66とを有する。また、マイクロコンピュータ60は、送信ポートTxD、受信ポートRxD、汎用ポートP1、P2、P3及びPxを備えている。   The microcomputer 60 includes a control unit 61, a serial transmission interface 62, a timer 63, a collision determination unit 64, a memory 65, and a maximum detection unit 66. The microcomputer 60 includes a transmission port TxD, a reception port RxD, and general-purpose ports P1, P2, P3, and Px.

制御部61は、CPUがメモリ65に記憶されているソフトウエアを解釈、実行することにより、シリアル伝送インターフェース62、タイマ63、衝突判定部64及び最大検出部66の動作を制御する。具体的には、インターフェース62を介して、データの送受信の開始、停止を制御する。また、制御部61は、後述する衝突検知の有効・無効を制御する。さらに、制御部61は、衝突判定部64の衝突の有無の判定結果に基づいて、衝突フラグのオン/オフを制御する。衝突フラグはメモリ65に記憶される。   The control unit 61 controls the operations of the serial transmission interface 62, the timer 63, the collision determination unit 64, and the maximum detection unit 66 when the CPU interprets and executes software stored in the memory 65. Specifically, the start and stop of data transmission / reception are controlled via the interface 62. Further, the control unit 61 controls validity / invalidity of collision detection described later. Further, the control unit 61 controls the on / off of the collision flag based on the determination result of the presence / absence of the collision by the collision determination unit 64. The collision flag is stored in the memory 65.

シリアル伝送インターフェース62は、受信データのエラーチェックを行って受信信号のエラーを検出する。エラー検出においては、シリアルデータのパリティチェック及びストップビット(STP)のHレベルチェックが行われる。   The serial transmission interface 62 performs an error check on the received data and detects an error in the received signal. In error detection, a parity check of serial data and an H level check of a stop bit (STP) are performed.

衝突判定部65は、後述するように、信号比較部90から出力された不一致信号に基づいて、伝送路上でのデータ衝突の有無を判定する。   As will be described later, the collision determination unit 65 determines whether or not there is a data collision on the transmission path based on the mismatch signal output from the signal comparison unit 90.

ライン・ドライバ/レシーバ回路70は、差動型ライン・ドライバ/レシーバIC80と差動殻ライン・ドライバ/レシーバIC85とを備えている。差動型ライン・ドライバ/レシーバIC80は、差動型ライン・ドライバ81と、差動型ライン・レシーバ82とを備えている。また、差動型ライン・ドライバ/レシーバIC85は、差動型ライン・ドライバ86と、差動型ライン・レシーバ87とを備えている。2つの差動型ライン・ドライバ81及び86の出力は、互いに異なる極性の端子1Yと2Z、1Zと2Yに接続される。また、2つの差動型ライン・レシーバ82及び87の入力は、互いに異なる極性の端子1Aと2B、1Bと2Aが接続される。   The line driver / receiver circuit 70 includes a differential line driver / receiver IC 80 and a differential shell line driver / receiver IC 85. The differential line driver / receiver IC 80 includes a differential line driver 81 and a differential line receiver 82. The differential line driver / receiver IC 85 includes a differential line driver 86 and a differential line receiver 87. The outputs of the two differential line drivers 81 and 86 are connected to terminals 1Y and 2Z, 1Z and 2Y having different polarities. The inputs of the two differential line receivers 82 and 87 are connected to terminals 1A and 2B, 1B and 2A having different polarities.

差動型ライン・ドライバ81及び86は、配線Tにより、マイクロコンピュータ60の送信ポートTxDと接続され、送信ポートTxDを介して伝送路と接続されている。マイクロコンピュータ60から出力されたデータは、マイクロコンピュータ60から差動型ライン・ドライバ81及び86に対して付与される制御信号DE1、DE2に基づいて、差動型ライン・ドライバ81及び86から伝送路に向けて転送される。   The differential line drivers 81 and 86 are connected to the transmission port TxD of the microcomputer 60 by the wiring T, and are connected to the transmission line via the transmission port TxD. The data output from the microcomputer 60 is transmitted from the differential line drivers 81 and 86 to the transmission path based on the control signals DE1 and DE2 given from the microcomputer 60 to the differential line drivers 81 and 86. Forwarded to.

差動型ライン・レシーバ82及び87は、配線Rにより、マイクロコンピュータ60の受信ポートRxDに接続され、受信ポートRxDを介して、シリアル伝送インターフェース62にデータを転送する。差動型ライン・レシーバ82及び87は、伝送路接続端子71を介して、伝送路と接続されている。   The differential line receivers 82 and 87 are connected to the reception port RxD of the microcomputer 60 by the wiring R, and transfer data to the serial transmission interface 62 via the reception port RxD. The differential line receivers 82 and 87 are connected to the transmission line via the transmission line connection terminal 71.

2つの差動型ライン・ドライバ81及び86、2つの差動型ライン・レシーバ82及び87、及びマイクロコンピュータ60が、データの送信/受信を行うとき、一つの極性に属するドライバ及びレシーバ(例えば、差動型ライン・ドライバ81及びレシーバ82)を選択する。その選択(極性切替え)手段として、制御信号DE1、DE2及びCTRLを用いる。   When two differential line drivers 81 and 86, two differential line receivers 82 and 87, and the microcomputer 60 transmit / receive data, drivers and receivers belonging to one polarity (for example, The differential line driver 81 and receiver 82) are selected. As the selection (polarity switching) means, control signals DE1, DE2 and CTRL are used.

予め決められたルールに従って、あるノードがデータを送信する。他のノードは、そのデータを受信し、データが正しく受信されたか否かを判断し、正しく受信されなければ逆極性接続と判断し、制御信号CTRLによりレシーバ出力1R、2Rを切り替える。これにより、全てのノードの極性が確定される。データ送信時、マイクロコンピュータ60は、選択された極性に属するドライバを制御信号DE1,DE2により選択して使用する。   A node transmits data according to a predetermined rule. The other node receives the data, determines whether or not the data is correctly received, determines that the connection is reverse polarity if the data is not correctly received, and switches the receiver outputs 1R and 2R according to the control signal CTRL. Thereby, the polarities of all the nodes are determined. At the time of data transmission, the microcomputer 60 selects and uses a driver belonging to the selected polarity by the control signals DE1 and DE2.

次に、信号比較部90を説明する。信号比較部90は、伝送路へ送信した送信データの信号波形と伝送路から受信した受信データの信号波形とを比較して、パルス列から成る不一致信号を生成する。信号比較部90は、比較回路91で構成されている。比較回路91は、マイクロコンピュータ60の送信ポートTxDに接続され、送信データの信号を受信する。比較回路91はまた、レシーバ出力選択回路95と接続され、マイクロコンピュータ60の受信ポートRxDに入力される受信データの信号を受信する。比較回路91は、マイクロコンピュータ60の外部割り込みポートPxに接続されており、比較結果をマイクロコンピュータ60へ送信する。   Next, the signal comparison unit 90 will be described. The signal comparison unit 90 compares the signal waveform of the transmission data transmitted to the transmission path with the signal waveform of the reception data received from the transmission path, and generates a mismatch signal composed of a pulse train. The signal comparison unit 90 includes a comparison circuit 91. The comparison circuit 91 is connected to the transmission port TxD of the microcomputer 60 and receives a transmission data signal. The comparison circuit 91 is also connected to the receiver output selection circuit 95 and receives a reception data signal input to the reception port RxD of the microcomputer 60. The comparison circuit 91 is connected to the external interrupt port Px of the microcomputer 60 and transmits the comparison result to the microcomputer 60.

比較回路91は、送信データの信号波形(送信波形)と受信データの信号波形(受信波形)とを比較し、送信波形の立ち上がり/立ち下がりの位置と、受信波形の立ち上がり/立ち下がりの位置とのずれを検出する。比較回路91は、この位置ずれを排他的論理和により、両波形の不一致部分の信号(不一致信号)を生成する。比較回路91は、マイクロコンピュータ60の外部割り込みポートPxに接続されており、生成された不一致信号をマイクロコンピュータ60に送信する。   The comparison circuit 91 compares the signal waveform (transmission waveform) of the transmission data with the signal waveform (reception waveform) of the reception data, and determines the rising / falling position of the transmission waveform and the rising / falling position of the reception waveform. Detecting deviations. The comparison circuit 91 generates a signal (mismatch signal) of a mismatched portion of both waveforms by performing an exclusive OR operation on the positional shift. The comparison circuit 91 is connected to the external interrupt port Px of the microcomputer 60 and transmits the generated mismatch signal to the microcomputer 60.

図3に、受信データ及び不一致信号を示す。図3の上段は、マイクロコンピュータの受信ポートRxDに入力される1文字分のシリアル信号を示す。このシリアル信号は、1バイト(8ビット)の文字データ(b0〜b7)の直前にスタート・ビット(STR)が付加されるとともに、文字データの直後にパリティビット(P)及びストップ・ビット(STP)が付加されている。   FIG. 3 shows received data and a mismatch signal. The upper part of FIG. 3 shows a serial signal for one character input to the reception port RxD of the microcomputer. In this serial signal, a start bit (STR) is added immediately before 1 byte (8 bits) of character data (b0 to b7), and a parity bit (P) and a stop bit (STP) are immediately after the character data. ) Is added.

図3の下段は、不一致信号を示す。不一致信号はパルス列からなる。このパルス列の各パルスのパルス幅は、それぞれ、送信データの信号波形の立ち上がり/立ち下がりの位置と、受信データ信号波形の立ち上がり/立ち下がりの位置とのずれ(時間差)に対応する。ここでは、スタート・ビット(STR)の前後、文字データのb3とb4との間、パリティビット(P)の前後に、パルス幅の狭いパルスが示されている。さらに、文字データのb2及びb6に、パルス幅の広いパルスが示されている。   The lower part of FIG. 3 shows a mismatch signal. The mismatch signal consists of a pulse train. The pulse width of each pulse of this pulse train corresponds to the difference (time difference) between the rising / falling position of the transmission data signal waveform and the rising / falling position of the reception data signal waveform. Here, pulses with a narrow pulse width are shown before and after the start bit (STR), between b3 and b4 of the character data, and before and after the parity bit (P). Furthermore, a pulse having a wide pulse width is shown in b2 and b6 of the character data.

次に、最大検出部66を説明する。最大検出部66は、不一致信号のパルス列の各パルスのパルス幅のうちの最大パルス幅を検出する。図3に示す例では、文字データのビットb2の位置に示されたパルスのパルス幅を最大パルス幅(Tmax)として検出する。   Next, the maximum detection unit 66 will be described. The maximum detection unit 66 detects the maximum pulse width of the pulse widths of the pulses in the pulse train of the mismatch signal. In the example shown in FIG. 3, the pulse width of the pulse indicated at the position of bit b2 of the character data is detected as the maximum pulse width (Tmax).

図4のフローチャートを参照して、最大検出部66による最大パルス幅の検出処理を説明する。
まず、外部割り込み(INT)により、衝突検知が有効である場合に(S41で「yes」の場合に)、最大検出部は、最大パルス幅の検出を開始する。なお、既にデータ衝突が検知されて、衝突検知が無効(停止)になっている場合(S41で「no」の場合)には、最大パルス幅の検出処理は行われない。
With reference to the flowchart of FIG. 4, the maximum pulse width detection processing by the maximum detection unit 66 will be described.
First, when collision detection is enabled by an external interrupt (INT) (in the case of “yes” in S41), the maximum detector starts detecting the maximum pulse width. When data collision is already detected and collision detection is disabled (stopped) (in the case of “no” in S41), the maximum pulse width detection process is not performed.

不一致信号のパルス列の各パルスについて、ポートレベルが「Hi」である間(S42で「yes」の間)、その「Hi」の継続時間、即ちパルス幅(Tc)をタイマ63で計測する(S43)。   For each pulse of the pulse train of the mismatch signal, while the port level is “Hi” (during “yes” in S42), the duration of “Hi”, that is, the pulse width (Tc) is measured by the timer 63 (S43). ).

そして、パルスのポートレベルが「Lo」になった場合に(S42で「no」の場合)に、そのパルスのパルス幅が確定したので、次のステップS45へ進む。   Then, when the pulse port level becomes “Lo” (in the case of “no” in S42), the pulse width of the pulse is determined, and the process proceeds to the next step S45.

また、パルス幅(Tc)が所定の上限時間(Tu)を超過した場合(S44で「yes」の場合)にも、次のステップS45へ進む。これは、パルス幅(Tc)が所定の上限時間(Tu)を超過している場合は、データ衝突が発生していることが明らかであり、それ以上のパルス幅の計測は、マイクロコンピュータに無駄な負荷をかけることになるからである。なお、所定の上限時間(Tu)の値は、例えば、1ビットの送信時間分の長さを設定するとよい。具体的には、例えば伝送レートが38,400bps(bit per sec)の時、約20μs(マイクロ秒)を設定するとよい。   Also, when the pulse width (Tc) exceeds the predetermined upper limit time (Tu) (in the case of “yes” in S44), the process proceeds to the next step S45. This is because when the pulse width (Tc) exceeds the predetermined upper limit time (Tu), it is clear that a data collision has occurred, and the measurement of the pulse width beyond that is useless to the microcomputer. This is because a heavy load is applied. The value of the predetermined upper limit time (Tu) may be set to a length corresponding to a transmission time of 1 bit, for example. Specifically, for example, when the transmission rate is 38,400 bps (bit per sec), about 20 μs (microseconds) may be set.

そして、計測されたパルス幅(Tc)が、最大パルス幅(Tmax)以上である場合に(S34で「yes」の場合に)、最大パルス幅(Tmax)の値を、計測されたパルス幅(Tc)に更新する(S34)。なお、最大パルス幅(Tmax)は、データ転送開始(1バイト目のデータ送信時)に、Tmax=0(秒)に初期設定されている。
このようにして、不一致信号のパルス列の各パルスのパルス幅のうちの最大パルス幅が検出される。
When the measured pulse width (Tc) is equal to or greater than the maximum pulse width (Tmax) (in the case of “yes” in S34), the value of the maximum pulse width (Tmax) is set to the measured pulse width (Tmax). Tc) is updated (S34). The maximum pulse width (Tmax) is initially set to Tmax = 0 (seconds) at the start of data transfer (at the time of data transmission of the first byte).
In this way, the maximum pulse width of the pulse widths of the pulses of the mismatch signal pulse train is detected.

次に、衝突判定部64を説明する。衝突判定部64は、最大パルス幅(Tmax)が基準パルス幅(Tj)以上であるときに、送信データと受信データとのデータ衝突が発生していると判定する。さらに、衝突判定部64は、最大パルス幅が基準パルス幅よりも小さい場合であっても、シリアル伝送インターフェース62がエラーを検出したとき,もしくは送受信データの照合結果が不一致時には、基準パルス幅(Tj)を、その時点での最大パルス幅(Tmax)に更新する。衝突検知が過敏となるのを回避するため,基準パルス幅(Tj)の更新を、現在の基準パルス幅(Tj)と最大パルス幅(Tmax)の平均値を採用してもよい。   Next, the collision determination unit 64 will be described. The collision determination unit 64 determines that a data collision between transmission data and reception data has occurred when the maximum pulse width (Tmax) is equal to or greater than the reference pulse width (Tj). Further, even when the maximum pulse width is smaller than the reference pulse width, the collision determination unit 64 detects the reference pulse width (Tj) when the serial transmission interface 62 detects an error or the collation result of the transmission / reception data does not match. ) Is updated to the maximum pulse width (Tmax) at that time. In order to avoid excessive collision detection, the average of the current reference pulse width (Tj) and the maximum pulse width (Tmax) may be used for updating the reference pulse width (Tj).

図5のフローチャートを参照して、本発明の実施形態による差動型伝送装置のデータ衝突検知方法を説明する。
あるノードの差動型伝送装置50が、他のノードに対してデータ転送を開始する際(1バイト目のデータ送信時)に、制御部61は、信号比較部90からマイクロコンピュータ60の外部割り込みポートPxを介して最大検出部66の動作を許可すると同時に衝突検知を有効とする。また、データ衝突の有無を示す衝突フラグをクリア(「1」は「0」に、「0」は「0」のままに)すると同時に最大パルス幅(Tmax)を0にする。
A data collision detection method of the differential transmission apparatus according to the embodiment of the present invention will be described with reference to the flowchart of FIG.
When the differential transmission apparatus 50 of a certain node starts data transfer to another node (during data transmission of the first byte), the control unit 61 sends an external interrupt from the signal comparison unit 90 to the microcomputer 60. The operation of the maximum detection unit 66 is permitted through the port Px, and at the same time, the collision detection is enabled. Also, the collision flag indicating the presence or absence of data collision is cleared (“1” remains “0” and “0” remains “0”), and the maximum pulse width (Tmax) is simultaneously decreased to zero.

データ衝突の検知処理は、差動型伝送装置50によるデータ送信に伴って実行される。ただし、データ衝突の検知処理は、衝突検知が有効であり(S501で「yes」)、かつ、送信データが送信開始から所定のバイト数(例えば3バイト)以内である場合(S502で「yes」)にのみ実行される。既にデータ衝突が検知されて衝突検知処理が無効になっている場合には、改めてデータ衝突を検知する必要がないからであり、また、送信データの送信開始後、所定のバイト数以内にデータ衝突が発生しなければ、その後は、データ衝突が原理的に発生しないからである。これにより、マイクロコンピュータ等の処理装置の処理負荷が低減される。   The data collision detection process is executed along with data transmission by the differential transmission apparatus 50. However, in the data collision detection processing, when collision detection is effective (“yes” in S501) and the transmission data is within a predetermined number of bytes (for example, 3 bytes) from the start of transmission (“yes” in S502). Only executed). This is because it is not necessary to detect the data collision again when the data collision is already detected and the collision detection processing is disabled, and the data collision within the predetermined number of bytes after the transmission of the transmission data is started. This is because no data collision occurs in principle thereafter. Thereby, the processing load of a processing device such as a microcomputer is reduced.

続いて、シリアル伝送インターフェース62が、受信データのエラーチェックを行って受信信号のエラーを検出する。エラー検出においては、シリアルデータのパリティチェック及びストップビット(STP)のHレベルチェックが行われる。受信エラーが検出された場合、又は送受信データの照合結果が不一致の場合(S503で「yes」の場合)、ステップS504へ進む。   Subsequently, the serial transmission interface 62 performs an error check on the received data and detects an error in the received signal. In error detection, a parity check of serial data and an H level check of a stop bit (STP) are performed. If a reception error is detected, or if the collation result of the transmission / reception data does not match (in the case of “yes” in S503), the process proceeds to step S504.

衝突判定部64は、最大パルス幅(Tmax)が基準パルス幅(Tj)よりも小さいときに(S504で「yes」)、基準パルス幅(Tj)を最大パルス幅(Tmax)に更新する(S505)。最大パルス幅(Tmax)は、最大検出部66によって図4のフローチャートに示した処理に従って検出されたものである。   When the maximum pulse width (Tmax) is smaller than the reference pulse width (Tj) (“yes” in S504), the collision determination unit 64 updates the reference pulse width (Tj) to the maximum pulse width (Tmax) (S505). ). The maximum pulse width (Tmax) is detected by the maximum detector 66 according to the process shown in the flowchart of FIG.

このように、最大パルス幅(Tmax)が基準パルス幅(Tj)よりも小さい場合であっても、シリアル受信回路がエラーを検出したとき,もしくは送受信データの照合結果が不一致時に、基準パルス幅が最大パルス幅に更新される結果、基準パルス幅がより小さい値に変更される。これにより、データ衝突の有無を判定するための基準パルス幅がより適正な値となる。   As described above, even when the maximum pulse width (Tmax) is smaller than the reference pulse width (Tj), the reference pulse width is not detected when the serial reception circuit detects an error or the collation result of the transmission / reception data does not match. As a result of updating to the maximum pulse width, the reference pulse width is changed to a smaller value. Thereby, the reference pulse width for determining the presence or absence of data collision becomes a more appropriate value.

続いて、制御部61が、衝突検知を無効にする(S506)。これにより、最大検出部66が停止する。データ衝突が生じていることが判定された後は、更に判定を行う実益が無い。このため、最大検出部66を停止して、マイクロコンピュータ60の無用な負荷の発生を防止する。   Subsequently, the control unit 61 invalidates the collision detection (S506). Thereby, the maximum detection part 66 stops. Once it is determined that a data collision has occurred, there is no further benefit in making the determination. For this reason, the maximum detecting unit 66 is stopped to prevent generation of unnecessary load on the microcomputer 60.

続いて、制御部61は、データ衝突が発生していることを示すフラグを立てる。ここでは、衝突フラグを「1」とする(S507)。   Subsequently, the control unit 61 sets a flag indicating that a data collision has occurred. Here, the collision flag is set to “1” (S507).

衝突フラグ=1の場合、以後のデータ衝突を回避するため、制御部61は、データ送信を中断する(S509)。   When the collision flag = 1, the control unit 61 interrupts the data transmission in order to avoid the subsequent data collision (S509).

続いて、制御部61は、送信ポートTxDを介して、伝送路上にダミーデータを送信する(S510)。このダミーデータは、データ衝突が発生していることを他のノードに知らせるものである。   Subsequently, the control unit 61 transmits dummy data on the transmission path via the transmission port TxD (S510). This dummy data notifies other nodes that a data collision has occurred.

さらに、制御部61は、ダミーデータ以外のデータ送信を、タイマ63に基づく所定時間だけ待機させた後(S511)、再度ステップS501へ戻って、データの再送動作を行う。   Further, the control unit 61 waits for data transmission other than dummy data for a predetermined time based on the timer 63 (S511), and then returns to step S501 again to perform a data retransmission operation.

また、受信エラーが検出されない場合(S503で「no」の場合)であっても、衝突判定部64は、最大パルス幅(Tmax)と基準パルス幅(Tj)とを比較して、データ衝突の有無を判定する。最大パルス幅(Tmax)が基準パルス幅(Tj)以上で(Tmax≧Tj)あるときに(S512で「yes」)、衝突判定部64は、送信データと受信データとのデータ衝突が発生していると判定する。これにより、より確実にデータ衝突を検知することができる。そして、ステップS506へ進んで、データ衝突時の処理を行う。   Even when no reception error is detected (in the case of “no” in S503), the collision determination unit 64 compares the maximum pulse width (Tmax) with the reference pulse width (Tj), Determine presence or absence. When the maximum pulse width (Tmax) is equal to or greater than the reference pulse width (Tj) (Tmax ≧ Tj) (“yes” in S512), the collision determination unit 64 generates a data collision between the transmission data and the reception data. It is determined that Thereby, data collision can be detected more reliably. Then, the process proceeds to step S506 to perform processing at the time of data collision.

ところで、基準パルス幅(Tj)は更新される都度、より小さい値となる。その結果、基準パルス幅(Tj)の値が小さくなりすぎて、データ衝突の検出感度が高くなりすぎるおそれがある。その場合、データの再送動作が頻繁に発生することになる。そこで、衝突判定部64は、データ衝突が発生していると所定の回数(例えば連続16回)判定した場合に、基準パルス幅(Tj)を、最大パルス幅(Tmax)に更新される前の当初の基準パルス幅(Tj)に変更する。当初の基準パルス幅は、例えば、1ビットの送信時間分の長さを設定するとよい。具体的には、例えば伝送レートが38,400bpsの時、約20μs(マイクロ秒)を設定するとよい。これにより、データ衝突の検知感度が高すぎることによる誤検知の発生が抑制される。   By the way, the reference pulse width (Tj) becomes a smaller value every time it is updated. As a result, the value of the reference pulse width (Tj) may become too small, and the data collision detection sensitivity may become too high. In this case, data retransmission operations frequently occur. Accordingly, when the collision determination unit 64 determines that a data collision has occurred a predetermined number of times (for example, 16 consecutive times), the collision determination unit 64 has updated the reference pulse width (Tj) before being updated to the maximum pulse width (Tmax). The original reference pulse width (Tj) is changed. For example, the initial reference pulse width may be set to a length corresponding to a transmission time of 1 bit. Specifically, for example, when the transmission rate is 38,400 bps, about 20 μs (microseconds) may be set. Thereby, generation | occurrence | production of the misdetection by the detection sensitivity of a data collision being too high is suppressed.

このように、本実施形態によれば、最大パルス幅が基準パルス幅よりも小さい場合であっても、シリアル伝送インターフェース62がエラーを検出したとき、又は送受信データの照合結果が不一致時に、基準パルス幅が最大パルス幅に更新される。その結果、データ衝突の有無を判定するための基準パルス幅がより適正な値となる。このため、分岐を有する伝送路においてもデータ衝突がより確実に検出される。また、データ衝突の誤検出が低減することにより、データ衝突に起因する再送信の発生が低減される。その結果、伝送路の使用効率が向上するとともに、送信が成功裡に完了する迄の期待時間が低減される。さらに、伝送路の分岐数及び各分岐の伝送路長が変更された場合であっても、変更後の伝送路に適応した基準パルス幅が設定される。これにより、伝送路が後から変更された場合においても、データ衝突がより確実に検出される。   As described above, according to the present embodiment, even when the maximum pulse width is smaller than the reference pulse width, the reference pulse is detected when the serial transmission interface 62 detects an error or the verification result of the transmission / reception data does not match. The width is updated to the maximum pulse width. As a result, the reference pulse width for determining the presence or absence of data collision becomes a more appropriate value. For this reason, a data collision is detected more reliably even in a transmission line having a branch. Moreover, the occurrence of retransmission due to data collision is reduced by reducing false detection of data collision. As a result, the use efficiency of the transmission path is improved and the expected time until the transmission is completed successfully is reduced. Furthermore, even when the number of transmission path branches and the transmission path length of each branch are changed, a reference pulse width adapted to the changed transmission path is set. Thereby, even when the transmission path is changed later, the data collision is detected more reliably.

上述の実施形態においては、本発明を特定の条件で構成した例について説明したが、本発明は種々の変更及び組み合わせを行うことができ、これに限定されるものではない。例えば、上述の実施形態では、分岐を有する伝送路を有するマルチ型空気調和装置を構成する各機器の差動型伝送装置に本発明を適用した例を説明したが、本発明の差動型伝送装置の適用対象は、かかるマルチ型空気調和装置の構成機器に限定されない。本発明の差動型伝送装置は、例えば、分岐を有する差動伝送線路に接続されたシリアル信号伝送装置に適用してもよい。   In the above-mentioned embodiment, although the example which comprised this invention on the specific conditions was demonstrated, this invention can perform a various change and combination, and is not limited to this. For example, in the above-described embodiment, the example in which the present invention is applied to the differential transmission device of each device constituting the multi-type air conditioner having a transmission path having a branch has been described. The application target of the device is not limited to the constituent devices of the multi-type air conditioner. The differential transmission device of the present invention may be applied to, for example, a serial signal transmission device connected to a differential transmission line having a branch.

本発明は、例えば、マルチ型空気調和装置を構成する各機器、及び、シリアル信号伝送装置に適用して好適である。   The present invention is suitable for application to, for example, each device constituting a multi-type air conditioner and a serial signal transmission device.

1〜8 伝送路
11〜16 室内機
21〜26 リモコン
31、32 室外機
41 空調監視盤
50 差動型伝送装置
60 マイクロコンピュータ
61 制御部
62 シリアル伝送インターフェース
63 タイマ
64 衝突判定部
65 メモリ
66 最大検出部
70 ライン・ドライバ/レシーバ回路
80、85 差動型ライン・ドライバ/レシーバIC
81、86 差動型ライン・ドライバ
82、87 差動型ライン・レシーバ
90 信号比較部
91 比較回路
95 レシーバ出力選択回路
1 to 8 Transmission path 11 to 16 Indoor unit 21 to 26 Remote control 31, 32 Outdoor unit 41 Air conditioning monitoring panel 50 Differential transmission device 60 Microcomputer 61 Control unit 62 Serial transmission interface 63 Timer 64 Collision determination unit 65 Memory 66 Maximum detection 70 Line driver / receiver circuit 80, 85 Differential line driver / receiver IC
81, 86 Differential line driver 82, 87 Differential line receiver 90 Signal comparison unit 91 Comparison circuit 95 Receiver output selection circuit

Claims (6)

分岐を有する伝送路に接続され、シリアル信号の差動伝送を行う複数のノードの各々に設けられた差動型伝送装置であって、
前記伝送路へ送信した送信データの信号波形と前記伝送路から受信した受信データの信号波形とを比較して、パルス列から成る不一致信号を生成する信号比較部と、
前記不一致信号のパルス列の各パルスのパルス幅のうちの最大パルス幅を検出する最大検出部と、
前記受信データのエラーチェックを行って前記受信信号のエラーを検出するシリアル受信回路と、
前記最大パルス幅が基準パルス幅以上であるときに、前記送信データと受信データとのデータ衝突が発生していると判定する衝突判定部と、を備え、
前記衝突判定部は、前記シリアル受信回路がエラーを検出した場合、又は送受信データの照合結果が不一致の場合において、前記最大パルス幅が基準パルス幅よりも小さいときに、前記基準パルス幅を前記最大パルス幅に更新する
ことを特徴とする差動型伝送装置。
A differential transmission device provided in each of a plurality of nodes connected to a transmission line having branches and performing differential transmission of serial signals,
A signal comparison unit that compares the signal waveform of the transmission data transmitted to the transmission path with the signal waveform of the reception data received from the transmission path, and generates a mismatch signal composed of a pulse train;
A maximum detector for detecting the maximum pulse width of the pulse width of each pulse of the pulse train of the mismatch signal;
A serial receiving circuit that performs an error check on the received data and detects an error in the received signal;
A collision determination unit that determines that a data collision occurs between the transmission data and the reception data when the maximum pulse width is equal to or greater than a reference pulse width, and
The collision determination unit, when the serial reception circuit detects an error or when the verification result of transmission / reception data does not match, when the maximum pulse width is smaller than the reference pulse width, A differential transmission apparatus that is updated to a pulse width.
前記衝突判定部は、前記シリアル受信回路がエラーを検出しなかった場合であっても、前記最大パルス幅が基準パルス幅以上であるときに、前記データ衝突が発生していると判定する
ことを特徴とする請求項1記載の差動型伝送装置。
The collision determination unit determines that the data collision has occurred when the maximum pulse width is equal to or larger than a reference pulse width even when the serial reception circuit does not detect an error. The differential transmission apparatus according to claim 1, wherein:
前記衝突判定部は、前記データ衝突が発生していると所定の回数判定した場合に、前記基準パルス幅を、前記最大パルス幅に更新される前の当初の基準パルス幅に変更する
ことを特徴とする請求項1又は2記載の差動型伝送装置。
When the collision determination unit determines that the data collision has occurred a predetermined number of times, the collision determination unit changes the reference pulse width to an initial reference pulse width before being updated to the maximum pulse width. The differential transmission apparatus according to claim 1 or 2.
前記衝突判定部は、送信データの送信開始から所定のバイト数以内の送信データについてデータ衝突の有無を判定する
ことを特徴とする請求項1〜3の何れか一項に記載の差動型伝送装置。
The differential transmission according to any one of claims 1 to 3, wherein the collision determination unit determines whether or not there is a data collision with respect to transmission data within a predetermined number of bytes from the start of transmission of transmission data. apparatus.
前記衝突判定部がデータ衝突が発生していると判定した場合に、前記最大検出部及び前記衝突判定部による処理を停止する
ことを特徴とする請求項1〜4の何れか一項に記載の差動型伝送装置。
The processing according to any one of claims 1 to 4, wherein when the collision determination unit determines that a data collision has occurred, processing by the maximum detection unit and the collision determination unit is stopped. Differential transmission device.
分岐を有する伝送路に接続され、シリアル信号の差動伝送を行う複数のノードの各々に設けられた差動型伝送装置のデータ衝突検知方法であって、
前記伝送路へ送信した送信データの信号波形と前記伝送路から受信した受信データの信号波形とを比較して、パルス列から成る不一致信号を生成する信号比較と、
前記不一致信号のパルス列の各パルスのパルス幅のうちの最大パルス幅を検出する最大検出と、
シリアル受信回路で前記受信データのエラーチェックを行って前記受信信号のエラーを検出するエラー検出処理と、
前記最大パルス幅が基準パルス幅以上であるときに、前記送信データと受信データとのデータ衝突が発生していると判定する衝突判定と、
前記シリアル受信回路がエラーを検出した場合において、前記最大パルス幅が基準パルス幅よりも小さいときに、前記基準パルス幅を前記最大パルス幅に更新する更新処理と、を含むことを特徴とする差動型伝送装置のデータ衝突検知方法。
A data collision detection method for a differential transmission device provided in each of a plurality of nodes connected to a transmission line having branches and performing differential transmission of serial signals,
Compare the signal waveform of the transmission data transmitted to the transmission path and the signal waveform of the reception data received from the transmission path, and generate a mismatch signal composed of a pulse train,
Maximum detection for detecting the maximum pulse width of the pulse width of each pulse of the pulse train of the mismatch signal;
An error detection process for detecting an error in the received signal by performing an error check on the received data in a serial reception circuit;
A collision determination that determines that a data collision between the transmission data and the reception data occurs when the maximum pulse width is equal to or greater than a reference pulse width;
An update process for updating the reference pulse width to the maximum pulse width when the serial reception circuit detects an error and the maximum pulse width is smaller than the reference pulse width. Data collision detection method for dynamic transmission equipment.
JP2012039595A 2012-02-27 2012-02-27 Differential type transmission apparatus and data collision detection method of the same Pending JP2013175958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012039595A JP2013175958A (en) 2012-02-27 2012-02-27 Differential type transmission apparatus and data collision detection method of the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012039595A JP2013175958A (en) 2012-02-27 2012-02-27 Differential type transmission apparatus and data collision detection method of the same

Publications (1)

Publication Number Publication Date
JP2013175958A true JP2013175958A (en) 2013-09-05

Family

ID=49268492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012039595A Pending JP2013175958A (en) 2012-02-27 2012-02-27 Differential type transmission apparatus and data collision detection method of the same

Country Status (1)

Country Link
JP (1) JP2013175958A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020012580A1 (en) * 2018-07-11 2020-01-16 三菱電機株式会社 Transport device, air conditioner, and air conditioning system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020012580A1 (en) * 2018-07-11 2020-01-16 三菱電機株式会社 Transport device, air conditioner, and air conditioning system
JPWO2020012580A1 (en) * 2018-07-11 2021-02-15 三菱電機株式会社 Transmission equipment, air conditioners, and air conditioning systems

Similar Documents

Publication Publication Date Title
KR101519793B1 (en) Network system for vehicle and data transmission method of a different kind communication controller in the same system
WO2016080421A1 (en) Communication system and communication device
JPWO2017061330A1 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM, AND COMMUNICATION SYSTEM
WO2017038422A1 (en) Communication device
US20210258187A1 (en) Electronic control device, electronic control method, and recording medium
US10601843B2 (en) Communication method, non-transitory computer-readable recording medium and communication device using same
KR101334017B1 (en) Apparatus of checking a validity of message on network for a vehicle and method of thereof
JP6368663B2 (en) Air conditioner system and program
US20160006647A1 (en) Network device, communication method, program, and recording medium
CN101507193A (en) Method and device for the creation of a communication system based on can communication controllers featuring an increased data throughput
US20200207574A1 (en) Status checking of field devices of a building-associated installation for transporting people
JP2013175958A (en) Differential type transmission apparatus and data collision detection method of the same
KR20150015831A (en) Apparatus and method for detecting errors of can communication
JP2005277978A (en) Method and device for automatically setting identification number
JP2019097088A (en) Serial communication system
JP2018148337A (en) Communication system
JP2009111911A (en) Communication apparatus, communication system, and communication method
JP6217469B2 (en) Unauthorized data detection device, communication system, and unauthorized data detection method
JP5018396B2 (en) Communication apparatus and communication system
JP5794811B2 (en) Data transmission apparatus and air conditioner equipped with the same
JP2015192216A (en) Communication device and communication method
JP2020145547A (en) Unauthorized transmission data detection device
JP5396812B2 (en) Transmission control apparatus and transmission control method
JP2016058944A (en) node
JP2010141819A (en) Communication device, communication method, and communication program