JPH0556108A - Data communication terminal equipment - Google Patents

Data communication terminal equipment

Info

Publication number
JPH0556108A
JPH0556108A JP3234032A JP23403291A JPH0556108A JP H0556108 A JPH0556108 A JP H0556108A JP 3234032 A JP3234032 A JP 3234032A JP 23403291 A JP23403291 A JP 23403291A JP H0556108 A JPH0556108 A JP H0556108A
Authority
JP
Japan
Prior art keywords
status
communication
communication port
storage means
data communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3234032A
Other languages
Japanese (ja)
Inventor
Hiroshi Kanamaru
浩 金丸
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3234032A priority Critical patent/JPH0556108A/en
Publication of JPH0556108A publication Critical patent/JPH0556108A/en
Pending legal-status Critical Current

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To supply a data communication terminal equipment which can easily store the change of the status of a communication port without the need of the other private unit for storing the status of the communication port and which can minutely analyze the change of the status of the communication port. CONSTITUTION:A read means (communication status read part) 11 reads the status of the communication port 5 at every prescribed time by a timer 12. The status of the communication port 5, which is read, is written into a main storage means (communication status storage part) 13. A write means (communication status write part) 14 writes the status of the communication port 5, which is written into the main storage means 13, into an auxiliary storage means (auxiliary storage device) 15.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ホストコンピュータ装
置と通信ポートを介してデータ通信を行なうもので、特
に、通信ポートのステータスの変化によって両者間の通
信処理を制御するデータ通信端末装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data communication with a host computer device via a communication port, and more particularly to a data communication terminal device for controlling communication processing between the two by changing the status of the communication port.

【0002】[0002]

【従来の技術】従来のデータ通信端末装置には、通信ポ
ートのステータスを記憶する手段は無く、他の専用の機
器を接続して通信ポートのステータスを確認していた。
2. Description of the Related Art In a conventional data communication terminal device, there is no means for storing the status of a communication port, and another dedicated device is connected to check the status of the communication port.

【0003】[0003]

【発明が解決しようとする課題】従って、従来のデータ
通信端末装置では、通信ポートのステータスを知るため
に、他の専用機器が必要であり、しかも、現在の状況を
知ることができるだけで一定時間毎に通信ポートのステ
ータスを記憶して、後で、この通信ポートのステータス
の変化を詳細に解析して、プログラムの検証などを行な
うということはできなかった。
Therefore, in the conventional data communication terminal device, another dedicated device is required to know the status of the communication port, and moreover, the current status can be known for a certain period of time. It was not possible to memorize the status of the communication port for each and then analyze the change in the status of the communication port in detail to verify the program.

【0004】本発明は、上記事情に鑑みてなされたもの
で、通信ポートのステータスを記憶するために他の専用
機器を必要とせず、しかも、一定時間毎に通信ポートの
ステータスを記憶して、後で、この通信ポートのステー
タスの変化を詳細に解析して、プログラムの検証などを
行なうことができるようにしたデータ通信端末装置を提
供することを目的としている。
The present invention has been made in view of the above circumstances, and does not require any other dedicated device for storing the status of the communication port, and further, stores the status of the communication port at regular intervals, It is an object of the present invention to provide a data communication terminal device capable of later performing detailed analysis of changes in the status of the communication port and verifying a program.

【0005】[0005]

【課題を解決するための手段】斯かる目的を達成するた
め本発明は、ホストコンピュータ装置と通信ポートを介
してデータ通信を行なうデータ通信端末装置において、
前記通信ポートのステータスを記憶する主記憶手段と、
タイマーによって一定時間毎に前記通信ポートのステー
タスを読み取って前記主記憶手段に書き込む読取手段
と、該読取手段により読み取られて前記主記憶手段に書
き込まれた前記通信ポートのステータスを記憶する補助
記憶手段と、前記主記憶手段に記憶されている前記通信
ポートのステータスを前記補助記憶手段に書き込む書込
手段とを有することを特徴とするものである。
In order to achieve such an object, the present invention provides a data communication terminal device for performing data communication with a host computer device through a communication port,
Main storage means for storing the status of the communication port,
A reading unit that reads the status of the communication port at a fixed time by a timer and writes the status in the main storage unit, and an auxiliary storage unit that stores the status of the communication port read by the reading unit and written in the main storage unit. And a writing means for writing the status of the communication port stored in the main storage means into the auxiliary storage means.

【0006】[0006]

【作用】読取手段が、タイマーによって一定時間毎に通
信ポートのステータスを読み取り、該読み取った通信ポ
ートのステータスを主記憶手段に書き込み、該主記憶手
段に書き込まれた前記通信ポートのステータスを、書込
手段により補助記憶手段に書き込む。これによって、後
で、前記通信ポートのステータスの変化を詳細に解析し
て、プログラムの検証などを行なうことができる。
The reading means reads the status of the communication port at regular intervals by the timer, writes the read status of the communication port to the main storage means, and writes the status of the communication port written to the main storage means. The data is written in the auxiliary storage means by the inserting means. This makes it possible to analyze the change in the status of the communication port in detail and verify the program later.

【0007】[0007]

【実施例】以下、本発明の実施例を図面に基づき説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0008】図1は、本発明の一実施例に係るデータ通
信端末装置のブロック構成図であり、同図中、1はデー
タ通信端末装置で、端末制御部2を有している。この端
末制御部2は、本端末装置1全体を制御するものであ
る。端末制御部2には、キーボード等の入力装置3が入
力制御部4を介して接続されている。この入力制御部4
は入力装置3を制御するものである。
FIG. 1 is a block diagram of a data communication terminal device according to an embodiment of the present invention. In FIG. 1, reference numeral 1 is a data communication terminal device having a terminal control unit 2. The terminal control unit 2 controls the entire terminal device 1. An input device 3 such as a keyboard is connected to the terminal control unit 2 via an input control unit 4. This input control unit 4
Controls the input device 3.

【0009】また、端末制御部2には、通信ポート5が
通信制御部6を介して接続されている。この通信ポート
5は通信回線7を介してホストコンピュータ装置8に接
続されている。通信制御部6は本端末装置1の通信処理
を制御するものである。端末制御部2には出力制御部9
を介して出力装置10が接続されている。この出力制御
部9は出力装置10を制御するもので、この出力装置1
0は表示装置などである。
A communication port 5 is connected to the terminal control unit 2 via a communication control unit 6. The communication port 5 is connected to the host computer device 8 via a communication line 7. The communication control unit 6 controls the communication processing of the terminal device 1. The terminal controller 2 includes an output controller 9
The output device 10 is connected via. The output control unit 9 controls the output device 10.
0 is a display device or the like.

【0010】通信ポート5には通信ステータス読取部
(読取手段)11が接続されている。この読取部11
は、タイマー12によって一定時間毎に通信ポート5の
ステータスを読み取り、通信ステータス記憶部(主記憶
手段)13に書き込むものである。タイマー12と通信
ステータス記憶部13は、読取部11に接続されてい
る。通信ステータス記憶部13には、通信ステータス書
込部(書込手段)14が接続されている。この書込部1
4は、通信ステータス記憶部13にデータが存在すると
そのデータを補助記憶装置(補助記憶手段)15に書き
込むものである。この補助記憶装置15は磁気ディスク
や光ディスクなどであって、補助記憶制御部16を介し
て、書込部14に接続され、この補助記憶制御部16に
より制御される。また、補助記憶制御部16は、端末制
御部2に接続されている。
A communication status reading unit (reading means) 11 is connected to the communication port 5. This reading unit 11
Is for reading the status of the communication port 5 by the timer 12 at regular intervals and writing it in the communication status storage unit (main storage means) 13. The timer 12 and the communication status storage unit 13 are connected to the reading unit 11. A communication status writing unit (writing means) 14 is connected to the communication status storage unit 13. This writing unit 1
Reference numeral 4 is for writing the data to the auxiliary storage device (auxiliary storage means) 15 when the communication status storage unit 13 has the data. The auxiliary storage device 15 is a magnetic disk, an optical disk, or the like, is connected to the writing unit 14 via the auxiliary storage control unit 16, and is controlled by the auxiliary storage control unit 16. Further, the auxiliary storage control unit 16 is connected to the terminal control unit 2.

【0011】次に、本発明のデータ通信端末装置1の処
理手順を図2、及び図3のフローチャートに従って説明
する。
Next, the processing procedure of the data communication terminal device 1 of the present invention will be described with reference to the flowcharts of FIGS. 2 and 3.

【0012】まず、本端末装置1の電源を投入したとき
の初期化処理において、タイマー12によって起動され
る通信ステータス読取部11の処理時間間隔をミリ秒単
位で設定できるものとする。
First, in the initialization process when the power of the terminal device 1 is turned on, the processing time interval of the communication status reading unit 11 activated by the timer 12 can be set in millisecond units.

【0013】最初に、図2に従って、通信ステータス読
取部11の処理手順を説明する。
First, the processing procedure of the communication status reading unit 11 will be described with reference to FIG.

【0014】通信ステータス読取部11は、タイマー1
2によって一定時間毎に起動され、通信ステータス書込
部14よりは優先的に処理される。
The communication status reading unit 11 includes a timer 1
2 is activated at regular time intervals, and is preferentially processed by the communication status writing unit 14.

【0015】まず、ステップ1において、通信ポート5
のステータスを読み取る。次いで、ステップ2におい
て、通信ステータス記憶部13をアクセス中で使用でき
ないことを示すアクセス・フラッグがオン(ON)か否
かを調べる。オンならば、ステップ3に進み、アクセス
要求フラッグをオンにして、優先的にアクセスできるよ
うにした後、上記ステップ2に戻り、アクセス・フラッ
グがオフ(OFF)になるまで上述した処理を繰り返
す。
First, in step 1, the communication port 5
Read the status of. Next, in step 2, it is checked whether or not the access flag indicating that the communication status storage unit 13 is being accessed and cannot be used is ON. If it is on, the process proceeds to step 3 to turn on the access request flag to allow preferential access, and then returns to step 2 to repeat the above-described processing until the access flag is turned off (OFF).

【0016】また、ステップ2において、アクセス・フ
ラッグがオフならば、ステップ4に進み、アクセス要求
フラッグをオフにして、次のステップ5において、アク
セス・フラッグをオンにして、排他制御をする。
If the access flag is off in step 2, the process proceeds to step 4, the access request flag is turned off, and in the next step 5, the access flag is turned on to perform exclusive control.

【0017】そして、次のステップ6において、上記ス
テップ1で読み取った通信ポート5のステータスを、通
信ステータス記憶部13に書き込む。この通信ステータ
ス記憶部13のデータ構造は、図4に示すように、1バ
イトで8個の信号を記憶できるようになっている。そし
て、ステップ6で通信ステータス記憶部13に通信ポー
ト5のステータスを書き込んだ後は、ステップ7でアク
セス・フラッグをオフにして、本処理動作を終了する。
Then, in the next step 6, the status of the communication port 5 read in step 1 is written in the communication status storage unit 13. As shown in FIG. 4, the data structure of the communication status storage unit 13 can store eight signals in one byte. Then, after the status of the communication port 5 is written in the communication status storage unit 13 in step 6, the access flag is turned off in step 7, and this processing operation is ended.

【0018】次に、通信ステータス書込部14の処理手
順を図3に従って説明する。
Next, the processing procedure of the communication status writing unit 14 will be described with reference to FIG.

【0019】まず、ステップ11において、通信ステー
タス記憶部13に補助記憶装置15に書き込むべきデー
タが存在するか否かを調べる。存在しないときは存在す
るまで、このステップ11を繰り返す。存在するとき
は、次のステップ12に進み、アクセス・フラッグがオ
ンか否かを調べる。アクセス・フラッグがオンならば、
このステップ12を繰り返し、アクセス・フラッグがオ
フになるまで待つ。アクセス・フラッグがオフならば次
のステップ13に進み、アクセス・フラッグをオンにし
て、排他制御する。
First, in step 11, it is checked whether or not there is data to be written in the auxiliary storage device 15 in the communication status storage unit 13. If it does not exist, this step 11 is repeated until it exists. If so, the process proceeds to the next step 12 to check whether or not the access flag is on. If the access flag is on,
Repeat step 12 and wait until the access flag is turned off. If the access flag is off, the process proceeds to the next step 13 to turn on the access flag and perform exclusive control.

【0020】そして、次のステップ14において、通信
ステータス記憶部13のデータを古いものからブロック
単位に補助記憶装置15に書き込んだ後、ステップ15
に進んで、データをすべて書き込んだか否かを調べる。
まだ、書き込んでないデータがある場合は次のステップ
16に進み、アクセス要求フラッグがオンか否かを調べ
る。アクセス要求フラッグがオンでなければ、即ち、オ
フならば、上記ステップ14に戻り、再度、書き込みを
繰り返す。
Then, in the next step 14, after writing the data in the communication status storage unit 13 in blocks from the oldest one to the auxiliary storage device 15, step 15
Proceed to and check whether all the data has been written.
If there is data that has not been written yet, the process proceeds to the next step 16 to check whether or not the access request flag is on. If the access request flag is not on, that is, if it is off, the process returns to step 14 and the writing is repeated again.

【0021】また、アクセス要求フラッグがオンなら
ば、通信ステータス読取部11からアクセス要求があっ
たということなので、書き込みを中断した後、ステップ
17に進んで、アクセス・フラッグをオフにした後、上
記ステップ11に戻り、上述した処理を繰り返す。ま
た、上記ステップ15において、すべてのデータを書き
込んだときは、ステップ16を実行せずにステップ17
に進む。
If the access request flag is on, it means that the communication status reading unit 11 has made an access request. Therefore, after interrupting the writing, the process proceeds to step 17 to turn off the access flag, and then the above-mentioned. Returning to step 11, the above-mentioned processing is repeated. When all the data is written in step 15 above, step 16 is not executed and step 17
Proceed to.

【0022】上記実施例においては、図4に示したよう
に、通信ステータス記憶部13のデータ構造は1バイト
である。つまり、8個の信号を記憶することができる。
In the above embodiment, as shown in FIG. 4, the data structure of the communication status storage unit 13 is 1 byte. That is, eight signals can be stored.

【0023】しかし、図5に示す如く、通信ステータス
記憶部13のデータ構造を、2バイト以上に拡張するこ
とによって、本端末装置1に装備されている通信ポート
5の信号をすべて記憶することが可能となる。
However, as shown in FIG. 5, by expanding the data structure of the communication status storage unit 13 to 2 bytes or more, it is possible to store all the signals of the communication port 5 equipped in the terminal device 1. It will be possible.

【0024】[0024]

【発明の効果】以上説明したように、本発明のデータ通
信端末装置によれば、通信ポートのステータスを記憶す
るために、他の専用機器を必要とせず、通信ポートのス
テータスの変化を容易に記憶することができ、しかも、
一定時間毎の連続した記録をとれるので、通信ポートの
ステータスの変化を詳細に解析することによって、プロ
グラムの検証などを行なうことができる。
As described above, according to the data communication terminal device of the present invention, it is possible to easily change the status of the communication port without needing any other dedicated device for storing the status of the communication port. Can be remembered, and
Since continuous recording can be taken at regular time intervals, detailed analysis of changes in the status of the communication port enables program verification and the like.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例に係るデータ通信端末装置の
ブロック構成図である。
FIG. 1 is a block configuration diagram of a data communication terminal device according to an embodiment of the present invention.

【図2】図1に示すデータ通信端末装置における通信ス
テータス読取部の処理手順を示すフローチャートであ
る。
FIG. 2 is a flowchart showing a processing procedure of a communication status reading unit in the data communication terminal device shown in FIG.

【図3】図1に示すデータ通信端末装置における通信ス
テータス読取部の処理手順を示すフローチャートであ
る。
FIG. 3 is a flowchart showing a processing procedure of a communication status reading unit in the data communication terminal device shown in FIG.

【図4】図1に示すデータ通信端末装置における通信ス
テータス記憶部のデータ構造図である。
FIG. 4 is a data structure diagram of a communication status storage unit in the data communication terminal device shown in FIG.

【図5】本発明の他の実施例に係るデータ通信端末装置
における通信ステータス記憶部のデータ構造図である。
FIG. 5 is a data structure diagram of a communication status storage unit in a data communication terminal device according to another embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 データ通信端末装置 5 通信ポート 8 ホストコンピュータ装置 11 通信ステータス読取部(読取手段) 12 タイマー 13 通信ステータス記憶部(主記憶手段) 14 通信ステータス書込部(書込手段) 15 補助記憶装置(補助記憶手段) DESCRIPTION OF SYMBOLS 1 data communication terminal device 5 communication port 8 host computer device 11 communication status reading unit (reading unit) 12 timer 13 communication status storage unit (main storage unit) 14 communication status writing unit (writing unit) 15 auxiliary storage device (auxiliary) Storage means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータ装置と通信ポートを
介してデータ通信を行なうデータ通信端末装置におい
て、前記通信ポートのステータスを記憶する主記憶手段
と、タイマーによって一定時間毎に前記通信ポートのス
テータスを読み取って前記主記憶手段に書き込む読取手
段と、該読取手段により読み取られて前記主記憶手段に
書き込まれた前記通信ポートのステータスを記憶する補
助記憶手段と、前記主記憶手段に記憶されている前記通
信ポートのステータスを前記補助記憶手段に書き込む書
込手段とを有することを特徴とするデータ通信端末装
置。
1. In a data communication terminal device for performing data communication with a host computer device via a communication port, main memory means for storing the status of the communication port, and a timer for reading the status of the communication port at regular intervals. Reading means for writing in the main storage means, auxiliary storage means for storing the status of the communication port read by the reading means and written in the main storage means, and the communication stored in the main storage means A data communication terminal device, comprising: writing means for writing the status of the port into the auxiliary storage means.
JP3234032A 1991-08-21 1991-08-21 Data communication terminal equipment Pending JPH0556108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3234032A JPH0556108A (en) 1991-08-21 1991-08-21 Data communication terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3234032A JPH0556108A (en) 1991-08-21 1991-08-21 Data communication terminal equipment

Publications (1)

Publication Number Publication Date
JPH0556108A true JPH0556108A (en) 1993-03-05

Family

ID=16964495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3234032A Pending JPH0556108A (en) 1991-08-21 1991-08-21 Data communication terminal equipment

Country Status (1)

Country Link
JP (1) JPH0556108A (en)

Similar Documents

Publication Publication Date Title
JP2561398B2 (en) Redundant disk controller
JPH0556108A (en) Data communication terminal equipment
JPH0793101A (en) Data backup device
KR960001096B1 (en) Booting drive system
US20030120862A1 (en) Controlling method of storage apparatus, and storage apparatus, disk array device, and disk controller used in the method thereof
JPH0644193A (en) I/o register access system
JPS63115251A (en) Disk cache controller
JPS6069759A (en) Control system for disk cache memory
JPH08249289A (en) Memory controller and its control method
JPH0635624A (en) Fixed magnetic disk device
JPH07218602A (en) Semiconductor tester
JP2793447B2 (en) Controller access control method
JP2594567B2 (en) Memory access control device
JPH04239335A (en) Constitution check system for peripheral device
JPH05257824A (en) Method for testing external storage device
JPS62134718A (en) Data access control system
JPS61253672A (en) Recording mode automatic switching system of auxiliary memory device
JPS5819970A (en) Memory access controlling system
JPS5920030A (en) Controlling system of input and output instruction
JPH0216623A (en) Electronic disk device
JPS59226954A (en) Type-based recorder of memory access
JPH04262449A (en) Data transfer system
JPH06282456A (en) Artificial oiperation device
JPS59157758A (en) Common control system of magnetic storage device
KR19990058631A (en) DM Controller