JP5374025B2 - Differential transmission equipment - Google Patents
Differential transmission equipment Download PDFInfo
- Publication number
- JP5374025B2 JP5374025B2 JP2007058416A JP2007058416A JP5374025B2 JP 5374025 B2 JP5374025 B2 JP 5374025B2 JP 2007058416 A JP2007058416 A JP 2007058416A JP 2007058416 A JP2007058416 A JP 2007058416A JP 5374025 B2 JP5374025 B2 JP 5374025B2
- Authority
- JP
- Japan
- Prior art keywords
- differential
- transmission
- voltage
- receiver
- data
- 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.)
- Active
Links
Images
Abstract
Description
本発明は、差動型伝送装置に関し、特にデータ衝突を回避する差動型伝送装置に関する。 The present invention relates to a differential transmission apparatus, and more particularly to a differential transmission apparatus that avoids data collision.
例えば、空気調和機システム(空調システム)はリモコン、室内機及び室外機で構成される。各機器間の信号伝送は、省線化を図るためシリアル(直列符号化信号)伝送技術を利用した2本線渡り配線方式が採用されている。この方法により1つのリモコンにより複数台の室内機/室外機の制御が可能になっている(特許文献1、2)。
図7は、シリアル伝送・2本線渡り配線を利用した空気調和機システムの基本構成を示す図である。図7に示すように、リモコン1は、伝送路5を介して室内機2a,2b、室外機3a,3bに接続され、空調システムの集中制御/監視を行なう。リモコン1、室内機2a,2b、室外機3a,3b(以下、ノードと総称することがある)の各々は、差動型伝送装置を備えている。図8に、従来の差動型伝送装置の一例を示す。この差動型伝送装置は、制御部60、シリアル伝送インターフェース61及びタイマ62を内蔵するマイクロコンピュータ6、及び差動型ライン・ドライバ/レシーバIC8を備えている。差動型ライン・ドライバ/レシーバIC8は、差動型ライン・ドライバ81と差動型ライン・レシーバ82とを備えている。データの送信・受信を行なう場合、差動型ライン・ドライバ/レシーバIC8の制御信号であるDE、REをマイクロコンピュータ6が制御する。
For example, an air conditioner system (air conditioning system) includes a remote controller, an indoor unit, and an outdoor unit. For signal transmission between the devices, a two-wire crossover wiring system using a serial (serial encoded signal) transmission technique is employed in order to save the line. By this method, it is possible to control a plurality of indoor units / outdoor units with one remote controller (
FIG. 7 is a diagram showing a basic configuration of an air conditioner system using serial transmission and two-wire crossover wiring. As shown in FIG. 7, the
以上の差動型伝送回路は、調歩同期式通信方式(start/stop synchronous communication)を採用している。調歩同期式通信方式とは、通信プロトコルの一つであって、文字データの直前にスタート・ビット(STR)を、また、文字データの直後にストップ・ビット(STP)を送信する伝送方式である。したがって、8ビットの文字データを送るに際して、最低10ビットの文字データを送ることになる。この通信方式は、1文字単位で同期を取る通信方式であるが、各文字を送出するタイミングは任意でよいため、非同期式と呼ばれることも多い。 The above differential transmission circuit employs a start / stop synchronous communication system. The asynchronous communication system is one of communication protocols, and is a transmission system that transmits a start bit (STR) immediately before character data and a stop bit (STP) immediately after character data. . Therefore, when sending 8-bit character data, at least 10-bit character data is sent. This communication method is a communication method that synchronizes in units of one character. However, since the timing of sending each character may be arbitrary, it is often called an asynchronous method.
複数のノード(リモコン1、室内機2a,2b、室外機3a,3b)が、一つの伝送路5を共有する場合、伝送路5の「空き」状態を監視しながら、伝送路5上に通信データを送信する。これには、CSMA/CD(Carrier Sense Multiple Access with Collision Detection:搬送波感知多重アクセス/衝突検出方式)が用いられている。CSMA/CDは、以下のようなステップを備えている。ステップ1:通信を開始する前に、一度受信を試みることで現在通信をしているノードが他にあるかどうか確認する(Carrier Sense)。
ステップ2:複数のノードは同じ伝送路を共用し、他者が通信をしていなければ自分の通信を開始する(Multiple Access)。
ステップ3:複数の通信が同時に行われた場合はそれを検出し、各ノードがランダムな時間だけ待ってから再び送信手順を行う(Collision Detection)。
ステップ3において、他のノードと全く同じ時間だけ間隔をあける確率は、極めて低いため、再び衝突が起こることを回避でできる。
When a plurality of nodes (
Step 2: A plurality of nodes share the same transmission path, and start communication of their own if no other person is communicating (Multiple Access).
Step 3: When a plurality of communications are performed simultaneously, it is detected, and after each node waits for a random time, the transmission procedure is performed again (Collision Detection).
In
図9は、CSMA/CDにおいて、伝送路5からの差動型ライン・レシーバ82への入力(レシーバ入力(差動電圧))と、差動型ライン・レシーバ82からマイクロコンピュータ6(受信ポートRxD)への出力(レシーバ出力)と、タイマ62の動作とを対応付けて示した図である。
図9に示すように、レシーバ入力に対するレシーバ出力は、1バイトが、例えば、スタート・ビット(STR)、データ・ビット(b0〜b7)、誤り検出用ビット(PE)、ストップ・ビット(STP)の合計11ビットから構成される。マイクロコンピュータ6に、ソフトウェアとして組み込まれているタイマ62は、ストップ・ビット(STP)を受信することにより作動(図中、リセット)され、かつカウントダウンを開始する。タイマ62が作動されてから設定された時間が経過(図中、タイマ・アップ)するまでの時間は、通常、1バイト長(1バイトのデータ転送時間)以上の時間とされる。
FIG. 9 shows the input (receiver input (differential voltage)) from the
As shown in FIG. 9, one byte of the receiver output with respect to the receiver input is, for example, a start bit (STR), a data bit (b0 to b7), an error detection bit (PE), and a stop bit (STP). Of 11 bits in total. The
図9に示すように、タイマ62がタイマ・アップされた後に、いずれのノードからも伝送路5へデータ転送が行われず、タイマ・アップ状態が1バイト長以上の時間が経過しているものとする。そうすると、伝送路5には、データが存在しておらず、マイクロコンピュータ6は伝送路5が「空き」状態にあると判断する。
この状態で、いずれかのノードからデータの送信がなされると、当該データを受信した、各ノードの差動型ライン・レシーバ82は、当該データをマイクロコンピュータ6の受信ポートRxDに出力する。マイクロコンピュータ6は、このデータ中のストップ・ビット(STP)を受信すると、タイマ62を作動させる。タイマ62が動作(タイマ・ノット・アップ)すると、マイクロコンピュータ6は、伝送路5上に通信データが存在し、「使用中」と判断する。このように伝送路5が「使用中」と判断されると、他のノードは伝送路5へのデータの転送を行わない。データの転送が継続し、ストップ・ビット(STP)の受信を再度受けると、タイマ62は新たに作動を開始する。データの送信が行われなくなり、タイマ・アップすると、マイクロコンピュータ6は、伝送路5は「空き」状態と判断する。この状態では、各ノードは、伝送路5上へデータの送信を行うことができる。
As shown in FIG. 9, after the
In this state, when data is transmitted from any of the nodes, the
ところが、以上の従来の差動型伝送装置では、以下のような問題が生じる。
図10に示すように、タイマ・アップ状態において、伝送路5が「空き」と判断していずれかのノード(ノードA)がデータ送信を開始したとする。ところが、当該データのストップ・ビット(STP)までの間は、タイマ・アップ状態が継続されるため、伝送路5にはデータが転送されているにもかかわらず、各ノード(ノードB、ノードC)は伝送路5が「空き」と判断する。したがって、図10に示すように、ノードB、ノードCは、データを伝送路5へ送信してしまう。
以上のように、従来は、伝送路5の状態監視が1バイト長単位となるため、タイマ・アップ状態において、いずれかのノードがデータ送信を開始して、データのストップ・ビット(STP)までの間は、図9、図10に示すように、伝送路5が「使用中」にもかかわらず、「空き」と誤認してしまう。
However, the above-described conventional differential transmission apparatus has the following problems.
As shown in FIG. 10, in the timer-up state, it is assumed that one of the nodes (node A) starts data transmission by determining that the
As described above, since the status monitoring of the
本発明は、このような技術的課題に基づいてなされたもので、伝送路が「使用中」の場合に、「空き」と誤認することのない、差動型伝送装置の提供を目的とする。 The present invention has been made based on such a technical problem, and an object of the present invention is to provide a differential transmission device that does not misidentify as “empty” when a transmission line is “in use”. .
かかる目的のもと、本発明の差動型伝送装置は、複数のノード間の信号伝送を極性の決められた2本の配線を備えた伝送路を用いて行う、各ノードに設置される差動型伝送装置において、伝送路に接続される差動型ライン・ドライバと、伝送路に接続される差動型ライン・レシーバと、差動型ライン・ドライバ及び差動型ライン・レシーバと接続されるシリアル伝送インターフェースと、差動型ライン・レシーバからシリアル伝送インターフェースに向けて出力されるレシーバ出力の電圧変化に基づいて伝送路におけるデータの存在状態を判断する監視部と、を備えることを特徴とする。 For this purpose, the differential transmission apparatus according to the present invention performs signal transmission between a plurality of nodes using a transmission line having two wires of which polarity is determined. In a dynamic transmission device, a differential line driver connected to a transmission line, a differential line receiver connected to the transmission line, a differential line driver and a differential line receiver are connected. A serial transmission interface, and a monitoring unit that determines the presence of data in the transmission path based on a change in voltage of the receiver output output from the differential line receiver to the serial transmission interface. To do.
本発明の差動型伝送装置において、監視部は、レシーバ出力の電圧変化を検出する電圧検出部と、電圧検出部がレシーバ出力の電圧に変化があったことを検出すると作動するタイマと、を備える。
この差動型伝送装置としては、シリアル伝送インターフェースと監視部とを内蔵するマイクロコンピュータを備えたものとすることができる。この場合、レシーバ出力は、マイクロコンピュータの入力ポートに転送され、電圧検出部は、入力ポートに転送されたレシーバ出力を所定時間ごとに検出することができる。
また、他の態様として、シリアル伝送インターフェースと監視部とを内蔵するマイクロコンピュータを備え、レシーバ出力は、マイクロコンピュータの外部割込みポートに転送され、電圧検出部は、外部割込みポートに転送されたレシーバ出力の電圧の変化を検出することもできる。
In the differential transmission device of the present invention, the monitoring unit includes a voltage detection unit that detects a change in the voltage of the receiver output, and a timer that operates when the voltage detection unit detects a change in the voltage of the receiver output. with Ru.
The differential transmission device may include a microcomputer incorporating a serial transmission interface and a monitoring unit. In this case, the receiver output is transferred to the input port of the microcomputer, and the voltage detection unit can detect the receiver output transferred to the input port every predetermined time.
Further, as another aspect, a microcomputer including a serial transmission interface and a monitoring unit is provided, the receiver output is transferred to the external interrupt port of the microcomputer, and the voltage detection unit is the receiver output transferred to the external interrupt port. It is also possible to detect a change in voltage.
以上の態様は、マイクロコンピュータ内部でレシーバ出力の電圧の変化を検出するものであるが、マイクロコンピュータの外部に監視部を設けることもできる。すなわち本発明は、監視部を、差動型ライン・レシーバとシリアル伝送インターフェースとの間に配設することもできる。この監視部としては、レシーバ出力が高電圧の期間に充電され、かつ前記レシーバ出力が高電圧から低電圧に変化すると放電がなされものとし、監視部における充電電圧が所定値以下の場合に、伝送路にデータが存在すると判断することができる。 In the above embodiment, a change in the voltage of the receiver output is detected inside the microcomputer. However, a monitoring unit can be provided outside the microcomputer. That is, according to the present invention, the monitoring unit can be arranged between the differential line receiver and the serial transmission interface. The monitoring unit is charged when the receiver output is charged during a high voltage period, and discharged when the receiver output changes from a high voltage to a low voltage. It can be determined that there is data on the road.
本発明の差動型伝送装置は、種々の用途に使用することができるが、典型的には空気調和機システムに適用することができる。つまり、複数のノードを、空気調和機システムを構成するリモート・コントローラ、室内機及び室外機とすることを本発明は推奨する。 The differential transmission apparatus of the present invention can be used for various applications, but typically can be applied to an air conditioner system. That is, the present invention recommends that a plurality of nodes be a remote controller, an indoor unit, and an outdoor unit that constitute the air conditioner system.
本発明の差動型伝送装置は、シリアル伝送インターフェース以外にレシーバ出力の状態を監視する監視部を設け、この監視部でレシーバ出力の電圧変化に基づいて伝送路におけるデータの存在状態を判断する。この電圧変化は、ビット単位で変化するものであるから、従来の1バイト長より短い間隔で伝送路の監視を行うことができる。したがって、従来のように、伝送路が「使用中」にもかかわらず、「空き」と誤認することがなくなる。 The differential transmission apparatus of the present invention is provided with a monitoring unit that monitors the state of the receiver output in addition to the serial transmission interface, and this monitoring unit determines the presence state of data in the transmission path based on the voltage change of the receiver output. Since this voltage change changes in bit units, the transmission line can be monitored at an interval shorter than the conventional 1-byte length. Therefore, unlike the conventional case, the transmission path is not mistaken for “vacant” even though the transmission line is “in use”.
<第1の実施形態>
以下、添付図面に示す実施の形態に基づいてこの発明を詳細に説明する。
図1は、本実施の形態における差動型伝送装置の構成を示すブロック図である。
この差動型伝送装置は、図7に示す空気調和機システムのリモコン1、室内機2a、2b、室外機3a、3bに適用される。
本実施の形態による差動型伝送装置は、マイクロコンピュータ6と、差動型ライン・ドライバ/レシーバIC8とを備えている。
マイクロコンピュータ6は、制御部60、シリアル伝送インターフェース61、タイマ62及び検出部63を備えている。制御部60は、CPUがメモリ(図示せず)に記憶されるソフトウェアを解釈、実行することにより、シリアル伝送インターフェース61、タイマ62及び検出部63の動作を制御する。また、タイマ62及び検出部63は、マイクロコンピュータ6に含まれるメモリ(図示せず)に記憶されるソフトウェアによって実現される。マイクロコンピュータ6は、送信ポートTxD、受信ポートRxD、汎用ポートP1、P2及びPxを備えている。
<First Embodiment>
Hereinafter, the present invention will be described in detail based on embodiments shown in the accompanying drawings.
FIG. 1 is a block diagram showing a configuration of a differential transmission apparatus according to the present embodiment.
This differential transmission apparatus is applied to the
The differential transmission apparatus according to the present embodiment includes a
The
差動型ライン・ドライバ/レシーバIC8は、差動型ライン・ドライバ81と差動型ライン・レシーバ82とを備えている。
差動型ライン・ドライバ81は、配線Tによりマイクロコンピュータ6の送信ポートTxDと電気的に接続され、送信ポートTxDを介してマイクロコンピュータ6から転送されるデータを受信する。差動型ライン・ドライバ81は、伝送路接続端子4を介して伝送路5と接続されている。マイクロコンピュータ6から受信したデータは、マイクロコンピュータ6から差動型ライン・ドライバ81に対して付与される制御信号DEに基づいて、差動型ライン・ドライバ81から伝送路5に向けて転送される。
The differential line driver /
The
差動型ライン・レシーバ82は、配線Rによりマイクロコンピュータ6の受信ポートRxDと電気的に接続され、受信ポートRxDを介してマイクロコンピュータ6にデータを転送する。差動型ライン・レシーバ82は、伝送路接続端子4を介して伝送路5と接続されている。マイクロコンピュータ6から差動型ライン・レシーバ82に対して付与される制御信号REに基づいて、差動型ライン・レシーバ82は伝送路5を介してデータを受信する。
The
本実施の形態による差動型伝送装置は、配線Rから分岐された配線Rdが汎用の入力ポートPxに接続されている。したがって、本実施の形態による差動型伝送装置は、シリアル伝送インターフェース61以外に、差動型ライン・レシーバ82の出力状態を監視することができる。入力ポートPxに入力されたデータ(レシーバ出力)の電圧変化を検出部63が高速でサンプリングする。このサンプリングのタイミング及びサンプリングによるタイマ62の作動のタイミングを、差動型ライン・レシーバ82から出力されるデータと対比して示したのが図2である。
In the differential transmission apparatus according to the present embodiment, the wiring Rd branched from the wiring R is connected to the general-purpose input port Px. Therefore, the differential transmission apparatus according to the present embodiment can monitor the output state of the
図2は、1バイトのデータが差動型ライン・レシーバ82から出力(レシーバ出力)された後に、伝送路5にはデータが転送されないことを示している。
レシーバ出力は、入力ポートPxにおいて電圧として検出される。このデータは、1バイトが、スタート・ビット(STR)、データ・ビット(b0〜b7)、誤り検出用ビット(PE)、ストップ・ビット(STP)から構成される。このデータの1ビット長(1ビットあたりのデータ転送時間)を104μsとする。図2におけるレシーバ出力は、データ「0」に相当するビットは低電圧として出力され、データ「1」に相当するビットは高電圧として出力される。
FIG. 2 shows that data is not transferred to the
The receiver output is detected as a voltage at the input port Px. This data is composed of a start bit (STR), data bits (b0 to b7), an error detection bit (PE), and a stop bit (STP). The 1-bit length of this data (data transfer time per bit) is 104 μs. In the receiver output in FIG. 2, a bit corresponding to data “0” is output as a low voltage, and a bit corresponding to data “1” is output as a high voltage.
入力ポートPxに転送されたレシーバ出力の電圧を、定周期でサンプリングする。本実施の形態においては、サンプリングの周期を50μsとする。本発明において、サンプリングの周期を特に限定するものではない。しかし、サンプリングの周期を極端に長くしてしまうと、本発明の効果を得ることができなくなる。たとえば、サンプリングの周期を1バイト長以上にしてしまうと、ストップ・ビット毎にタイマを作動する従来と同様の問題が生ずる。レシーバ出力電圧のサンプリングは、1ビット長以下の時間とすることが好ましい。この場合、1ビット当り1回のサンプリングを行うことができる。レシーバ出力電圧のサンプリングの周期は、より短いほど好ましく、1/2ビット長以下の時間として、1ビット当り2回のサンプリングを行うことがより好ましい。本実施の形態は、この主旨に基づいて、サンプリングの周期を50μsとしている。 The receiver output voltage transferred to the input port Px is sampled at a fixed period. In the present embodiment, the sampling period is 50 μs. In the present invention, the sampling period is not particularly limited. However, if the sampling period is extremely long, the effect of the present invention cannot be obtained. For example, if the sampling period is set to 1 byte or more, the same problem as in the prior art in which a timer is activated for each stop bit occurs. The sampling of the receiver output voltage is preferably performed with a time of 1 bit length or less. In this case, sampling can be performed once per bit. The sampling period of the receiver output voltage is preferably as short as possible, and more preferably, sampling is performed twice per bit for a time of ½ bit length or less. In the present embodiment, the sampling period is set to 50 μs based on this gist.
図2において、入力ポートPxがデータの受信を開始する。データの受信開始前までは、レシーバ出力電圧は、高電圧とされている。データの中でスタート・ビット(STR)に対応する信号が「0」であるため、レシーバ出力電圧は低電圧として検出される。また、スタート・ビット(STR)が終了してデータ・ビット中のデータ「b0」に対応する信号が「1」であるため、レシーバ出力電圧は高電圧として検出される。以後の「b1」、「b2」に対応する信号がともに「0」であるため、レシーバ出力電圧は低電圧として検出される。以降も同様にして、レシーバ出力電圧がサンプリングされる。 In FIG. 2, the input port Px starts receiving data. Until the start of data reception, the receiver output voltage is a high voltage. Since the signal corresponding to the start bit (STR) is “0” in the data, the receiver output voltage is detected as a low voltage. Further, since the signal corresponding to the data “b0” in the data bit is “1” after the start bit (STR) ends, the receiver output voltage is detected as a high voltage. Since the subsequent signals corresponding to “b1” and “b2” are both “0”, the receiver output voltage is detected as a low voltage. Thereafter, the receiver output voltage is sampled in the same manner.
レシーバ出力電圧をサンプリングするタイミングを図2に▲印で示している。図2において、データ受信開始後のスタート・ビット(STR)に対応する時期に、50μsの間隔を隔てて、2度のサンプリングを行う。このスタート・ビット(STR)において、レシーバ出力電圧は、従前の高電圧から低電圧へと変化する。2度のサンプリングのうち、1度目のサンプリングの際に、レシーバ出力電圧は高電圧から低電圧へと変化する。このように、先行するサンプリングの時と電圧が変化したことを検出した時には、タイマ62が作動される。タイマ62が作動されている間、制御部60は、伝送路5が「使用中」と判断し、差動型ライン・ドライバ81に対してデータ送信の指示を出さない。
The timing at which the receiver output voltage is sampled is indicated by ▲ in FIG. In FIG. 2, sampling is performed twice at an interval of 50 μs at the time corresponding to the start bit (STR) after the start of data reception. In this start bit (STR), the receiver output voltage changes from the previous high voltage to the low voltage. Of the two samplings, the receiver output voltage changes from a high voltage to a low voltage during the first sampling. As described above, the
スタート・ビット(STR)からデータ・ビット(b0)に移行した後にも、レシーバ出力電圧のサンプリングが50μsの間隔で行われる。データ・ビット(b0)に対応する時期にも50μsの間隔を隔てて、2度のサンプリングが行われる。このデータ・ビット(b0)において、レシーバ出力電圧は、従前の低電圧から高電圧へと変化する。この2度のサンプリングのうち、1度目のサンプリングの際に、レシーバ出力電圧は、低電圧から高電圧へと変化する。よって、タイマ62が作動される。したがって、タイマ62の作動が継続され、マイクロコンピュータ6は伝送路5が「使用中」であると判断する。
Even after the transition from the start bit (STR) to the data bit (b0), sampling of the receiver output voltage is performed at intervals of 50 μs. The sampling corresponding to the data bit (b0) is also sampled twice at an interval of 50 μs. In this data bit (b0), the receiver output voltage changes from the previous low voltage to the high voltage. Of the two samplings, the receiver output voltage changes from a low voltage to a high voltage at the first sampling. Therefore, the
以上のように、本実施の形態による差動型伝送装置は、レシーバ出力電圧が低電圧から高電圧へと変化することを、入力ポートPxをサンプリングすることにより検出する。そして、本実施の形態による差動型伝送装置は、その検出結果を得る度にタイマ62を作動させることにより、1ビット長未満、具体的には1/2ビットの期間で伝送路5の使用状況を監視することができる。したがって、図2に示すように、それまでの期間に未使用であった伝送路5において、新たに伝送路5の使用が開始された後に、当該使用に関わる1バイトのデータに対応する期間にも、制御部60は、伝送路5が「使用中」であることを認識できる。そのために、制御部60は、伝送路5に転送すべきデータが存在しても、データ衝突を回避するために、差動型ライン・ドライバ81に対して、データ転送の指示(DE)を出さない。
As described above, the differential transmission apparatus according to this embodiment detects that the receiver output voltage changes from a low voltage to a high voltage by sampling the input port Px. The differential transmission apparatus according to the present embodiment operates the
<第2の実施形態>
以下、本発明による第2の実施形態を図3及び図4に基づいて説明する。ただし、第2の実施形態は、第1の実施形態と基本的な構成が一致しているため、ここでは相違点を中心に説明する。
第2の実施形態による差動型伝送装置は、マイクロコンピュータ6の、外部割込みポート/INTを利用する。
<Second Embodiment>
Hereinafter, a second embodiment of the present invention will be described with reference to FIGS. However, since the basic configuration of the second embodiment is the same as that of the first embodiment, differences will be mainly described here.
The differential transmission apparatus according to the second embodiment uses the external interrupt port / INT of the
図3に示すように、本実施の形態による差動型伝送装置は、配線Rから分岐された配線Rdが外部割込みポート/INTに接続されている。したがって、本実施の形態による差動型伝送装置においても、シリアル伝送インターフェース61以外に、差動型ライン・レシーバ82の出力状態を監視することができる。外部割込みポート/INTに入力されたデータの電圧変化を検出部64で検出する。
図4は、1バイトのデータが差動型ライン・レシーバ82から出力(レシーバ出力)された後に、伝送路5にはデータが転送されないことを示している。
図4に示すように、レシーバ出力は、データ「0」に相当するビットは低電圧として出力され、データ「1」に相当するビットは高電圧として出力される。そして、高電圧から低電圧に電圧が変化すると、そのことが外部割り込み信号として外部割込みポート/INTに入力される。
As shown in FIG. 3, in the differential transmission apparatus according to the present embodiment, the wiring Rd branched from the wiring R is connected to the external interrupt port / INT. Therefore, the differential transmission apparatus according to the present embodiment can monitor the output state of the
FIG. 4 shows that data is not transferred to the
As shown in FIG. 4, in the receiver output, a bit corresponding to data “0” is output as a low voltage, and a bit corresponding to data “1” is output as a high voltage. When the voltage changes from a high voltage to a low voltage, this is input to the external interrupt port / INT as an external interrupt signal.
図4において、外部割込みポート/INTが、データの受信を開始する。データの受信開始前までは、レシーバ出力電圧は、高電圧とされている。データの中でスタート・ビット(STR)に対応する信号が「0」であるため、レシーバ出力電圧は、高電圧から低電圧と変化する。また、スタート・ビット(STR)が終了した後のデータ・ビット中のデータ「b0」に対応する信号が「1」であるため、レシーバ出力電圧は、高電圧に変化する。以後の「b1」、「b2」に対応する信号がともに「0」であるため、この間のレシーバ出力電圧は、低電圧となる。以降も同様にして、レシーバ出力電圧が変化する。 In FIG. 4, the external interrupt port / INT starts receiving data. Until the start of data reception, the receiver output voltage is a high voltage. Since the signal corresponding to the start bit (STR) is “0” in the data, the receiver output voltage changes from a high voltage to a low voltage. Further, since the signal corresponding to the data “b0” in the data bit after the start bit (STR) ends is “1”, the receiver output voltage changes to a high voltage. Since the subsequent signals corresponding to “b1” and “b2” are both “0”, the receiver output voltage during this period is a low voltage. Thereafter, the receiver output voltage changes in the same manner.
図4に示すように、スタート・ビット(STR)によりレシーバ出力電圧が変化した後、スタート・ビット(STR)からデータ・ビット(b0)に移行してレシーバ出力電圧が変化した後、データ・ビット(b0)からデータ・ビット(b1)に移行してレシーバ出力電圧が変化した後、データ・ビット(b2)からデータ・ビット(b3)に移行してレシーバ出力電圧が変化した後には、その都度、タイマ62が作動される。タイマ62の状態から、制御部60は伝送路5が「使用中」と判断する。
As shown in FIG. 4, after the receiver output voltage is changed by the start bit (STR), the data bit (b0) is changed from the start bit (STR) to the data bit (b0). After changing from (b0) to data bit (b1) and changing the receiver output voltage, after changing from data bit (b2) to data bit (b3) and changing the receiver output voltage, each time The
以上のように、外部割込みポート/INTに入力されたレシーバ出力電圧が低電圧から高電圧へと変化することを検出部64が検出する度にタイマ62を作動させることにより、本実施の形態による差動型伝送装置は、1ビット長未満の期間で伝送路5の使用状況を把握することができる。したがって、図4に示すように、それまでの期間に未使用であった伝送路5において、新たに伝送路5の使用が開始された後に、当該使用に関わる1バイトのデータに対応する期間にも、制御部60は、伝送路5が「使用中」であることを判断できる。そのために、制御部60は、伝送路5に転送すべきデータが存在しても、データ衝突を回避するために、差動型ライン・ドライバ81に対して、データ転送の指示(DE)を出さない。
As described above, each time the
<第3の実施形態>
以下、本発明による第3の実施形態を図5及び図6に基づいて説明する。ただし、第3の実施形態は、第1、第2の実施形態と基本的な構成が一致しているため、ここでは相違点を中心に説明する。
第3の実施形態による差動型伝送装置は、マイクロコンピュータ6の外部に伝送路5の状態を検出する回路を設ける。
<Third Embodiment>
Hereinafter, a third embodiment of the present invention will be described with reference to FIGS. However, since the basic configuration of the third embodiment is the same as that of the first and second embodiments, differences will be mainly described here.
The differential transmission apparatus according to the third embodiment is provided with a circuit for detecting the state of the
図5に示すように、本実施の形態による差動型伝送装置は、配線Rから分岐された配線Rdが汎用の入力ポートPxに接続される。この分岐された配線Rd上に監視部9を配設する。この監視部9は、充放電回路を備え、レシーバ出力電圧の変化にしたがって充放電が行われる。すなわち、レシーバ出力電圧が変化する度に、この充放電回路は放電する。この放電以外のときは、この充放電回路は充電される。充放電回路の充電電圧がしきい値以上であれば伝送路5が「空き」と判断し、充放電回路の充電電圧がしきい値未満であれば伝送路5が「使用中」と判断する。
As shown in FIG. 5, in the differential transmission apparatus according to the present embodiment, a wiring Rd branched from the wiring R is connected to a general-purpose input port Px. The
図6は、1バイトのデータが差動型ライン・レシーバ82から出力(レシーバ出力)された後に、伝送路5にはデータが転送されないことを想定している。
図6に示すように、レシーバ出力は、データ「0」に相当するビットは低電圧として出力し、データ「1」に相当するビットは高電圧として出力する。そして、高電圧から低電圧に電圧が変化すると、監視部9の充放電回路は、放電される。
FIG. 6 assumes that data is not transferred to the
As shown in FIG. 6, the receiver output outputs a bit corresponding to data “0” as a low voltage, and outputs a bit corresponding to data “1” as a high voltage. When the voltage changes from a high voltage to a low voltage, the charge / discharge circuit of the
図6において、監視部9がデータを受信する前までは、レシーバ出力電圧は、高電圧とされている。データの中でスタート・ビット(STR)に対応する信号が「0」であるため、データの受信開始とともに、レシーバ出力電圧は高電圧から低電圧と変化する。また、スタート・ビット(STR)が終了した後のデータ・ビット中のデータ「b0」に対応する信号が「1」であるため、レシーバ出力電圧は、高電圧に変化する。以後の「b1」、「b2」に対応する信号がともに「0」であるため、この間のレシーバ出力電圧は、低電圧となる。以降も同様にして、レシーバ出力電圧が変化する。
In FIG. 6, the receiver output voltage is a high voltage until the
以上のようにレシーバ出力電圧が変化する度に、監視部9の充放電回路では、放電がなされ電圧が降下する。電圧が降下した後には、充放電回路には充電がなされ、充電電圧が上昇する。このように、充放電回路の充電電圧は、レシーバ出力電圧の変化に伴って変化する。そこで、この充放電回路の充電電圧を検出することにより、伝送路5の使用状態を把握することができる。すなわち、監視部9は、充放電回路の充電電圧がしきい値以上であれば伝送路5が「空き」と判断し、充放電回路の充電電圧がしきい値未満であれば伝送路5が「使用中」と判断する。この判断結果は、入力ポートPxを介して制御部60に通知される。
As described above, every time the receiver output voltage changes, the charge / discharge circuit of the
以上のように、本実施の形態による差動型伝送装置は、レシーバ出力電圧の変化に伴ってその充電電圧が変化する充放電回路の充電電圧によって、かつ1ビット長未満の期間で伝送路5の使用状況を把握することができる。したがって、図6に示すように、それまでの期間に未使用であった伝送路5において、新たに伝送路5の使用が開始された後に、当該使用に関わる1バイトのデータに対応する期間にも、制御部60は、伝送路5が「使用中」であることを認識できる。そのために、制御部60は、伝送路5に転送すべきデータが存在しても、データ衝突を回避するために、差動型ライン・ドライバ81に対して、データ転送の指示(DE)を出さない。
As described above, the differential transmission apparatus according to the present embodiment has the
1…リモコン、2a,2b…室内機、3a,3b…室外機、4…伝送路接続端子、5…伝送路、6…マイクロコンピュータ、60…制御部、61…シリアル伝送インターフェース、62…タイマ、63,64…検出部、8…差動型ライン・ドライバ/レシーバIC、81…差動型ライン・ドライバ、82…差動型ライン・レシーバ、9…監視部
DESCRIPTION OF
Claims (5)
前記伝送路に接続される差動型ライン・ドライバと、
前記伝送路に接続される差動型ライン・レシーバと、
前記差動型ライン・ドライバ及び前記差動型ライン・レシーバと接続されるシリアル伝送インターフェースと、
前記差動型ライン・レシーバから前記シリアル伝送インターフェースに向けて出力されるレシーバ出力の電圧変化に基づいて前記伝送路におけるデータの存在状態を判断する監視部と、
を備え、
前記監視部は、
前記レシーバ出力の電圧変化を検出する電圧検出部と、
前記電圧検出部が前記レシーバ出力の電圧に変化があったことを検出すると作動するタイマと、を備えることを特徴とする差動型伝送装置。 In the differential transmission apparatus installed in each node, wherein signal transmission between a plurality of nodes is performed using a transmission line having two wires of which polarity is determined,
A differential line driver connected to the transmission line;
A differential line receiver connected to the transmission line;
A serial transmission interface connected to the differential line driver and the differential line receiver;
A monitoring unit that determines the presence state of data in the transmission line based on a voltage change of a receiver output that is output from the differential line receiver toward the serial transmission interface;
Equipped with a,
The monitoring unit
A voltage detector for detecting a voltage change of the receiver output;
Differential transmission system according to claim Rukoto and a timer activated when detecting that the voltage detecting unit is a change in the voltage of the receiver output.
前記レシーバ出力は、前記マイクロコンピュータの入力ポートに転送され、
前記電圧検出部は、前記入力ポートに転送された前記レシーバ出力の電圧を所定時間ごとに検出することを特徴とする請求項1に記載の差動型伝送装置。 A microcomputer incorporating the serial transmission interface and the monitoring unit;
The receiver output is transferred to an input port of the microcomputer,
The differential transmission apparatus according to claim 1 , wherein the voltage detection unit detects the voltage of the receiver output transferred to the input port every predetermined time.
前記レシーバ出力は、前記マイクロコンピュータの外部割込みポートに転送され、
前記電圧検出部は、前記外部割込みポートに転送された前記レシーバ出力の電圧の変化を検出することを特徴とする請求項1に記載の差動型伝送装置。 A microcomputer incorporating the serial transmission interface and the monitoring unit;
The receiver output is forwarded to an external interrupt port of the microcomputer;
The differential transmission device according to claim 1 , wherein the voltage detection unit detects a change in the voltage of the receiver output transferred to the external interrupt port.
前記伝送路に接続される差動型ライン・ドライバと、
前記伝送路に接続される差動型ライン・レシーバと、
前記差動型ライン・ドライバ及び前記差動型ライン・レシーバと接続されるシリアル伝送インターフェースと、
前記差動型ライン・レシーバから前記シリアル伝送インターフェースに向けて出力されるレシーバ出力の電圧変化に基づいて前記伝送路におけるデータの存在状態を判断する監視部と、
を備え、
前記監視部は、前記差動型ライン・レシーバと前記シリアル伝送インターフェースとの間に配設され、かつ、
前記レシーバ出力が高電圧の期間に充電され、かつ前記レシーバ出力が高電圧から低電圧に変化すると放電がなされ、
前記監視部における充電電圧が所定値以下の場合に、前記伝送路に前記データが存在すると判断することを特徴とする差動型伝送装置。 In the differential transmission apparatus installed in each node, wherein signal transmission between a plurality of nodes is performed using a transmission line having two wires of which polarity is determined,
A differential line driver connected to the transmission line;
A differential line receiver connected to the transmission line;
A serial transmission interface connected to the differential line driver and the differential line receiver;
A monitoring unit that determines the presence state of data in the transmission line based on a voltage change of a receiver output that is output from the differential line receiver toward the serial transmission interface;
With
The monitoring unit is disposed between the differential line receiver and the serial transmission interface; and
The receiver output is charged during a high voltage period and discharged when the receiver output changes from a high voltage to a low voltage,
When the charging voltage in the monitoring unit is equal to or lower than a predetermined value, it is determined that the data is present in the transmission path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007058416A JP5374025B2 (en) | 2007-03-08 | 2007-03-08 | Differential transmission equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007058416A JP5374025B2 (en) | 2007-03-08 | 2007-03-08 | Differential transmission equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008227570A JP2008227570A (en) | 2008-09-25 |
JP5374025B2 true JP5374025B2 (en) | 2013-12-25 |
Family
ID=39845705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007058416A Active JP5374025B2 (en) | 2007-03-08 | 2007-03-08 | Differential transmission equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5374025B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105606387A (en) * | 2016-01-04 | 2016-05-25 | 青岛海尔空调器有限总公司 | Factory detection method and system for indoor unit of air conditioner |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59198050A (en) * | 1983-04-25 | 1984-11-09 | Fuji Electric Corp Res & Dev Ltd | Serial data reading circuit |
JPH02104197A (en) * | 1988-10-13 | 1990-04-17 | Mitsubishi Heavy Ind Ltd | Serial signal transmitting equipment |
JP2566323B2 (en) * | 1989-01-18 | 1996-12-25 | 三菱重工業株式会社 | Polarity confirmation control method |
JPH04180437A (en) * | 1990-11-15 | 1992-06-26 | Matsushita Electric Works Ltd | Gate signal generating circuit |
JPH08172434A (en) * | 1994-12-19 | 1996-07-02 | Nec Corp | Access control system for radio lan |
JP2002208970A (en) * | 2001-01-12 | 2002-07-26 | Yaskawa Electric Corp | Digital signal transmitter |
JP2004088576A (en) * | 2002-08-28 | 2004-03-18 | Yaskawa Electric Corp | Digital signal transmitting device |
-
2007
- 2007-03-08 JP JP2007058416A patent/JP5374025B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2008227570A (en) | 2008-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6192422B1 (en) | Repeater with flow control device transmitting congestion indication data from output port buffer to associated network node upon port input buffer crossing threshold level | |
US20080002735A1 (en) | Device network | |
US6665275B1 (en) | Network device including automatic detection of duplex mismatch | |
US20050165989A1 (en) | I2C communication system and method enabling bi-directional communications | |
US8825935B2 (en) | Pattern detection for partial networking | |
US20180210854A1 (en) | Bus system | |
US20090245120A1 (en) | Ethernet Physical Layer Transceiver with Auto-Ranging Function | |
WO2009063346A1 (en) | Star network and method for preventing a repeatedly transmission of a control symbol in such a star network | |
US7389469B2 (en) | Bus systems, apparatuses, and methods of operating a bus | |
EP0739112A2 (en) | Electronic devices and operating mode control thereof | |
JPH0946361A (en) | Serial data transmitter and its controlling method | |
JP5374025B2 (en) | Differential transmission equipment | |
CN109074343B (en) | Communication device, communication method, program, and communication system | |
JP2011176436A (en) | Data transmission system and air conditioner with the same | |
Shweta et al. | Implementation of controller area network (CAN) bus (Building automation) | |
JP4100528B2 (en) | Loop network configuration management method and loop network system | |
JP5484037B2 (en) | Data transmission method, data transmission apparatus and network system | |
JP4065058B2 (en) | Remote reset device | |
JP2008022079A (en) | Communication network system and notice method of reception diagnostic result | |
JP3436593B2 (en) | Data communication device | |
TW201742400A (en) | Network device and auto detecting method for direct link thereof | |
KR101992713B1 (en) | Communication interface apparatus | |
CN117573586A (en) | Single-wire communication method, device and system | |
JPH0553338B2 (en) | ||
JPH11231976A (en) | Method, system and device for initializing remote terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120314 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130206 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130404 |
|
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: 20130828 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130920 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5374025 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |