JP3706311B2 - Communications system - Google Patents

Communications system Download PDF

Info

Publication number
JP3706311B2
JP3706311B2 JP2001041436A JP2001041436A JP3706311B2 JP 3706311 B2 JP3706311 B2 JP 3706311B2 JP 2001041436 A JP2001041436 A JP 2001041436A JP 2001041436 A JP2001041436 A JP 2001041436A JP 3706311 B2 JP3706311 B2 JP 3706311B2
Authority
JP
Japan
Prior art keywords
adapter
terminal
network control
control device
setting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001041436A
Other languages
Japanese (ja)
Other versions
JP2002247222A (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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2001041436A priority Critical patent/JP3706311B2/en
Publication of JP2002247222A publication Critical patent/JP2002247222A/en
Application granted granted Critical
Publication of JP3706311B2 publication Critical patent/JP3706311B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、ISDN等のデジタル回線を利用して、センター側装置との間でデータ伝送を行う通信システムの端末網制御装置に関する。
【0002】
【従来の技術】
一般に通信システムでは、端末網制御装置(T−NCU)に電話機およびメータが接続され、センター側装置のホストコンピュータとはISDN回線(デジタル回線)等の通信回線で結ばれている。
【0003】
そして、T−NCUより発呼する端末発呼、およびセンター側からセンター網制御装置を介して随時検針するセンター起動の二種類の起動方法がある。センター起動は、通信回線の種類により、アナログ回線の場合はノーリンギング(NR)起動、デジタル回線の場合はナンバーディスプレイ(ND)起動と呼ばれている。 ND起動の場合は、発信者電話番号信号がT−NCUに送られてくるため、その番号によりセンター側装置かどうかの確認をする必要がある。ここで、発信者電話番号信号は、ISDN回線に接続されたターミナルアダプター(TA)においてナンバーディスプレイを使用すると設定することにより、出力されるようになっている。
【0004】
【発明が解決しようとする課題】
TAが発信者電話番号信号を出力するように設定されていても、ユーザーが勝手にリセットしたり、停電によるリセット等によって、設定が解除される場合がある。その場合、TAから発信者電話番号信号が出力されず、センター側装置からの起動は受けられないという問題が生じる。そこで、担当者がユーザー宅まで出向いて、TAを設定し直さなければならなかった。
【0005】
本発明は、上記に鑑み、TAがリセットされた場合でも、センター側装置からTAの再設定が可能な端末網制御装置の提供を目的とする。
【0006】
【課題を解決するための手段】
本発明による課題解決手段は、デジタル回線に接続するために用いられるターミナルアダプターとの通信を行えるようにアダプターを付属させ、これを接続するためのインタフェースを設けたものである。すなわち、ターミナルアダプター(TA)での通信プロトコルと端末網制御装置(T−NCU)での通信プロトコルとは異なるので、アダプターによって両者の間での通信を中継するようにしている。そのため、アダプターは、T−NCU用の通信プロトコルとTA用の通信プロトコルとの変換を行う機能を有する。
【0007】
センター側装置から起動して通信を行うためには、TAから発信者電話番号を通知する設定になっていなければならない。デジタル回線を利用する場合、T−NCUを設置する際にTAを上記のように設定する必要がある。このとき、センター側装置からの指令によってTAの初期設定を行えば、ユーザーに負担がかからず、かつ正確に設定できる。
【0008】
そこで、端末発呼によりセンター側装置との通信を開始して、センター側装置からの設定用データが送られてくると、T−NCU用の通信プロトコルによりデータをアダプターに出力する。アダプターにおいて、T−NCU用の通信プロトコルからTA用の通信プロトコルに変換して、データをTAに出力する。このように、TAの初期設定を簡単かつ確実に行える。なお、TA設定用データは、発信者電話番号通知設定に限らず、TAの他の機能を設定するためのものであってもよい。
【0009】
そして、TAのリセット等によって設定が解除された場合の対処として、TAの設定変更の有無を検出する検出手段と、設定変更があったことをセンター側装置に通報する通報手段を設けておく。この設定変更をセンター側装置に通報することにより、同様にセンター側装置からの指令に基づいて再設定を行ったり、あるいは設定用データを記憶しておいて、このデータを利用して再設定を行うことも可能である。
【0010】
ところで、TAの設定変更によってセンター側装置に通報できない場合があり得るので、最初にセンター側装置から受信した設定用データを記憶しておけば、このデータをアダプターを通じてTAに出力することにより、センター側装置からの指令がなくても、TAの再設定を行える。
【0011】
また、アダプターが接続されていない場合には、アダプターを通じてデータを出力することができない。そこで、アダプターが接続されているか否かを検知する接続検知手段を設け、アダプターが接続されていないことを検知すると、設定用データをPB信号を用いて直接TAに出力して、再設定を行うようにする。
【0012】
【発明の実施の形態】
本発明の通信システムの一実施形態を図1に示す。ホストコンピュータ1、センター網制御装置2からなるセンター側装置とT−NCU3とは、ISDN等のデジタル回線4によって結ばれ、各網制御装置2、3は、デジタル回線4にTA5および回線終端装置(DSU)6あるいはDSU内蔵TA7を介して接続される。T−NCU3には、電話機8およびメータ9、さらにセンサ等の接点機器が接続されている。なお、図中、10はセンター側交換局、11は端末側交換局である。
【0013】
そして、ホストコンピュータ1からの指令により、センター網制御装置2からセンター側交換局10に対し、センター側のDSU内蔵TA7を介してダイヤルを行う。ダイヤルされた相手先番号は、端末側交換局11に伝えられ、交換局11から端末側のDSU6およびTA5を介してT−NCU3に対して呼び出しを行う。この呼び出しに際し、発信者電話番号を伝えるため、TA5はプレリンガー信号を送出する。
【0014】
プレリンガー信号の波形は図2に示すように、極反信号の後、0.5秒周期で現れる。このプレリンガー信号に対して、一次応答としてT−NCU3がループを行う。すると、発信者電話番号信号がTA5から送出されるため、それをT−NCU3が受信する。そして、発信者電話番号がセンター側装置の電話番号と一致するか確認し、センター側装置からの呼び出しでなければ、電話機8に接続し、次に送出されるTA5からの本リンガー信号を電話機8に送ると、電話機8が鳴動する。センター側装置からの呼び出しであるとき、回線4から電話機8を切り離した状態でセンター側装置とデータ伝送を行う。
【0015】
図3にT−NCU3の構成を示す。T−NCU3は、極反検出回路20、ダイヤル送出回路21、PB信号送出回路22、モデム送出回路23、リンガー検知回路24、PB信号受信回路25、モデム受信回路26、切替部27、オフフック検知部28で構成される回線ブロックAと、この回線ブロックAを制御するマイクロコンピュータを有するCPU29と、データを記憶するEEPROM30と、電源部31とからなる。
【0016】
回線ブロックAは、TA5のアナログポートにモジュラーケーブル等の通信ケーブルによって接続され、切替部27にコネクタを介して電話機8が接続される。また、メータ9を接続するためのメータインタフェース32を備えている。
【0017】
そして、T−NCU3には、TA5との通信を中継するためのアダプター33が付属しており、アダプター33を接続するアダプターインタフェース34を備えている。アダプター33は、図4に示すように、T−NCU用インタフェース40と、TA用インタフェース41と、それぞれのインタフェース40、41から受信した信号を相手側の信号形態に変換するCPU42と、電源部43とから構成されている。アダプター33のT−NCU用インタフェース40とアダプターインタフェース34とがモジュラーケーブル等の通信ケーブルを介して接続され、TA用インタフェース41とTA5のシリアルポートとがRS232Cケーブルを介して接続される。
【0018】
すなわち、T−NCU3では、データは電文プロトコルにしたがった電文フォーマットによって取り扱われ、メータ9あるいはセンター側装置と通信を行っており、TA5では上記のプロトコルとは異なったRS232Cプロトコルにしたがったフォーマットによってパソコン等の外部機器と通信を行っている。このように、それぞれの通信プロトコルの相違により、T−NCU3とTA5との間では、データをそのまま伝送することができない。そのため、アダプター33は、両者の通信プロトコルを変換することによってデータの伝送を可能にしている。
【0019】
このアダプター33の具体的な働きを図5のフローチャートに基づいて説明する。まず、T−NCU3を新設したとき、メータインタフェース32に接続された設定器によって、T−NCU3が動作するのに必要な設定用データをセンター側装置からダウンロードするため、センター側装置の電話番号、T−NCU3のID等の最小限の内容を設定する(ステップ1)。次に、T−NCU3は、センター側装置に発呼する(ステップ2)。
【0020】
センター側装置は、T−NCU3のIDであることを確認して、T−NCU3に設定用データを書き込んで行く(ステップ3)。さらに、TA5の設定を行うためのコマンドを送出して、T−NCU3が受信する(ステップ4)。なお、初期設定がされる場合、アダプター33は必ず接続されているものとする。
【0021】
そのコマンドを受信したT−NCU3は、EEPROM30にCPU29を通じて設定コマンドを記憶する(ステップ5)。その後、設定コマンドを電文プロトコルによりアダプターインタフェース34を通じてアダプター33に出力する(ステップ6)。
【0022】
アダプター33は、T−NCU用インタフェース40から電文プロトコルによってフォーマットされた設定コマンドを受信する(ステップ7)。CPU42が、受信した電文プロトコルによる設定コマンドをRS232CプロトコルによるTA用フォーマットに変換する(ステップ8)。そして、TA用インタフェース41を通じてTA5に出力する(ステップ9)。
【0023】
TA5は、シリアルポートを通じて設定コマンドを受信すると、発信者電話番号を出力するモードに設定される。これにより、TA5の初期設定が完了する。
【0024】
次に、設定後に、ユーザーがTA5の設定を変えてしまった場合について、図6のフローチャートに基づいて説明する。なお、このとき、アダプター33が接続されているかどうかは不明である。
【0025】
本来は、TA5のアナログポートから、図3に示す0.5秒オン、0.5秒オフの1秒周期のプレリンガー信号に続いて、発信者電話番号信号が送出されるシーケンスになっている。しかし、発信者電話番号信号が来ない場合、T−NCU3はまずプレリンガー信号の周期を測定する(ステップ11)。その周期が、ある範囲、例えば600msec以上、1500msec以下に入っているかチェックする(ステップ12、13)。この範囲に入っていれば、設定が正常であると判断して、次の発信者電話番号信号の読み取りを行う(ステップ15)。
【0026】
その周期が範囲以外の場合、2回連続して発生したかチェックする(ステップ14)。1回だけの場合はノイズ等によって異常が発生したことが考えられ、設定は変化していないので、発信者電話番号信号の読み取りを行う(ステップ15)。2回連続した場合はTA5の設定が変化していると判断する。
【0027】
このように、T−NCU3は、TA5から出力される信号が規定の周期になっているか否かを検出する機能によって、TA5の設定変更の有無を検出することができる。
【0028】
そして、T−NCU3は、TA5の設定が変化していることを検出すると、センター側装置に発呼する(ステップ16)。センター側装置は、T−NCU3からTA5の設定変更有りの通報を受信すると、TA5を再設定すべく設定コマンドを送出し、これをT−NCU3が受信する(ステップ17)。
【0029】
この後、アダプター33が接続されているか否かを後述する手順によりチェックする(ステップ18)。接続されていれば、初期設定の場合と同様の手順により、TA5を再設定する(ステップ19)。接続されていなければ、アダプター33が接続されていないことをセンター側装置に伝える(ステップ20)。そして、一旦回線を解放するためにオンフックする(ステップ21)。その後、一定時間待った(ステップ22)後、再度ループをする(ステップ23)。
【0030】
そして、EEPROM30に記憶しているTA設定コマンドをPB信号でTA5に直接出力する(ステップ24)。これにより、TA5の再設定が可能となる。なお、TAは、電話機からのPB信号によって設定を行えるようになっている。
【0031】
ところで、センター側装置に通報しようとしたが、センター側装置と通信できない場合がある。そのときは、センター側装置と通信することなく、T−NCU3が自動的に、アダプター33を通じて設定コマンドを出力するか、あるいはPB信号によって設定コマンドを出力するかのいずれかにより、TA5を再設定するようにしてもよい。
【0032】
ここで、アダプター33がT−NCU3に接続されているか否かを検知する方法について説明する。図7に示すように、まずT−NCU3は、アダプター33に対して接続確認コマンドCHCONを出力する(ステップ31)。送出後、時間測定をするため、タイマーにある一定時間、例えば2秒をセットし、カウントを開始する(ステップ32)。この一定時間以内に、アダプター33からの応答があったかを確認する(ステップ33)。応答があれば、アダプター33が接続されていると判断する(ステップ35)。応答がなければ、タイマーのタイムアウトを検出して(ステップ34)、アダプター33が接続されていないと判断する(ステップ36)。したがって、アダプターインタフェース34に間違って他の機器が接続されたとしても、応答がないので、接続ミスを検知することができる。
【0033】
次に、TA5に設定されている内容をT−NCU3から読み出す方法について説明する。図8のフローチャートに示すように、まずT−NCU3は、アダプター33に対して読み出しコマンドを電文プロトコルにより出力する(ステップ41)。アダプター33では、CPU42がこの電文プロトコルをRS232Cプロトコルに変換して(ステップ42)、そのコマンドをTA用インタフェース41を介してTA5に出力する(ステップ43)。
【0034】
TA5は、読み出しコマンドを受信すると、その応答として、データをRS232Cプロトコルでシリアルポートよりアダプター33に出力する(ステップ44)。アダプター33は、TA用インタフェース41を介してデータを受信する(ステップ45)。CPU42によってRS232Cプロトコルを電文プロトコルに変換する(ステップ46)。そのデータをT−NCU用インタフェース40を介してT−NCU3に出力する(ステップ47)。T−NCU3は、必要に応じてセンター側装置に受信したデータを端末発呼により送信する。これによって、センター側装置からでもTA5の設定内容を容易に読み出すことができる。
【0035】
アダプター33における電文プロトコルから232Cプロトコルに変換する方法について説明する。電文プロトコルによる電文フォーマットは、図9に示すように、マーク+STX+データ部+ETX+BCC+スペースで構成されており、スピードは、200あるいは300ボーで、キャラクターはJIS7である。RS232Cによるフォーマットは、図10に示すように、マークの後にA+T+データ部、最後にマークで構成されている。
【0036】
変換手順としては、図11に示すように、まずマークを受信すれば電文開始と考え、準備としてSTXの受信待ちとする(ステップ51)。次にデータ部の1キャラクターの受信を開始し(ステップ52)、ETXと比較する(ステップ53)。ETXでなければ、データをCPU29内のバッファに記憶する(ステップ54)。ETXを受信すれば、ステップ55に進み、BCCの受信を行う。さらに、受信データのBCCを計算する(ステップ56)。そのBCCと受信データのBCCを計算比較する(ステップ57)。BCCが一致しないなら、ステップ58のエラー処理を行う。BCCが一致するならば、スペースの受信待ちとする(ステップ59)。
【0037】
スペースを受信し終われば、受信データの前に“A”と“T”データを付加する(ステップ60)。このデータをスピード9600ボー以上、8ビット、ストップビット=1、XON/XOFF有りの仕様でTA5のシリアルポートに送り出す(ステップ61)。このように、TA5にT−NCU3からのコマンドがプロトコル変換されて送り出される。
【0038】
RS232Cプロトコルから電文プロトコルヘの変換は、この逆動作になる。すなわち、RS232Cプロトコルによる受信したATに続くデータにSTX、ETX、BCCを付加し、マークおよびスペースに挟んで200あるいは300ボー、JIS7で送り出す。
【0039】
なお、本発明は、上記実施形態に限定されるものではなく、本発明の範囲内で上記実施形態に多くの修正および変更を加え得ることは勿論である。アダプターをUSBケーブルによりTAのUSBポートに接続してもよい。この場合でも、同様にプロトコルの変換を行う。
【0040】
また、通常T−NCUは屋外に設置されることが多く、TAは屋内に設置され、アダプターもTAの近傍に設置される。そのため、T−NCUとTAとは遠く離れることがあり、ケーブルの配線が煩雑となる。そこで、無線式TAを用いて、TA子機にT−NCUを通信ケーブルを介して接続し、TA親機にアダプターをRS232Cケーブルを介して接続する。そして、アダプターにTA子機との無線通信を行う通信回路を設け、T−NCUから設定コマンドをTA子機を介してアダプターに送信するようにしてもよい。
【0041】
【発明の効果】
以上の説明から明らかな通り、本発明によると、センター側装置からのコマンドをアダプターを通じてTAに出力することにより、TAの初期設定や再設定を自動的に行うことができる。したがって、不用意なリセット等によって再設定すべき事態が発生したとき、担当者が赴かなくても設定可能となり、センター側装置からの起動による通信が不能になることを防げ、通信システムの信頼性を高めることができる。
【0042】
そして、T−NCUがTAの設定変更を検出して、センター側装置に通報することにより、即座にTAの再設定を行えば、センター側装置からの通信が不能となる期間を短くでき、定期検針等のデータ伝送を確実に行うことができる。
【図面の簡単な説明】
【図1】本発明の一実施形態の通信システムの全体構成図
【図2】デジタル回線から送出される信号波形を示す図
【図3】端末網制御装置の構成図
【図4】アダプターの構成図
【図5】ターミナルアダプターの初期設定を行うときのフローチャート
【図6】ターミナルアダプターの再設定を行うときのフローチャート
【図7】アダプターの接続を検知するためのフローチャート
【図8】ターミナルアダプターの設定内容を読み出すときのフローチャート
【図9】電文プロトコルによる電文フォーマット
【図10】RS232Cプロトコルによるフォーマット
【図11】通信プロトコルの変換手順を示すフローチャート
【符号の説明】
3 端末網制御装置
4 デジタル回線
5 ターミナルアダプター
8 電話機
9 メータ
33 アダプター
34 アダプターインタフェース
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a terminal network control device of a communication system that performs data transmission with a center side device using a digital line such as ISDN.
[0002]
[Prior art]
In general, in a communication system, a telephone set and a meter are connected to a terminal network control unit (T-NCU), and connected to a host computer of a center side device through a communication line such as an ISDN line (digital line).
[0003]
There are two types of activation methods: a terminal call originated from the T-NCU and a center activation in which meter reading is performed from the center side via the center network control device as needed. Center activation is called no-ringing (NR) activation for analog lines and number display (ND) activation for digital lines depending on the type of communication line. In the case of ND activation, since a caller telephone number signal is sent to the T-NCU, it is necessary to check whether the device is a center side device or not by that number. Here, the caller telephone number signal is output by setting the number display to be used in the terminal adapter (TA) connected to the ISDN line.
[0004]
[Problems to be solved by the invention]
Even if the TA is set to output a caller telephone number signal, the setting may be canceled due to a user resetting itself or resetting due to a power failure. In that case, there is a problem that the caller telephone number signal is not output from the TA and the activation from the center side device cannot be received. Therefore, the person in charge had to go to the user's house and reset the TA.
[0005]
In view of the above, an object of the present invention is to provide a terminal network control device capable of resetting a TA from a center side device even when the TA is reset.
[0006]
[Means for Solving the Problems]
The problem solving means according to the present invention is such that an adapter is attached so as to be able to communicate with a terminal adapter used for connecting to a digital line, and an interface for connecting the adapter is provided. That is, since the communication protocol in the terminal adapter (TA) and the communication protocol in the terminal network control unit (T-NCU) are different, the communication between the two is relayed by the adapter. Therefore, the adapter has a function of performing conversion between the communication protocol for T-NCU and the communication protocol for TA.
[0007]
In order to start communication from the center-side device and perform communication, it must be set to notify the caller telephone number from the TA. When using a digital line, it is necessary to set the TA as described above when installing the T-NCU. At this time, if TA is initially set by a command from the center side device, the user is not burdened and can be set accurately.
[0008]
Therefore, when communication with the center side device is started by calling the terminal and setting data is sent from the center side device, the data is output to the adapter by the communication protocol for T-NCU. The adapter converts the communication protocol for T-NCU from the communication protocol for TA and outputs the data to TA. In this way, the initial setting of TA can be performed easily and reliably. The TA setting data is not limited to the caller telephone number notification setting, and may be for setting other functions of the TA.
[0009]
As a countermeasure when the setting is canceled due to a TA reset or the like, a detecting unit for detecting whether or not the TA setting has been changed and a reporting unit for notifying the center side device that the setting has been changed are provided. By notifying the center side device of this setting change, similarly, resetting can be performed based on a command from the center side device, or setting data can be stored and resetting can be performed using this data. It is also possible to do this.
[0010]
By the way, since there may be a case where the TA side device cannot be notified due to the TA setting change, if the setting data received first from the center side device is stored, this data is output to the TA through the adapter, thereby allowing the center side device to be notified. TA can be reset even if there is no command from the side device.
[0011]
In addition, when an adapter is not connected, data cannot be output through the adapter. Therefore, a connection detecting means for detecting whether or not the adapter is connected is provided. When it is detected that the adapter is not connected, the setting data is directly output to the TA using the PB signal to perform resetting. Like that.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of a communication system of the present invention is shown in FIG. The center side device comprising the host computer 1 and the center network control device 2 and the T-NCU 3 are connected by a digital line 4 such as ISDN. Each network control device 2, 3 is connected to the digital line 4 with TA 5 and a line terminator ( DSU) 6 or DSU built-in TA7. The T-NCU 3 is connected to a telephone 8 and a meter 9, and contact devices such as sensors. In the figure, 10 is a center-side switching center and 11 is a terminal-side switching center.
[0013]
In response to a command from the host computer 1, the center network control device 2 dials the center side switching center 10 via the center side DSU built-in TA 7. The dialed destination number is transmitted to the terminal-side switching center 11, and the switching center 11 calls the T-NCU 3 via the terminal-side DSU 6 and TA5. At the time of this call, TA5 sends a pre-ringer signal to convey the caller telephone number.
[0014]
As shown in FIG. 2, the waveform of the pre-ringer signal appears at a cycle of 0.5 seconds after the polar reaction signal. In response to this pre-ringer signal, the T-NCU 3 loops as a primary response. Then, since a caller telephone number signal is transmitted from TA5, T-NCU3 receives it. Then, it is confirmed whether the caller telephone number matches the telephone number of the center side device. If it is not a call from the center side device, the caller phone number is connected to the telephone 8, and the ringer signal sent from the TA 5 is sent next. The telephone 8 rings. When the call is from the center side device, data transmission is performed with the center side device with the telephone 8 disconnected from the line 4.
[0015]
FIG. 3 shows the configuration of the T-NCU 3. The T-NCU 3 includes an anti-polarity detection circuit 20, a dial transmission circuit 21, a PB signal transmission circuit 22, a modem transmission circuit 23, a ringer detection circuit 24, a PB signal reception circuit 25, a modem reception circuit 26, a switching unit 27, an off-hook detection unit. 28, a CPU 29 having a microcomputer for controlling the line block A, an EEPROM 30 for storing data, and a power supply unit 31.
[0016]
The line block A is connected to the analog port of TA5 by a communication cable such as a modular cable, and the telephone 8 is connected to the switching unit 27 via a connector. A meter interface 32 for connecting the meter 9 is also provided.
[0017]
The T-NCU 3 includes an adapter 33 for relaying communication with the TA 5, and includes an adapter interface 34 for connecting the adapter 33. As shown in FIG. 4, the adapter 33 includes a T-NCU interface 40, a TA interface 41, a CPU 42 that converts signals received from the interfaces 40, 41 into a signal form on the other side, and a power supply unit 43. It consists of and. The T-NCU interface 40 and the adapter interface 34 of the adapter 33 are connected via a communication cable such as a modular cable, and the TA interface 41 and the TA5 serial port are connected via an RS232C cable.
[0018]
That is, in T-NCU3, data is handled in a message format according to a message protocol and communicates with the meter 9 or the center side device. In TA5, a personal computer is formatted according to a RS232C protocol different from the above protocol. It communicates with external devices such as. Thus, data cannot be transmitted as it is between the T-NCU 3 and the TA 5 due to the difference in the respective communication protocols. Therefore, the adapter 33 enables data transmission by converting both communication protocols.
[0019]
The specific operation of the adapter 33 will be described with reference to the flowchart of FIG. First, when the T-NCU 3 is newly installed, the setting device connected to the meter interface 32 downloads setting data necessary for the operation of the T-NCU 3 from the center side device. Minimum contents such as the ID of the T-NCU 3 are set (step 1). Next, the T-NCU 3 calls the center side device (step 2).
[0020]
The center side device confirms that the ID is the T-NCU 3 and writes the setting data to the T-NCU 3 (step 3). Further, a command for setting TA5 is transmitted and received by the T-NCU 3 (step 4). Note that when the initial setting is made, the adapter 33 is always connected.
[0021]
Receiving the command, the T-NCU 3 stores the setting command in the EEPROM 30 through the CPU 29 (step 5). Thereafter, the setting command is output to the adapter 33 through the adapter interface 34 by the message protocol (step 6).
[0022]
The adapter 33 receives the setting command formatted by the telegram protocol from the T-NCU interface 40 (step 7). The CPU 42 converts the received setting command based on the telegram protocol into a TA format based on the RS232C protocol (step 8). And it outputs to TA5 through TA interface 41 (step 9).
[0023]
When TA5 receives a setting command through the serial port, TA5 is set to a mode for outputting a caller telephone number. Thereby, the initial setting of TA5 is completed.
[0024]
Next, a case where the user changes the setting of TA5 after setting will be described based on the flowchart of FIG. At this time, it is unknown whether the adapter 33 is connected.
[0025]
Originally, it is a sequence in which a caller telephone number signal is transmitted from the analog port of TA5, following the pre-ringer signal of 0.5 second on and 0.5 second off shown in FIG. . However, if the caller telephone number signal does not come, the T-NCU 3 first measures the period of the pre-ringer signal (step 11). It is checked whether the cycle is within a certain range, for example, 600 msec or more and 1500 msec or less (steps 12 and 13). If it is within this range, it is determined that the setting is normal, and the next caller telephone number signal is read (step 15).
[0026]
If the cycle is out of the range, it is checked whether it has occurred twice consecutively (step 14). If it is only once, an abnormality may have occurred due to noise or the like, and the setting has not changed, so the caller telephone number signal is read (step 15). If it continues twice, it is determined that the setting of TA5 has changed.
[0027]
As described above, the T-NCU 3 can detect whether the setting of the TA 5 has been changed by the function of detecting whether or not the signal output from the TA 5 has a specified period.
[0028]
When the T-NCU 3 detects that the setting of TA5 has changed, it makes a call to the center side device (step 16). When the center side device receives a notification that the setting of TA5 is changed from T-NCU3, the center side device sends a setting command to reset TA5, which is received by T-NCU3 (step 17).
[0029]
Thereafter, whether or not the adapter 33 is connected is checked by a procedure described later (step 18). If connected, TA5 is reset by the same procedure as in the initial setting (step 19). If not connected, the center 33 is informed that the adapter 33 is not connected (step 20). Then, it goes on-hook once to release the line (step 21). Then, after waiting for a certain time (step 22), the loop is repeated (step 23).
[0030]
Then, the TA setting command stored in the EEPROM 30 is directly output to the TA 5 as a PB signal (step 24). Thereby, TA5 can be reset. The TA can be set by a PB signal from the telephone.
[0031]
By the way, there is a case where communication with the center side apparatus cannot be performed although an attempt is made to notify the center side apparatus. In that case, without communication with the center side device, the T-NCU 3 automatically resets the TA5 by either outputting the setting command through the adapter 33 or outputting the setting command by the PB signal. You may make it do.
[0032]
Here, a method for detecting whether or not the adapter 33 is connected to the T-NCU 3 will be described. As shown in FIG. 7, first, the T-NCU 3 outputs a connection confirmation command CHCON to the adapter 33 (step 31). After sending, in order to measure time, a certain time, for example, 2 seconds is set in the timer, and counting is started (step 32). It is confirmed whether or not there is a response from the adapter 33 within this fixed time (step 33). If there is a response, it is determined that the adapter 33 is connected (step 35). If there is no response, a timer timeout is detected (step 34), and it is determined that the adapter 33 is not connected (step 36). Therefore, even if another device is mistakenly connected to the adapter interface 34, there is no response, so that a connection error can be detected.
[0033]
Next, a method for reading the contents set in TA5 from the T-NCU 3 will be described. As shown in the flowchart of FIG. 8, first, the T-NCU 3 outputs a read command to the adapter 33 using a telegram protocol (step 41). In the adapter 33, the CPU 42 converts this telegram protocol into the RS232C protocol (step 42), and outputs the command to the TA 5 via the TA interface 41 (step 43).
[0034]
When TA5 receives the read command, TA5 outputs the data to the adapter 33 from the serial port by RS232C protocol as a response (step 44). The adapter 33 receives data via the TA interface 41 (step 45). The CPU 42 converts the RS232C protocol into a telegram protocol (step 46). The data is output to the T-NCU 3 via the T-NCU interface 40 (step 47). The T-NCU 3 transmits the received data to the center side device as required by a terminal call. Thereby, the setting content of TA5 can be easily read even from the center side device.
[0035]
A method for converting the telegram protocol to the 232C protocol in the adapter 33 will be described. As shown in FIG. 9, the message format according to the message protocol is composed of mark + STX + data part + ETX + BCC + space, the speed is 200 or 300 baud, and the character is JIS7. As shown in FIG. 10, the format according to RS232C is composed of an A + T + data portion after a mark and a mark at the end.
[0036]
As a conversion procedure, as shown in FIG. 11, if a mark is first received, it is considered that a message starts, and preparation is made to wait for reception of STX (step 51). Next, reception of one character in the data portion is started (step 52) and compared with ETX (step 53). If not ETX, the data is stored in a buffer in the CPU 29 (step 54). If ETX is received, the process proceeds to step 55, where BCC is received. Further, the BCC of the received data is calculated (step 56). The BCC is compared with the BCC of the received data (step 57). If the BCCs do not match, error processing in step 58 is performed. If the BCCs match, it waits for space reception (step 59).
[0037]
When the space is received, “A” and “T” data are added before the received data (step 60). This data is sent to the TA5 serial port with a specification of speed 9600 baud or more, 8 bits, stop bit = 1, and XON / XOFF (step 61). In this way, the command from the T-NCU 3 is sent to TA 5 after protocol conversion.
[0038]
The conversion from the RS232C protocol to the telegram protocol is the reverse operation. That is, STX, ETX, and BCC are added to the data following the AT received by the RS232C protocol, and the data is sent out at 200 or 300 baud and JIS7 between the marks and spaces.
[0039]
In addition, this invention is not limited to the said embodiment, Of course, many corrections and changes can be added to the said embodiment within the scope of the present invention. The adapter may be connected to the USB port of the TA by a USB cable. Even in this case, protocol conversion is performed in the same manner.
[0040]
In general, the T-NCU is often installed outdoors, the TA is installed indoors, and the adapter is also installed near the TA. For this reason, the T-NCU and the TA may be far apart, and the cable wiring becomes complicated. Therefore, using a wireless TA, the T-NCU is connected to the TA slave unit via a communication cable, and the adapter is connected to the TA master unit via an RS232C cable. Then, a communication circuit that performs wireless communication with the TA slave unit may be provided in the adapter, and a setting command may be transmitted from the T-NCU to the adapter via the TA slave unit.
[0041]
【The invention's effect】
As is apparent from the above description, according to the present invention, the initial setting and resetting of the TA can be automatically performed by outputting the command from the center side device to the TA through the adapter. Therefore, when a situation that should be reset due to an inadvertent reset, etc. occurs, it is possible to set it without the person in charge having to ask, and it is possible to prevent the communication from being started by the center side device being disabled, and the reliability of the communication system Can increase the sex.
[0042]
And if T-NCU detects TA setting change and reports to the center side device, if TA is reset immediately, the period during which communication from the center side device is disabled can be shortened. Data transmission such as meter reading can be performed reliably.
[Brief description of the drawings]
FIG. 1 is an overall configuration diagram of a communication system according to an embodiment of the present invention. FIG. 2 is a diagram showing signal waveforms transmitted from a digital line. FIG. 3 is a configuration diagram of a terminal network control device. [Fig.5] Flowchart for initial setting of terminal adapter [Fig.6] Flowchart for resetting terminal adapter [Fig.7] Flowchart for detecting adapter connection [Fig.8] Setting of terminal adapter Flowchart when reading contents [FIG. 9] Message format according to message protocol [FIG. 10] Format according to RS232C protocol [FIG. 11] Flowchart showing conversion procedure of communication protocol [Explanation of symbols]
3 Terminal network controller 4 Digital line 5 Terminal adapter 8 Telephone 9 Meter 33 Adapter 34 Adapter interface

Claims (7)

端末網制御装置がデジタル回線にターミナルアダプターを介して接続され、前記ターミナルアダプターを通じて前記端末網制御装置とセンター側装置との間でデータ伝送を行う通信システムであって、前記ターミナルアダプターと端末網制御装置との間に、端末網制御装置用の通信プロトコルとターミナルアダプター用の通信プロトコルとの変換を行うアダプターが接続され、前記センター側装置は、前記端末網制御装置からの発呼によりターミナルアダプター設定用データを前記端末網制御装置に送信し、前記端末網制御装置は、前記設定用データを前記アダプターに出力し、前記アダプターは、前記設定用データをターミナルアダプター用の通信プロトコルにしたがって変換して前記ターミナルアダプターに出力することを特徴とする通信システム。  A terminal network control device is connected to a digital line via a terminal adapter, and is a communication system for transmitting data between the terminal network control device and a center side device through the terminal adapter, the terminal adapter and the terminal network control An adapter that converts between a communication protocol for a terminal network control device and a communication protocol for a terminal adapter is connected between the devices, and the center side device sets a terminal adapter by a call from the terminal network control device. Data is transmitted to the terminal network controller, the terminal network controller outputs the setting data to the adapter, and the adapter converts the setting data according to a communication protocol for the terminal adapter. Output to the terminal adapter. System. 端末網制御装置は、ターミナルアダプターの設定変更の有無を検出する検出手段と、設定が変更されているときにセンター側装置に通報する通報手段とを有し、前記センター側装置は、前記通報により再設定のために設定用データを前記端末網制御装置に送信することを特徴とする請求項1記載の通信システム。  The terminal network control device has detection means for detecting presence / absence of a setting change of the terminal adapter, and notification means for notifying the center side device when the setting is changed, the center side device responding to the notification 2. The communication system according to claim 1, wherein setting data is transmitted to the terminal network control device for resetting. 端末網制御装置は、ターミナルアダプター設定用データを記憶しておく記憶手段と、ターミナルアダプターの設定変更を検出したときにセンター側装置に通報できない場合、記憶している前記設定用データに基づいてターミナルアダプターを設定する手段とを有することを特徴とする請求項2記載の通信システム。  The terminal network control device stores storage means for storing terminal adapter setting data, and if it cannot report to the center side device when it detects a setting change of the terminal adapter, the terminal network control device The communication system according to claim 2, further comprising means for setting an adapter. 端末網制御装置は、記憶している設定用データをアダプターに出力する再設定手段を有することを特徴とする請求項3記載の通信システム。  4. The communication system according to claim 3, wherein the terminal network control device has resetting means for outputting the stored setting data to the adapter. 端末網制御装置は、記憶している設定用データをPB信号を用いて直接ターミナルアダプターに出力する設定手段を有することを特徴とする請求項3記載の通信システム。  4. The communication system according to claim 3, wherein the terminal network control device has setting means for outputting the stored setting data directly to the terminal adapter using a PB signal. 端末網制御装置は、アダプターが接続されているか否かを検知する接続検知手段と、アダプターが接続されていないとき、設定用データをPB信号を用いて直接ターミナルアダプターに出力する設定手段と、前記アダプターが接続されているとき、前記設定用データを前記アダプターに出力する再設定手段とを有することを特徴とする請求項2記載の通信システム。  The terminal network control device includes: a connection detecting unit that detects whether or not an adapter is connected; a setting unit that directly outputs setting data to the terminal adapter using a PB signal when the adapter is not connected; 3. The communication system according to claim 2, further comprising resetting means for outputting the setting data to the adapter when an adapter is connected. 端末網制御装置は、設定用データを記憶しておく記憶手段と、アダプターが接続されていないことをセンター側装置に通報する通報手段とを有し、前記端末網制御装置は、通報後に回線を解放してから、記憶している設定用データをPB信号を用いてターミナルアダプターに出力することを特徴とする請求項6記載の通信システム。  The terminal network control device has storage means for storing setting data, and reporting means for reporting to the center side device that the adapter is not connected, and the terminal network control device connects the line after the notification. 7. The communication system according to claim 6, wherein after the release, the stored setting data is output to the terminal adapter using a PB signal.
JP2001041436A 2001-02-19 2001-02-19 Communications system Expired - Fee Related JP3706311B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001041436A JP3706311B2 (en) 2001-02-19 2001-02-19 Communications system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001041436A JP3706311B2 (en) 2001-02-19 2001-02-19 Communications system

Publications (2)

Publication Number Publication Date
JP2002247222A JP2002247222A (en) 2002-08-30
JP3706311B2 true JP3706311B2 (en) 2005-10-12

Family

ID=18903881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001041436A Expired - Fee Related JP3706311B2 (en) 2001-02-19 2001-02-19 Communications system

Country Status (1)

Country Link
JP (1) JP3706311B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4866798B2 (en) * 2007-06-29 2012-02-01 西日本電信電話株式会社 Remote setting system, line management method, and computer program
JP4866817B2 (en) * 2007-09-07 2012-02-01 西日本電信電話株式会社 Remote setting system, line management method, and computer program

Also Published As

Publication number Publication date
JP2002247222A (en) 2002-08-30

Similar Documents

Publication Publication Date Title
US8391277B2 (en) Interoperability of legacy alarm system
JP3706311B2 (en) Communications system
WO2000070780A1 (en) Digital wireless local loop fax/data interface
JPH02114756A (en) Automatic data communication system
JP3608648B2 (en) Wireless communication system
KR100659032B1 (en) Cellular phone having a wire telephone function and the controlling method
JP4638363B2 (en) Terminal network controller
JPH1091885A (en) Communication line securing equipment at the time of earthquake
JP2565956B2 (en) Network controller
JP3538323B2 (en) Communication device
JP4499644B2 (en) Terminal network controller
JP2954072B2 (en) System data setting method for ISDN terminal adapter
JP5245328B2 (en) Reporting device that can be connected to a telephone line
JP3561458B2 (en) Terminal network controller
JP4397107B2 (en) Line connection apparatus and recording medium
KR200329371Y1 (en) Cellular phone having a wire telephone function
JP2554940B2 (en) Data communication system
JP2000049973A (en) Radio fixed subscriber device and its maintenance mode setting method
KR100314944B1 (en) MODEM Circuit
JP3750748B2 (en) Private branch exchange and button telephone equipment
JP3356597B2 (en) No ringing communication system
JP2003198754A (en) Terminal network controller
JP2005347908A (en) Terminal network controller
JPH0831910B2 (en) Remote maintenance and operation method for communication terminal devices
JP2001177643A (en) Information notification service testing system and its device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050603

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050728

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080805

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090805

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees