JPH0194461A - Data processor - Google Patents
Data processorInfo
- Publication number
- JPH0194461A JPH0194461A JP62252738A JP25273887A JPH0194461A JP H0194461 A JPH0194461 A JP H0194461A JP 62252738 A JP62252738 A JP 62252738A JP 25273887 A JP25273887 A JP 25273887A JP H0194461 A JPH0194461 A JP H0194461A
- Authority
- JP
- Japan
- Prior art keywords
- data
- unprocessed data
- line
- application program
- disconnection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 claims description 22
- 238000004891 communication Methods 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 9
- 230000003213 activating effect Effects 0.000 claims description 3
- 238000005259 measurement Methods 0.000 claims 2
- 238000000034 method Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、公衆通話回線の回線切断符号受信制御手段に
関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a line disconnection code reception control means for a public telephone line.
本発明は、端末からのデータを非同期受信するホストコ
ンピュータを回線から切断する手段において、
端末からの切断符号に即応せずに、受信バッファ上に未
処理データがなくなってから切断を実行することにより
、
未処理データの破棄を防止することができるようにした
ものである。The present invention provides means for disconnecting a host computer that asynchronously receives data from a terminal from a line, by executing the disconnection after there is no unprocessed data in the receive buffer, without immediately responding to a disconnection code from the terminal. , it is possible to prevent unprocessed data from being discarded.
従来、この種の公衆通信回線切断方式は、回線切断符号
(DLE、EOT)を受信すると即座に公衆通信回線を
切断していた。Conventionally, this type of public communication line disconnection method immediately disconnects the public communication line upon receiving a line disconnection code (DLE, EOT).
このような従来の切断方式は、回線切断符号を受信する
と即座に公衆通信回線を切断するようになっているので
、応用プログラムでのデータ受信処理と端末との受信処
理とに関し受信バッファを利用する非同期受信手段を有
するホストコンピュータでは、受信バッファ上に応用プ
ログラムの未処理データがある場合にその未処理データ
が破棄されてしまう欠点がある。In such conventional disconnection methods, the public communication line is immediately disconnected when a line disconnection code is received, so a receive buffer is used for data reception processing in the application program and reception processing with the terminal. A host computer having an asynchronous reception means has a drawback that if there is unprocessed data of an application program on the reception buffer, the unprocessed data is discarded.
本発明はこのような欠点を除去するもので、受信バッフ
ァ上の未処理データの破棄が起らないデータ処理装置を
提供することを目的とする。The present invention aims to eliminate such drawbacks and provides a data processing device that does not discard unprocessed data on a receive buffer.
本発明は、端末から公衆通信回線を経由して到来するデ
ータを一時記憶する受信バッファと、この受信バッファ
上のデータを処理する応用プログラム手段と、上記端末
から到来する回線切断符号に基づき自装置を上記公衆通
信回線から切断する切断手段を有する回線切断手段とを
備えたデータ処理装置において、回線切断符号が到来し
た時刻から計時を開始するタイマ手段と、回線切断符号
の到来した時刻およびこのタイマ手段が指定する時刻ご
とに繰返し上記受信バッファ上の未処理データの有無を
監視する監視手段とを備え、上記回線切断手段は、この
監視手段が上記受信バッファ上に未処理データがあるこ
とを検知したときは上記監視手段に監視の継続を要求し
、また、上記受信バッファ上の未処理データがないこと
を検知したときは上記切断手段を起動する手段を有する
ことを特徴とする。The present invention provides a receiving buffer for temporarily storing data arriving from a terminal via a public communication line, an application program means for processing the data on the receiving buffer, and a self-device based on a line disconnection code coming from the terminal. A data processing device comprising a line disconnection means having a disconnection means for disconnecting the line disconnection code from the public communication line, a timer means that starts counting from the time when the line disconnection code arrives, and a timer means that starts counting from the time when the line disconnection code arrives and the timer means monitoring means for repeatedly monitoring the presence or absence of unprocessed data on the receiving buffer at each time specified by the means, and the line disconnecting means detects that the monitoring means has unprocessed data on the receiving buffer The present invention is characterized by comprising means for requesting the monitoring means to continue monitoring when this occurs, and for activating the disconnection means when it is detected that there is no unprocessed data on the reception buffer.
監視手段で受信バッファ上のデータの有無を監視する。 The monitoring means monitors the presence or absence of data on the reception buffer.
端末から受信した回線切断符号による公衆通信回線の切
断処理は監視手段の通知を受はアプリケーションプログ
ラムの未処理データがない場合は即座に行い、データが
ある場合はタイマ手段により一定時間経過後に未処理デ
ータの有無の監視を繰返して行い、未処理データがな(
なると切断処理を実行する。The disconnection process of the public communication line based on the line disconnection code received from the terminal will be performed immediately if there is no unprocessed data of the application program upon receiving the notification from the monitoring means, and if there is data, the unprocessed data will be disconnected after a certain period of time by the timer means. We repeatedly monitor the presence or absence of data to ensure that there is no unprocessed data (
Then, the disconnection process is executed.
以下、本発明の一実施例を図面に基づき説明する。図は
本発明の一実施例の構成を示すブロック構成図である。Hereinafter, one embodiment of the present invention will be described based on the drawings. The figure is a block configuration diagram showing the configuration of an embodiment of the present invention.
この実施例は、図に示すように、ホストコンピュータ1
と、公衆通信回線2によって電話交換網3を経由してホ
ストコンピュータ1と接続された端末4とから構成され
ている。ここで、ホストコンピュータ1は、応用プログ
ラム11と、受信データの受信バッファ15への格納お
よび取り出し処理と応用プログラム11へのデータ通知
処理とを行う非同期受信手段12と、タイマ通知手段1
8を用いて異常時にはデータ伝送制御手順により障害検
出およびリカバリを行うコントロール手段13と、デー
タを直並列変換して端末4に対する信号の送受信を行う
入出力手段14と、受信データを格納する受信バッファ
15と、端末から受信した回線切断符号による公衆通信
回線の切断処理を行う回線切断手段16と、受信バッフ
ァ15上のデータの有無を監視し通知する監視手段17
と、一定時間を計測し通知するタイマ通知手段18とを
備える。すなわち、この実施例は、端末4から公衆通信
回線2を経由して到来するデータを一時記憶する受信バ
ッファ15と、この受信バッファ15上のデータを処理
する応用プログラム11と、端末4から到来する回線切
断符号に基づき自装置を公衆通信回線2から切断する切
断手段を有する回線切断手段16と、回線切断符号が到
来した時刻から計時を開始するタイマ手段であるタイマ
通知手段18と、回線切断符号の到来した時刻環よびこ
のタイマ手段が指定する時刻ごとに繰返し受信バッファ
15上の未処理データの有無を監視する監視手段17と
を備え、ここで、回線切断手段16は、さらに、この監
視手段17が受信バッファ15上に未処理データがある
ことを検知したときは監視手段17に監視の継続を要求
し、また、受信バッファ15上の未処理データがないこ
とを検知したときは上記切断手段を起動する手段を有す
る。In this embodiment, as shown in the figure, the host computer 1
and a terminal 4 connected to a host computer 1 via a telephone switching network 3 via a public communication line 2. Here, the host computer 1 includes an application program 11, an asynchronous reception means 12 that stores and retrieves received data in a reception buffer 15, and notifies the application program 11 of data, and a timer notification means 1.
control means 13 that performs failure detection and recovery using a data transmission control procedure in the event of an abnormality using 8; input/output means 14 that performs serial-parallel conversion of data and transmits and receives signals to and from the terminal 4; and a reception buffer that stores received data. 15, line disconnection means 16 for disconnecting the public communication line according to the line disconnection code received from the terminal, and monitoring means 17 for monitoring and notifying the presence or absence of data on the reception buffer 15.
and a timer notification means 18 for measuring and notifying a certain period of time. That is, this embodiment includes a receiving buffer 15 that temporarily stores data arriving from the terminal 4 via the public communication line 2, an application program 11 that processes the data on this receiving buffer 15, and a receiving buffer 15 that temporarily stores data arriving from the terminal 4 via the public communication line 2. A line disconnection means 16 having a disconnection means for disconnecting the own device from the public communication line 2 based on the line disconnection code, a timer notification means 18 which is a timer means that starts counting from the time when the line disconnection code arrives, and a line disconnection code. a monitoring means 17 for repeatedly monitoring the presence or absence of unprocessed data on the receiving buffer 15 at each time specified by the time cycle of arrival and the timer means; 17 requests the monitoring means 17 to continue monitoring when it detects that there is unprocessed data on the receiving buffer 15, and requests the monitoring means 17 to continue monitoring when it detects that there is no unprocessed data on the receiving buffer 15. has means for activating.
次に、ダイアル発着信後にホストコンビニータ1と端末
4が電話交換網3を経由して通信可能状態になった以降
についてのこの実施例の動作を説明する。端末4から公
衆通信回線2を通って送られてくる受信フレームおよび
伝送制御符号は入出力手段14で受信され、ビット直列
からビット並列に変換された後にコントロール手段13
に渡される。Next, the operation of this embodiment after the host combinator 1 and the terminal 4 become communicable via the telephone switching network 3 after dialing is explained. Reception frames and transmission control codes sent from the terminal 4 through the public communication line 2 are received by the input/output means 14, converted from bit serial to bit parallel, and then sent to the control means 13.
passed to.
コントロール手段13は受信フレーム形式からデータを
取り出し非同期受信手段12にデータを受は渡す。非同
期受信手段12はこのデータを受信バッファ15に格納
し、応用プログラム11の受信要求に基づき受信バッフ
ァ15からデータを取り出し、応用プログラム11に渡
す。データが応用プログラム11に渡されると、受信バ
ッファ15は解放される。The control means 13 extracts data from the received frame format and passes the data to the asynchronous reception means 12. The asynchronous reception means 12 stores this data in the reception buffer 15, takes out the data from the reception buffer 15 based on the reception request of the application program 11, and passes it to the application program 11. Once the data is passed to the application program 11, the receive buffer 15 is released.
このようにデータの受信が行われて業務が終了すると、
端末4から回線切断符号(DLE、EOT)が送信され
る。この回線切断符号は入出力手段14を通ってコント
ロール手段13に渡される。コントロール手段13は回
線切断符号を受は取ると、回線切断手段16に制御を渡
す。制御を渡された回線切断手段16は監視手段17の
通知を受は応用プログラム11の未処理データがない場
合は即座に公衆通信回線2を切断する。未処理データが
ある場合には、回線切断手段16はタイマ通知手段18
に制御を渡す。タイマ通知手段18はあらかじめ定めら
れた時間経過後に回線切断手段16に制御を渡す。制御
を渡された回線切断手段16は再度監視手段17の通知
を受は応用プログラム11の未処理データの有無の監視
を行う。ここで、応用プログラム11の未処理データが
ない場合は、即座に公衆通信回線2を切断する。未処理
データがある場合は、回線切断手段16は再度タイマ通
知手段18に制御を渡す。When the data is received and the work is completed in this way,
A line disconnection code (DLE, EOT) is transmitted from the terminal 4. This line disconnection code is passed to the control means 13 through the input/output means 14. When the control means 13 receives the line disconnection code, it passes control to the line disconnection means 16. The line disconnecting means 16 to which control has been given receives the notification from the monitoring means 17 and immediately disconnects the public communication line 2 if there is no unprocessed data of the application program 11. If there is unprocessed data, the line disconnection means 16 sends a timer notification means 18.
Pass control to. The timer notification means 18 passes control to the line disconnection means 16 after a predetermined time has elapsed. The line disconnecting means 16 to which control has been transferred receives the notification from the monitoring means 17 again and monitors the presence or absence of unprocessed data of the application program 11. Here, if there is no unprocessed data of the application program 11, the public communication line 2 is immediately disconnected. If there is unprocessed data, the line disconnection means 16 transfers control to the timer notification means 18 again.
このように、回線切断符号を受信した場合に回線切断手
段16は一定時間ごとに未処理データの有無の監視を行
い、未処理データがある間は公衆通信回線2を切断せず
、再度タイマ通知手段18に制御を渡し、未処理データ
がなくなったことを契機に公衆通信回線2を切断する。In this way, when a line disconnection code is received, the line disconnection means 16 monitors the presence or absence of unprocessed data at regular intervals, does not disconnect the public communication line 2 while there is unprocessed data, and issues a timer notification again. Control is passed to the means 18, and the public communication line 2 is disconnected when there is no more unprocessed data.
本発明は以上説明したように、受信バッファ上の未処理
データの有無の監視を行うことにより、回線切断符号を
受信しても受信バッファに応用プログラムの未処理デー
タがない場合しか公衆通信回線を切断しないので、応用
プログラムの未処理データを破棄しない効果がある。As explained above, the present invention monitors the presence or absence of unprocessed data on the reception buffer, thereby allowing the public communication line to be connected only when there is no application program unprocessed data in the reception buffer even if a line disconnection code is received. Since it does not disconnect, it has the effect of not discarding unprocessed data of the application program.
図は本発明実施例の構成を示すブロック構成図。
1・・・ホストコンビ二一夕、2・・・公衆通信回線、
3・・・電話交換網、4・・・端末、11・・・応用プ
ログラム、12・・・非同期受信手段、13・・・コン
トロール手段、14・・・入出力手段、15・・・受信
バッファ、16・・・回線切断手段、17・・・監視手
段、18・・・タイマ通知手段。
特許出願人 日本電気株式会社、7.、?代理人 弁
理士 井 出 直 孝″゛、′旨−3:The figure is a block configuration diagram showing the configuration of an embodiment of the present invention. 1... Host combination Niichiyo, 2... Public communication line,
3... Telephone switching network, 4... Terminal, 11... Application program, 12... Asynchronous receiving means, 13... Control means, 14... Input/output means, 15... Reception buffer , 16... Line disconnection means, 17... Monitoring means, 18... Timer notification means. Patent applicant: NEC Corporation, 7. ,? Agent Patent Attorney Nao Takashi Ide"゛,'To-3:
Claims (1)
を一時記憶する受信バッファと、この受信バッファ上の
データを処理する応用プログラム手段と、 上記端末から到来する回線切断符号に基づき自装置を上
記公衆通信回線から切断する切断手段を有する回線切断
手段と を備えたデータ処理装置において、 回線切断符号が到来した時刻から計時を開始するタイマ
手段と、 回線切断符号の到来した時刻およびこのタイマ手段が指
定する時刻ごとに繰返し上記受信バッファ上の未処理デ
ータの有無を監視する監視手段とを備え、 上記回線切断手段は、この監視手段が上記受信バッファ
上に未処理データがあることを検知したときは上記監視
手段に監視の継続を要求し、また、上記受信バッファ上
の未処理データがないことを検知したときは上記切断手
段を起動する手段を有する ことを特徴とするデータ処理装置。(1) A reception buffer that temporarily stores data arriving from a terminal via a public communication line, an application program means for processing the data on this reception buffer, and an application program means that automatically disconnects the own device based on a line disconnection code that arrives from the terminal. A data processing device comprising a line disconnection means having a disconnection means for disconnecting from the public communication line, a timer means for starting time measurement from the time when the line disconnection code arrives; and a timer means for starting time measurement from the time the line disconnection code arrives. monitoring means for repeatedly monitoring the presence or absence of unprocessed data on the reception buffer at each time specified by the line disconnection means; The data processing device further comprises means for requesting the monitoring means to continue monitoring when the data processing time is reached, and for activating the disconnection means when detecting that there is no unprocessed data on the reception buffer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62252738A JPH0194461A (en) | 1987-10-06 | 1987-10-06 | Data processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62252738A JPH0194461A (en) | 1987-10-06 | 1987-10-06 | Data processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0194461A true JPH0194461A (en) | 1989-04-13 |
Family
ID=17241580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62252738A Pending JPH0194461A (en) | 1987-10-06 | 1987-10-06 | Data processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0194461A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0343850A (en) * | 1989-07-11 | 1991-02-25 | Fujitsu Ltd | Communication cut-off system |
JPH03270443A (en) * | 1990-03-20 | 1991-12-02 | Fujitsu Ltd | System for controlling modem with built-in buffer |
-
1987
- 1987-10-06 JP JP62252738A patent/JPH0194461A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0343850A (en) * | 1989-07-11 | 1991-02-25 | Fujitsu Ltd | Communication cut-off system |
JPH03270443A (en) * | 1990-03-20 | 1991-12-02 | Fujitsu Ltd | System for controlling modem with built-in buffer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0194461A (en) | Data processor | |
JPH01297749A (en) | Host computer | |
JPH01141455A (en) | System for disconnecting public communication line | |
US7570724B1 (en) | Method of link word synchronization | |
JPS5811146B2 (en) | Communication method using polling emulator | |
JPS61148932A (en) | Statistical multiplexer | |
JPH03292554A (en) | Communication processor | |
JPS62213457A (en) | Recalling control device for communication equipment | |
JPS61181238A (en) | Data transmission equipment | |
KR100684170B1 (en) | Apparatus and method for dots(digital office time supply) clock switching and synchronous network process unit using the same | |
JPS6222296B2 (en) | ||
JPH025668A (en) | Line cut-off system for public communication line | |
JPH0685905A (en) | Processor supervisory system for signal processing function | |
JPS62159245A (en) | Health checking system for computer system | |
JPS6333949A (en) | Data communication system | |
JPS6376539A (en) | Repeater calling epuipment | |
JPH03117945A (en) | Communication equipment using hdlc procedure | |
JPS63203050A (en) | Public communication line disconnecting system | |
JPH03108930A (en) | Asynchronous communication system | |
JPS6077554A (en) | Supervising system of packet communication | |
JPH07212362A (en) | Terminal monitoring method in packet exchange network | |
JPS63206051A (en) | Method for processing interruption fault for communication line | |
JPH07141275A (en) | Method for information transmission and device therefor | |
JPH07131505A (en) | Fault detection system for serial communication circuit | |
JPS63284941A (en) | Terminal equipment |