JP6474004B2 - Base unit and communication method - Google Patents

Base unit and communication method Download PDF

Info

Publication number
JP6474004B2
JP6474004B2 JP2016096116A JP2016096116A JP6474004B2 JP 6474004 B2 JP6474004 B2 JP 6474004B2 JP 2016096116 A JP2016096116 A JP 2016096116A JP 2016096116 A JP2016096116 A JP 2016096116A JP 6474004 B2 JP6474004 B2 JP 6474004B2
Authority
JP
Japan
Prior art keywords
unit
data
clock
received data
reception
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
Application number
JP2016096116A
Other languages
Japanese (ja)
Other versions
JP2017204765A (en
Inventor
隆 山元
隆 山元
大石 睦彦
睦彦 大石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co 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 Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to JP2016096116A priority Critical patent/JP6474004B2/en
Publication of JP2017204765A publication Critical patent/JP2017204765A/en
Application granted granted Critical
Publication of JP6474004B2 publication Critical patent/JP6474004B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Dc Digital Transmission (AREA)
  • Interconnected Communication Systems, Intercoms, And Interphones (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

本開示は、ドアホンシステムの親機および当該ドアホンシステムの通信方法に関する。   The present disclosure relates to a master unit of a door phone system and a communication method of the door phone system.

近年、住宅等において、例えば、宅外の玄関先に設置されたカメラ付きの子機(以下、「玄関子機」という)と、玄関子機のカメラで撮像された映像をモニタに表示する宅内の親機(以下、「ドアホン親機」という)と、からなるドアホンシステムが広く普及している。また、ドアホンシステムに、モニタを増設する場合もある(以下、「増設モニタ」という)。   In recent years, in homes and the like, for example, a slave unit with a camera installed at a front door outside the home (hereinafter referred to as “entrance slave unit”) and a video image captured by the camera of the entrance slave unit are displayed on a monitor. A door phone system comprising a main phone (hereinafter referred to as “door phone master”) is widely used. In some cases, a monitor is added to the door phone system (hereinafter referred to as “additional monitor”).

一般的に、ドアホンシステムは、玄関子機とドアホン親機とが2線ケーブルにより接続される。また、ドアホン親機と増設モニタとが2線ケーブルにより接続される。特許文献1には、2線ケーブルで接続された玄関子機とドアホン親機との間でパケットを送受信するドアホンシステムが記載されている。   Generally, in a door phone system, an entrance cordless handset and a door phone master phone are connected by a two-wire cable. Further, the door phone master unit and the extension monitor are connected by a two-wire cable. Patent Document 1 describes a door phone system that transmits and receives packets between an entrance cordless handset and a doorphone master set connected by a two-wire cable.

ドアホン親機は、玄関子機から受信したデータを、増設モニタにも転送する。これにより、同一の画像データが、ドアホン親機と増設モニタに同報送信され、ドアホン親機と増設モニタは、同一の画像データを表示できる。   The intercom master unit also transfers the data received from the entrance slave unit to the additional monitor. As a result, the same image data is broadcast to the doorphone master and the extension monitor, and the doorphone master and the extension monitor can display the same image data.

特開2007−124227号公報JP 2007-124227 A

2線ケーブルの長さが変化すると、ケーブルのインピーダンスが変化し、受信側装置において、受信波形の立上り特性および立下り特性が変化する。また、受信側装置のバスドライバの入出力特性の歪み、あるいは受信波形の立上り、立下がりの受信ヒステリシスの差等により、受信波形のデューティ比が理想値(50%)からずれることが考えられる。さらに、親機から他の機器に受信データを転送すると、デューティ比のずれが増し、転送先の機器において復号誤りを起こすおそれが出る。従来技術では、この受信波形のデューティ比のずれに起因する復号誤りに対する対策が検討されていない。   When the length of the two-wire cable changes, the impedance of the cable changes, and the rising characteristics and falling characteristics of the received waveform change in the receiving side device. Further, it is conceivable that the duty ratio of the received waveform is deviated from the ideal value (50%) due to the distortion of the input / output characteristics of the bus driver of the receiving side device or the difference between the rising and falling receiving hysteresis of the receiving waveform. Furthermore, when the received data is transferred from the parent device to another device, the duty ratio shift increases, and a decoding error may occur in the transfer destination device. In the prior art, measures against decoding errors caused by the deviation of the duty ratio of the received waveform have not been studied.

本開示の目的は、受信データを転送する際に、その受信データの受信波形のデューティ比にずれが生じている場合であっても、転送元の親機で受信データのビット毎の受信波形のデューティ比を高精度に補正し、転送先の機器において受信データを正しく復号することができるドアホンシステムの親機およびドアホンシステムの通信方法を提供することである。   The purpose of this disclosure is to transfer the received waveform of each bit of the received data at the transfer source master unit even when there is a deviation in the duty ratio of the received waveform of the received data when transferring the received data. It is an object to provide a door phone system base unit and a door phone system communication method capable of correcting a duty ratio with high accuracy and correctly decoding received data in a transfer destination device.

本開示の親機は、子機と2線ケーブルを介して接続され、前記子機との間で時分割複信によりパケット信号を送受信するドアホンシステムの親機であって、受信データのビットレートのn倍(nは1以上)に対応する第1周波数のクロックを出力する第1クロック生成部と、前記第1周波数のクロックを基準に生成された、前記受信データのビットレートに対応する第2周波数のクロックを出力する第2クロック生成部と、前記第2周波数のクロックを用いて前記受信データの各ビットを復号して復号データを得ると供に、前記第1周波数のクロックによるカウントの、受信データの波形が反転した時点のカウンタ値を出力する受信データ復号部と、前記受信データ復号部に入力される前に分岐し、同報用として転送される第2の受信データの各ビットのデューティ比を、前記カウンタ値に基づいて補正するデューティ比補正部と、前記第2周波数のクロックを用いて前記復号データを再生するデータ再生部と、を具備する。   A parent device of the present disclosure is a parent device of a door phone system that is connected to a child device via a two-wire cable and transmits / receives packet signals to / from the child device by time division duplex, and has a bit rate of received data A first clock generator that outputs a clock of a first frequency corresponding to n times (n is 1 or more), and a first clock generator corresponding to the bit rate of the received data generated based on the clock of the first frequency A second clock generation unit that outputs a clock of two frequencies, and decodes each bit of the received data using the clock of the second frequency to obtain decoded data, and also counts by the clock of the first frequency A reception data decoding unit that outputs a counter value at the time when the waveform of the reception data is inverted, and second reception data that is branched before being input to the reception data decoding unit and transferred for broadcast use The duty ratio of each bit comprises a duty ratio correcting section that corrects, based on the counter value, and a data reproduction unit for reproducing the decrypted data using a clock of the second frequency.

本開示の通信方法は、子機と2線ケーブルを介して接続され、前記子機との間で時分割複信によりパケット信号を送受信するドアホンシステムの親機の通信方法であって、受信データのビットレートのn倍(nは1以上)に対応する第1周波数のクロックを出力し、前記第1周波数のクロックを基準に生成された、前記受信データのビットレートに対応する第2周波数のクロックを出力し、前記第2周波数のクロックを用いて前記受信データの各ビットを復号し、前記第2周波数のクロックを用いて復号されたデータを再生し、前記第1周波数のクロックによるカウントの、受信データの波形が反転した時点のカウンタ値を出力し、前記受信データの復号前に前記受信データから分岐し、同報用として転送される第2の受信データの各ビットのデューティ比を、前記カウンタ値に基づいて補正する。   A communication method of the present disclosure is a communication method of a master unit of a door phone system that is connected to a slave unit via a two-wire cable and transmits and receives packet signals to and from the slave unit by time-division duplex, The first frequency clock corresponding to n times the bit rate (n is 1 or more) is output, and the second frequency corresponding to the bit rate of the received data is generated based on the first frequency clock. A clock is output, each bit of the received data is decoded using the clock of the second frequency, the decoded data is reproduced using the clock of the second frequency, and counting by the clock of the first frequency is performed. The counter value at the time when the waveform of the received data is inverted is output, and each bit of the second received data that is branched from the received data before being decoded and transferred for broadcast use The duty ratio is corrected on the basis of the counter value.

本開示によれば、受信データを転送する際に、その受信データの受信波形のデューティ比にずれが生じている場合であっても、転送元の親機で受信データのビット毎の受信波形のデューティ比を高精度に補正し、転送先の機器において受信データを正しく復号することができる。   According to the present disclosure, when the received data is transferred, even if there is a deviation in the duty ratio of the received waveform of the received data, the received waveform of the received data for each bit of the received data at the transfer source master unit It is possible to correct the duty ratio with high accuracy and correctly decode the received data in the transfer destination device.

本開示の一実施の形態に係るドアホンシステムの構成を示すシステム構成図The system block diagram which shows the structure of the door phone system which concerns on one embodiment of this indication 本開示の一実施の形態に係るフレーム構成、タイムスロット構成を示すフレーム構成図Frame configuration diagram showing frame configuration and time slot configuration according to an embodiment of the present disclosure 本開示の一実施の形態に係る割り込み信号の構成図Configuration diagram of an interrupt signal according to an embodiment of the present disclosure 本開示の一実施の形態に係る玄関子機の構成を示すブロック図The block diagram which shows the structure of the entrance cordless handset which concerns on one embodiment of this indication 本開示の一実施の形態に係るドアホン親機の構成を示すブロック図The block diagram which shows the structure of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態に係る増設モニタの構成を示すブロック図The block diagram which shows the structure of the expansion monitor which concerns on one embodiment of this indication パケットデータ(1ビット)に対する変調処理の一例を示す図The figure which shows an example of the modulation process with respect to packet data (1 bit) パケットデータ(複数ビット)に対する変調処理の一例を示す図The figure which shows an example of the modulation process with respect to packet data (multiple bits) 本開示の一実施の形態において使用されるプリアンブルデータの一例を示す図The figure which shows an example of the preamble data used in one embodiment of this indication 本開示の一実施の形態に係る玄関子機の受信データ処理部の内部構成を示すブロック図The block diagram which shows the internal structure of the reception data processing part of the entrance cordless handset which concerns on one embodiment of this indication 本開示の一実施の形態に係る玄関子機の同期検出処理の一例を示す図The figure which shows an example of the synchronous detection process of the entrance cordless handset which concerns on one embodiment of this indication 本開示の一実施の形態に係る玄関子機のユニークパターンの検出を説明する図The figure explaining the detection of the unique pattern of the entrance cordless handset which concerns on one embodiment of this indication 本開示の一実施の形態に係る玄関子機のタイミング調整処理を説明する図The figure explaining the timing adjustment process of the entrance cordless handset which concerns on one embodiment of this indication 本開示の一実施の形態に係る玄関子機の復号処理を説明する第1の図1st figure explaining the decoding process of the entrance cordless handset which concerns on one embodiment of this indication 本開示の一実施の形態に係る玄関子機の復号処理を説明する第2の図2nd figure explaining the decoding process of the entrance cordless handset which concerns on one embodiment of this indication 本開示の一実施の形態に係る玄関子機の復号処理を説明する第3の図FIG. 3 is a third diagram for explaining the decryption process of the entrance slave according to the embodiment of the present disclosure. 本開示の一実施の形態に係る同期検出処理の動作の一例を示すフローチャートThe flowchart which shows an example of operation | movement of the synchronous detection process which concerns on one embodiment of this indication 本開示の一実施の形態に係る初期登録までのシーケンス図Sequence diagram until initial registration according to an embodiment of the present disclosure 本開示の一実施の形態に係る待機状態から通信状態までのシーケンス図Sequence diagram from standby state to communication state according to an embodiment of the present disclosure 本開示の一実施の形態に係る玄関子機の動作の一例を示すフローチャートThe flowchart which shows an example of operation of the entrance cordless handset concerning an embodiment of this indication 本開示の一実施の形態に係るドアホン親機の動作の一例を示すフローチャートThe flowchart which shows an example of operation of the door phone main unit concerning an embodiment of this indication 本開示の一実施の形態に係るドアホン親機の通常動作時のルーティング制御の具体例を示す図The figure which shows the specific example of the routing control at the time of normal operation | movement of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態に係るドアホン親機のルーティング制御部の内部構成を示す図The figure which shows the internal structure of the routing control part of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態に係るドアホン親機の初期登録時のルーティング制御の具体例を示す図The figure which shows the specific example of the routing control at the time of the initial registration of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態に係るドアホン親機のデューティ比補正処理の第1例を示す図The figure which shows the 1st example of the duty ratio correction | amendment process of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態に係るドアホン親機のデューティ比補正処理の動作の一例を示すフローチャートThe flowchart which shows an example of operation | movement of the duty ratio correction | amendment process of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態に係るドアホン親機のデューティ比補正処理の第2例を示す図The figure which shows the 2nd example of the duty ratio correction | amendment process of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態に係るドアホン親機のデューティ比補正処理の第3例を示す図The figure which shows the 3rd example of the duty ratio correction | amendment process of the door phone main unit which concerns on one embodiment of this indication 本開示の一実施の形態のバリエーション1に係る玄関子機の受信データ処理部の内部構成を示すブロック図The block diagram which shows the internal structure of the reception data processing part of the entrance cordless handset which concerns on the variation 1 of one embodiment of this indication 本開示の一実施の形態のバリエーション1に係る玄関子機のユニークパターンの検出を説明する第1の図The 1st figure explaining detection of the unique pattern of the entrance cordless handset which concerns on the variation 1 of one embodiment of this indication 本開示の一実施の形態のバリエーション1に係る玄関子機のユニークパターンの検出を説明する第2の図The 2nd figure explaining the detection of the unique pattern of the entrance cordless handset which concerns on the variation 1 of one embodiment of this indication 本開示の一実施の形態のバリエーション2に係る玄関子機の受信データ処理部の内部構成を示す第1のブロック図1st block diagram which shows the internal structure of the reception data processing part of the entrance cordless handset which concerns on the variation 2 of one embodiment of this indication 本開示の一実施の形態のバリエーション2に係る同期検出処理の動作の一例を示すフローチャートThe flowchart which shows an example of operation | movement of the synchronous detection process which concerns on the variation 2 of one embodiment of this indication 本開示の一実施の形態のバリエーション2に係る玄関子機の受信データ処理部の内部構成を示す第2のブロック図The 2nd block diagram showing the internal configuration of the reception data processing part of the entrance cordless handset concerning variation 2 of an embodiment of this indication

以下、本開示の実施の形態について、図面を参照して詳細に説明する。   Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.

<システムの概要>
まず、本開示の一実施の形態に係るドアホンシステムの概要について、図1を用いて説明する。図1に示すように、ドアホンシステム1は、玄関子機100と、ドアホン親機200と、から構成される。なお、図1では、ドアホン親機200に3台の玄関子機100−1、100−2、100−3が接続している場合を例示している。また、ドアホンシステム1には、増設モニタ300を追加しても良い。さらに、ドアホンシステム1は、他のドアホンシステムと接続することもできる。
<System overview>
First, the outline | summary of the door phone system which concerns on one embodiment of this indication is demonstrated using FIG. As shown in FIG. 1, the door phone system 1 includes an entrance cordless handset 100 and a door phone master set 200. Note that FIG. 1 illustrates a case where three door slave devices 100-1, 100-2, and 100-3 are connected to the doorphone master device 200. Further, an additional monitor 300 may be added to the door phone system 1. Furthermore, the door phone system 1 can be connected to other door phone systems.

玄関子機100は、例えば、住宅等の玄関先に設けられる。ドアホン親機200および増設モニタ300は、例えば、住宅等の宅内に設けられ、壁に固定されたり、テーブルまたは台の上等に載置されたりする。玄関子機100とドアホン親機200とは、1対の銅線から成る2線ケーブルにより接続されている。増設モニタ300は、2線ケーブルによりドアホン親機200と接続される。   The entrance cordless handset 100 is provided, for example, at the entrance of a house or the like. The intercom master device 200 and the extension monitor 300 are provided in a home such as a house, for example, and are fixed to a wall or placed on a table or a table. The entrance cordless handset 100 and the door phone master set 200 are connected by a two-wire cable made of a pair of copper wires. The extension monitor 300 is connected to the door phone master unit 200 by a two-wire cable.

ドアホン親機200は、玄関子機100と通信を行い、玄関子機100から映像データ、音声データおよび制御データを受信し、音声データおよび制御データを送信する。また、ドアホン親機200は、増設モニタ300と通信を行い、玄関子機100から受信した映像データ、音声データおよび制御データを増設モニタ300に転送し、増設モニタ300から受信した音声データおよび制御データを玄関子機100に転送する。   The intercom master device 200 communicates with the entrance slave device 100, receives video data, audio data, and control data from the entrance slave device 100, and transmits the audio data and control data. The intercom base unit 200 communicates with the expansion monitor 300, transfers the video data, audio data, and control data received from the front door unit 100 to the expansion monitor 300, and receives the audio data and control data received from the expansion monitor 300. Is transferred to the entrance cordless handset 100.

なお、以下の説明において、玄関子機100あるいは増設モニタ300からドアホン親機200への方向を「上り方向」といい、玄関子機100あるいは増設モニタ300から上り方向に送信されるパケット、信号をそれぞれ「上りパケット」、「上り信号」という。また、ドアホン親機200から玄関子機100あるいは増設モニタ300への方向を「下り方向」といい、ドアホン親機200から下り方向に送信されるパケット、信号をそれぞれ「下りパケット」、「下り信号」という。   In the following description, the direction from the entrance slave unit 100 or the extension monitor 300 to the doorphone master unit 200 is referred to as “upward direction”, and packets and signals transmitted from the entrance slave unit 100 or the extension monitor 300 in the upward direction are referred to as “upward direction”. They are called “upstream packet” and “upstream signal”, respectively. Further, the direction from the doorphone master unit 200 to the entrance slave unit 100 or the extension monitor 300 is referred to as “downward direction”, and packets and signals transmitted from the doorphone master unit 200 in the downward direction are referred to as “downstream packet” and “downstream signal”, respectively. "

<フレーム構成、タイムスロット構成>
次に、本実施の形態に係る同期通信時のフレーム構成、タイムスロット構成について図2Aを用いて説明する。図2Aに示すように、各フレームは、48000bitsの領域を有し、10ms周期、4.8Mbpsのビットレートであり、24個のタイムスロットに分割される。したがって、各タイムスロットは、2000bits=250bytesの領域を有し、0.416ms周期、4.8Mbpsのビットレートになる。
<Frame configuration, time slot configuration>
Next, a frame configuration and a time slot configuration during synchronous communication according to the present embodiment will be described with reference to FIG. 2A. As shown in FIG. 2A, each frame has an area of 48000 bits, has a 10 ms period, a bit rate of 4.8 Mbps, and is divided into 24 time slots. Therefore, each time slot has an area of 2000 bits = 250 bytes, and has a bit rate of 0.416 ms and a bit rate of 4.8 Mbps.

各タイムスロットは、52byteのガードスペース(Guard)、4byteのプリアンブルフィールド、2byteのシンクフィールド(Sync)、32byteの制御データフィールド、160byteのユーザデータフィールドに分けられている。   Each time slot is divided into a 52-byte guard space (Guard), a 4-byte preamble field, a 2-byte sync field (Sync), a 32-byte control data field, and a 160-byte user data field.

ガードスペースは、伝播遅延時間差やクロックジッタ等によるタイムスロットの衝突を避けるための時間である。プリアンブルフィールドには、所定のユニークパターンを有するプリアンブルデータ(後述)が付加される。シンクフィールドには、所定のシンクパターンが付加される。制御データフィールドには、制御データが付加される。ユーザデータフィールドには、画像データおよび音声データが付加される。ここでシンクパターンとは、シンクフィールドに配置された既知のデータあるいはデータ列であって、受信データ受信時の同期を確立するために用いられ、受信データが正確なタイミングで受信されたことを確認するための予め規定した既知のデータパターンである。   The guard space is a time for avoiding time slot collision due to a propagation delay time difference, clock jitter, or the like. Preamble data (described later) having a predetermined unique pattern is added to the preamble field. A predetermined sync pattern is added to the sync field. Control data is added to the control data field. Image data and audio data are added to the user data field. Here, the sync pattern is known data or a data string arranged in the sync field, and is used to establish synchronization at the time of reception data reception, and confirms that reception data has been received at an accurate timing. This is a known data pattern defined in advance.

<割り込み信号の構成>
次に、本実施の形態に係る非同期通信時の割り込み信号の構成について図2Bを用いて説明する。
<Configuration of interrupt signal>
Next, the configuration of an interrupt signal during asynchronous communication according to the present embodiment will be described with reference to FIG. 2B.

図2Bに示すように、割り込み信号は、4byteのプリアンブルフィールド、2byteのシンクフィールド(Sync)、32byteの制御データフィールドに分けられている。さらに、図2Bに示す割り込み信号には、将来の拡張用として、30byteのユーザデータフィールドが設けられている。   As shown in FIG. 2B, the interrupt signal is divided into a 4-byte preamble field, a 2-byte sync field (Sync), and a 32-byte control data field. Further, the interrupt signal shown in FIG. 2B is provided with a 30-byte user data field for future expansion.

割り込み信号のプリアンブルデータおよびシンクパターンは、図2Aに示した同期通信時のタイムスロットと同一のものである。これにより、同期通信時と非同期通信時とで受信部等を共用できるため、コストを抑えることができる。   The preamble data and sync pattern of the interrupt signal are the same as the time slot during synchronous communication shown in FIG. 2A. Thereby, since a receiving part etc. can be shared by the time of synchronous communication and the time of asynchronous communication, cost can be held down.

割り込み信号の制御データフィールドには、メッセージ種別(同期要求等)、送信元機器番号(ID)等の制御情報が書き込まれる。割り込み信号のユーザデータフィールドは、機器異常情報(機器の異常を検知したことを示す情報)等、メッセージ種別に応じた詳細情報を通知するフィールドとして使用しても良い。   In the control data field of the interrupt signal, control information such as a message type (synchronization request or the like) and a transmission source device number (ID) is written. The user data field of the interrupt signal may be used as a field for notifying detailed information corresponding to the message type, such as device abnormality information (information indicating that a device abnormality is detected).

なお、図2Bに示す割り込み信号は、接続機器の初期登録時にも使用される。   Note that the interrupt signal shown in FIG. 2B is also used during initial registration of the connected device.

<玄関子機の構成>
次に、玄関子機100の構成について、図3のブロック図を用いて説明する。図3に示すように、玄関子機100は、ケーブル接続部101、キー入力部102、スピーカ103、マイク104、音声I/F(インターフェイス)部105、カメラ部106および制御部107を有する。制御部107は、内部に、第1クロック生成部131、パケット生成部132、データ再生部133、接続状態検出部134を有する。また、玄関子機100は、送信データ処理部108、送信データ反転部109、送信ドライバ110、受信ドライバ111、受信データ反転部112、受信データ処理部113、識別子記憶部114を有する。
<Configuration of entrance cordless handset>
Next, the structure of the entrance cordless handset 100 is demonstrated using the block diagram of FIG. As shown in FIG. 3, the entrance slave device 100 includes a cable connection unit 101, a key input unit 102, a speaker 103, a microphone 104, an audio I / F (interface) unit 105, a camera unit 106, and a control unit 107. The control unit 107 includes a first clock generation unit 131, a packet generation unit 132, a data reproduction unit 133, and a connection state detection unit 134 inside. The front door device 100 includes a transmission data processing unit 108, a transmission data reversing unit 109, a transmission driver 110, a reception driver 111, a reception data reversing unit 112, a reception data processing unit 113, and an identifier storage unit 114.

ケーブル接続部101は、2線ケーブル用の接続端子を含み、2線ケーブルの玄関側の一端と、受信ドライバ111および送信ドライバ110との間を、信号を伝送可能な状態で接続する。なお、2線ケーブルの他端は、ドアホン親機200に接続される。   The cable connection unit 101 includes a connection terminal for a two-wire cable, and connects the one end on the entrance side of the two-wire cable to the reception driver 111 and the transmission driver 110 in a state where signals can be transmitted. Note that the other end of the two-wire cable is connected to the doorphone master unit 200.

キー入力部102は、呼出ボタンを含み、呼出ボタンが操作されたとき、その旨を示す信号を制御部107に出力する。   The key input unit 102 includes a call button. When the call button is operated, the key input unit 102 outputs a signal indicating that to the control unit 107.

スピーカ103は、音声I/F部105から出力されたアナログ音声データを、音声に変換して出力する。   The speaker 103 converts the analog audio data output from the audio I / F unit 105 into audio and outputs the audio.

マイク104は、周囲の音声を集音してアナログ音声データに変換し、音声I/F部105に出力する。   The microphone 104 collects ambient sound, converts it into analog sound data, and outputs it to the sound I / F unit 105.

音声I/F部105は、制御部107から出力されたデジタル音声データを、アナログ音声データに変換し、信号レベルを調整して、スピーカ103に出力する。また、音声I/F部105は、マイク104から出力されたアナログ音声データを、信号レベルを調整し、デジタル音声データに変換して、制御部107に出力する。かかるアナログ/デジタル変換は、A/D,D/A変換器(図示せず)により行われる。   The audio I / F unit 105 converts the digital audio data output from the control unit 107 into analog audio data, adjusts the signal level, and outputs the analog audio data to the speaker 103. The audio I / F unit 105 adjusts the signal level of the analog audio data output from the microphone 104, converts the analog audio data into digital audio data, and outputs the digital audio data to the control unit 107. Such analog / digital conversion is performed by an A / D, D / A converter (not shown).

なお、音声I/F部105は、マイク104から出力されたアナログ音声データをデジタル変換したデータに対して、所定の音声圧縮処理を行って得られるデータを、デジタル音声データとして制御部107に出力してもよい。また、音声I/F部105は、制御部107から出力されたデジタル音声データが所定の音声圧縮処理を行って得られたデータである場合、当該データに対して所定の音声伸張処理を行ってから、デジタル/アナログ変換を行う。   The audio I / F unit 105 outputs data obtained by performing predetermined audio compression processing on the data obtained by digitally converting the analog audio data output from the microphone 104 to the control unit 107 as digital audio data. May be. In addition, when the digital audio data output from the control unit 107 is data obtained by performing predetermined audio compression processing, the audio I / F unit 105 performs predetermined audio expansion processing on the data. To digital / analog conversion.

カメラ部106は、デジタルカメラを含み、玄関の映像を撮影し、デジタル映像データを生成して、制御部107に出力する。なお、カメラ部106は、エンコーダモジュールを搭載していてもよい。すなわち、カメラ部106は、デジタルカメラから出力された映像データに対してH.264等の所定の動画圧縮処理を行って得られるデータを、デジタル映像データとして制御部107に出力してもよい。   The camera unit 106 includes a digital camera, takes a video of the entrance, generates digital video data, and outputs the digital video data to the control unit 107. Note that the camera unit 106 may include an encoder module. That is, the camera unit 106 may output data obtained by performing predetermined moving image compression processing such as H.264 to the video data output from the digital camera to the control unit 107 as digital video data.

制御部107は、玄関子機100の各部の制御を行う。また、制御部107は、送信を許可する送信区間、および、受信を許可する受信区間を指示する切り替え制御信号(SW CON)を送信ドライバ110および受信ドライバ111に出力する。   The control unit 107 controls each part of the entrance cordless handset 100. In addition, the control unit 107 outputs a transmission control signal (SW CON) that indicates a transmission period that permits transmission and a reception period that permits reception to the transmission driver 110 and the reception driver 111.

制御部107の第1クロック生成部131は、受信データをサンプリングするためのクロックであって、水晶発振を基準に、受信データのビットレートのn倍(nは1以上)に対応する第1周波数(例えば、48MHz(n=10))のクロック(CLK)を生成し、受信データ処理部113に出力する。   The first clock generation unit 131 of the control unit 107 is a clock for sampling the reception data, and the first frequency corresponding to n times (n is 1 or more) the bit rate of the reception data on the basis of the crystal oscillation. A clock (CLK) of (eg, 48 MHz (n = 10)) is generated and output to the reception data processing unit 113.

制御部107のパケット生成部132は、映像付き通話を実現するための上りパケットを生成する。具体的には、パケット生成部132は、音声I/F部105から出力されたデジタル音声データおよびカメラ部106から出力されたデジタル映像データを適宜分割して各タイムスロットのユーザデータフィールドに書き込み、自機(玄関子機100)に固有の識別子(以下、「自機IDslave」という)および通信相手のドアホン親機200の識別子(以下、「IDmaster」という)を含む制御データを各タイムスロットの制御データフィールドに書き込む。さらに、パケット生成部132は、各タイムスロットに、プリアンブルデータ、シンクパターンを書き込み、上りパケット(送信データ)を生成する。さらに、パケット生成部132は、送信用のイネーブル信号(SSCS)および送信用の第2周波数(例えば、4.8MHz)のクロック(SSCK)を生成する。そして、パケット生成部132は、上りパケットを、送信用のイネーブル信号(SSCS)およびクロック(SSCK)と同期させて、送信データ処理部108に出力する。 The packet generation unit 132 of the control unit 107 generates an uplink packet for realizing a call with video. Specifically, the packet generation unit 132 divides the digital audio data output from the audio I / F unit 105 and the digital video data output from the camera unit 106 as appropriate, and writes them in the user data field of each time slot. Control data including an identifier (hereinafter referred to as “own device ID slave ”) unique to the own device (the entrance slave device 100) and an identifier of the door phone master device 200 of the communication partner (hereinafter referred to as “ID master ”) is assigned to each time slot. Write to the control data field. Further, the packet generation unit 132 writes preamble data and a sync pattern in each time slot, and generates an uplink packet (transmission data). Further, the packet generation unit 132 generates a transmission enable signal (SSCS) and a transmission second frequency (for example, 4.8 MHz) clock (SSCK). Then, the packet generation unit 132 outputs the uplink packet to the transmission data processing unit 108 in synchronization with the transmission enable signal (SSCS) and the clock (SSCK).

なお、玄関子機100とドアホン親機200との間でデータが送受されない待機状態では、パケット生成部132は、上りパケットを生成しない。また、待機状態(非同期通信時)において、呼出ボタンが操作される等の所定のイベントが発生すると、パケット生成部132は、プリアンブルデータ、シンクパターン、制御データを書き込んだ上りパケット(割り込み信号)を生成する。なお、非同期通信時の割り込み信号において使用されるプリアンブルとシンクパターンは、同期通信時に使用されるものと同一である。   Note that, in a standby state in which data is not transmitted and received between the front door device 100 and the door phone master device 200, the packet generation unit 132 does not generate an upstream packet. In a standby state (during asynchronous communication), when a predetermined event such as an operation of a call button occurs, the packet generation unit 132 transmits an upstream packet (interrupt signal) in which preamble data, sync pattern, and control data are written. Generate. The preamble and sync pattern used in the interrupt signal during asynchronous communication are the same as those used during synchronous communication.

制御部107のデータ再生部133は、受信データ処理部113からイネーブル信号(SSCS)を入力すると、受信データ処理部113から出力された第2周波数のクロック(SSCK)を使用し、受信データ処理部113から出力された下りパケット(復号データ)に含まれるデジタル音声データを音声I/F部105に出力し、下りパケット(復号データ)に含まれるシンクパターンを接続状態検出部134に出力する。なお、データ再生部133は、初期登録時に、下りパケットに含まれる自機IDslaveおよびIDmasterを識別子記憶部114に記憶させる。 When the data reproduction unit 133 of the control unit 107 receives the enable signal (SSCS) from the reception data processing unit 113, the data reproduction unit 133 uses the second frequency clock (SSCK) output from the reception data processing unit 113, and receives the enable signal (SSCS). The digital audio data included in the downlink packet (decoded data) output from 113 is output to the audio I / F unit 105, and the sync pattern included in the downlink packet (decoded data) is output to the connection state detection unit 134. Note that the data reproduction unit 133 causes the identifier storage unit 114 to store the own device ID slave and ID master included in the downlink packet at the time of initial registration.

また、データ再生部133は、待機状態(非同期通信時)において所定のイベントが発生し、下り信号(割り込み信号)を入力した場合、下り信号を復調して下りパケットを取得し、下りパケットに含まれるシンクパターンを接続状態検出部134に出力する。データ再生部133は、接続状態検出部134において正確に割り込み信号を捕捉できたことを確認した後、割り込み信号の制御データを抽出する。制御データが同期要求であれば、玄関子機100は、ドアホン親機200との同期処理に移行する。   Further, when a predetermined event occurs in a standby state (during asynchronous communication) and a downlink signal (interrupt signal) is input, the data reproduction unit 133 demodulates the downlink signal to acquire a downlink packet, and is included in the downlink packet The sync pattern is output to the connection state detection unit 134. The data reproduction unit 133 extracts control data of the interrupt signal after confirming that the connection state detection unit 134 has correctly captured the interrupt signal. If the control data is a synchronization request, the entrance slave device 100 shifts to a synchronization process with the doorphone master device 200.

制御部107の接続状態検出部134は、2線ケーブルが正接続である場合のチェック用シンクパターン(以下、「正接続チェック用シンクパターン」という(例えば、16bit全てが「0」))、および、正接続チェック用シンクパターンの逆のパターンであって、2線ケーブルが逆接続である場合のチェック用シンクパターン(以下、「逆接続チェック用シンクパターン」という(例えば、16bit全てが「1」))を記憶している。そして、接続状態検出部134は、データ再生部133から出力された受信データのシンクパターンを、正接続チェック用シンクパターンおよび逆接続チェック用シンクパターンと照合する。接続状態検出部134は、受信データのシンクパターンと正接続チェック用シンクパターンが完全に一致した場合に2線ケーブルが正接続であると判定し、受信データのシンクパターンと逆接続チェック用シンクパターンが完全に一致した場合に2線ケーブルが逆接続であると判定する。そして、接続状態検出部134は、判定結果を示す反転制御信号(INV CON)を、送信データ反転部109および受信データ反転部112に出力する。   The connection state detection unit 134 of the control unit 107 is a check sync pattern (hereinafter, referred to as a “positive connection check sync pattern” (for example, all 16 bits are “0”)) when the two-wire cable is connected correctly. This is a reverse pattern of the normal connection check sync pattern, and the check sync pattern when the two-wire cable is reverse connected (hereinafter referred to as “reverse connection check sync pattern” (eg, all 16 bits are “1”). )) Is remembered. Then, the connection state detection unit 134 collates the sync pattern of the reception data output from the data reproduction unit 133 with the sync pattern for the normal connection check and the sync pattern for the reverse connection check. The connection state detection unit 134 determines that the two-wire cable is correctly connected when the sync pattern of the received data completely matches the sync pattern for the normal connection check, and the sync pattern of the received data and the sync pattern for the reverse connection check If the two completely match, it is determined that the two-wire cable is reversely connected. Then, the connection state detection unit 134 outputs an inversion control signal (INV CON) indicating the determination result to the transmission data inversion unit 109 and the reception data inversion unit 112.

送信データ処理部108は、パケット生成部132からイネーブル信号(SSCS)を入力すると、パケット生成部132から出力された第2周波数のクロック(SSCK)を使用し、パケット生成部132から出力された上りパケットのデータに対して変調処理を行って上り信号を生成し、送信データ反転部109に出力する。なお、送信データ処理部108の変調処理の詳細(具体例)については後述する。   When the transmission data processing unit 108 receives the enable signal (SSCS) from the packet generation unit 132, the transmission data processing unit 108 uses the second frequency clock (SSCK) output from the packet generation unit 132, and the uplink data output from the packet generation unit 132. Modulation processing is performed on the packet data to generate an uplink signal, which is output to the transmission data inverting unit 109. Details (specific example) of the modulation processing of the transmission data processing unit 108 will be described later.

送信データ反転部109は、接続状態検出部134において2線ケーブルが逆接続であると判定された場合、送信データ処理部108から出力された上り信号を反転させて送信ドライバ110に出力する。一方、送信データ反転部109は、接続状態検出部134において2線ケーブルが正接続であると判定された場合、送信データ処理部108から出力された上り信号をそのまま送信ドライバ110に出力する。   When the connection state detection unit 134 determines that the two-wire cable is reversely connected, the transmission data inversion unit 109 inverts the uplink signal output from the transmission data processing unit 108 and outputs the inverted signal to the transmission driver 110. On the other hand, when the connection state detection unit 134 determines that the two-wire cable is a normal connection, the transmission data reversing unit 109 outputs the uplink signal output from the transmission data processing unit 108 to the transmission driver 110 as it is.

送信ドライバ110は、制御部107からの切り替え制御信号(SW CON)によって指示された送信区間において、上り信号を、ケーブル接続部101を介してドアホン親機200に送信する。   The transmission driver 110 transmits an uplink signal to the intercom base unit 200 via the cable connection unit 101 in the transmission section instructed by the switching control signal (SW CON) from the control unit 107.

受信ドライバ111は、ドアホン親機200から送信された下り信号を、ケーブル接続部101を介して受信する。そして、受信ドライバ111は、制御部107からの切り替え制御信号(SW CON)によって指示された受信区間において、下り信号を、受信データ反転部112に出力する。   The reception driver 111 receives the downlink signal transmitted from the doorphone master device 200 via the cable connection unit 101. Then, the reception driver 111 outputs a downlink signal to the reception data inversion unit 112 in the reception period indicated by the switching control signal (SW CON) from the control unit 107.

受信データ反転部112は、接続状態検出部134において2線ケーブルが逆接続であると判定された場合、受信ドライバ111から出力された下り信号を反転させて受信データ処理部113に出力する。一方、受信データ反転部112は、接続状態検出部134において2線ケーブルが正接続であると判定された場合、受信ドライバ111から出力された下り信号をそのまま受信データ処理部113に出力する。   When the connection state detection unit 134 determines that the two-wire cable is reversely connected, the reception data inversion unit 112 inverts the downlink signal output from the reception driver 111 and outputs the inverted signal to the reception data processing unit 113. On the other hand, the reception data inverting unit 112 outputs the downlink signal output from the reception driver 111 to the reception data processing unit 113 as it is when the connection state detection unit 134 determines that the two-wire cable is a normal connection.

受信データ処理部113は、第1クロック生成部131から出力された第1周波数のクロック(CLK)を使用し、受信ドライバ111から出力された下り信号に含まれるプリアンブルデータを用いてドアホン親機200との同期(受信データの各ビットの先頭のタイミング)を検出する。そして、受信データ処理部113は、プリアンブルデータのユニークパターンを検出したタイミングで、データ再生動作を許可するイネーブル信号(SSCS)をデータ再生部133に出力する。   The reception data processing unit 113 uses the first frequency clock (CLK) output from the first clock generation unit 131, and uses the preamble data included in the downlink signal output from the reception driver 111, the intercom base unit 200. (The timing at the beginning of each bit of received data) is detected. Then, the received data processing unit 113 outputs an enable signal (SSCS) for permitting the data reproduction operation to the data reproduction unit 133 at the timing when the unique pattern of the preamble data is detected.

また、受信データ処理部113は、受信データ反転部112から出力された下り信号(受信データ)を復号し、復号データをデータ再生部133に出力する。また、受信データ処理部113は、第1クロック生成部131から出力された第1周波数のクロック(CLK)を基準に、受信データのビットレートに対応する第2周波数(例えば、4.8MHz)のクロック(SSCK)を生成し、データ再生部133に出力する。   The reception data processing unit 113 also decodes the downlink signal (reception data) output from the reception data inversion unit 112 and outputs the decoded data to the data reproduction unit 133. Also, the reception data processing unit 113 uses the first frequency clock (CLK) output from the first clock generation unit 131 as a reference, and the second frequency (for example, 4.8 MHz) clock corresponding to the bit rate of the reception data. (SSCK) is generated and output to the data reproducing unit 133.

識別子記憶部114は、ドアホン親機200から受信した自機IDslaveおよびIDmasterを記憶する。 The identifier storage unit 114 stores the own device ID slave and the ID master received from the intercom master device 200.

<ドアホン親機の構成>
次に、ドアホン親機200の構成について、図4のブロック図を用いて説明する。図4に示すように、ドアホン親機200は、ケーブル接続部201、キー入力部202、スピーカ203、マイク204、音声I/F部205、ディスプレイ部206および制御部207を有する。制御部207は、内部に、第1クロック生成部231、パケット生成部232、データ再生部233、接続状態検出部234、識別子設定部235を有する。また、ドアホン親機200は、送信データ処理部208、送信データ反転部209、送信ドライバ210、受信ドライバ211およびルーティング制御部212、受信データ処理部213、識別子記憶部214を有する。なお、ドアホン親機200は、ケーブル接続部201、送信ドライバ210および受信ドライバ211を、N個(Nは自然数)有する。
<Configuration of doorphone master unit>
Next, the configuration of door phone master device 200 will be described using the block diagram of FIG. As shown in FIG. 4, door phone master device 200 includes a cable connection unit 201, a key input unit 202, a speaker 203, a microphone 204, an audio I / F unit 205, a display unit 206, and a control unit 207. The control unit 207 includes a first clock generation unit 231, a packet generation unit 232, a data reproduction unit 233, a connection state detection unit 234, and an identifier setting unit 235 inside. The intercom base unit 200 includes a transmission data processing unit 208, a transmission data reversing unit 209, a transmission driver 210, a reception driver 211, a routing control unit 212, a reception data processing unit 213, and an identifier storage unit 214. The doorphone parent device 200 has N (N is a natural number) the cable connection unit 201, the transmission driver 210, and the reception driver 211.

ケーブル接続部201−i(iは1からNまでの何れかの整数)は、2線ケーブル用の接続端子を含み、2線ケーブルの室内側の一端と、送信ドライバ210−iおよび受信ドライバ211−iとの間を、信号を伝送可能な状態で接続する。なお、各2線ケーブルの他端は、玄関子機100、増設モニタ300あるいは他のドアホンシステムの親機に接続される。図4では、ケーブル接続部201−1が、他のドアホンシステムの親機に接続されている場合を例示している。   The cable connection portion 201-i (i is any integer from 1 to N) includes a connection terminal for a two-wire cable, one end on the indoor side of the two-wire cable, a transmission driver 210-i, and a reception driver 211. -I is connected in a state where signals can be transmitted. In addition, the other end of each two-wire cable is connected to the main unit of the entrance cordless handset 100, the extension monitor 300, or another door phone system. In FIG. 4, the case where the cable connection part 201-1 is connected to the main | base station of another door phone system is illustrated.

キー入力部202は、応答ボタンを含み、応答ボタンが操作されたとき、その旨を示す信号を制御部207に出力する。   The key input unit 202 includes a response button. When the response button is operated, the key input unit 202 outputs a signal indicating that to the control unit 207.

スピーカ203は、音声I/F部205から出力されたアナログ音声データを、音声に変換して出力する。   The speaker 203 converts the analog audio data output from the audio I / F unit 205 into audio and outputs the audio.

マイク204は、周囲の音声を集音してアナログ音声データに変換し、音声I/F部205に出力する。   The microphone 204 collects surrounding sounds, converts them into analog sound data, and outputs the analog sound data to the sound I / F unit 205.

音声I/F部205は、制御部207から出力されたデジタル音声データを、アナログ音声データに変換し、信号レベルを調整して、スピーカ203に出力する。また、音声I/F部205は、マイク204から出力されたアナログ音声データを、信号レベルを調整し、デジタル音声データに変換して、制御部207に出力する。かかるアナログ/デジタル変換は、A/D,D/A変換器(図示せず)により行われる。   The audio I / F unit 205 converts the digital audio data output from the control unit 207 into analog audio data, adjusts the signal level, and outputs the analog audio data to the speaker 203. The audio I / F unit 205 adjusts the signal level of the analog audio data output from the microphone 204, converts the analog audio data into digital audio data, and outputs the digital audio data to the control unit 207. Such analog / digital conversion is performed by an A / D, D / A converter (not shown).

なお、音声I/F部205は、マイク204から出力されたアナログ音声データをデジタル変換したデータに対して、所定の音声圧縮処理を行って得られるデータを、デジタル音声データとして制御部207に出力してもよい。また、音声I/F部205は、制御部207から出力されたデジタル音声データが所定の音声圧縮処理を行って得られたデータである場合、当該データに対して所定の音声伸張処理を行ってから、デジタル/アナログ変換を行う。   The audio I / F unit 205 outputs data obtained by performing predetermined audio compression processing on the data obtained by digitally converting the analog audio data output from the microphone 204 to the control unit 207 as digital audio data. May be. In addition, when the digital audio data output from the control unit 207 is data obtained by performing predetermined audio compression processing, the audio I / F unit 205 performs predetermined audio expansion processing on the data. To digital / analog conversion.

ディスプレイ部206は、液晶ディスプレイを含み、制御部207から出力されたデジタル映像データを再生し、玄関の映像を表示する。なお、制御部207から出力されたデジタル映像データが所定の動画圧縮処理を行って得られたデータである場合、当該データに対して所定の動画伸張処理を行って、映像表示を行う。   The display unit 206 includes a liquid crystal display, reproduces digital video data output from the control unit 207, and displays an entrance video. When the digital video data output from the control unit 207 is data obtained by performing a predetermined moving image compression process, a predetermined moving image expansion process is performed on the data to display a video.

制御部207は、ドアホン親機200の各部の制御を行う。また、制御部207は、送信を許可する送信区間、および、受信を許可する受信区間を指示する切り替え制御信号(SW CON)を各送信ドライバ210−i、各受信ドライバ211−iおよびルーティング制御部212に出力する。   The control unit 207 controls each unit of the door phone master device 200. In addition, the control unit 207 sends a transmission control section (SW CON) that indicates a transmission section that permits transmission and a reception section that permits reception to each transmission driver 210-i, each reception driver 211-i, and a routing control section. It outputs to 212.

制御部207の第1クロック生成部231は、受信データをサンプリングするためのクロックであって、水晶発振を基準に、受信データのビットレートのn倍に対応する第1周波数(例えば、48MHz(n=10))のクロック(CLK)を生成し、ルーティング制御部212および受信データ処理部213に出力する。   The first clock generation unit 231 of the control unit 207 is a clock for sampling received data, and is based on crystal oscillation and has a first frequency corresponding to n times the bit rate of the received data (for example, 48 MHz (n = 10)) clock (CLK) is generated and output to the routing controller 212 and the received data processor 213.

制御部207のパケット生成部232は、映像付き通話を実現するための下りパケットを生成する。具体的には、パケット生成部232は、音声I/F部205から出力されたデジタル音声データを適宜分割して各タイムスロットのユーザデータフィールドに書き込み、自機(ドアホン親機200)に固有の識別子(以下、「自機IDmaster」という)および通信相手の機器の識別子を含む制御データを各タイムスロットの制御データフィールドに書き込む。さらに、パケット生成部232は、各タイムスロットに、プリアンブルデータ、シンクパターンを書き込み、下りパケット(送信データ)を生成する。さらに、パケット生成部232は、送信用のイネーブル信号(SSCS)および送信用の第2周波数(例えば、4.8MHz)のクロック(SSCK)を生成する。そして、パケット生成部232は、下りパケットを、送信用のイネーブル信号(SSCS)およびクロック(SSCK)と同期させて、送信データ処理部208に出力する。 The packet generation unit 232 of the control unit 207 generates a downlink packet for realizing a call with video. Specifically, the packet generation unit 232 appropriately divides the digital audio data output from the audio I / F unit 205 and writes it in the user data field of each time slot, and is unique to the own device (doorphone master device 200). Control data including an identifier (hereinafter referred to as “own device ID master ”) and the identifier of the communication partner device is written in the control data field of each time slot. Furthermore, the packet generation unit 232 writes preamble data and a sync pattern in each time slot, and generates a downlink packet (transmission data). Furthermore, the packet generation unit 232 generates a transmission enable signal (SSCS) and a transmission second frequency (for example, 4.8 MHz) clock (SSCK). Then, the packet generation unit 232 outputs the downlink packet to the transmission data processing unit 208 in synchronization with the transmission enable signal (SSCS) and the clock (SSCK).

また、パケット生成部232は、ドアホン親機200の動作あるいは玄関子機100の動作に関する制御データを、玄関子機100への送信の対象となるデータとして送信データ処理部208に出力してもよい。かかる制御データには、例えば、ドアホン親機200から玄関子機100のカメラ動作(データレート、パン、チルト、ライト、シャッター、およびフィルタ等の動作)や、玄関子機100に備えられた各種センサデバイスの動作を、ドアホン親機200から制御するための制御信号が含まれる。また、かかる制御データには、玄関子機100に備えられた無線通信回路等(図示せず)を介して屋外に配置されたデバイス(門の電子鍵等)の動作を制御するための制御信号が含まれる。   In addition, the packet generation unit 232 may output control data related to the operation of the doorphone master device 200 or the operation of the front door device 100 to the transmission data processing unit 208 as data to be transmitted to the front door device 100. . Such control data includes, for example, camera operations (data rate, pan, tilt, light, shutter, filter, and other operations) from the doorphone master unit 200 to the entrance slave unit 100, and various sensors provided in the entrance slave unit 100. A control signal for controlling the operation of the device from door phone parent device 200 is included. The control data includes a control signal for controlling the operation of a device (such as a gate electronic key) arranged outdoors via a wireless communication circuit or the like (not shown) provided in the entrance cordless handset 100. Is included.

パケット生成部232は、玄関子機100、増設モニタ300等の機器の初期登録時において、識別子設定部235にて設定された、登録対象の機器に割り当てた固有の識別子を含む下り信号を生成する。   The packet generation unit 232 generates a downlink signal including a unique identifier assigned to the registration target device set by the identifier setting unit 235 at the time of initial registration of the devices such as the entrance slave device 100 and the extension monitor 300. .

なお、玄関子機100(あるいは増設モニタ300)とドアホン親機200との間でデータが送受されない待機状態では、パケット生成部232は、下りパケットを生成しない。また、待機状態(非同期通信時)において、応答ボタンが操作される等の所定のイベントが発生すると、パケット生成部232は、プリアンブルデータ、シンクパターン、制御データを書き込んだ下りパケット(割り込み信号)を生成する。なお、非同期通信時の割り込み信号において使用されるプリアンブルとシンクパターンは、同期通信時に使用されるものと同一である。   Note that, in a standby state in which data is not exchanged between the front door device 100 (or the extension monitor 300) and the intercom master device 200, the packet generation unit 232 does not generate a downlink packet. Further, when a predetermined event such as a response button being operated occurs in a standby state (during asynchronous communication), the packet generation unit 232 transmits a downstream packet (interrupt signal) in which preamble data, sync pattern, and control data are written. Generate. The preamble and sync pattern used in the interrupt signal during asynchronous communication are the same as those used during synchronous communication.

制御部207のデータ再生部233は、受信データ処理部213からイネーブル信号(SSCS)を入力すると、受信データ処理部213から出力された第2周波数のクロック(SSCK)を使用し、受信データ処理部213から出力された上りパケット(復号データ)に含まれるデジタル音声データを音声I/F部205に出力し、上りパケットに含まれるデジタル映像データをディスプレイ部206に出力し、上りパケットに含まれるシンクパターンを接続状態検出部234に出力する。   When the data reproduction unit 233 of the control unit 207 receives the enable signal (SSCS) from the reception data processing unit 213, the data reproduction unit 233 uses the second frequency clock (SSCK) output from the reception data processing unit 213, The digital audio data included in the upstream packet (decoded data) output from 213 is output to the audio I / F unit 205, the digital video data included in the upstream packet is output to the display unit 206, and the sync included in the upstream packet is output. The pattern is output to the connection state detection unit 234.

また、データ再生部233は、待機状態(非同期通信時)において所定のイベントが発生し、上り信号(割り込み信号)を入力した場合、上り信号を復調して上りパケットを取得し、上りパケットに含まれるシンクパターンを接続状態検出部234に出力する。データ再生部233は、接続状態検出部234において正確に割り込み信号を捕捉できたことを確認した後、割り込み信号の制御データを抽出する。制御データが同期要求であれば、ドアホン親機200は、玄関子機100あるいは増設モニタ300との同期処理に移行する。   Further, when a predetermined event occurs in a standby state (during asynchronous communication) and an upstream signal (interrupt signal) is input, the data reproduction unit 233 demodulates the upstream signal to acquire an upstream packet, and is included in the upstream packet The sync pattern to be output is output to the connection state detection unit 234. The data reproduction unit 233 extracts the control data of the interrupt signal after confirming that the connection state detection unit 234 can accurately capture the interrupt signal. If the control data is a synchronization request, the intercom master device 200 shifts to a synchronization process with the entrance slave device 100 or the extension monitor 300.

制御部207の接続状態検出部234は、正接続チェック用シンクパターンおよび逆接続チェック用シンクパターンを記憶し、データ再生部233から出力された受信データのシンクパターンを、正接続チェック用シンクパターンおよび逆接続チェック用シンクパターンと照合する。接続状態検出部234は、受信データのシンクパターンと正接続チェック用シンクパターンが完全に一致した場合に2線ケーブルが正接続であると判定し、受信データのシンクパターンと逆接続チェック用シンクパターンが完全に一致した場合に2線ケーブルが逆接続であると判定する。そして、接続状態検出部234は、判定結果を示す反転制御信号(INV CON)を、送信データ反転部209に出力する。   The connection state detection unit 234 of the control unit 207 stores the normal connection check sync pattern and the reverse connection check sync pattern, and converts the received data sync pattern output from the data reproduction unit 233 into the normal connection check sync pattern and Match with reverse connection check sync pattern. The connection state detection unit 234 determines that the two-wire cable is correctly connected when the received data sync pattern and the normal connection check sync pattern completely match, and the received data sync pattern and the reverse connection check sync pattern are determined. If the two completely match, it is determined that the two-wire cable is reversely connected. Then, the connection state detection unit 234 outputs an inversion control signal (INV CON) indicating the determination result to the transmission data inversion unit 209.

制御部207の識別子設定部235は、玄関子機100、増設モニタ300等の機器の初期登録時において、各登録対象の機器に割り当てる固有の識別子を設定し、パケット生成部232に出力し、識別子記憶部214に記録させる。また、識別子設定部235は、必要に応じて、識別子記憶部214に記録された識別子を読み出す。なお、識別子設定部235は、識別子を送信してから所定の時間が経過しても、データ再生部233から識別子の受領確認が入力されなかった場合には、再び、設定した識別子をパケット生成部232に出力する。   The identifier setting unit 235 of the control unit 207 sets a unique identifier to be assigned to each registration target device at the time of initial registration of the devices such as the entrance slave device 100 and the extension monitor 300, and outputs the identifier to the packet generation unit 232. It is recorded in the storage unit 214. Further, the identifier setting unit 235 reads the identifier recorded in the identifier storage unit 214 as necessary. Note that the identifier setting unit 235 returns the set identifier to the packet generation unit again when the receipt of the identifier is not input from the data reproducing unit 233 even after a predetermined time has elapsed since the identifier was transmitted. Output to H.232.

送信データ処理部208は、パケット生成部232からイネーブル信号(SSCS)を入力すると、パケット生成部232から出力された第2周波数のクロック(SSCK)を使用し、パケット生成部232から出力された下りパケットのデータに対して変調処理を行って下り信号を生成し、ルーティング制御部212に出力する。   When the transmission data processing unit 208 receives the enable signal (SSCS) from the packet generation unit 232, the transmission data processing unit 208 uses the second frequency clock (SSCK) output from the packet generation unit 232, and the downlink data output from the packet generation unit 232. Modulation processing is performed on the packet data to generate a downlink signal, which is output to the routing control unit 212.

送信データ反転部209は、接続状態検出部234において2線ケーブルが逆接続であると判定された場合、ルーティング制御部212から出力された下り信号を反転させて送信ドライバ210−1に出力する。一方、送信データ反転部209は、接続状態検出部234において2線ケーブルが正接続であると判定された場合、ルーティング制御部212から出力された下り信号をそのまま送信ドライバ210−1に出力する。   When the connection state detection unit 234 determines that the two-wire cable is reversely connected, the transmission data inverting unit 209 inverts the downlink signal output from the routing control unit 212 and outputs the inverted signal to the transmission driver 210-1. On the other hand, when the connection state detection unit 234 determines that the two-wire cable is a normal connection, the transmission data inversion unit 209 outputs the downlink signal output from the routing control unit 212 to the transmission driver 210-1 as it is.

送信ドライバ210−1は、制御部207からの切り替え制御信号(SW CON)によって指示された送信区間において、下り信号を、ケーブル接続部201−1を介して他のドアホンシステムの親機に送信する。送信ドライバ210−i(この場合、iは1以外)は、制御部207からの切り替え制御信号(SW CON)によって指示された送信区間において、下り信号を、ケーブル接続部201−iを介して玄関子機100あるいは増設モニタ300に送信する。   The transmission driver 210-1 transmits a downlink signal to the master unit of another door phone system via the cable connection unit 201-1 in the transmission section instructed by the switching control signal (SW CON) from the control unit 207. . The transmission driver 210-i (in this case, i is other than 1) transmits the downstream signal to the entrance via the cable connection unit 201-i in the transmission section instructed by the switching control signal (SW CON) from the control unit 207. The data is transmitted to the slave unit 100 or the expansion monitor 300.

受信ドライバ211−iは、玄関子機100、増設モニタ300あるいは他のドアホンシステムの親機から送信された上り信号を、ケーブル接続部201−iを介して受信する。そして、受信ドライバ211−iは、制御部207からの切り替え制御信号(SW CON)によって指示された受信区間において、上り信号を、ルーティング制御部212に出力する。   The reception driver 211-i receives an upstream signal transmitted from the front cordless handset 100, the extension monitor 300, or the parent device of another door phone system via the cable connection unit 201-i. Then, the reception driver 211-i outputs an uplink signal to the routing control unit 212 in the reception period instructed by the switching control signal (SW CON) from the control unit 207.

ルーティング制御部212は、玄関子機100から送信され、受信ドライバ211−iから出力された上り信号を、親機200宛である場合には受信データ処理部213に出力し、増設モニタ300宛である場合には対応の送信ドライバ210−iに出力する。また、ルーティング制御部212は、送信データ処理部208から出力された玄関子機100宛の下り信号を、対応の送信ドライバ210−iに出力する。また、ルーティング制御部212は、増設モニタ300から送信され、受信ドライバ211−iから出力された玄関子機100宛の上り信号を、対応の送信ドライバ210−iに出力する。また、ルーティング制御部212は、ルーティング(通信ルートの有効/無効)の制御を行う。また、ルーティング制御部212は、受信データを他のドアホンシステムの親機に転送する際にデューティ比を補正する。なお、ルーティング制御部212が行うルーティング制御の具体例およびデューティ比補正処理の詳細については後述する。   The routing control unit 212 outputs the upstream signal transmitted from the front door slave device 100 and output from the reception driver 211-i to the reception data processing unit 213 when addressed to the parent device 200, and to the extension monitor 300. In some cases, the data is output to the corresponding transmission driver 210-i. In addition, the routing control unit 212 outputs the downlink signal output from the transmission data processing unit 208 and addressed to the entrance slave device 100 to the corresponding transmission driver 210-i. In addition, the routing control unit 212 outputs the uplink signal addressed to the entrance slave device 100 transmitted from the extension monitor 300 and output from the reception driver 211-i to the corresponding transmission driver 210-i. The routing control unit 212 controls routing (valid / invalid of communication routes). In addition, the routing control unit 212 corrects the duty ratio when the received data is transferred to the master unit of another door phone system. A specific example of routing control performed by the routing control unit 212 and details of the duty ratio correction process will be described later.

受信データ処理部213は、第1クロック生成部231から出力された第1周波数のクロック(CLK)を使用し、ルーティング制御部212から出力された上り信号に含まれるプリアンブルデータを用いて玄関子機100との同期(受信データの各ビットの先頭のタイミング)を検出する。そして、受信データ処理部213は、プリアンブルデータのユニークパターンを検出したタイミングで、データ再生動作を許可するイネーブル信号(SSCS)をデータ再生部233に出力する。   The reception data processing unit 213 uses the first frequency clock (CLK) output from the first clock generation unit 231, and uses the preamble data included in the uplink signal output from the routing control unit 212. 100 (synchronization with the head of each bit of received data) is detected. Then, the reception data processing unit 213 outputs an enable signal (SSCS) for permitting the data reproduction operation to the data reproduction unit 233 at the timing when the unique pattern of the preamble data is detected.

また、受信データ処理部213は、ルーティング制御部212から出力された上り信号(受信データ)を復号し、復号データをデータ再生部233に出力する。また、受信データ処理部213は、第1クロック生成部231から出力された第1周波数のクロック(CLK)を基準に、受信データのビットレートに対応する第2周波数(例えば、4.8MHz)のクロック(SSCK)を生成し、データ再生部233に出力する。   The reception data processing unit 213 decodes the uplink signal (reception data) output from the routing control unit 212 and outputs the decoded data to the data reproduction unit 233. The reception data processing unit 213 uses the first frequency clock (CLK) output from the first clock generation unit 231 as a reference, and the second frequency (for example, 4.8 MHz) clock corresponding to the bit rate of the reception data. (SSCK) is generated and output to the data reproduction unit 233.

また、受信データ処理部213は、受信データの波形が反転したタイミングに関する情報をルーティング制御部212に出力する。なお、受信データ処理部213の構成の詳細については、後述する。   The reception data processing unit 213 outputs information related to the timing at which the waveform of the reception data is inverted to the routing control unit 212. Details of the configuration of the reception data processing unit 213 will be described later.

識別子記憶部214は、自機IDmaster、および、各機器(玄関子機100、増設モニタ300、他のドアホンシステムの親機)の識別子を記憶する。 The identifier storage unit 214 stores the own device ID master and the identifiers of the devices (the entrance slave device 100, the extension monitor 300, and the parent device of another door phone system).

<増設モニタの構成>
次に、増設モニタ300の構成について、図5のブロック図を用いて説明する。図5に示すように、増設モニタ300は、ケーブル接続部301、キー入力部302、スピーカ303、マイク304、音声I/F(インターフェイス)部305、ディスプレイ部306および制御部307を有する。制御部307は、内部に、第1クロック生成部331、パケット生成部332、データ再生部333、接続状態検出部334を有する。また、増設モニタ300は、送信データ処理部308、送信データ反転部309、送信ドライバ310、受信ドライバ311、受信データ反転部312、受信データ処理部313、識別子記憶部314を有する。
<Configuration of additional monitor>
Next, the configuration of the extension monitor 300 will be described with reference to the block diagram of FIG. As illustrated in FIG. 5, the extension monitor 300 includes a cable connection unit 301, a key input unit 302, a speaker 303, a microphone 304, an audio I / F (interface) unit 305, a display unit 306, and a control unit 307. The control unit 307 includes a first clock generation unit 331, a packet generation unit 332, a data reproduction unit 333, and a connection state detection unit 334 inside. The expansion monitor 300 includes a transmission data processing unit 308, a transmission data reversing unit 309, a transmission driver 310, a reception driver 311, a reception data reversing unit 312, a reception data processing unit 313, and an identifier storage unit 314.

ケーブル接続部301は、2線ケーブル用の接続端子を含み、2線ケーブルの増設モニタ側の一端と、受信ドライバ311および送信ドライバ310との間を、信号を伝送可能な状態で接続する。なお、2線ケーブルの他端は、ドアホン親機200に接続される。   The cable connection unit 301 includes a connection terminal for a two-wire cable, and connects the one end on the additional monitor side of the two-wire cable to the reception driver 311 and the transmission driver 310 in a state where signals can be transmitted. Note that the other end of the two-wire cable is connected to the doorphone master unit 200.

キー入力部302は、呼出ボタンを含み、呼出ボタンが操作されたとき、その旨を示す信号を制御部307に出力する。   The key input unit 302 includes a call button. When the call button is operated, the key input unit 302 outputs a signal indicating that to the control unit 307.

スピーカ303は、音声I/F部305から出力されたアナログ音声データを、音声に変換して出力する。   The speaker 303 converts analog audio data output from the audio I / F unit 305 into audio and outputs the audio.

マイク304は、周囲の音声を集音してアナログ音声データに変換し、音声I/F部305に出力する。   The microphone 304 collects ambient sound, converts it into analog sound data, and outputs it to the sound I / F unit 305.

音声I/F部305は、制御部307から出力されたデジタル音声データを、アナログ音声データに変換し、信号レベルを調整して、スピーカ303に出力する。また、音声I/F部305は、マイク304から出力されたアナログ音声データを、信号レベルを調整し、デジタル音声データに変換して、制御部307に出力する。かかるアナログ/デジタル変換は、A/D,D/A変換器(図示せず)により行われる。   The audio I / F unit 305 converts the digital audio data output from the control unit 307 into analog audio data, adjusts the signal level, and outputs the analog audio data to the speaker 303. The audio I / F unit 305 adjusts the signal level of the analog audio data output from the microphone 304, converts the analog audio data into digital audio data, and outputs the digital audio data to the control unit 307. Such analog / digital conversion is performed by an A / D, D / A converter (not shown).

なお、音声I/F部305は、マイク304から出力されたアナログ音声データをデジタル変換したデータに対して、所定の音声圧縮処理を行って得られるデータを、デジタル音声データとして制御部307に出力してもよい。また、音声I/F部305は、制御部307から出力されたデジタル音声データが所定の音声圧縮処理を行って得られたデータである場合、当該データに対して所定の音声伸張処理を行ってから、デジタル/アナログ変換を行う。   Note that the audio I / F unit 305 outputs data obtained by performing predetermined audio compression processing on the data obtained by digitally converting the analog audio data output from the microphone 304 to the control unit 307 as digital audio data. May be. In addition, when the digital audio data output from the control unit 307 is data obtained by performing predetermined audio compression processing, the audio I / F unit 305 performs predetermined audio expansion processing on the data. To digital / analog conversion.

ディスプレイ部306は、液晶ディスプレイを含み、制御部307から出力されたデジタル映像データを再生し、玄関の映像を表示する。なお、制御部307から出力されたデジタル映像データが所定の動画圧縮処理を行って得られたデータである場合、当該データに対して所定の動画伸張処理を行って、映像表示を行う。   The display unit 306 includes a liquid crystal display, reproduces the digital video data output from the control unit 307, and displays the entrance video. When the digital video data output from the control unit 307 is data obtained by performing a predetermined moving image compression process, the predetermined video expansion process is performed on the data to display a video.

制御部307は、増設モニタ300の各部の制御を行う。また、制御部307は、送信を許可する送信区間、および、受信を許可する受信区間を指示する切り替え制御信号(SW CON)を送信ドライバ310および受信ドライバ311に出力する。   The control unit 307 controls each unit of the extension monitor 300. In addition, the control unit 307 outputs to the transmission driver 310 and the reception driver 311 a switching control signal (SW CON) instructing a transmission period that permits transmission and a reception period that permits reception.

制御部307の第1クロック生成部331は、受信データをサンプリングするためのクロックであって、水晶発振を基準に、受信データのビットレートのn倍に対応する第1周波数(例えば、48MHz(n=10))のクロック(CLK)を生成し、受信データ処理部313に出力する。   The first clock generation unit 331 of the control unit 307 is a clock for sampling received data, and is based on crystal oscillation and has a first frequency (for example, 48 MHz (n = 10)) clock (CLK) is generated and output to the received data processing unit 313.

制御部307のパケット生成部332は、映像付き通話を実現するための上りパケットを生成する。具体的には、パケット生成部332は、音声I/F部305から出力されたデジタル音声データを適宜分割して各タイムスロットのユーザデータフィールドに書き込み、自機(増設モニタ300)に固有の識別子(以下、「自機IDmonitor」という)およびIDmasterを含む制御データを各タイムスロットの制御データフィールドに書き込む。さらに、パケット生成部332は、各タイムスロットに、プリアンブルデータ、シンクパターンを書き込み、上りパケット(送信データ)を生成する。さらに、パケット生成部332は、送信用のイネーブル信号(SSCS)および送信用の第2周波数(例えば、4.8MHz)のクロック(SSCK)を生成する。そして、パケット生成部332は、上りパケットを、送信用のイネーブル信号(SSCS)およびクロック(SSCK)と同期させて、送信データ処理部308に出力する。 The packet generation unit 332 of the control unit 307 generates an uplink packet for realizing a call with video. Specifically, the packet generation unit 332 appropriately divides the digital audio data output from the audio I / F unit 305, writes it in the user data field of each time slot, and an identifier unique to the own device (additional monitor 300) (Hereinafter referred to as “own device ID monitor ”) and the control data including the ID master are written in the control data field of each time slot. Further, the packet generation unit 332 writes preamble data and a sync pattern in each time slot, and generates an uplink packet (transmission data). Further, the packet generation unit 332 generates a transmission enable signal (SSCS) and a transmission second frequency (for example, 4.8 MHz) clock (SSCK). Then, the packet generation unit 332 outputs the uplink packet to the transmission data processing unit 308 in synchronization with the transmission enable signal (SSCS) and the clock (SSCK).

なお、増設モニタ300とドアホン親機200との間でデータが送受されない待機状態では、パケット生成部332は、上りパケットを生成しない。また、待機状態(非同期通信時)において、呼出ボタンが操作される等の所定のイベントが発生すると、パケット生成部332は、プリアンブルデータ、シンクパターン、制御データを書き込んだ上りパケット(割り込み信号)を生成する。なお、非同期通信時の割り込み信号において使用されるプリアンブルとシンクパターンは、同期通信時に使用されるものと同一である。   Note that the packet generation unit 332 does not generate an uplink packet in a standby state in which data is not transmitted / received between the extension monitor 300 and the intercom base unit 200. Further, when a predetermined event such as operation of a call button occurs in a standby state (during asynchronous communication), the packet generation unit 332 transmits an uplink packet (interrupt signal) in which preamble data, sync pattern, and control data are written. Generate. The preamble and sync pattern used in the interrupt signal during asynchronous communication are the same as those used during synchronous communication.

制御部307のデータ再生部333は、受信データ処理部313からイネーブル信号(SSCS)を入力すると、受信データ処理部313から出力された第2周波数のクロック(SSCK)を使用し、受信データ処理部313から出力された下りパケット(復号データ)に含まれるデジタル映像データをディスプレイ部306に出力し、下りパケットに含まれるデジタル音声データを音声I/F部305に出力し、下りパケットに含まれるシンクパターンを接続状態検出部334に出力する。なお、データ再生部333は、初期登録時に、下りパケットに含まれる自機IDmonitorおよびIDmasterを識別子記憶部314に記憶させる。 When the data reproduction unit 333 of the control unit 307 receives the enable signal (SSCS) from the reception data processing unit 313, the data reproduction unit 333 uses the second frequency clock (SSCK) output from the reception data processing unit 313, and receives the reception data processing unit. The digital video data included in the downlink packet (decoded data) output from 313 is output to the display unit 306, the digital audio data included in the downlink packet is output to the audio I / F unit 305, and the sync included in the downlink packet is output. The pattern is output to the connection state detection unit 334. Note that the data reproduction unit 333 causes the identifier storage unit 314 to store its own ID monitor and ID master included in the downlink packet at the time of initial registration.

また、データ再生部333は、待機状態(非同期通信時)において所定のイベントが発生し、下り信号(割り込み信号)を入力した場合、下り信号を復調して下りパケットを取得し、下りパケットに含まれるシンクパターンを接続状態検出部334に出力する。データ再生部333は、接続状態検出部334において正確に割り込み信号を捕捉できたことを確認した後、割り込み信号の制御データを抽出する。制御データが同期要求であれば、増設モニタ300は、ドアホン親機200との同期処理に移行する。   In addition, when a predetermined event occurs in a standby state (during asynchronous communication) and a downlink signal (interrupt signal) is input, the data reproduction unit 333 demodulates the downlink signal to acquire a downlink packet, and is included in the downlink packet The sync pattern is output to the connection state detection unit 334. The data reproducing unit 333 extracts the control data of the interrupt signal after confirming that the connection state detecting unit 334 has correctly captured the interrupt signal. If the control data is a synchronization request, the extension monitor 300 shifts to a synchronization process with the doorphone parent device 200.

制御部307の接続状態検出部334は、正接続チェック用シンクパターンおよび逆接続チェック用シンクパターンを記憶し、データ再生部333から出力された受信データのシンクパターンを、正接続チェック用シンクパターンおよび逆接続チェック用シンクパターンと照合する。接続状態検出部334は、受信データのシンクパターンと正接続チェック用シンクパターンが完全に一致した場合に2線ケーブルが正接続であると判定し、受信データのシンクパターンと逆接続チェック用シンクパターンが完全に一致した場合に2線ケーブルが逆接続であると判定する。そして、接続状態検出部334は、判定結果を示す反転制御信号(INV CON)を、送信データ反転部309および受信データ反転部312に出力する。   The connection state detection unit 334 of the control unit 307 stores the normal connection check sync pattern and the reverse connection check sync pattern, and converts the received data sync pattern output from the data reproduction unit 333 into the normal connection check sync pattern and Match with reverse connection check sync pattern. The connection state detection unit 334 determines that the two-wire cable is correctly connected when the sync pattern of the received data completely matches the sync pattern for the normal connection check, and the sync pattern of the received data and the sync pattern for the reverse connection check If the two completely match, it is determined that the two-wire cable is reversely connected. Then, the connection state detection unit 334 outputs an inversion control signal (INV CON) indicating the determination result to the transmission data inversion unit 309 and the reception data inversion unit 312.

送信データ処理部308は、パケット生成部332からイネーブル信号(SSCS)を入力すると、パケット生成部332から出力された第2周波数のクロック(SSCK)を使用し、パケット生成部332から出力された上りパケットのデータに対して変調処理を行って上り信号を生成し、送信データ反転部309に出力する。   When the transmission data processing unit 308 receives the enable signal (SSCS) from the packet generation unit 332, the transmission data processing unit 308 uses the second frequency clock (SSCK) output from the packet generation unit 332, and the uplink data output from the packet generation unit 332. Modulation processing is performed on the packet data to generate an uplink signal, which is output to the transmission data inverting unit 309.

送信データ反転部309は、接続状態検出部334において2線ケーブルが逆接続であると判定された場合、送信データ処理部308から出力された上り信号を反転させて送信ドライバ310に出力する。一方、送信データ反転部309は、接続状態検出部334において2線ケーブルが正接続であると判定された場合、送信データ処理部308から出力された上り信号をそのまま送信ドライバ310に出力する。   When the connection state detection unit 334 determines that the two-wire cable is reversely connected, the transmission data inversion unit 309 inverts the uplink signal output from the transmission data processing unit 308 and outputs the inverted signal to the transmission driver 310. On the other hand, the transmission data inverting unit 309 outputs the uplink signal output from the transmission data processing unit 308 to the transmission driver 310 as it is when the connection state detection unit 334 determines that the two-wire cable is a normal connection.

送信ドライバ310は、制御部307からの切り替え制御信号(SW CON)によって指示された送信区間において、上り信号を、ケーブル接続部301を介してドアホン親機200に送信する。   The transmission driver 310 transmits an upstream signal to the intercom base unit 200 via the cable connection unit 301 in the transmission section instructed by the switching control signal (SW CON) from the control unit 307.

受信ドライバ311は、ドアホン親機200から送信された下り信号を、ケーブル接続部301を介して受信する。そして、受信ドライバ311は、制御部307からの切り替え制御信号(SW CON)によって指示された受信区間において、下り信号を、受信データ反転部312に出力する。   The reception driver 311 receives the downlink signal transmitted from the doorphone master device 200 via the cable connection unit 301. Then, the reception driver 311 outputs the downlink signal to the reception data inversion unit 312 in the reception period instructed by the switching control signal (SW CON) from the control unit 307.

受信データ反転部312は、接続状態検出部334において2線ケーブルが逆接続であると判定された場合、受信ドライバ311から出力された下り信号を反転させて受信データ処理部313に出力する。一方、受信データ反転部312は、接続状態検出部334において2線ケーブルが正接続であると判定された場合、受信ドライバ311から出力された下り信号をそのまま受信データ処理部313に出力する。   When the connection state detection unit 334 determines that the two-wire cable is reversely connected, the reception data inversion unit 312 inverts the downlink signal output from the reception driver 311 and outputs the inverted signal to the reception data processing unit 313. On the other hand, the reception data reversing unit 312 outputs the downlink signal output from the reception driver 311 to the reception data processing unit 313 as it is when the connection state detection unit 334 determines that the two-wire cable is a normal connection.

受信データ処理部313は、第1クロック生成部331から出力された第1周波数のクロック(CLK)を使用し、受信ドライバ311から出力された下り信号に含まれるプリアンブルデータを用いてドアホン親機200との同期(受信データの各ビットの先頭のタイミング)を検出する。そして、受信データ処理部313は、プリアンブルデータのユニークパターンを検出したタイミングで、データ再生動作を許可するイネーブル信号(SSCS)をデータ再生部333に出力する。   The reception data processing unit 313 uses the first frequency clock (CLK) output from the first clock generation unit 331, and uses the preamble data included in the downlink signal output from the reception driver 311, the intercom base unit 200. (The timing at the beginning of each bit of received data) is detected. Then, the reception data processing unit 313 outputs an enable signal (SSCS) for permitting the data reproduction operation to the data reproduction unit 333 at the timing when the unique pattern of the preamble data is detected.

また、受信データ処理部313は、受信データ反転部312から出力された下り信号(受信データ)を復号し、復号データをデータ再生部333に出力する。また、受信データ処理部313は、第1クロック生成部131から出力された第1周波数のクロック(CLK)を基準に、受信データのビットレートに対応する第2周波数(例えば、4.8MHz)のクロック(SSCK)を生成し、データ再生部333に出力する。   The reception data processing unit 313 decodes the downlink signal (reception data) output from the reception data inversion unit 312 and outputs the decoded data to the data reproduction unit 333. The reception data processing unit 313 uses the first frequency clock (CLK) output from the first clock generation unit 131 as a reference, and the second frequency (eg, 4.8 MHz) clock corresponding to the bit rate of the reception data. (SSCK) is generated and output to the data reproduction unit 333.

識別子記憶部314は、ドアホン親機200から受信した自機IDmonitorおよびIDmasterを記憶する。 The identifier storage unit 314 stores the own device ID monitor and the ID master received from the intercom master device 200.

なお、玄関子機100、ドアホン親機200および増設モニタ300は、図示しないが、例えば、CPU(Central Processing Unit)、制御プログラムを格納したROM(Read Only Memory)等の記憶媒体、RAM(Random Access Memory)等の作業用メモリ、および通信回路をそれぞれ有する。この場合、上記した各部の機能は、CPUが制御プログラムを実行することにより実現される。   Although not shown in the figure, the front door device 100, the doorphone master device 200, and the extension monitor 300 are, for example, a CPU (Central Processing Unit), a storage medium such as a ROM (Read Only Memory) storing a control program, a RAM (Random Access), and the like. And a communication circuit. In this case, the function of each unit described above is realized by the CPU executing the control program.

<変調処理の一例>
次に、送信データ処理部108(208、308)が行う変調処理の一例について図6、図7を用いて説明する。図6、図7では、マンチェスタ符号を採用した場合を示している。
<Example of modulation processing>
Next, an example of modulation processing performed by the transmission data processing unit 108 (208, 308) will be described with reference to FIGS. 6 and 7 show a case where the Manchester code is employed.

送信データ処理部108(208、308)は、周期Tm毎に、パケットの各データ(1ビット)に対応する信号を1つ生成する。マンチェスタ符号を採用した場合、図6に示すように、送信データ処理部108(208、308)は、値「0」のデータ401にLowからHighへの立上りを発生させ、変調信号402を生成する。また、送信データ処理部108(208、308)は、値「1」のデータ411にHighからLowへの立下りを発生させ、変調信号412を生成する。   The transmission data processing unit 108 (208, 308) generates one signal corresponding to each data (1 bit) of the packet for each cycle Tm. When the Manchester code is employed, the transmission data processing unit 108 (208, 308) generates a modulation signal 402 by causing the data 401 having the value “0” to rise from Low to High as shown in FIG. . Also, the transmission data processing unit 108 (208, 308) causes the data 411 having the value “1” to fall from High to Low, and generates a modulated signal 412.

そして、図7に示すように、「0,0,1,・・・,1,0」というデータ列421に対して、送信データ処理部108(208、308)は、各ビットの値に対応して、周期Tm毎に立上りあるいは立下りを有する変調信号422を生成する。   Then, as shown in FIG. 7, for the data string 421 of “0, 0, 1,..., 1, 0”, the transmission data processing unit 108 (208, 308) corresponds to the value of each bit. Thus, a modulation signal 422 having a rising edge or a falling edge is generated every period Tm.

<プリアンブルデータの一例>
次に、本実施の形態において使用されるプリアンブルデータの一例について図8を用いて説明する。
<Example of preamble data>
Next, an example of preamble data used in the present embodiment will be described with reference to FIG.

図8に示すように、本実施の形態において使用されるプリアンブルデータ(4byte=32bit)は、1byte目から3byte目までがすべて「1」のパターンであり、4byte目が、最初から6bitまでが「1」、7bitが「0」、8bit(最後の1bit)が「1」のパターンである。さらに、この場合、プリアンブルデータに続くシンクパターンの最初の1bitが「1」である。この結果、図8に示すプリアンブルデータは、4byte目の6bit目から8bit目にかけての隣接する立下りエッジ間501の期間が他よりも長いユニークパターンとなっている。また、隣接する立下りエッジ間501のH(High)の期間およびL(Low)の期間が他よりも長くなっている。なお、図8は、マンチェスタエンコード後のプリアンブルデータの波形を示している。   As shown in FIG. 8, the preamble data (4 bytes = 32 bits) used in the present embodiment has a pattern of “1” from the 1st byte to the 3rd byte, and the 4th byte from the beginning to the 6th bit is “1”. 1 ”, 7 bit is“ 0 ”, and 8 bit (last 1 bit) is“ 1 ”. Further, in this case, the first 1 bit of the sync pattern following the preamble data is “1”. As a result, the preamble data shown in FIG. 8 has a unique pattern in which the period between adjacent falling edges 501 from the 6th bit to the 8th bit of the 4th byte is longer than the others. Further, the H (High) period and the L (Low) period between adjacent falling edges 501 are longer than others. FIG. 8 shows the waveform of the preamble data after Manchester encoding.

なお、本実施の形態では、プリアンブルデータが、図8に示すものが反転されたものであっても良い。すなわち、本実施の形態において使用されるプリアンブルデータ(4byte=32bit)は、1byte目から3byte目までがすべて「0」のパターンであり、4byte目が、最初から6bitまでが「0」、7bitが「1」、8bit(最後の1bit)が「0」のパターンであってもよい。この場合、プリアンブルデータに続くシンクパターンの最初の1bitが「0」である。   In the present embodiment, the preamble data may be inverted from that shown in FIG. That is, the preamble data (4 bytes = 32 bits) used in the present embodiment is a pattern of “0” from the first byte to the third byte, “0” from the first byte to the first 6 bits, and 7 bits. A pattern in which “1” and 8 bits (last 1 bit) are “0” may be used. In this case, the first 1 bit of the sync pattern following the preamble data is “0”.

<受信データ処理部の内部構成>
次に、ドアホン親機200の受信データ処理部213の内部構成の詳細について、図9を用いて説明する。なお、その説明の際、本実施の形態の同期検出処理について理解を容易にするため、図9と併せて図10を用いる。図10の例において、プリアンブルデータおよびそのユニークパターンは、図8に示したものを用いる。なお、図10では、第1クロック生成部131が48MHzのクロック(CLK)を生成し、第2クロック生成部256が4.8MHzのクロック(SSCK)を生成している場合を示している。
<Internal configuration of received data processing unit>
Next, the details of the internal configuration of the reception data processing unit 213 of the doorphone parent device 200 will be described with reference to FIG. In the description, FIG. 10 is used in conjunction with FIG. 9 in order to facilitate understanding of the synchronization detection processing of the present embodiment. In the example of FIG. 10, the preamble data and its unique pattern are those shown in FIG. FIG. 10 shows a case where the first clock generation unit 131 generates a 48 MHz clock (CLK) and the second clock generation unit 256 generates a 4.8 MHz clock (SSCK).

図9に示すように、受信データ処理部213は、第1のユニークパターン検出部251、第2のユニークパターン検出部252、イネーブル信号生成部253、タイミング調整部254、受信データ復号部255および第2クロック生成部256を有する。   As shown in FIG. 9, the reception data processing unit 213 includes a first unique pattern detection unit 251, a second unique pattern detection unit 252, an enable signal generation unit 253, a timing adjustment unit 254, a reception data decoding unit 255, and a first A two-clock generation unit 256 is included.

受信データ反転部112から出力された受信データは、第1のユニークパターン検出部251、第2のユニークパターン検出部252、タイミング調整部254および受信データ復号部255に入力される。第1クロック生成部131のクロック(CLK)は、第1のユニークパターン検出部251、第2のユニークパターン検出部252、タイミング調整部254、受信データ復号部255および第2クロック生成部256に入力される。   The reception data output from the reception data inversion unit 112 is input to the first unique pattern detection unit 251, the second unique pattern detection unit 252, the timing adjustment unit 254, and the reception data decoding unit 255. The clock (CLK) of the first clock generation unit 131 is input to the first unique pattern detection unit 251, the second unique pattern detection unit 252, the timing adjustment unit 254, the reception data decoding unit 255, and the second clock generation unit 256. Is done.

第1のユニークパターン検出部251および第2のユニークパターン検出部252は、ユニークパターン検出用のクロックの第1規定数(例えば、「18」から「22」)を記憶している。   The first unique pattern detection unit 251 and the second unique pattern detection unit 252 store a first specified number (for example, “18” to “22”) of clocks for detecting a unique pattern.

第1のユニークパターン検出部251は、第1クロック生成部131のクロックで、受信データ反転部112から出力された受信データに含まれるプリアンブルデータをサンプリングし、隣接する立下りエッジ間のクロックを計数する。第1のユニークパターン検出部251は、隣接する立下りエッジ間のクロック数が第1規定数のいずれかに一致した場合にユニークパターンを検出したと判定する。図10の例では、隣接する立下りエッジ間501のクロック数「20」が、第1規定数の中の1つと一致する。そして、第1のユニークパターン検出部251は、所定のタイミングで、その旨を示す信号を、イネーブル信号生成部253に出力する。   The first unique pattern detection unit 251 samples the preamble data included in the reception data output from the reception data inversion unit 112 using the clock of the first clock generation unit 131, and counts the clocks between adjacent falling edges. To do. The first unique pattern detection unit 251 determines that a unique pattern has been detected when the number of clocks between adjacent falling edges matches one of the first specified numbers. In the example of FIG. 10, the clock number “20” between adjacent falling edges 501 matches one of the first specified numbers. Then, the first unique pattern detection unit 251 outputs a signal indicating that to the enable signal generation unit 253 at a predetermined timing.

第2のユニークパターン検出部252は、第1のユニークパターン検出部251と同一タイミングで、受信データ反転部112から出力された受信データに含まれるプリアンブルデータをサンプリングし、隣接する立上りエッジ間のクロックを計数する。第2のユニークパターン検出部252は、隣接する立上りエッジ間のクロック数が第1規定数のいずれかに一致した場合にユニークパターンを検出したと判定し、その旨を示す信号をイネーブル信号生成部253に出力する。   The second unique pattern detection unit 252 samples the preamble data included in the reception data output from the reception data inversion unit 112 at the same timing as the first unique pattern detection unit 251, and clocks between adjacent rising edges Count. The second unique pattern detection unit 252 determines that a unique pattern has been detected when the number of clocks between adjacent rising edges matches one of the first specified numbers, and an enable signal generation unit generates a signal indicating that detection Output to H.253.

イネーブル信号生成部253は、第1のユニークパターン検出部251あるいは第2のユニークパターン検出部252のいずれかから、ユニークパターンを検出した旨を示す信号を入力すると(図10のタイミング510)、データ再生動作を許可するイネーブル信号をタイミング調整部254およびデータ再生部133に出力する(図10の例では、イネーブル信号SSCSを立下げ、L(Low)信号とする(アクティブにする))。   When the enable signal generation unit 253 receives a signal indicating that a unique pattern has been detected from either the first unique pattern detection unit 251 or the second unique pattern detection unit 252 (timing 510 in FIG. 10), data An enable signal for permitting the reproduction operation is output to the timing adjustment unit 254 and the data reproduction unit 133 (in the example of FIG. 10, the enable signal SSCS is lowered to be an L (Low) signal (is activated)).

タイミング調整部254は、内部にタイミング生成用カウンタを有し、イネーブル信号生成部253からイネーブル信号を入力すると、先頭の受信データ(シンクパターン1ビット目)の波形エッジを検出する。なお、先頭の受信データは、プリアンブルデータとシンクパターンの間の波形エッジであるデータ反転のタイミング511から始まる。   The timing adjustment unit 254 has a timing generation counter therein, and when the enable signal is input from the enable signal generation unit 253, detects the waveform edge of the first reception data (the first bit of the sync pattern). The first received data starts from a data inversion timing 511 that is a waveform edge between the preamble data and the sync pattern.

そして、タイミング調整部254は、該波形エッジを検出した後に、第1周波数のクロックで、タイミング生成用カウンタによるカウントを行い、各受信データの波形エッジのタイミングにおけるカウンタ値を観測する。そして、該カウンタ値が正常な値と異なる場合、タイミング調整部254は、カウンタ値を補正し、補正後のカウンタ値を受信データ復号部255および第2クロック生成部256に出力する。これにより、カウンタ値が所定の値となる範囲であるデータ再生ウィンドウの範囲(図10の範囲502)の開始タイミングが調整される。なお、タイミング調整部254が行うカウンタ値の補正処理の詳細については後述する。   Then, after detecting the waveform edge, the timing adjustment unit 254 performs counting by the timing generation counter with the clock of the first frequency, and observes the counter value at the timing of the waveform edge of each received data. When the counter value is different from the normal value, the timing adjustment unit 254 corrects the counter value and outputs the corrected counter value to the reception data decoding unit 255 and the second clock generation unit 256. As a result, the start timing of the data reproduction window range (range 502 in FIG. 10), which is a range in which the counter value becomes a predetermined value, is adjusted. Details of the counter value correction processing performed by the timing adjustment unit 254 will be described later.

受信データ復号部255は、タイミング調整部254からカウンタ値を入力し、データ再生ウィンドウの範囲(図10の範囲502)で、受信データ1ビット分の波形の論理反転をスキャン検出し、当該受信データ1ビット分のマンチェスタエンコードされた波形の論理反転に対応したデータの復号処理を行い、復号データをデータ再生部133に出力する。図10の例では、受信データ復号部255は、範囲502において、波形が「H」から「L」に反転した場合には復号データ「1」を出力し、波形が「L」から「H」に反転した場合には復号データ「0」を出力する。2番目の受信データが受信データ復号部255に入力される時間とほぼ同じ時間に、先頭の受信データの復号データが受信データ復号部255から一定の時間遅延して出力される。また、受信データ復号部255は、受信データの波形が反転した時点のカウンタ値を示す情報をルーティング制御部212に出力する。なお、受信データ復号部255が行う受信データの復号処理の詳細については後述する。   The reception data decoding unit 255 receives the counter value from the timing adjustment unit 254, scans and detects the logical inversion of the waveform for one bit of reception data within the range of the data reproduction window (range 502 in FIG. 10), and receives the reception data. The data corresponding to the logical inversion of the Manchester encoded waveform for one bit is decoded, and the decoded data is output to the data reproducing unit 133. In the example of FIG. 10, the received data decoding unit 255 outputs decoded data “1” when the waveform is inverted from “H” to “L” in the range 502, and the waveform is changed from “L” to “H”. When inverted, the decoded data “0” is output. At approximately the same time as the time when the second received data is input to the received data decoding unit 255, the decoded data of the leading received data is output from the received data decoding unit 255 with a certain delay. The reception data decoding unit 255 outputs information indicating the counter value at the time when the waveform of the reception data is inverted to the routing control unit 212. Details of the received data decoding process performed by the received data decoding unit 255 will be described later.

第2クロック生成部256は、タイミング調整部254からカウンタ値を入力し、2番目の受信データのカウンタの値「0」(図10のタイミング512)で、SSCKの出力(図10では「L」)を開始し、先頭の受信データのカウンタ値「5」で、一定の遅延後にある先頭の復号データ用のSSCKの論理を「L」から「H」に反転し、2番目の受信データのカウンタ値「0」で、先頭の復号データと2番目の復号データの境界のSSCKの論理を「H」から「L」に反転する。その後、第2クロック生成部256は、再生クロックSSCKについて、カウント値「0」での「H」から「L」への論理反転およびカウント値「5」での「L」から「H」への論理反転を繰返す。そして、第2クロック生成部256は、「L」から「H」へ論理反転したタイミングで、第2周波数(例えば、4.8MHz)のクロック(SSCK)をデータ再生部133に出力する。   The second clock generation unit 256 receives the counter value from the timing adjustment unit 254, and outputs SSCK (“L” in FIG. 10) with the counter value “0” (timing 512 in FIG. 10) of the second received data. ), The SSCK logic for the first decoded data after a certain delay is inverted from “L” to “H” with the counter value “5” of the first received data, and the counter of the second received data With the value “0”, the logic of SSCK at the boundary between the first decoded data and the second decoded data is inverted from “H” to “L”. Thereafter, the second clock generation unit 256 performs logical inversion from “H” to “L” at the count value “0” and “L” to “H” at the count value “5” for the recovered clock SSCK. Repeat logic inversion. Then, the second clock generation unit 256 outputs a clock (SSCK) of the second frequency (for example, 4.8 MHz) to the data reproduction unit 133 at the timing of logical inversion from “L” to “H”.

<ユニークパターンの検出の詳細説明>
次に、ユニークパターンの検出について、図11を用いて詳細に説明する。図11(A)は、2線ケーブルが正接続の場合の正常極性のユニークパターンおよびその近傍の受信波形を示し、図11(A)の(1)は、第1のユニークパターン検出部251によって計数されるクロック数を示し、図11(A)の(2)は、第2のユニークパターン検出部252によって計数されるクロック数を示す。図11(B)は、2線ケーブルが逆接続の場合の反転極性のユニークパターンおよびその近傍の受信波形を示し、図11(B)の(1)は、第1のユニークパターン検出部251によって計数されるクロック数を示し、図11(B)の(2)は、第2のユニークパターン検出部252によって計数されるクロック数を示す。
<Detailed description of unique pattern detection>
Next, detection of a unique pattern will be described in detail with reference to FIG. FIG. 11A shows a unique pattern of normal polarity and a received waveform in the vicinity thereof when the two-wire cable is positively connected, and (1) in FIG. 11A is obtained by the first unique pattern detection unit 251. The number of clocks to be counted is shown, and (2) in FIG. 11A shows the number of clocks counted by the second unique pattern detection unit 252. FIG. 11B shows a unique pattern with reversed polarity when the two-wire cable is reversely connected and a received waveform in the vicinity thereof. (1) in FIG. 11B is obtained by the first unique pattern detection unit 251. The number of clocks to be counted is shown, and (2) in FIG. 11B shows the number of clocks counted by the second unique pattern detection unit 252.

2線ケーブルが正接続の場合、図11(A)の(1)に示すように、第1のユニークパターン検出部251において計数されるクロック数は、ユニークパターン1の隣接する立下りエッジ間では「20」となり、第1規定数の中の1つと一致し、他の隣接する立下りエッジ間では「10」となり、第1規定数の中の何れにも一致しない。第1のユニークパターン検出部251がユニークパターン1を検出すると、イネーブル信号生成部253が所定のタイミングZでイネーブル信号(SSCS)を立下げる(アクティブにする)。一方、図11(A)の(2)に示すように、第2のユニークパターン検出部252において計数されるクロック数は、何れの隣接する立上りエッジ間でも「10」または「15」となり、第1規定数の中の何れにも一致しない。このため、第2のユニークパターン検出部252は、ユニークパターンを検出することができない。このように、2線ケーブルが正接続の場合、受信データ処理部213(第1のユニークパターン検出部251および第2のユニークパターン検出部252)において、サンプリングクロック数がユニークであるユニークパターン1が唯一検出される。   When the two-wire cable is positively connected, as shown in (1) of FIG. 11A, the number of clocks counted in the first unique pattern detection unit 251 is between adjacent falling edges of the unique pattern 1. “20”, which matches one of the first specified numbers, and “10” between other adjacent falling edges, and does not match any of the first specified numbers. When the first unique pattern detection unit 251 detects the unique pattern 1, the enable signal generation unit 253 causes the enable signal (SSCS) to fall (activate) at a predetermined timing Z. On the other hand, as shown in (2) of FIG. 11A, the number of clocks counted by the second unique pattern detection unit 252 is “10” or “15” between any adjacent rising edges, It does not match any of the specified numbers. For this reason, the second unique pattern detection unit 252 cannot detect a unique pattern. As described above, when the two-wire cable is positively connected, in the reception data processing unit 213 (the first unique pattern detection unit 251 and the second unique pattern detection unit 252), the unique pattern 1 whose sampling clock number is unique is Only detected.

2線ケーブルが逆接続の場合、図11(B)の(2)に示すように、第2のユニークパターン検出部252において計数されるクロック数は、ユニークパターン2の隣接する立上りエッジ間では「20」となり、第1規定数の中の1つと一致し、他の隣接する立上りエッジ間では「10」となり、第1規定数の中の何れにも一致しない。第2のユニークパターン検出部252がユニークパターン2を検出すると、イネーブル信号生成部253が所定のタイミングYでイネーブル信号(SSCS)を立下げる(アクティブにする)。一方、図11(B)の(1)に示すように、第1のユニークパターン検出部251において計数されるクロック数は、何れの隣接する立下りエッジ間でも「10」または「15」となり、第1規定数の中の何れにも一致しない。このため、第1のユニークパターン検出部251は、ユニークパターンを検出することができない。このように、2線ケーブルが逆接続の場合、受信データ処理部213(第1のユニークパターン検出部251および第2のユニークパターン検出部252)において、サンプリングクロック数がユニークであるユニークパターン2が唯一検出される。   When the two-wire cable is reversely connected, as shown in (2) of FIG. 11B, the number of clocks counted in the second unique pattern detection unit 252 is “between adjacent rising edges of the unique pattern 2”. 20 ”, which matches one of the first specified numbers, and“ 10 ”between other adjacent rising edges, and does not match any of the first specified numbers. When the second unique pattern detection unit 252 detects the unique pattern 2, the enable signal generation unit 253 causes the enable signal (SSCS) to fall (activate) at a predetermined timing Y. On the other hand, as shown in (1) of FIG. 11B, the number of clocks counted in the first unique pattern detection unit 251 is “10” or “15” between any adjacent falling edges, Does not match any of the first specified number. For this reason, the first unique pattern detection unit 251 cannot detect a unique pattern. As described above, when the two-wire cable is reversely connected, the received data processing unit 213 (the first unique pattern detection unit 251 and the second unique pattern detection unit 252) has a unique pattern 2 with a unique sampling clock number. Only detected.

なお、図11(B)の受信波形は、図11(A)のの受信波形が反転されたものであって、正常極性のときに立下りエッジ間のクロック数が第1規定数となるユニークパターンが存在する場合は、必然的に、反転極性のときに立上がりエッジ間のクロック数が第1規定数となるユニークパターンが存在することになる。また、その場合のユニークパターン1とユニークパターン2の配置位置およびタイミングは同一となり、イネーブル信号(SSCS)を立下げる(アクティブにする)タイミングZとYも一致する(図10のタイミング510)。   Note that the reception waveform in FIG. 11B is an inversion of the reception waveform in FIG. 11A, and the number of clocks between falling edges is the first specified number when the polarity is normal. When there is a pattern, there is inevitably a unique pattern in which the number of clocks between rising edges becomes the first specified number when the polarity is inverted. In this case, the arrangement positions and timings of the unique pattern 1 and the unique pattern 2 are the same, and the timings Z and Y at which the enable signal (SSCS) falls (activates) coincide with each other (timing 510 in FIG. 10).

<カウンタ値の補正処理の詳細説明>
次に、タイミング調整部254が行うカウンタ値の補正処理の詳細について図12を用いて説明する。図12(A)は、受信データの開始の波形エッジおよび終了の波形エッジが遅延していない場合を示す。図12(B)は、受信データと第1周波数のサンプリングクロックとの非同期のメタステーブル処理において、受信データの開始の波形エッジが、から1サンプリングクロック分遅延した場合を示す。図12(C)は、受信データと第1周波数のサンプリングクロックとの非同期のメタステーブル処理において、受信データの終了の波形エッジが1サンプリングクロック分遅延した場合を示す。
<Detailed description of counter value correction processing>
Next, details of the counter value correction processing performed by the timing adjustment unit 254 will be described with reference to FIG. FIG. 12A shows a case where the start waveform edge and the end waveform edge of the received data are not delayed. FIG. 12B shows a case where the waveform edge at the start of the received data is delayed by one sampling clock in the asynchronous metastable processing between the received data and the sampling clock of the first frequency. FIG. 12C shows a case where the waveform edge at the end of the received data is delayed by one sampling clock in the asynchronous metastable process between the received data and the sampling clock of the first frequency.

タイミング調整部254は、プリアンブルのユニークパターンを検出した後にイネーブル信号(SSCS)がアクティブとなるタイミング510から、先頭受信データの波形エッジが現れる波形エッジのタイミング511を検出した直後に、第1周波数のクロック(48MHz)でカウントするタイミング生成用カウンタの動作を開始させる。   The timing adjustment unit 254 detects the timing 511 of the first frequency immediately after detecting the waveform edge timing 511 at which the waveform edge of the first received data appears from the timing 510 when the enable signal (SSCS) becomes active after detecting the unique pattern of the preamble. Starts the operation of the timing generation counter that counts with the clock (48 MHz).

図12(A)の場合、受信データの開始/終了の波形エッジに遅延が生じておらず、2番目以降の受信データの開始の波形エッジが、カウンタ値「9」(正常な値)のタイミンとなっている。この場合、タイミング調整部254は、カウンタ値の補正を行わず、カウンタ値「9」でタイミング生成用カウンタをリセットし、カウント値「9」の次の値をカウント値「0」としてカウントを開始する。   In the case of FIG. 12A, there is no delay in the waveform edge at the start / end of the received data, and the waveform edge at the start of the second and subsequent received data is the timing value of the counter value “9” (normal value). It has become. In this case, the timing adjustment unit 254 does not correct the counter value, resets the timing generation counter with the counter value “9”, and starts counting with the value next to the count value “9” as the count value “0”. To do.

図12(B)の場合、受信データの開始の波形エッジが図12(A)の場合より1サンプリングクロック分遅延し、2番目の受信データの開始の波形エッジが、カウンタ値「8」のタイミンとなっている。この場合、タイミング調整部254は、カウンタ値「9」をカウントせずにタイミング生成用カウンタをリセットし、カウント値「8」の次の値をカウント値「0」としてカウントを開始する。これにより、図12(B)の先頭の受信データと2番目の受信データのビット境界の波形エッジ(カウント値「8」)から2番目の受信データのデータ再生ウィンドウの最初のサンプリングポイント(カウント値「1」)までの時間を図12(A)の場合に合わせることができる。   In the case of FIG. 12B, the waveform edge at the start of the reception data is delayed by one sampling clock from the case of FIG. 12A, and the waveform edge at the start of the second reception data is the timing of the counter value “8”. It has become. In this case, the timing adjustment unit 254 resets the timing generation counter without counting the counter value “9”, and starts counting with the next value after the count value “8” as the count value “0”. Thus, the first sampling point (count value) of the data reproduction window of the second received data from the waveform edge (count value “8”) of the bit boundary between the first received data and the second received data in FIG. The time until “1”) can be adjusted to the case of FIG.

図12(C)の場合、受信データの終了の波形エッジが図12(A)の場合より1サンプリングクロック分遅延し、2番目の受信データの開始の波形エッジが、カウンタ値「0」のタイミンとなっている。この場合、タイミング調整部254は、タイミング生成用カウンタをリセットしてカウント値「0」した後、タイミング生成用カウンタを再リセットして次の値をカウント値「0」としてカウントを開始する。これにより、図12(C)の先頭の受信データと2番目の受信データのビット境界の波形エッジ(カウント値:最初の「0」)から2番目の受信データのデータ再生ウィンドウの最初のサンプリングポイント(カウント値「1」)までの時間を図12(A)の場合に合わせることができる。   In the case of FIG. 12C, the waveform edge at the end of the received data is delayed by one sampling clock from the case of FIG. 12A, and the waveform edge at the start of the second received data is the timing value of the counter value “0”. It has become. In this case, the timing adjustment unit 254 resets the timing generation counter to the count value “0”, then resets the timing generation counter again, and starts counting with the next value as the count value “0”. Accordingly, the first sampling point of the data reproduction window of the second received data from the waveform edge (count value: first “0”) of the bit boundary between the first received data and the second received data in FIG. The time until (count value “1”) can be adjusted to the case of FIG.

<受信データの復号処理の詳細説明>
次に、受信データ復号部255が行う受信データの復号処理の詳細について図13、図14、図15を用いて説明する。なお、図13は図12(A)に対応し、図14は図12(B)に対応し、図15は図12(C)に対応する。
<Detailed description of received data decoding processing>
Next, details of the reception data decoding process performed by the reception data decoding unit 255 will be described with reference to FIGS. 13, 14, and 15. 13 corresponds to FIG. 12A, FIG. 14 corresponds to FIG. 12B, and FIG. 15 corresponds to FIG.

図13、図14、図15の何れの場合も、受信データ復号部255は、カウンタ値「1」から「7」までのデータ再生ウィンドウの範囲において、受信データ1ビット分の波形の論理反転をスキャン検出し、当該受信データ1ビット分のマンチェスタエンコードされた波形の論理反転に対応したデータの復号処理を行う。具体的には、受信データ復号部255は、データ再生ウィンドウの範囲において、波形が「H」から「L」に反転した場合には復号データの値を「1」とし、波形が「L」から「H」に反転した場合には復号データの値を「0」とする。   13, 14, and 15, the received data decoding unit 255 performs the logic inversion of the waveform of 1 bit of received data in the range of the data reproduction window from the counter value “1” to “7”. Scan detection is performed, and data corresponding to the logical inversion of the Manchester encoded waveform for 1 bit of the received data is decoded. Specifically, the received data decoding unit 255 sets the value of the decoded data to “1” when the waveform is inverted from “H” to “L” in the range of the data reproduction window, and the waveform starts from “L”. When inverted to “H”, the value of the decoded data is set to “0”.

受信データ復号部255は、各受信データについて、カウンタ値「8」のタイミングで復号データの値を確定し、次のカウンタ値「0」のタイミングにおいて、復号データの出力を一定の遅延後に開始し、さらにその次の受信データのカウンタ値「0」のタイミングが対応する一定の遅延のポイントまで復号データの出力を継続する。   The received data decoding unit 255 determines the value of the decoded data for each received data at the timing of the counter value “8”, and starts outputting decoded data after a certain delay at the timing of the next counter value “0”. Further, the output of the decoded data is continued until the point of a certain delay corresponding to the timing of the counter value “0” of the next received data.

なお、第2クロック生成部256は、各受信データのカウンタ値「5」のタイミングで、各受信データに対応する各復号データ用の第2周波数のクロック(SSCK)を「L」から「H」に変化させる。   The second clock generation unit 256 sets the second frequency clock (SSCK) for each decoded data corresponding to each received data from “L” to “H” at the timing of the counter value “5” of each received data. To change.

図14の場合、先頭の受信データのカウンタ値「8」の次の値が「9」ではなく「0」となるので、先頭の復号データに対する第2周波数のクロック(SSCK)の「H」の期間が、通常のものより1サンプリング期間分だけ短くなる。また同様に先頭の第2周波数のクロック(SSCK)の「H」の出力期間に対応する先頭の復号データの出力期間は、通常のものより1サンプリング期間分だけ短くなる。   In the case of FIG. 14, since the next value of the counter value “8” of the first received data is “0” instead of “9”, the second frequency clock (SSCK) “H” of the second decoded data is changed to “0”. The period is shorter than the normal one by one sampling period. Similarly, the output period of the first decoded data corresponding to the “H” output period of the first second frequency clock (SSCK) is shorter than the normal one by one sampling period.

図15の場合、2番目の受信データのカウンタ値「0」が2回続くので、2番目の復号データに対する2番目の第2周波数のクロック(SSCK)の「L」の期間が通常のものより1サンプリング期間分だけ長くなる。また同様に2番目の第2周波数のクロック(SSCK)の「L」の出力期間に対応する2番目の復号データの出力期間は、通常のものより1サンプリング期間分だけ長くなる。なお、図15において、2番目の受信データのようにカウンタ値「0」が2回続く場合は、受信データの最初のカウンタ値「0」が、規定の時間遅延後に出力開始される隣接する復号データの境界となって、また、同タイミングでクロック(SSCK)が、「H」から「L」に立ち下がる。   In the case of FIG. 15, since the counter value “0” of the second received data continues twice, the “L” period of the second second frequency clock (SSCK) for the second decoded data is longer than the normal one. It becomes longer by one sampling period. Similarly, the output period of the second decoded data corresponding to the “L” output period of the second second frequency clock (SSCK) is longer than the normal one by one sampling period. In FIG. 15, when the counter value “0” continues twice, as in the case of the second received data, the first counter value “0” of the received data is adjacently decoded to start output after a specified time delay. At the same timing, the clock (SSCK) falls from “H” to “L” at a data boundary.

このように、本実施の形態では、先頭の受信データの波形エッジを検出した後に第1周波数のクロックでカウントを行い、各受信データのビット毎の境界に波形エッジが発生する場合において、ビット毎の境界の波形エッジのタイミングにおけるカウンタ値が正常な値と異なる場合にはカウンタ値を補正する。これにより、マンチェスタエンコードされた波形の論理を判定する論理反転のタイミングが常に受信データのカウンタ値「1」から「7」のデータ再生ウィンドウの範囲に入るように、また各受信データのビット毎の境界に波形エッジが発生する場合は、ビットの境界の波形エッジがデータ再生ウィンドウ内に入らないように、データ再生ウィンドウの開始タイミングを調整することができる。   As described above, in this embodiment, after the waveform edge of the first received data is detected, counting is performed with the clock of the first frequency, and when the waveform edge occurs at the bit-by-bit boundary of each received data, When the counter value at the timing of the waveform edge at the boundary is different from the normal value, the counter value is corrected. As a result, the logic inversion timing for judging the logic of the Manchester encoded waveform always falls within the range of the data reproduction window from the counter value “1” to “7” of the received data, and for each bit of each received data. When a waveform edge occurs at the boundary, the start timing of the data reproduction window can be adjusted so that the waveform edge at the bit boundary does not enter the data reproduction window.

なお、玄関子機100の受信データ処理部113および増設モニタ300の受信データ処理部313の内部構成も、図9に示したドアホン親機200の受信データ処理部213の内部構成と同一である。   Note that the internal configuration of the reception data processing unit 113 of the front door device 100 and the reception data processing unit 313 of the extension monitor 300 are also the same as the internal configuration of the reception data processing unit 213 of the doorphone master device 200 shown in FIG.

<同期検出処理のフロー>
次に、ドアホン親機200(受信データ処理部213、接続状態検出部234)における同期検出処理のフローについて図16を用いて説明する。
<Flow of synchronization detection processing>
Next, the flow of the synchronization detection process in the doorphone parent device 200 (reception data processing unit 213, connection state detection unit 234) will be described with reference to FIG.

ステップS610において、受信データ処理部213は、第1のユニークパターン検出部251および第2のユニークパターン検出部252により、第1クロック生成部231のクロックで、受信ドライバ211から出力された復調前の下り信号に含まれるプリアンブルデータをサンプリングし、隣接する立下りエッジ間あるいは隣接する立上りエッジ間の何れか一方である測定区間のクロック数に基づいてプリアンブルデータのユニークパターンのチェックを行う。   In step S610, the reception data processing unit 213 receives the pre-demodulation output from the reception driver 211 by the first unique pattern detection unit 251 and the second unique pattern detection unit 252 using the clock of the first clock generation unit 231. Preamble data included in the downlink signal is sampled, and the unique pattern of the preamble data is checked based on the number of clocks in the measurement section that is either between adjacent falling edges or between adjacent rising edges.

ユニークパターンを検出できた場合(S620:YES)、ビット同期を取ることができたとして、フローをステップS630へ進め、検出できていない場合(S620:NO)、フローをステップS610に戻し、ユニークパターンのチェックを再び行う。   If the unique pattern can be detected (S620: YES), the flow proceeds to step S630 on the assumption that the bit synchronization can be established. If not detected (S620: NO), the flow returns to step S610 to return to the unique pattern. Check again.

ステップS630において、接続状態検出部234は、データ再生部233から出力された受信データのシンクパターンのチェックを行う。   In step S630, the connection state detection unit 234 checks the sync pattern of the reception data output from the data reproduction unit 233.

受信データのシンクパターンが、正接続チェック用シンクパターンと一致した場合(S640:YES)、ステップS650において、接続状態検出部234は、2線ケーブルが正接続であると判定し、同期検出処理を終了する。   When the sync pattern of the received data matches the sync pattern for the normal connection check (S640: YES), in step S650, the connection state detection unit 234 determines that the two-wire cable is a normal connection, and performs a synchronization detection process. finish.

また、受信データのシンクパターンが、逆接続チェック用シンクパターンと一致した場合(S640:NO,S660:YES)、ステップS670において、接続状態検出部234は、2線ケーブルが逆接続であると判定し、同期検出処理を終了する。   When the sync pattern of the received data matches the sync pattern for reverse connection check (S640: NO, S660: YES), in step S670, the connection state detection unit 234 determines that the two-wire cable is reverse connected. Then, the synchronization detection process ends.

また、受信データのシンクパターンが、正接続チェック用シンクパターンおよび逆接続チェック用シンクパターンのどちらにも一致しなかった場合(S640:NO,S660:NO)、ステップS680において、接続状態検出部234は、シンクパターンの検知に失敗したと判定し、フローをステップS610に戻し、ユニークパターンのチェックを再び行う。   If the sync pattern of the received data does not match either the sync pattern for normal connection check or the sync pattern for reverse connection check (S640: NO, S660: NO), in step S680, the connection state detection unit 234 Determines that the sync pattern detection has failed, returns the flow to step S610, and checks the unique pattern again.

<初期登録までのシーケンス>
次に、本実施の形態に係る初期登録までのシーケンスについて図17を用いて説明する。
<Sequence until initial registration>
Next, a sequence until initial registration according to the present embodiment will be described with reference to FIG.

玄関子機100とドアホン親機200が2線ケーブルで接続され、電源がONされた場合(S701)、ドアホン親機200は、玄関子機100に対して、制御データフィールドに登録開始情報が書き込まれた割り込み信号を送信する(S702)。   When the entrance cordless handset 100 and the doorphone master set 200 are connected with a two-wire cable and the power is turned on (S701), the doorphone master set 200 writes registration start information in the control data field for the entrance cordless handset 100. The interrupt signal is transmitted (S702).

玄関子機100は、ドアホン親機200からの割り込み信号を捕捉し、割り込み信号の制御データ(登録開始情報)を確認する(S703)。なお、割り込み信号の捕捉とは、具体的には、第1周波数のクロックを用いて割り込み信号のサンプリングを行い、プリアンブル内のユニークパターンを検出してビット同期を確立し、第2周波数のクロックを用いて割り込み信号を再生してシンクパターンを検出することである。   The front door device 100 captures the interrupt signal from the door phone master device 200 and checks the control data (registration start information) of the interrupt signal (S703). The capture of the interrupt signal specifically means that the interrupt signal is sampled using the first frequency clock, the unique pattern in the preamble is detected, bit synchronization is established, and the second frequency clock is set. It is used to reproduce the interrupt signal and detect the sync pattern.

また、玄関子機100は、割り込み信号のシンクパターンを用いて、2線ケーブルの反転検出(正接続/逆接続の判定)を行い、2線ケーブルが逆接続である場合、送信データ反転部109および受信データ反転部112に対して反転設定を行う(S704)。   Further, the entrance unit 100 detects the inversion of the two-wire cable (judgment of normal connection / reverse connection) using the sink pattern of the interrupt signal, and when the two-wire cable is in the reverse connection, the transmission data inversion unit 109 Then, inversion setting is performed for the reception data inversion unit 112 (S704).

その後、玄関子機100は、制御データフィールドに登録開始情報の受領確認が書き込まれた割り込み信号をドアホン親機200に送信する(S705)。   Thereafter, the front door device 100 transmits an interrupt signal in which the confirmation of receipt of the registration start information is written in the control data field to the intercom base device 200 (S705).

ドアホン親機200は、玄関子機100からの割り込み信号を捕捉し、割り込み信号の制御データ(登録開始情報受領)を確認する(S706)。   The intercom master device 200 captures the interrupt signal from the entrance slave device 100 and confirms the control data (registration start information receipt) of the interrupt signal (S706).

そして、ドアホン親機200は、玄関子機100に割り当てた固有の識別子(端末ID)が制御データフィールドに書き込まれた割り込み信号を送信する(S707)。   Then, the intercom master device 200 transmits an interrupt signal in which the unique identifier (terminal ID) assigned to the front door slave device 100 is written in the control data field (S707).

玄関子機100は、割り込み信号の制御データ(端末ID)を確認し、制御データフィールドに端末IDの受領確認が書き込まれた割り込み信号をドアホン親機200に送信する(S708)。   The front door device 100 confirms the control data (terminal ID) of the interrupt signal, and transmits the interrupt signal in which the receipt confirmation of the terminal ID is written in the control data field to the doorphone master device 200 (S708).

以上の処理により、初期登録が完了する(S709)。   Through the above processing, the initial registration is completed (S709).

<待機状態から通信状態までのシーケンス>
次に、本実施の形態に係る待機状態(非同期通信時)から通信状態までのシーケンスについて図18を用いて説明する。なお、図18では、玄関子機100−1、100−2および増設モニタ300がドアホン親機200と接続している場合のシーケンスを示す。
<Sequence from standby state to communication state>
Next, a sequence from the standby state (during asynchronous communication) to the communication state according to the present embodiment will be described with reference to FIG. FIG. 18 shows a sequence in the case where the front cordless handsets 100-1 and 100-2 and the extension monitor 300 are connected to the doorphone master phone 200.

各機器とドアホン親機200との間でデータが送受されない待機状態(非同期通信時)において(S801)、玄関子機100−2の呼出ボタンが操作された場合(S802)、玄関子機100−2は、制御データフィールドに同期要求が書き込まれた割り込み信号をドアホン親機200に送信することにより同期要求を行う(S803)。   In a standby state (at the time of asynchronous communication) in which data is not transmitted / received between each device and the door phone master unit 200 (S801), when the call button of the entrance slave unit 100-2 is operated (S802), the entrance slave unit 100- 2 performs a synchronization request by transmitting an interrupt signal in which the synchronization request is written in the control data field to the intercom base unit 200 (S803).

ドアホン親機200は、割り込み信号を捕捉し(S804)、割り込み信号に含まれる同期要求を確認する。なお、割り込み信号の捕捉とは、具体的には、第1周波数のクロックを用いて割り込み信号のサンプリングを行い、プリアンブル内のユニークパターンを検出してビット同期を確立し、第2周波数のクロックを用いて割り込み信号を再生してシンクパターンを検出することである。   The intercom master device 200 captures the interrupt signal (S804) and confirms the synchronization request included in the interrupt signal. The capture of the interrupt signal specifically means that the interrupt signal is sampled using the first frequency clock, the unique pattern in the preamble is detected, bit synchronization is established, and the second frequency clock is set. It is used to reproduce the interrupt signal and detect the sync pattern.

ドアホン親機200は、玄関子機100−2からの同期要求を確認すると、各機器と同期通信するためのフレームタイミングを決定し(S805)、各機器に同期スロット信号を送信する(S806)。   Upon confirming the synchronization request from the entrance slave device 100-2, the intercom master device 200 determines the frame timing for synchronous communication with each device (S805), and transmits a synchronization slot signal to each device (S806).

各機器は、同期スロット信号に従って、ドアホン親機200と同期を取る(S807)。これにより、各機器とドアホン親機200との間は、同期状態となる(S808)。   Each device synchronizes with the doorphone master device 200 in accordance with the synchronization slot signal (S807). As a result, the respective devices and the intercom master device 200 are in a synchronized state (S808).

その後、玄関子機100−2は、制御データフィールドに画像接続要求が書き込まれた上りパケットを親機200に送信することにより画像接続要求を行う(S809)。ドアホン親機200は、画像接続要求を確認すると、制御データフィールドに画像接続確認が書き込まれた下りパケットを玄関子機100−2に送信することにより画像接続確認を行う(S810)。以降、玄関子機100−2が上りパケットによりドアホン親機200に画像データを送信し、ドアホン親機200が当該画像データを表示する画像データ通信状態となる(S811)。なお、玄関子機100−2から送信された画像データは、ドアホン親機200から他の機器(玄関子機100−1、増設モニタ300)に同報送信され、増設モニタ300においても、画像データが表示可能になる。   Thereafter, the front door device 100-2 makes an image connection request by transmitting an upstream packet in which the image connection request is written in the control data field to the parent device 200 (S809). When confirming the image connection request, the door phone main unit 200 confirms the image connection by transmitting the downlink packet in which the image connection confirmation is written in the control data field to the front door device 100-2 (S810). Thereafter, the entrance handset 100-2 transmits image data to the doorphone master 200 by an uplink packet, and the doorphone master 200 enters an image data communication state in which the image data is displayed (S811). Note that the image data transmitted from the front door slave 100-2 is broadcast from the doorphone master 200 to other devices (the front door slave 100-1, the extension monitor 300). Can be displayed.

<各装置の動作>
次に、各装置の動作について説明する。
<Operation of each device>
Next, the operation of each device will be described.

<玄関子機の動作>
図19は、玄関子機100の動作の一例を示すフローチャートである。
<Operation of entrance cordless handset>
FIG. 19 is a flowchart illustrating an example of the operation of the front door device 100.

ステップS1010において、制御部107は、呼出ボタンが操作されたか否かを判定する。制御部107は、呼出ボタンが操作された場合(S1010:YES)、フローをステップS1020へ進め、操作されていない場合(S1010:NO)、フローを後述のステップS1100へ進める。   In step S1010, the control unit 107 determines whether the call button has been operated. When the call button is operated (S1010: YES), the control unit 107 advances the flow to step S1020, and when not operated (S1010: NO), advances the flow to step S1100 described later.

ステップS1020において、制御部107は、呼出信号をドアホン親機200へ送信する。   In step S <b> 1020, control unit 107 transmits a calling signal to door phone parent device 200.

ステップS1030において、制御部107は、ドアホン親機200から応答信号を受信したか否かを判定する。制御部107は、応答信号を受信していない場合(S1030:NO)、フローをステップS1020へ戻し、応答信号を受信した場合(S1030:YES)、フローをステップS1040へ進める。なお、制御部107は、呼出信号を所定回数送信しても応答信号を受信しない場合、フローを、後述のステップS1100へ進めてもよい。   In step S1030, control unit 107 determines whether a response signal has been received from intercom master device 200 or not. When the response signal is not received (S1030: NO), the control unit 107 returns the flow to step S1020, and when the response signal is received (S1030: YES), the control unit 107 advances the flow to step S1040. Note that if the control unit 107 does not receive a response signal even if the call signal is transmitted a predetermined number of times, the control unit 107 may advance the flow to step S1100 described later.

ステップS1040において、制御部107は、マイク104、音声I/F部105、およびカメラ部106を用いて、音声入力および映像撮影を開始する。また、制御部107は、パケット生成部132および送信データ処理部108を用いて、送信の対象となる各種データ(制御データ/デジタル音声データ/デジタル映像データ)のパケット化および符号化を開始する。なお、制御部107は、デジタル音声データおよびデジタル映像データの送信レート制御を行ってもよい。   In step S <b> 1040, the control unit 107 starts audio input and video shooting using the microphone 104, the audio I / F unit 105, and the camera unit 106. In addition, the control unit 107 uses the packet generation unit 132 and the transmission data processing unit 108 to start packetizing and encoding various data (control data / digital audio data / digital video data) to be transmitted. Note that the control unit 107 may perform transmission rate control of digital audio data and digital video data.

ステップS1050において、制御部107は、子機側送信区間であるか否かを判定する。制御部107は、送信区間である場合(S1050:YES)、フローをステップS1060へ進め、送信区間ではない場合(S1050:NO)、フローを後述のステップS1070へ進める。   In step S1050, control unit 107 determines whether or not it is a slave unit side transmission section. If it is a transmission interval (S1050: YES), the control unit 107 advances the flow to step S1060. If not (S1050: NO), the control unit 107 advances the flow to step S1070 described later.

ステップS1060において、制御部107は、送信ドライバ110を用いて、符号化により生成された上り信号を、2線ケーブルを介してドアホン親機200へ送信する。なお、制御部107は、送信区間が終了したとき、上り信号の送信を停止する。   In step S <b> 1060, control unit 107 uses transmission driver 110 to transmit the upstream signal generated by encoding to door phone parent device 200 via a two-wire cable. In addition, the control part 107 stops transmission of an uplink signal when a transmission area is complete | finished.

ステップS1070において、制御部107は、親機側送信区間であるか否かを判定する。制御部107は、送信区間である場合(S1070:YES)、フローをステップS1080へ進め、送信区間ではない場合(S1070:NO)、フローを後述のステップS1090へ進める。   In step S1070, control unit 107 determines whether or not it is a parent device side transmission section. When it is a transmission section (S1070: YES), the control unit 107 advances the flow to step S1080. When it is not a transmission section (S1070: NO), the control section 107 advances the flow to step S1090 described later.

ステップS1080において、制御部107は、下り信号の受信、各種データ(制御データ/音声データ)の抽出、および音声の出力を開始する。なお、制御部107は、送信区間が終了したとき、下り信号の受信あるいは各種データの抽出を停止する。   In step S1080, the control unit 107 starts receiving a downlink signal, extracting various data (control data / audio data), and outputting audio. Note that the control unit 107 stops receiving a downlink signal or extracting various data when the transmission period ends.

ステップS1090において、制御部107は、玄関子機100とドアホン親機200との間の通話が終了したか否かを判定する。例えば、制御部107は、ドアホン親機200で通話終了の操作が行われたことを示す信号をドアホン親機200から受信したとき、通話が終了したと判定する。制御部107は、通話が終了していない場合(S1090:NO)、フローをステップS1050へ戻し、通話が終了した場合(S1090:YES)、フローをステップS1100へ進める。   In step S <b> 1090, control unit 107 determines whether or not the call between entrance slave device 100 and doorphone master device 200 has ended. For example, the control unit 107 determines that the call has ended when it receives a signal indicating that a call end operation has been performed on the doorphone base unit 200 from the doorphone base unit 200. If the call has not ended (S1090: NO), control unit 107 returns the flow to step S1050. If the call has ended (S1090: YES), control proceeds to step S1100.

ステップS1100において、制御部107は、ドアホン機能に関する処理の終了を指示されたかを判定する。例えば、制御部107は、ドアホン親機200でドアホン機能の停止の操作が行われたことを示す信号をドアホン親機200から受信したとき、上記処理の終了を指示されたと判定する。制御部107は、上記処理の終了を指示されていない場合(S1100:NO)、フローをステップS1010へ戻し、上記処理の終了を指示された場合(S1100:YES)、一連の処理を終了する。   In step S1100, control unit 107 determines whether or not an instruction to end processing related to the door phone function has been given. For example, when the control unit 107 receives a signal indicating that the operation of stopping the door phone function has been performed on the doorphone master unit 200 from the doorphone master unit 200, the control unit 107 determines that the end of the process has been instructed. If the end of the process is not instructed (S1100: NO), the control unit 107 returns the flow to step S1010, and if instructed to end the process (S1100: YES), ends the series of processes.

<ドアホン親機の動作>
図20は、ドアホン親機200の動作の一例を示すフローチャートである。
<Operation of doorphone master unit>
FIG. 20 is a flowchart showing an example of the operation of the doorphone parent device 200.

ステップS2010において、制御部207は、玄関子機100から呼出信号を受信したか否かを判定する。制御部207は、呼出信号を受信した場合(S2010:YES)、フローをステップS2020へ進め、呼出信号を受信していない場合(S2010:NO)、フローを後述のステップS2090へ進める。   In step S2010, the control unit 207 determines whether a call signal has been received from the front door device 100. When the call signal is received (S2010: YES), the control unit 207 advances the flow to step S2020. When the call signal is not received (S2010: NO), the control unit 207 advances the flow to step S2090 described later.

ステップS2020において、制御部207は、応答信号を玄関子機100へ送信するとともに、音声I/F部205およびスピーカ203を用いて、呼出音を出力する。   In step S2020, the control unit 207 transmits a response signal to the front door device 100 and outputs a ringing tone using the voice I / F unit 205 and the speaker 203.

ステップS2030において、制御部207は、マイク204および音声I/F部205を用いて、音声入力を開始する。また、制御部207は、パケット生成部232および送信データ処理部208を用いて、送信の対象となる各種データ(制御データ/デジタル音声データ)のパケット化および符号化を開始する。なお、制御部207は、デジタル音声データの送信レート制御を行ってもよい。   In step S2030, the control unit 207 starts voice input using the microphone 204 and the voice I / F unit 205. In addition, the control unit 207 uses the packet generation unit 232 and the transmission data processing unit 208 to start packetizing and encoding various data (control data / digital audio data) to be transmitted. Note that the control unit 207 may perform digital audio data transmission rate control.

ステップS2040において、制御部207は、子機側送信区間であるか否かを判定する。制御部207は、送信区間である場合(S2040:YES)、フローをステップS2050へ進め、送信区間ではない場合(S2040:NO)、フローを後述のステップS2060へ進める。   In step S2040, control unit 207 determines whether or not it is a slave unit side transmission section. The control unit 207 advances the flow to step S2050 if it is a transmission interval (S2040: YES), and advances the flow to step S2060 described later if it is not a transmission interval (S2040: NO).

ステップS2050において、制御部207は、上り信号の受信および各種データ(制御データ/音声データ/映像データ)の抽出を開始する。また、制御部207は、音声I/F部205、スピーカ203および液晶ディスプレイを用いて、音声および映像の出力を開始する。なお、制御部207は、送信区間が終了したとき、上り信号の受信あるいは各種データの抽出を停止する。   In step S2050, the control unit 207 starts receiving an upstream signal and extracting various data (control data / audio data / video data). In addition, the control unit 207 uses the audio I / F unit 205, the speaker 203, and the liquid crystal display to start outputting audio and video. Note that the control unit 207 stops receiving the uplink signal or extracting various data when the transmission period ends.

ステップS2060において、制御部207は、親機側送信区間であるか否かを判定する。制御部207は、送信区間である場合(S2060:YES)、フローをステップS2070へ進め、送信区間ではない場合(S2060:NO)、フローを後述のステップS2080へ進める。   In step S2060, the control unit 207 determines whether or not it is a parent device side transmission section. When it is a transmission section (S2060: YES), the control unit 207 advances the flow to step S2070. When it is not a transmission section (S2060: NO), the control section 207 advances the flow to step S2080 described later.

ステップS2070において、制御部207は、送信ドライバ210を用いて、符号化により生成された下り信号を、2線ケーブルを介して玄関子機100へ送信する。但し、制御部207は、上述の通り、応答ボタンが操作されるまでは、デジタル音声データの送信を行わないことが望ましい。なお、制御部207は、送信区間が終了したとき、下り信号の送信を停止する。   In step S2070, the control unit 207 uses the transmission driver 210 to transmit the downlink signal generated by encoding to the front door device 100 via the two-wire cable. However, it is desirable that the control unit 207 does not transmit digital audio data until the response button is operated as described above. Note that the control unit 207 stops the transmission of the downlink signal when the transmission period ends.

ステップS2080において、制御部207は、玄関子機100とドアホン親機200との間の通話が終了したか否かを判定する。例えば、制御部207は、ドアホン親機200で通話終了の操作が行われたこと検知したとき、通話が終了したと判定する。なお、制御部207は、かかる通話終了の操作が行われたとき、その旨を示す信号を玄関子機100に送信することが望ましい。制御部207は、通話が終了していない場合(S2080:NO)、フローをステップS2040へ戻し、通話が終了した場合(S2080:YES)、フローをステップS2090へ進める。   In step S2080, control unit 207 determines whether or not the telephone conversation between entrance slave device 100 and doorphone master device 200 has ended. For example, the control unit 207 determines that the call is ended when it is detected that an operation for ending the call is performed on the intercom base unit 200. In addition, it is desirable that the control unit 207 transmits a signal indicating that to the entrance terminal 100 when an operation for terminating the call is performed. If the call has not ended (S2080: NO), control returns to step S2040. If the call has ended (S2080: YES), control proceeds to step S2090.

ステップS2090において、制御部207は、ドアホン機能に関する処理の終了を指示されたかを判定する。例えば、制御部207は、ドアホン親機200でドアホン機能の停止の操作が行われたことを検知したとき、上記処理の終了を指示されたと判定する。なお、制御部207は、かかるドアホン機能の停止の操作が行われたとき、その旨を示す信号を玄関子機100に送信することが望ましい。制御部207は、上記処理の終了を指示されていない場合(S2090:NO)、フローをステップS2010へ戻し、上記処理の終了を指示された場合(S2090:YES)、一連の処理を終了する。   In step S2090, control unit 207 determines whether an instruction to end the process related to the door phone function has been given. For example, when the control unit 207 detects that the doorphone function stop operation has been performed on the doorphone master unit 200, the control unit 207 determines that the end of the process has been instructed. In addition, when the operation of stopping the door phone function is performed, the control unit 207 desirably transmits a signal indicating that to the front door device 100. If the control unit 207 is not instructed to end the process (S2090: NO), the control unit 207 returns the flow to step S2010, and if instructed to end the process (S2090: YES), ends the series of processes.

<通常動作時のルーティング制御>
次に、本実施の形態に係るドアホン親機200の通常動作時のルーティング制御の具体例について、図21、図22を用いて説明する。図21の例では、ドアホン親機200(制御部207(図21では「親機制御部」と記載))が、いずれかのDRV(送信ドライバ(Tx)と受信ドライバ(Rx)のセット)1〜5を介して5個の機器(玄関子機100、増設モニタ300、他のドアホンシステムの親機)と接続している場合を示している。この場合、7種類の設定パターン(P1〜P7)が用意される。図22は、ルーティング制御部212の内部構成を示す図である。図22に示すように、ルーティング制御部212は、内部に、切替スイッチ2121、OR回路2122およびデューティ比補正部2123を有する。
<Routing control during normal operation>
Next, a specific example of the routing control during the normal operation of door phone parent device 200 according to the present embodiment will be described with reference to FIGS. 21 and 22. In the example of FIG. 21, the door phone master unit 200 (control unit 207 (described as “master unit control unit” in FIG. 21)) is one of the DRVs (set of transmission driver (Tx) and reception driver (Rx)) 1 ˜5, a case where five devices (the entrance slave device 100, the extension monitor 300, and the parent device of another door phone system) are connected is shown. In this case, seven types of setting patterns (P1 to P7) are prepared. FIG. 22 is a diagram illustrating an internal configuration of the routing control unit 212. As illustrated in FIG. 22, the routing control unit 212 includes a changeover switch 2121, an OR circuit 2122, and a duty ratio correction unit 2123 inside.

設定パターンP1は、ドアホン親機200がいずれの機器ともデータの送受を行っていない待機状態におけるルーティング(通信ルートの有効/無効)を示す。設定パターンP1では、ドアホン親機200は、受信モード(送信を行わず、受信のみを行うモード)となり、制御部207は、図21に示すように受信モードであるため、SPI-RWの制御により、切替スイッチ2121の端子T3をT2に接続し、各機器からのデータ受信が可能となるように各DRVの受信ドライバ(Rx)を有効にし、各接続機器からの割り込みを待っている状態となる。なお、設定パターンP1で、各接続機器からの割り込みを待っている状態において、すべてのDRVの受信ドライバ(Rx)の出力は「L」とする。   The setting pattern P1 indicates routing (valid / invalid of communication route) in a standby state in which the intercom base unit 200 is not transmitting / receiving data to / from any device. In the setting pattern P1, the intercom base unit 200 is in a reception mode (a mode in which only transmission is performed without transmission), and the control unit 207 is in the reception mode as shown in FIG. The terminal T3 of the changeover switch 2121 is connected to T2, the reception driver (Rx) of each DRV is enabled so that data reception from each device is possible, and an interrupt from each connected device is awaited. . In the setting pattern P1, in the state of waiting for an interrupt from each connected device, the outputs of all DRV reception drivers (Rx) are set to “L”.

待機状態において、いずれかの機器から非同期の割り込み信号を受信した場合、ドアホン親機200は、当該割り込み信号を送信した機器との間で同期を確立する。例えば、ドアホン親機200は、DRV1から割り込み信号を受信した場合、DRV1と接続する機器と同期を確立し、データの送受を行う(P2(送信時)またはP3(受信時)に移行する)。   When an asynchronous interrupt signal is received from any device in the standby state, door phone parent device 200 establishes synchronization with the device that transmitted the interrupt signal. For example, when receiving an interrupt signal from DRV1, door phone parent device 200 establishes synchronization with a device connected to DRV1, and transmits and receives data (shifts to P2 (during transmission) or P3 (during reception)).

設定パターンP2は、ドアホン親機200が全ての機器に対してデータを送信する一斉送信時(Broadcast)におけるルーティングを示す。設定パターンP2では、ドアホン親機200は、送信モード(受信を行わず、送信のみを行うモード)となり、制御部207は、切替スイッチ2121の端子T3を端子T1と接続させ、各機器へのデータ送信が可能となるように各DRVの送信ドライバ(Tx)を有効にする。このとき、いずれかの機器からドアホン親機200にデータが送信されても、各DRVにおいて受信できず、親機200において当該データは破棄される。なお、設定パターンP2では、ドアホン親機200が、接続中のすべての機器に対してデータ送信を行うが、下りパケットの制御データフィールドには通信相手の機器の識別子のみが記載されているため、他の機器は、データを受信しても破棄する。なお、設定パターンP2で、すべてのDRVの受信ドライバ(Rx)の出力は「L」とする。   The setting pattern P2 indicates routing at the time of simultaneous transmission (Broadcast) in which the doorphone parent device 200 transmits data to all devices. In the setting pattern P2, the door phone base unit 200 is in a transmission mode (a mode in which only transmission is performed without reception), and the control unit 207 connects the terminal T3 of the changeover switch 2121 to the terminal T1, and transmits data to each device. The transmission driver (Tx) of each DRV is enabled so that transmission is possible. At this time, even if data is transmitted from any device to the intercom base unit 200, it cannot be received by each DRV, and the base unit 200 discards the data. In the setting pattern P2, the intercom base unit 200 transmits data to all connected devices, but only the identifier of the communication partner device is described in the control data field of the downstream packet. Other devices discard data even if they are received. In the setting pattern P2, the outputs of all DRV reception drivers (Rx) are set to “L”.

設定パターンP3からP7は、ドアホン親機200がいずれか1つの機器からデータを受信する個別受信時におけるルーティングを示す。設定パターンP3からP7では、ドアホン親機200は受信モードとなり、制御部207は、切替スイッチ2121の端子T3を端子T2と接続させ、各設定パターンに対応する1つのDRVの受信ドライバ(Rx)を有効にし、他のDRVの送信ドライバ(Tx)を有効にする。これにより、ドアホン親機200は、受信ドライバ(Rx)が選択されたDRVから受信したデータを、ルーティング制御部212において、受信データ処理部213に出力すると同時に、当該データをそのまま、送信ドライバ(Tx)が選択されたすべてのDRVに接続されている他の機器に同報送信することができる。したがって、同報送信する際に、受信データを復号して解析する必要がない。なお、送信ドライバ(Tx)が選択されているすべてのDRVの受信ドライバ(Rx)の出力は「L」とする。   Setting patterns P3 to P7 indicate routing at the time of individual reception in which the intercom master device 200 receives data from any one device. In the setting patterns P3 to P7, the intercom base unit 200 is in the reception mode, and the control unit 207 connects the terminal T3 of the changeover switch 2121 to the terminal T2, and sets one DRV reception driver (Rx) corresponding to each setting pattern. Enable the other DRV transmission driver (Tx). Thereby, the intercom base unit 200 outputs the data received from the DRV for which the reception driver (Rx) is selected, to the reception data processing unit 213 in the routing control unit 212, and at the same time, directly transmits the data to the transmission driver (Tx ) Can be broadcast to other devices connected to all selected DRVs. Therefore, it is not necessary to decode and analyze the received data when broadcasting. Note that the outputs of the reception drivers (Rx) of all DRVs for which the transmission driver (Tx) is selected are “L”.

例えば、ドアホン親機200が、玄関子機100のデータをDRV2から受信する場合(設定パターンP4)、制御部207は、DRV2の受信ドライバ(Rx)を有効とし、他のDRVの送信ドライバ(Tx)を有効にする。この場合、玄関子機100からのデータは、DRV2から受信され、ルーティング制御部212のOR回路2122を通り、復号用として受信データ処理部213へ出力される。さらに、OR回路2122を通ったデータは、デューティ比補正部2123および切替スイッチ2121を経由して、DRV1、3、4、5に送信され、各接続機器に同報送信される。その際、DRV2は、受信ドライバ(Rx)のみが有効であり、送信ドライバ(Tx)が無効であるため、OR回路2122を通ったデータは、DRV2からは同報送信されない。また、この時、他の機器からドアホン親機200にデータが送信されても、DRV1、3、4、5において受信できず、親機200において当該データは破棄される。   For example, when the doorphone master device 200 receives data of the entrance slave device 100 from the DRV 2 (setting pattern P4), the control unit 207 validates the DRV2 reception driver (Rx) and transmits another DRV transmission driver (Tx). ) Is enabled. In this case, the data from the entrance cordless handset 100 is received from the DRV 2, passes through the OR circuit 2122 of the routing control unit 212, and is output to the reception data processing unit 213 for decoding. Further, the data that has passed through the OR circuit 2122 is transmitted to the DRVs 1, 3, 4, and 5 via the duty ratio correction unit 2123 and the changeover switch 2121 and is broadcast to each connected device. At that time, only the reception driver (Rx) is valid for DRV2, and the transmission driver (Tx) is invalid. Therefore, the data passing through the OR circuit 2122 is not broadcast from DRV2. At this time, even if data is transmitted from another device to the intercom base unit 200, it cannot be received by the DRVs 1, 3, 4, 5 and the base unit 200 discards the data.

なお、DRV1を介して他のドアホンシステムの親機にデータを転送する際には、デューティ比補正部2123において、受信データのデューティ比が補正される。   When data is transferred to the master unit of another door phone system via DRV1, the duty ratio of the received data is corrected by the duty ratio correction unit 2123.

<初期登録時のルーティング制御>
次に、本実施の形態に係るドアホン親機200の初期登録時のルーティング制御の具体例について、図22、図23を用いて説明する。図23の例では、ドアホン親機200(制御部207(図23では「親機制御部」と記載))が、いずれかのDRV1〜5を介して5個の機器と接続している場合を示している。この場合、5種類の設定パターン(EP1〜EP5)が用意される。
<Routing control during initial registration>
Next, a specific example of routing control at the time of initial registration of door phone master device 200 according to the present embodiment will be described with reference to FIGS. In the example of FIG. 23, the case where the door phone master unit 200 (the control unit 207 (described as “master unit control unit” in FIG. 23)) is connected to five devices via any one of the DRVs 1 to 5. Show. In this case, five types of setting patterns (EP1 to EP5) are prepared.

設定パターンEP1からEP5は、ドアホン親機200がいずれか1つの機器を登録する初期登録時におけるルーティングを示す。設定パターンEP1からEP5では、ドアホン親機200は送信モードとなり、制御部207は、切替スイッチ2121の端子T3を端子T1と接続させ、登録対象の機器に対応するDRVの送信ドライバ(Tx)を有効にし、他のDRVの受信ドライバ(Rx)を有効にする。これにより、ドアホン親機200は、パケットを送信する区間において、登録対象以外の機器に対してパケットの送信を行わず、登録対象の機器のみにパケットの送信を行うことができる。なお、このとき、他のDRVの受信ドライバ(Rx)が有効になるが、ドアホン親機200が送信の場合は、全ての機器からのパケットの受信を遮断する論理とし、それらのDRVからのパケットの受信を受け付けない(SPI-RWで制御部207は送信を選択する)。なお、各登録対象の機器からドアホン親機200へのパケットの送信は、図21のP3からP7の設定を使用する。この場合、他接続機器への同報送信の機能が働くが、ドアホン親機200のみへの送信であるため、他接続機器はこれを無視する。これにより、ドアホン親機200が、各玄関子機100等の登録対象機器と1対1に通信することができる。なお、送信ドライバ(Tx)が選択されているすべてのDRVの受信ドライバ(Rx)の出力は「L」とする。また、DRVの受信ドライバ(Rx)が選択され、各接続機器からの割り込みを待っている状態においては、受信ドライバ(Rx)の出力は「L」とする。   The setting patterns EP1 to EP5 indicate routing at the time of initial registration in which any one device is registered by the doorphone parent device 200. In the setting patterns EP1 to EP5, the intercom base unit 200 is in the transmission mode, and the control unit 207 connects the terminal T3 of the changeover switch 2121 to the terminal T1, and enables the DRV transmission driver (Tx) corresponding to the registration target device. And enable other DRV reception drivers (Rx). Thereby, intercom master 200 can transmit a packet only to a registration target device without transmitting a packet to a device other than a registration target in a section in which the packet is transmitted. At this time, other DRV reception drivers (Rx) are enabled. However, when the doorphone parent device 200 is transmitting, the logic is to block reception of packets from all devices, and packets from those DRVs are used. (The control unit 207 selects transmission by SPI-RW). Note that the settings from P3 to P7 in FIG. 21 are used for transmission of packets from each registration target device to the intercom base unit 200. In this case, the broadcast transmission function to other connected devices works, but since the transmission is only to the doorphone parent device 200, the other connected devices ignore this. Thereby, door phone main unit 200 can communicate one-to-one with a registration target device such as each front unit 100. Note that the outputs of the reception drivers (Rx) of all DRVs for which the transmission driver (Tx) is selected are “L”. When the DRV reception driver (Rx) is selected and waiting for an interrupt from each connected device, the output of the reception driver (Rx) is “L”.

<デューティ比の補正処理の詳細説明>
デューティ比補正部2123は、データ再生ウィンドウのカウンタ値の中央値を記憶している。そして、デューティ比補正部2123は、入力した受信データの論理判定用の波形エッジ(マンチェスタエンコードされた受信データの論理判定用の立上りのタイミングあるいは立下りのタイミング)のカウンタ値が中央値からずれている場合、中央値に一致するように受信データの波形反転時を調整する。これにより、デューティ比が50%に近づくように補正される。
<Detailed description of duty ratio correction processing>
The duty ratio correction unit 2123 stores the median value of the counter value of the data reproduction window. The duty ratio correction unit 2123 then shifts the counter value of the waveform edge for logic determination of the input received data (rising timing or falling timing for logic determination of Manchester encoded received data) from the median value. If so, adjust the waveform inversion of the received data so that it matches the median. As a result, the duty ratio is corrected so as to approach 50%.

例えば、図24に示すように、カウンタ値が「1」から「7」のデータ再生ウィンドウの中央値は「4」となる。そして、入力した受信データの波形が「H」から「L」に反転するタイミング521のカウンタ値が「2」であった場合(図24(A))、デューティ比補正部2123は、カウンタ値「2」から「4」までの範囲のサンプリングデータ522を「L」から「H」に反転し、入力した受信データの波形が「H」から「L」に反転するタイミング523をカウンタ値「4」に一致させる(図24(B))。   For example, as shown in FIG. 24, the median value of the data reproduction window whose counter value is “1” to “7” is “4”. When the counter value at the timing 521 at which the waveform of the input received data is inverted from “H” to “L” is “2” (FIG. 24A), the duty ratio correction unit 2123 displays the counter value “ The sampling data 522 in the range from “2” to “4” is inverted from “L” to “H”, and the timing 523 at which the waveform of the input received data is inverted from “H” to “L” is the counter value “4”. (FIG. 24B).

同様に、デューティ比補正部2123は、タイミング521のカウンタ値が「1」であった場合、カウンタ値「1」から「4」までの範囲のサンプリングデータ522を反転し、タイミング521のカウンタ値が「3」であった場合、カウンタ値「3」から「4」までの範囲のサンプリングデータ522を反転し、タイミング521のカウンタ値が「5」であった場合、カウンタ値「4」から「5」までの範囲のサンプリングデータ522を反転し、タイミング521のカウンタ値が「6」であった場合、カウンタ値「4」から「6」までの範囲のサンプリングデータ522を反転し、タイミング521のカウンタ値が「7」であった場合、カウンタ値「4」から「7」までの範囲のサンプリングデータ522を反転する。   Similarly, when the counter value at the timing 521 is “1”, the duty ratio correction unit 2123 inverts the sampling data 522 in the range from the counter value “1” to “4”, and the counter value at the timing 521 is When it is “3”, the sampling data 522 in the range from the counter value “3” to “4” is inverted, and when the counter value at the timing 521 is “5”, the counter value “4” to “5” When the sampling data 522 in the range up to "6" is inverted and the counter value at the timing 521 is "6", the sampling data 522 in the range from the counter value "4" to "6" is inverted, and the counter at the timing 521 When the value is “7”, the sampling data 522 in the range from the counter value “4” to “7” is inverted.

なお、タイミング521のカウンタ値が「4」であった場合、デューティ比補正部2123は、入力した受信データをそのまま通過させる。   When the counter value at timing 521 is “4”, the duty ratio correction unit 2123 passes the input received data as it is.

<デューティ比補正処理のフロー>
次に、ドアホン親機200(受信データ復号部255、デューティ比補正部2123)におけるデューティ比補正処理のフローについて図25を用いて説明する。
<Duty ratio correction process flow>
Next, the flow of the duty ratio correction process in the door phone master device 200 (received data decoding unit 255, duty ratio correction unit 2123) will be described with reference to FIG.

ステップS901において、受信データ復号部255は、受信データの復号処理を行う際に、カウンタ値「1」からカウンタ値「7」の中で、受信データの論理判定用の波形エッジのカウンタ値を検知し、該カウンタ値を示す情報をデューティ比補正部2123に出力する。   In step S901, the reception data decoding unit 255 detects the counter value of the waveform edge for logical determination of the reception data from the counter value “1” to the counter value “7” when performing the decoding process of the reception data. Then, information indicating the counter value is output to the duty ratio correction unit 2123.

ステップS902において、デューティ比補正部2123は、受信データ復号部255から出力されたカウンタ値とデータ再生ウィンドウのカウンタ値の中央値とを比較する。   In step S902, the duty ratio correction unit 2123 compares the counter value output from the reception data decoding unit 255 with the median value of the counter value of the data reproduction window.

カウンタ値が中央値からずれている場合(S903:NO)、ステップS904において、デューティ比補正部2123は、入力した受信データの波形反転時を、中央値に一致するように調整することによりデューティ比を補正する。一方、カウンタ値が中央値と一致している場合(S903:YES)、デューティ比補正部2123は、入力した受信データをそのまま通過させる。なお、受信データ復号部255で受信データの波形が反転した時点のカウンタ値を検出してデューティ比補正部2123に出力した受信データのビットと、デューティ比補正部2123にてデューティ比補正を実施する受信データのビットとの間には既知の遅延が発生するが、本実施の形態では、デューティ比の補正を実施する際、デューティ比補正部2123は、既知の遅延が発生する受信データに対して、全く同一の既知の遅延にてカウントを開始する第2のカウンタのカウント値で、それぞれの受信データのビットとそれぞれのカウンタ値を一致させる。なお、同一のカウンタを使用して、既知の遅延分、カウント値をシフトしてそれぞれの受信データとカウント値を対応させても良い。   When the counter value deviates from the median value (S903: NO), in step S904, the duty ratio correction unit 2123 adjusts the waveform inversion time of the input received data so as to match the median value. Correct. On the other hand, when the counter value matches the median value (S903: YES), the duty ratio correction unit 2123 passes the input received data as it is. The reception data decoding unit 255 detects the counter value at the time when the waveform of the reception data is inverted and outputs the received data bit output to the duty ratio correction unit 2123 and the duty ratio correction unit 2123 performs the duty ratio correction. Although a known delay occurs between the received data bits, in the present embodiment, when the duty ratio is corrected, the duty ratio correction unit 2123 applies to the received data in which the known delay occurs. The count value of the second counter, which starts counting with exactly the same known delay, matches the bit of each received data with each counter value. It should be noted that the same counter may be used to shift the count value by a known delay to associate each received data with the count value.

<本実施の形態の効果>
以上のように、本実施の形態では、ドアホン親機200において、接続機器の1つから受信した受信データを、制御部207に出力するとともに、他の機器に同報送信する。同報送信の際、デューティ比補正部2123は、マンチェスタエンコードされた受信データの論理判定用の波形反転時のカウンタ値がデータ再生ウィンドウのカウンタ値の中央値からずれている場合に、論理判定用の波形反転位置を中央値に一致するように調整することにより、デューティ比を補正する。これにより、受信データを転送する際に、転送元のドアホン親機200でデコード前の受信データのビット毎の受信波形のデューティ比のずれを高精度に補正してからデータを転送することができるので、転送先の機器において受信データを正しく復号することができる。
<Effects of the present embodiment>
As described above, in the present embodiment, door phone base unit 200 outputs received data received from one of the connected devices to control unit 207 and broadcasts it to other devices. At the time of broadcast transmission, the duty ratio correction unit 2123 performs logic determination when the counter value at the time of inversion of the waveform for logic determination of the Manchester encoded reception data is shifted from the median value of the counter value of the data reproduction window. The duty ratio is corrected by adjusting the waveform reversal position to match the median value. As a result, when receiving data is transferred, it is possible to transfer the data after correcting the deviation of the duty ratio of the received waveform for each bit of the received data before decoding at the transfer source intercom 200. Therefore, the received data can be correctly decoded in the transfer destination device.

なお、本実施の形態では、受信データの受信波形のデューティ比にずれが生じている場合に、常に、デューティ比を50%に近づけるように補正してデータ転送する場合について説明したが、本発明はこれに限られず、受信データの受信波形のデューティ比が、受信側装置で正常に受信可能な範囲に収まっていれば、デューティ比の補正を行わずにデータを転送しても良い。例えば、送信側装置にて転送するデータのデューティ比が40%から60%までの範囲であれば受信側装置にて正常に受信できる場合、送信側装置は、デューティ比が40%から60%までの範囲のときには補正を行わない。これにより、回路規模を小さくできるので、システムの簡略化を図ることができる。   In the present embodiment, a case has been described in which when the duty ratio of the received waveform of the received data is deviated, the data is always transferred with the duty ratio corrected to approach 50%. However, the present invention is not limited to this, and the data may be transferred without correcting the duty ratio as long as the duty ratio of the received waveform of the received data is within a range that can be normally received by the receiving apparatus. For example, if the transmission side device can receive normally if the duty ratio of the data transferred by the transmission side device is in the range of 40% to 60%, the transmission side device has the duty ratio of 40% to 60%. Correction is not performed in the range of. Thereby, since the circuit scale can be reduced, the system can be simplified.

また、本実施の形態では、マンチェスタエンコードされた受信データの受信波形のデューティ比を補正する場合について説明したが、本発明はこれに限られず、受信データの各ビットの境界に波形エッジが発生する一般的なデジタルデータのデューティ比の補正にも適用できる。例えば、図26に示すように、デジタルデータの波形エッジ531のカウンタ値が「7」であった場合(図26(A))、ドアホン親機200は、カウンタ値「7」から「9」までの範囲のサンプリングデータ532を「L」から「H」に反転し、デジタルデータの波形エッジ531を規定のカウンタ値「9」と一致させる(図26(B))。これにより、一般的なデジタルデータのデューティ比を50%に近づけるように補正することができる。   In this embodiment, the case where the duty ratio of the reception waveform of the Manchester encoded reception data is corrected has been described. However, the present invention is not limited to this, and a waveform edge occurs at the boundary of each bit of the reception data. It can also be applied to correction of the duty ratio of general digital data. For example, as shown in FIG. 26, when the counter value of the waveform edge 531 of the digital data is “7” (FIG. 26A), the doorphone parent device 200 has the counter values “7” to “9”. The sampling data 532 in the range is inverted from “L” to “H”, and the waveform edge 531 of the digital data is made to coincide with the prescribed counter value “9” (FIG. 26B). Thereby, it is possible to correct the duty ratio of general digital data so as to approach 50%.

また、本実施の形態では、マンチェスタエンコードされた受信データにおいて、論理判定用の波形エッジのみを調整する場合について説明したが、本発明はこれに限られず、各ビットの境界の波形エッジも調整しても良い。例えば、図27に示すように、論理判定用の波形エッジ541が「2」であり、各ビットの境界の波形エッジ542が「8」であった場合(図27(A))、ドアホン親機200は、カウンタ値「2」から「4」までの範囲のサンプリングデータ543を「L」から「H」に反転するとともにカウンタ値「8」から「9」までの範囲のサンプリングデータ544を「H」から「L」に反転し、論理判定用の波形エッジ541を第1の規定のカウンタ値「4」に一致するように調整し、かつ、各ビットの境界の波形エッジ542を第2の規定のカウンタ値「9」に一致するように調整しても良い。   In this embodiment, the case where only the waveform edge for logic determination is adjusted in the Manchester encoded reception data has been described. However, the present invention is not limited to this, and the waveform edge at the boundary of each bit is also adjusted. May be. For example, as shown in FIG. 27, when the waveform edge 541 for logic determination is “2” and the waveform edge 542 at the boundary of each bit is “8” (FIG. 27A), the intercom master unit 200 inverts the sampling data 543 in the range from the counter value “2” to “4” from “L” to “H”, and sets the sampling data 544 in the range from the counter value “8” to “9” to “H”. ”To“ L ”, the waveform edge 541 for logic determination is adjusted to match the first specified counter value“ 4 ”, and the waveform edge 542 at the boundary of each bit is adjusted to the second specified value. You may adjust so that it may correspond to counter value "9".

<同期検出処理のバリエーション1>
以下、本実施の形態のバリエーション1について図28を用いて説明する。なお、以下の説明において、プリアンブルデータおよびそのユニークパターンは、図8に示したものであるとする。すなわち、プリアンブルデータは、1byte目から3byte目までがすべて「1」のパターンであり、4byte目が、最初から6bitまでが「1」、7bitが「0」、8bit(最後の1bit)が「1」のパターンである。
<Variation 1 of synchronous detection processing>
Hereinafter, variation 1 of the present embodiment will be described with reference to FIG. In the following description, it is assumed that the preamble data and its unique pattern are those shown in FIG. In other words, the preamble data has a pattern of “1” from the 1st byte to the 3rd byte, the 4th byte is “1” from the first 6 bits, the 7th bit is “0”, and the 8th bit (last 1 bit) is “1”. ] Pattern.

なお、図28に示す受信データ処理部213aにおいて、図9に示した受信データ処理部213と共通する構成部分には、図9と同一符号を付してその説明を省略する。図28に示す受信データ処理部213aは、図9に示した受信データ処理部213と比較して、受信データ反転部261を追加した構成を採る。   In the received data processing unit 213a shown in FIG. 28, the same components as those in the received data processing unit 213 shown in FIG. The reception data processing unit 213a illustrated in FIG. 28 employs a configuration in which a reception data inversion unit 261 is added as compared with the reception data processing unit 213 illustrated in FIG.

第1のユニークパターン検出部251および第2のユニークパターン検出部252は、ユニークパターン検出用のクロックの第1規定数(例えば、「18」から「22」)を記憶している。   The first unique pattern detection unit 251 and the second unique pattern detection unit 252 store a first specified number (for example, “18” to “22”) of clocks for detecting a unique pattern.

第1のユニークパターン検出部251は、第1クロック生成部131のクロックで、受信データ反転部112から出力された受信データに含まれるプリアンブルデータをサンプリングし、測定区間である隣接する立下りエッジ間のクロックを計数する。第1のユニークパターン検出部251は、隣接する立下りエッジ間のクロック数が第1規定数のいずれかに一致した場合にユニークパターンを検出したと判定する。そして、第1のユニークパターン検出部251は、所定のタイミングで、その旨を示す信号を、イネーブル信号生成部253に出力する。   The first unique pattern detection unit 251 samples the preamble data included in the reception data output from the reception data inversion unit 112 with the clock of the first clock generation unit 131, and between adjacent falling edges that are measurement intervals Count the clocks. The first unique pattern detection unit 251 determines that a unique pattern has been detected when the number of clocks between adjacent falling edges matches one of the first specified numbers. Then, the first unique pattern detection unit 251 outputs a signal indicating that to the enable signal generation unit 253 at a predetermined timing.

受信データ反転部261は、受信データ反転部112から出力された受信データを反転し、反転後の受信データを第2のユニークパターン検出部252に出力する。   The reception data inversion unit 261 inverts the reception data output from the reception data inversion unit 112 and outputs the inverted reception data to the second unique pattern detection unit 252.

第2のユニークパターン検出部252は、第1のユニークパターン検出部251と同一タイミングで、受信データ反転部261から出力された受信データに含まれるプリアンブルデータをサンプリングし、隣接する立下りエッジ間のクロックを計数する。第2のユニークパターン検出部252は、隣接する立下りエッジ間のクロック数が第1規定数のいずれかに一致した場合にユニークパターンを検出したと判定し、その旨を示す信号をイネーブル信号生成部253に出力する。   The second unique pattern detection unit 252 samples the preamble data included in the reception data output from the reception data inversion unit 261 at the same timing as the first unique pattern detection unit 251, and between adjacent falling edges Count the clock. The second unique pattern detection unit 252 determines that a unique pattern has been detected when the number of clocks between adjacent falling edges matches one of the first specified numbers, and generates a signal indicating that effect To the unit 253.

ユニークパターンの検出について、図29を用いてさらに詳細に説明する。図29(A)は、2線ケーブルが正接続の場合の正常極性のユニークパターンおよびその近傍の受信波形を示し、図29(A)の(1)は、第1のユニークパターン検出部251によって計数されるクロック数を示し、図29(A)の(2)は、第2のユニークパターン検出部252によって計数されるクロック数を示す。図29(B)は、2線ケーブルが逆接続の場合の反転極性のユニークパターンおよびその近傍の受信波形を示し、図29(B)の(1)は、第1のユニークパターン検出部251によって計数されるクロック数を示し、図29(B)の(2)は、第2のユニークパターン検出部252によって計数されるクロック数を示す。   The unique pattern detection will be described in more detail with reference to FIG. FIG. 29A shows a unique pattern of normal polarity and a received waveform in the vicinity thereof when the two-wire cable is positively connected, and (1) in FIG. 29A is obtained by the first unique pattern detection unit 251. The number of clocks to be counted is shown, and (2) in FIG. 29A shows the number of clocks counted by the second unique pattern detection unit 252. FIG. 29B shows a unique pattern with reversed polarity when the two-wire cable is reversely connected and a received waveform in the vicinity thereof. (1) in FIG. 29B is obtained by the first unique pattern detection unit 251. The number of clocks to be counted is shown, and (2) in FIG. 29B shows the number of clocks counted by the second unique pattern detection unit 252.

2線ケーブルが正接続の場合、図29(A)の(1)に示すように、第1のユニークパターン検出部251において計数されるクロック数は、ユニークパターン1の隣接する立下りエッジ間では「20」となり、第1規定数の中の1つと一致し、他の隣接する立下りエッジ間では「10」となり、第1規定数の中の何れにも一致しない。第1のユニークパターン検出部251がユニークパターン1を検出すると、イネーブル信号生成部253が所定の位置Zでイネーブル信号(SSCS)を立下げる(アクティブにする)。一方、図29(A)の(2)に示すように、第2のユニークパターン検出部252において計数されるクロック数は、何れの隣接する立下りエッジ間でも「10」または「15」となり、第1規定数の中の何れにも一致しない。このため、第2のユニークパターン検出部252は、ユニークパターンを検出することができない。このように、2線ケーブルが正接続の場合、受信データ処理部213a(第1のユニークパターン検出部251および第2のユニークパターン検出部252)において、サンプリングクロック数がユニークであるユニークパターン1が唯一検出される。   When the two-wire cable is positively connected, as shown in (1) of FIG. 29A, the number of clocks counted in the first unique pattern detection unit 251 is between adjacent falling edges of the unique pattern 1. “20”, which matches one of the first specified numbers, and “10” between other adjacent falling edges, and does not match any of the first specified numbers. When the first unique pattern detection unit 251 detects the unique pattern 1, the enable signal generation unit 253 causes the enable signal (SSCS) to fall (activate) at a predetermined position Z. On the other hand, as shown in (2) of FIG. 29A, the number of clocks counted in the second unique pattern detection unit 252 is “10” or “15” between any adjacent falling edges, Does not match any of the first specified number. For this reason, the second unique pattern detection unit 252 cannot detect a unique pattern. In this way, when the two-wire cable is positively connected, in the reception data processing unit 213a (the first unique pattern detection unit 251 and the second unique pattern detection unit 252), the unique pattern 1 whose sampling clock number is unique is Only detected.

2線ケーブルが逆接続の場合、図29(B)の(2)に示すように、第2のユニークパターン検出部252において計数されるクロック数は、ユニークパターン2の隣接する立下りエッジ間では「20」となり、第1規定数の中の1つと一致し、他の隣接する立下りエッジ間では「10」となり、第1規定数の中の何れにも一致しない。第2のユニークパターン検出部252がユニークパターン2を検出すると、イネーブル信号生成部253が所定の位置Yでイネーブル信号(SSCS)を立下げる(アクティブにする)。一方、図29(B)の(1)に示すように、第1のユニークパターン検出部251において計数されるクロック数は、何れの隣接する立下りエッジ間でも「10」または「15」となり、第1規定数の中の何れにも一致しない。このため、第1のユニークパターン検出部251は、ユニークパターンを検出することができない。このように、2線ケーブルが逆接続の場合、受信データ処理部213a(第1のユニークパターン検出部251および第2のユニークパターン検出部252)において、サンプリングクロック数がユニークであるユニークパターン2が唯一検出される。   When the two-wire cable is reversely connected, the number of clocks counted in the second unique pattern detection unit 252 is between adjacent falling edges of the unique pattern 2 as shown in (2) of FIG. “20”, which matches one of the first specified numbers, and “10” between other adjacent falling edges, and does not match any of the first specified numbers. When the second unique pattern detection unit 252 detects the unique pattern 2, the enable signal generation unit 253 causes the enable signal (SSCS) to fall (activate) at a predetermined position Y. On the other hand, as shown in (1) of FIG. 29B, the number of clocks counted in the first unique pattern detection unit 251 is “10” or “15” between any adjacent falling edges, Does not match any of the first specified number. For this reason, the first unique pattern detection unit 251 cannot detect a unique pattern. As described above, when the two-wire cable is reversely connected, the received data processing unit 213a (the first unique pattern detection unit 251 and the second unique pattern detection unit 252) has a unique pattern 2 with a unique sampling clock number. Only detected.

なお、図29(B)の(2)の受信波形は、図29(A)の(1)のものと同一であって、正常極性のときに立下りエッジ間のクロック数が第1規定数となるユニークパターンが存在する場合は、必然的に、反転極性のときに立下りエッジ間のクロック数が第1規定数となるユニークパターンが存在することになる。また、その場合のユニークパターン1とユニークパターン2の配置位置およびタイミングは同一となり、イネーブル信号(SSCS)を立下げる(アクティブにする)位置ZとYのタイミングも一致する。   Note that the received waveform in (2) in FIG. 29B is the same as that in (1) in FIG. 29A, and the number of clocks between falling edges is the first specified number when the polarity is normal. When there is a unique pattern, there is inevitably a unique pattern in which the number of clocks between falling edges is the first specified number when the polarity is inverted. In this case, the arrangement positions and timings of the unique pattern 1 and the unique pattern 2 are the same, and the timings of the positions Z and Y at which the enable signal (SSCS) falls (activates) coincide.

なお、受信データの隣接する立上りエッジ間を測定区間としても同様の効果を得ることができる。この場合のユニークパターンの検出について、図30を用いて説明する。図30(A)は、2線ケーブルが正接続の場合の正常極性のユニークパターンおよびその近傍の受信波形を示し、図30(A)の(1)は、第1のユニークパターン検出部251によって計数されるクロック数を示し、図30(A)の(2)は、第2のユニークパターン検出部252によって計数されるクロック数を示す。図30(B)は、2線ケーブルが逆接続の場合の反転極性のユニークパターンおよびその近傍の受信波形を示し、図30(B)の(1)は、第1のユニークパターン検出部251によって計数されるクロック数を示し、図30(B)の(2)は、第2のユニークパターン検出部252によって計数されるクロック数を示す。   Note that the same effect can be obtained even if the interval between adjacent rising edges of the received data is set as a measurement interval. Detection of the unique pattern in this case will be described with reference to FIG. FIG. 30A shows a unique pattern of normal polarity and a received waveform in the vicinity thereof when the two-wire cable is positively connected, and (1) in FIG. 30A is obtained by the first unique pattern detection unit 251. The number of clocks to be counted is shown. (2) in FIG. 30A shows the number of clocks counted by the second unique pattern detection unit 252. FIG. 30B shows a unique pattern with reversed polarity when the two-wire cable is reversely connected and a received waveform in the vicinity thereof. (1) in FIG. 30B is obtained by the first unique pattern detection unit 251. The number of clocks to be counted is shown, and (2) in FIG. 30B shows the number of clocks counted by the second unique pattern detection unit 252.

2線ケーブルが正接続の場合、図30(A)の(2)に示すように、第2のユニークパターン検出部252において計数されるクロック数は、ユニークパターン1の隣接する立上りエッジ間では「20」となり、第1規定数の中の1つと一致し、他の隣接する立上りエッジ間では「10」となり、第1規定数の中の何れにも一致しない。第2のユニークパターン検出部252がユニークパターン1を検出すると、イネーブル信号生成部253が所定の位置Yでイネーブル信号(SSCS)を立下げる(アクティブにする)。一方、図30(A)の(1)に示すように、第1のユニークパターン検出部251において計数されるクロック数は、何れの隣接する立上りエッジ間でも「10」または「15」となり、第1規定数の中の何れにも一致しない。このため、第1のユニークパターン検出部251は、ユニークパターンを検出することができない。このように、2線ケーブルが正接続の場合、受信データ処理部213a(第1のユニークパターン検出部251および第2のユニークパターン検出部252)において、サンプリングクロック数がユニークであるユニークパターン1が唯一検出される。   When the two-wire cable is positively connected, as shown in (2) of FIG. 30A, the number of clocks counted in the second unique pattern detection unit 252 is “between adjacent rising edges of the unique pattern 1”. 20 ”, which matches one of the first specified numbers, and“ 10 ”between other adjacent rising edges, and does not match any of the first specified numbers. When the second unique pattern detection unit 252 detects the unique pattern 1, the enable signal generation unit 253 causes the enable signal (SSCS) to fall (activate) at a predetermined position Y. On the other hand, as shown in (1) of FIG. 30A, the number of clocks counted by the first unique pattern detection unit 251 is “10” or “15” between any adjacent rising edges, It does not match any of the specified numbers. For this reason, the first unique pattern detection unit 251 cannot detect a unique pattern. In this way, when the two-wire cable is positively connected, in the reception data processing unit 213a (the first unique pattern detection unit 251 and the second unique pattern detection unit 252), the unique pattern 1 whose sampling clock number is unique is Only detected.

2線ケーブルが逆接続の場合、図30(B)の(1)に示すように、第1のユニークパターン検出部251において計数されるクロック数は、ユニークパターン2の隣接する立上りエッジ間では「20」となり、第1規定数の中の1つと一致し、他の隣接する立上りエッジ間では「10」となり、第1規定数の中の何れにも一致しない。第1のユニークパターン検出部251がユニークパターン2を検出すると、イネーブル信号生成部253が所定の位置Zでイネーブル信号(SSCS)を立下げる(アクティブにする)。一方、図30(B)の(2)に示すように、第2のユニークパターン検出部252において計数されるクロック数は、何れの隣接する立上りエッジ間でも「10」または「15」となり、第1規定数の中の何れにも一致しない。このため、第2のユニークパターン検出部252は、ユニークパターンを検出することができない。このように、2線ケーブルが逆接続の場合、受信データ処理部213a(第1のユニークパターン検出部251および第2のユニークパターン検出部252)において、サンプリングクロック数がユニークであるユニークパターン2が唯一検出される。   When the two-wire cable is reversely connected, as shown in (1) of FIG. 30B, the number of clocks counted in the first unique pattern detection unit 251 is “between adjacent rising edges of the unique pattern 2”. 20 ”, which matches one of the first specified numbers, and“ 10 ”between other adjacent rising edges, and does not match any of the first specified numbers. When the first unique pattern detection unit 251 detects the unique pattern 2, the enable signal generation unit 253 causes the enable signal (SSCS) to fall (activate) at a predetermined position Z. On the other hand, as shown in (2) of FIG. 30B, the number of clocks counted in the second unique pattern detection unit 252 is “10” or “15” between any adjacent rising edges, It does not match any of the specified numbers. For this reason, the second unique pattern detection unit 252 cannot detect a unique pattern. As described above, when the two-wire cable is reversely connected, the received data processing unit 213a (the first unique pattern detection unit 251 and the second unique pattern detection unit 252) has a unique pattern 2 with a unique sampling clock number. Only detected.

なお、図30(B)の(1)の受信波形は、図30(A)の(2)のものと同一であって、正常極性のときに立上りエッジ間のクロック数が第1規定数となるユニークパターンが存在する場合は、必然的に、反転極性のときに立上りエッジ間のクロック数が第1規定数となるユニークパターンが存在することになる。また、その場合のユニークパターン1とユニークパターン2の配置位置およびタイミングは同一となり、イネーブル信号(SSCS)を立下げる(アクティブにする)位置ZとYのタイミングも一致する。   The received waveform in (1) of FIG. 30B is the same as that in (2) of FIG. 30A, and the number of clocks between rising edges is the first specified number when the polarity is normal. When there is a unique pattern, there is inevitably a unique pattern in which the number of clocks between rising edges is the first specified number when the polarity is inverted. In this case, the arrangement positions and timings of the unique pattern 1 and the unique pattern 2 are the same, and the timings of the positions Z and Y at which the enable signal (SSCS) falls (activates) coincide.

<同期検出処理のバリエーション2>
以下、本実施の形態のバリエーション2について図31を用いて説明する。なお、以下の説明において、プリアンブルデータおよびそのユニークパターンは、図8に示したものであるとする。すなわち、プリアンブルデータは、1byte目から3byte目までがすべて「1」のパターンであり、4byte目が、最初から6bitまでが「1」、7bitが「0」、8bit(最後の1bit)が「1」のパターンである。
<Variation 2 of synchronization detection processing>
Hereinafter, Variation 2 of the present embodiment will be described with reference to FIG. In the following description, it is assumed that the preamble data and its unique pattern are those shown in FIG. In other words, the preamble data has a pattern of “1” from the 1st byte to the 3rd byte, the 4th byte is “1” from the first 6 bits, the 7th bit is “0”, and the 8th bit (last 1 bit) is “1”. ] Pattern.

なお、図31に示す受信データ処理部213bにおいて、図9に示した受信データ処理部213と共通する構成部分には、図9と同一符号を付してその説明を省略する。図31に示す受信データ処理部213bは、図9に示した受信データ処理部213と比較して、繰り返しパターン数検出部271を追加した構成を採る。   In the received data processing unit 213b shown in FIG. 31, the same components as those in the received data processing unit 213 shown in FIG. The reception data processing unit 213b illustrated in FIG. 31 employs a configuration in which a repeated pattern number detection unit 271 is added as compared with the reception data processing unit 213 illustrated in FIG.

繰り返しパターン数検出部271は、ユニークパターン以外の隣接する立下りエッジ間(あるいは、隣接する立上りエッジ間)検出用のクロックの第2規定数(例えば、「8」から「12」)、および、繰り返しパターン検出用の第3規定数(例えば、「16」)を記憶している。繰り返しパターン数検出部271は、第1のカウンタにより、プリアンブル波形の隣接する立下りエッジ間(あるいは、隣接する立上りエッジ間)のクロックを計数し、当該クロック数が第2規定数のいずれかに一致した場合に、第2のカウンタをカウントアップさせる。そして、繰り返しパターン数検出部271は、第2のカウンタのカウント値が第3規定数に達した場合に、第1のユニークパターン検出部251および第2のユニークパターン検出部252に対して動作開始を指示するトリガ信号を出力する。   The repetitive pattern number detection unit 271 includes a second specified number (for example, “8” to “12”) of clocks for detecting between adjacent falling edges other than the unique pattern (or between adjacent rising edges), and A third specified number (for example, “16”) for repetitive pattern detection is stored. The repetitive pattern number detection unit 271 uses the first counter to count clocks between adjacent falling edges of the preamble waveform (or between adjacent rising edges), and the number of clocks is set to one of the second specified numbers. If they match, the second counter is counted up. Then, when the count value of the second counter reaches the third specified number, the repeated pattern number detection unit 271 starts operation with respect to the first unique pattern detection unit 251 and the second unique pattern detection unit 252. A trigger signal is output to indicate

第1のユニークパターン検出部251および第2のユニークパターン検出部252は、繰り返しパターン数検出部271からトリガ信号を入力してから動作を開始する。   The first unique pattern detection unit 251 and the second unique pattern detection unit 252 start to operate after inputting a trigger signal from the repeated pattern number detection unit 271.

<同期検出処理のバリエーション2のフロー>
次に、同期検出処理のバリエーション2のフローについて図32を用いて説明する。なお、図32に示すフローにおいて、図16に示したフローと共通するステップには、図16と同一符号を付してその説明を省略する。図32に示すフローは、図16に示したフローのステップS610の前に、ステップS601、S602を追加した構成を採る。
<Flow of variation 2 of synchronous detection processing>
Next, a flow of variation 2 of the synchronization detection process will be described with reference to FIG. In the flow shown in FIG. 32, the steps common to the flow shown in FIG. 16 are denoted by the same reference numerals as those in FIG. The flow shown in FIG. 32 adopts a configuration in which steps S601 and S602 are added before step S610 of the flow shown in FIG.

ステップS601において、受信データ処理部213bは、繰り返しパターン数検出部271により、第1クロック生成部131のクロックで、受信ドライバ111から出力された復調前の下り信号に含まれるプリアンブルデータをサンプリングし、隣接する立下りエッジ間(あるいは、隣接する立上りエッジ間)のクロック数が第2規定数のいずれかに一致した場合をカウントする。   In step S601, the reception data processing unit 213b samples the preamble data included in the downlink signal before demodulation output from the reception driver 111 with the clock of the first clock generation unit 131 by the repetition pattern number detection unit 271; Counting is performed when the number of clocks between adjacent falling edges (or between adjacent rising edges) matches one of the second specified numbers.

カウント値が第3規定数に達するまでステップS601が繰り返される(S602:NO)。カウント値が第3規定数に達した場合(S602:YES)、ユニークパターン検出を開始するため、フローをステップS610へ進める。   Step S601 is repeated until the count value reaches the third specified number (S602: NO). When the count value reaches the third specified number (S602: YES), the flow proceeds to step S610 in order to start the unique pattern detection.

以上のように、バリエーション2では、プリアンブルの繰り返しパターンが第3規定数に達したことを条件としてユニークパターン検出を開始する。これにより、初期状態での通信ラインのDCバイアスの変動、微分特性による通信ラインの極性変化、ソフトの状態変化による通信待ち状態での通信波形の変化、突発的なノイズによる通信波形の乱れ等で擬似のユニークパターンが偶発的に発生した場合であっても誤同期を防止することができ、非常に精度が高いビット同期を実現できる。   As described above, in variation 2, unique pattern detection is started on the condition that the number of preamble repetition patterns has reached the third specified number. As a result, the communication line DC bias fluctuation in the initial state, the communication line polarity change due to the differential characteristics, the communication waveform change in the communication waiting state due to the software state change, the communication waveform disturbance due to sudden noise, etc. Even when a pseudo-unique pattern is accidentally generated, erroneous synchronization can be prevented, and highly accurate bit synchronization can be realized.

なお、バリエーション2の上記の説明では、受信データ処理部213bに繰り返しパターン数検出部271を追加する場合について説明したが、本発明はこれに限られず、第1のユニークパターン検出部251あるいは第2のユニークパターン検出部252において、上記に説明した繰り返しパターン数検出部271の機能を実現することができる。   In the above description of variation 2, the case where the repeated pattern number detection unit 271 is added to the reception data processing unit 213b has been described. However, the present invention is not limited to this, and the first unique pattern detection unit 251 or the second The unique pattern detection unit 252 can realize the function of the repeated pattern number detection unit 271 described above.

また、バリエーション2では、図33に示す受信データ処理部213cのように、図31に示した受信データ処理部213bに受信データ反転部261を追加することもできる。   In variation 2, a reception data inversion unit 261 can be added to the reception data processing unit 213b shown in FIG. 31 as in the reception data processing unit 213c shown in FIG.

なお、上記の説明では、玄関子機100からの画像データを、親機200、増設モニタ300、他のドアホンシステムの親機等、複数の機器に同報送信し、各機器において画像を同時に表示させる場合について説明したが、本発明はこれに限られず、例えば、緊急メッセージを、玄関子機100の呼出ボタンの長押し等の処理によって発生させ、この緊急メッセージを複数の機器に同報送信し、各機器からアラームを出力させるようにしても良い。なお、本実施の形態では、ドアホン親機200と玄関子機100などの接続機器同士の接続を一例として説明したが、本発明はこれに限られない。例えば、その他の応用機器として、ビジネスホン(内線電話機と制御装置間)、ホームセキュリティ装置(監視カメラ装置と室内モニタ間、各種センサーノードと制御装置間)等の制御装置(通信装置)などであっても、同様の効果が得られる。   In the above description, the image data from the entrance slave device 100 is broadcast to a plurality of devices such as the master device 200, the extension monitor 300, and the master device of another door phone system, and the images are simultaneously displayed on each device. However, the present invention is not limited to this. For example, an emergency message is generated by a process such as long-pressing a call button of the front door 100, and the emergency message is broadcast to a plurality of devices. An alarm may be output from each device. In the present embodiment, the connection between connected devices such as the doorphone master device 200 and the entrance slave device 100 has been described as an example, but the present invention is not limited to this. For example, as other application devices, there are control devices (communication devices) such as business phones (between extension telephones and control devices), home security devices (between surveillance camera devices and indoor monitors, between various sensor nodes and control devices), etc. The same effect can be obtained.

本開示は、カメラ付きの玄関子機とドアホン親機とからなるドアホンシステムに用いるに好適である。   The present disclosure is suitable for use in a door phone system including an entrance child device with a camera and a door phone parent device.

1 ドアホンシステム
100 玄関子機
101、201、301 ケーブル接続部
102、202、302 キー入力部
103、203、303 スピーカ
104、204、304 マイク
105、205、305 音声I/F部
106 カメラ部
107、207、307 制御部
108、208、308 送信データ処理部
109、209、309 送信データ反転部
110、210、310 送信ドライバ
111、211、311 受信ドライバ
112、261、312 受信データ反転部
113、213、213a、213b、213c、313 受信データ処理部
114、214、314 識別子記憶部
131、231、331 第1クロック生成部
132、232、332 パケット生成部
133、233、333 データ再生部
134、234、334 接続状態検出部
200 ドアホン親機
206、306 ディスプレイ部
212 ルーティング制御部
2121 切替スイッチ
2122 OR回路
2123 デューティ比補正部
235 識別子設定部
251 第1のユニークパターン検出部
252 第2のユニークパターン検出部
253 イネーブル信号生成部
254 タイミング調整部
255 受信データ復号部
256 第2クロック生成部
271 繰り返しパターン数検出部
300 増設モニタ
DESCRIPTION OF SYMBOLS 1 Door phone system 100 Entrance unit 101, 201, 301 Cable connection part 102, 202, 302 Key input part 103, 203, 303 Speaker 104, 204, 304 Microphone 105, 205, 305 Audio | voice I / F part 106 Camera part 107, 207, 307 Control unit 108, 208, 308 Transmission data processing unit 109, 209, 309 Transmission data inversion unit 110, 210, 310 Transmission driver 111, 211, 311 Reception driver 112, 261, 312 Reception data inversion unit 113, 213, 213a, 213b, 213c, 313 Received data processing unit 114, 214, 314 Identifier storage unit 131, 231, 331 First clock generation unit 132, 232, 332 Packet generation unit 133, 233, 333 Data reproduction unit 134, 23 334 Connection state detection unit 200 Door phone master unit 206, 306 Display unit 212 Routing control unit 2121 Changeover switch 2122 OR circuit 2123 Duty ratio correction unit 235 Identifier setting unit 251 First unique pattern detection unit 252 Second unique pattern detection unit 253 Enable signal generation unit 254 Timing adjustment unit 255 Received data decoding unit 256 Second clock generation unit 271 Repeat pattern number detection unit 300 Additional monitor

Claims (5)

子機と2線ケーブルを介して接続され、前記子機との間で時分割複信によりパケット信号を送受信するドアホンシステムの親機であって、
受信データのビットレートのn倍(nは1以上)に対応する第1周波数のクロックを出力する第1クロック生成部と、
前記第1周波数のクロックを基準に生成された、前記受信データのビットレートに対応する第2周波数のクロックを出力する第2クロック生成部と、
前記第2周波数のクロックを用いて前記受信データの各ビットを復号して復号データを得ると供に、前記第1周波数のクロックによるカウントの、受信データの波形が反転した時点のカウンタ値を出力する受信データ復号部と、
前記受信データ復号部に入力される前に分岐し、同報用として転送される第2の受信データの各ビットのデューティ比を、前記カウンタ値に基づいて補正するデューティ比補正部と、
前記第2周波数のクロックを用いて前記復号データを再生するデータ再生部と、
を具備する親機。
A door phone system parent device connected to a child device via a two-wire cable and transmitting and receiving packet signals to and from the child device by time division duplexing,
A first clock generator for outputting a clock having a first frequency corresponding to n times (n is 1 or more) the bit rate of received data;
A second clock generation unit configured to output a clock having a second frequency corresponding to a bit rate of the reception data, which is generated based on the clock having the first frequency;
Decode each bit of the received data using the clock of the second frequency to obtain decoded data, and output a counter value when the waveform of the received data is inverted of the count by the clock of the first frequency A received data decoding unit,
A duty ratio correction unit that corrects the duty ratio of each bit of the second reception data that is branched before being input to the reception data decoding unit and transferred for broadcast, based on the counter value;
A data reproducing unit that reproduces the decoded data using a clock of the second frequency;
A master unit equipped with
前記デューティ比補正部は、
マンチェスタエンコードされた前記受信データの論理判定用の波形エッジのタイミングにおけるカウンタ値が規定の値と異なる場合に、論理判定用の波形反転位置を前記規定の値に一致するように調整することにより、デューティ比を補正する、
請求項1に記載の親機。
The duty ratio correction unit
When the counter value at the timing of the waveform edge for logic determination of the received data encoded by Manchester is different from the specified value, by adjusting the waveform inversion position for logic determination to match the specified value, Correct the duty ratio,
The parent device according to claim 1.
前記受信データの各ビットの波形エッジのタイミングにおける第2カウンタ値が正常な値と異なる場合に前記第2カウンタ値を補正することにより、前記第2周波数のクロックの出力タイミングを調整するタイミング調整部を更に具備し、
前記第2クロック生成部は、
前記タイミング調整部で調整された出力タイミングに従って前記第2周波数のクロックを出力する、
請求項1または2に記載の親機。
A timing adjustment unit that adjusts the output timing of the clock of the second frequency by correcting the second counter value when the second counter value at the waveform edge timing of each bit of the received data is different from a normal value. Further comprising
The second clock generator is
Outputting the clock of the second frequency according to the output timing adjusted by the timing adjustment unit;
The master unit according to claim 1 or 2.
前記受信データ復号部は、
マンチェスタエンコードされた前記受信データの1ビットに対応する受信波形の論理反転を、前記第1周波数のクロックのサンプリングで、前記1ビットに対応する受信波形の開始ポイントおよび終了ポイントを除いた前記受信波形の期間の中でスキャンし、前記受信波形の論理反転に対応させて前記受信データを復号する、
請求項1から3のいずれか一項に記載の親機。
The received data decoding unit
The received waveform obtained by performing logical inversion of the received waveform corresponding to 1 bit of the received data encoded by Manchester, except for the start point and the end point of the received waveform corresponding to the 1 bit by sampling the clock of the first frequency. Scanning within the period, and decoding the received data corresponding to the logical inversion of the received waveform,
The parent machine according to any one of claims 1 to 3.
子機と2線ケーブルを介して接続され、前記子機との間で時分割複信によりパケット信号を送受信するドアホンシステムの親機の通信方法であって、
受信データのビットレートのn倍(nは1以上)に対応する第1周波数のクロックを出力し、
前記第1周波数のクロックを基準に生成された、前記受信データのビットレートに対応する第2周波数のクロックを出力し、
前記第2周波数のクロックを用いて前記受信データの各ビットを復号し、
前記第2周波数のクロックを用いて復号されたデータを再生し、
前記第1周波数のクロックによるカウントの、受信データの波形が反転した時点のカウンタ値を出力し、
前記受信データの復号前に前記受信データから分岐し、同報用として転送される第2の受信データの各ビットのデューティ比を、前記カウンタ値に基づいて補正する、
通信方法。
A communication method of a master unit of a door phone system that is connected to a slave unit via a two-wire cable and transmits and receives packet signals to and from the slave unit by time division duplexing,
Output a clock of the first frequency corresponding to n times (n is 1 or more) the bit rate of the received data,
Outputting a second frequency clock corresponding to the bit rate of the received data, generated based on the first frequency clock;
Decoding each bit of the received data using the clock of the second frequency;
Reproducing the decoded data using the second frequency clock,
The counter value at the time when the waveform of the reception data of the count by the clock of the first frequency is inverted is output,
Branching from the received data before decoding the received data and correcting the duty ratio of each bit of the second received data transferred for broadcast based on the counter value;
Communication method.
JP2016096116A 2016-05-12 2016-05-12 Base unit and communication method Active JP6474004B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016096116A JP6474004B2 (en) 2016-05-12 2016-05-12 Base unit and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016096116A JP6474004B2 (en) 2016-05-12 2016-05-12 Base unit and communication method

Publications (2)

Publication Number Publication Date
JP2017204765A JP2017204765A (en) 2017-11-16
JP6474004B2 true JP6474004B2 (en) 2019-02-27

Family

ID=60322897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016096116A Active JP6474004B2 (en) 2016-05-12 2016-05-12 Base unit and communication method

Country Status (1)

Country Link
JP (1) JP6474004B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2893897B2 (en) * 1990-08-30 1999-05-24 松下電器産業株式会社 Serial I / O device
JP3226595B2 (en) * 1992-04-23 2001-11-05 キヤノン株式会社 Recording device and recording circuit unit
JP3358263B2 (en) * 1993-12-22 2002-12-16 松下電工株式会社 Hands-free intercom system
JP3562441B2 (en) * 2000-05-19 2004-09-08 株式会社デンソー Clock synchronization correction method and synchronous clock generation device
JP3478290B2 (en) * 2002-04-10 2003-12-15 三菱電機株式会社 DUTY correction circuit
JP2009267646A (en) * 2008-04-23 2009-11-12 Renesas Technology Corp Duty correction circuit
KR101418046B1 (en) * 2012-12-18 2014-07-10 연세대학교 산학협력단 Apparatus and method for correcting duty cycle, and receiver employing the same
JP5892401B1 (en) * 2015-02-20 2016-03-23 パナソニックIpマネジメント株式会社 Door phone system and communication method

Also Published As

Publication number Publication date
JP2017204765A (en) 2017-11-16

Similar Documents

Publication Publication Date Title
CN106686271B (en) Door phone system and communication method thereof
CN106921851B (en) Door phone system and communication control method
JP5984028B1 (en) Door phone system and communication method thereof
JP6803535B2 (en) Communication device and communication method
JP5979517B1 (en) Slave unit, master unit, monitor and communication method
JP5979523B1 (en) Slave unit, master unit, monitor and communication method
JP6474004B2 (en) Base unit and communication method
JP6531991B2 (en) Slave unit, master unit, monitor and communication method
JP5979522B1 (en) Base unit and communication method
JP5979521B1 (en) Slave unit, monitor and communication method
JP6569867B2 (en) Door phone system, parent device, monitor, and communication method
JP5979519B1 (en) Door phone system and communication method thereof
JP6410159B2 (en) Door phone system and communication method
JP6531992B2 (en) Slave unit, master unit, monitor and communication method
JP5983975B1 (en) Slave unit, master unit, monitor and communication method
JP6226211B1 (en) Door phone system and communication method thereof
JP2007006077A (en) Radio communication equipment
JP5979518B1 (en) Slave unit, master unit, monitor and communication method
JP6485782B2 (en) Door phone system and communication method
JP6300044B2 (en) Door phone system and communication method thereof
JP5979520B1 (en) Slave unit, master unit, monitor and communication method
JP6176507B1 (en) Door phone system and communication method
JP2017092939A (en) Intercom and communication method for the same
JP7223976B2 (en) Door phone system and communication method
JP7281648B2 (en) Door phone system and communication method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181105

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20181105

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20181119

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190118

R151 Written notification of patent or utility model registration

Ref document number: 6474004

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151