JPH0720154B2 - Two-way communication system - Google Patents

Two-way communication system

Info

Publication number
JPH0720154B2
JPH0720154B2 JP63173751A JP17375188A JPH0720154B2 JP H0720154 B2 JPH0720154 B2 JP H0720154B2 JP 63173751 A JP63173751 A JP 63173751A JP 17375188 A JP17375188 A JP 17375188A JP H0720154 B2 JPH0720154 B2 JP H0720154B2
Authority
JP
Japan
Prior art keywords
data
line
personal computer
busy
signal
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
JP63173751A
Other languages
Japanese (ja)
Other versions
JPH0225140A (en
Inventor
幸一 塩野
Original Assignee
アイワ株式会社
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 アイワ株式会社 filed Critical アイワ株式会社
Priority to JP63173751A priority Critical patent/JPH0720154B2/en
Publication of JPH0225140A publication Critical patent/JPH0225140A/en
Publication of JPH0720154B2 publication Critical patent/JPH0720154B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、ファクシミリ装置とパソコンとの間の通信
に使用して好適な双方向通信システムに関する。
The present invention relates to a two-way communication system suitable for use in communication between a facsimile machine and a personal computer.

「従来の技術」 パソコン通信などによってデータ通信を行なう場合、RS
−232C通信インターフェースを用いるのが一般的であ
る。
"Conventional technology" When performing data communication by personal computer communication, RS
It is common to use a −232C communication interface.

このRS−232Cによって、データ通信を行なう場合、一般
的には、通信ソフトウェアを起動し、これを利用するこ
とが通信上有効な手段とされている。RS−232Cによって
通信を行なうには、前もってハードウェアの設定を行な
う必要があり、これらの操作は通信ソフトウェア上で設
定できるものの、ユーザにはこの通信ソフトウェアを動
かす上で特別の知識を必要とする。
When performing data communication by this RS-232C, generally, it is considered to be effective means for communication to activate communication software and use it. In order to communicate by RS-232C, it is necessary to set the hardware in advance, and although these operations can be set on the communication software, the user needs special knowledge to operate this communication software. .

一方、パソコン及び一般のパソコン用アプリケーション
ソフトでは、プリントアウト機能は必須のものであり、
ユーザにとっても熟知された機能の1つである。そのた
め、このプリントアウト機能を利用すればパソコンから
のデータ送出に関しては、簡単な操作によってこれを行
なうことができる。
On the other hand, the printout function is essential for PCs and general PC application software.
It is one of the functions well known to the user. Therefore, by using this printout function, data transmission from a personal computer can be performed by a simple operation.

従って、第9図に示すように、ホスト側装置例えばパソ
コン20と、スレーブ側装置(例えばモデム)10Xとの間
においてデータ通信を行なう場合で、パソコン20のプリ
ントアウト機能を利用すると共に、RS−232C通信インタ
ーフェースを利用すれば、ユーザの負担を軽減すること
ができ、また送信する目的であれば改めて通信用ソフト
ウェアを起動することなく、目的を実現できるため、通
信を行なうには極めて有効な手段といえる。
Therefore, as shown in FIG. 9, when the data communication is performed between the host side device, for example, the personal computer 20, and the slave side device (for example, the modem) 10X, the printout function of the personal computer 20 is used and RS- By using the 232C communication interface, the burden on the user can be reduced, and for the purpose of transmission, the purpose can be realized without starting communication software again, so an extremely effective means for communication. Can be said.

通信インターフェースとしてRS−232Cの代わりにプリン
タインターフェースを使用することが考えられる。
It is conceivable to use a printer interface instead of RS-232C as the communication interface.

しかし、プリンタインターフェースは一般には、パソコ
ン20からプリンターへの片方向伝送のインターフェース
であるため、双方向伝送を必要とするデータ通信にはこ
れを適用することができない。
However, since the printer interface is generally a one-way transmission interface from the personal computer 20 to the printer, this cannot be applied to data communication that requires two-way transmission.

そのため、第10図に示すように、パソコン20への逆方向
伝送のために、RS−232Cインターフェースを用いること
によって、これを回避する考えがある。即ち、双方向通
信を行なうため、複数のインターフェース(プリンタイ
ンターフェース、RS−232C通信インターフェース)を利
用する場合である。
Therefore, as shown in FIG. 10, there is an idea to avoid this by using an RS-232C interface for reverse transmission to the personal computer 20. That is, this is a case where a plurality of interfaces (printer interface, RS-232C communication interface) are used to perform bidirectional communication.

「発明が解決しようとする課題」 このようにデータ通信を行なう場合、複数のインターフ
ェースを利用して双方向通信システムを構築する場合に
は、パソコン20からの送信を考慮すると、上述したよう
ないろいろな長所を有するものの、その反面、双方向通
信用として複数のインターフェースを用意する必要があ
り、コスト面、操作面等で種々の問題を惹起する。
[Problems to be Solved by the Invention] In the case of performing data communication as described above, in the case of constructing a two-way communication system using a plurality of interfaces, in consideration of transmission from the personal computer 20, various problems as described above are considered. However, on the other hand, it is necessary to prepare a plurality of interfaces for bidirectional communication, which causes various problems in terms of cost and operation.

このような問題は、プリンタインターフェースのみで、
双方向通信システムを構築すればよい。
The problem is only the printer interface,
A bidirectional communication system may be constructed.

しかし、このようなプリンタインターフェースによっ
て、双方向通信システムを構築する考え方は現在しな
い。。
However, there is currently no idea to construct a two-way communication system with such a printer interface. .

そこで、この発明においては、周知のプリンタインター
フェースのみで、双方向通信システムを構築できるよう
にしたものである。
Therefore, in the present invention, the bidirectional communication system can be constructed only by the well-known printer interface.

「課題を解決するための手段」 上述の課題を解決するため、この発明においては、ビジ
ィー線、データストローブ線及びパラレルデータ線で構
成されるプリンタインターフェースにおいて、 ホスト側装置からデータ線を通してスレーブ側装置にク
ロックが送出され、 スレーブ側装置においては、このクロックに同期したデ
ータをビジィー線を通してホスト側装置に伝送するよう
にし、かつ、ホスト側ではこのクロックに同期してデー
タを受け取るようにしたことを特徴とするものである。
[Means for Solving the Problems] In order to solve the above problems, according to the present invention, in a printer interface including a busy line, a data strobe line, and a parallel data line, a slave side device is passed from a host side device through a data line. A clock is sent to the slave side device, and the slave side device transmits data synchronized with this clock to the host side device through the busy line, and the host side receives data in synchronization with this clock. It is a feature.

「作 用」 ホスト側装置即ちパソコン20から、スレーブ側装置即ち
モデム等にデータを伝送する場合には、通常のようにプ
リンタインターフェースを用いて送信すればよい。
[Operation] When data is transmitted from the host side device, that is, the personal computer 20, to the slave side device, that is, the modem, it may be transmitted using a printer interface as usual.

これに対して、パソコン側がモデム側からデータを受信
する場合には、以下のようになる。
On the other hand, when the personal computer side receives the data from the modem side, it becomes as follows.

パソコン側からデータ線を通してモデム側にシリアルク
ロックSCKを送出する。
The serial clock SCK is sent from the personal computer side to the modem side through the data line.

モデム側においては、このシリアルクロックSCKに同期
して、受信データがビジィー線BUSYを通してマイコン20
にシリアル伝送される。
On the modem side, the received data is sent via the busy line BUSY to the microcomputer 20 in synchronization with this serial clock SCK.
Serially transmitted to.

こうすることによって、プリンタインターフェースに設
けられたビジィー線をデータ線として利用することがで
きる。
By doing so, the busy line provided in the printer interface can be used as the data line.

なお、データを送出するまでの間はパソコン20とモデム
側とは、ビジィー線及びデータストローブ線を利用して
夫々のタイミング制御が実行される。
The timing control is executed between the personal computer 20 and the modem side by using the busy line and the data strobe line until the data is transmitted.

「実 施 例」 続いて、この発明に係る双方向通信システムの一例を上
述したように、パソコンとファクシミリ装置との間のデ
ータ通信システムに適用した場合につき、第1図以下を
参照して詳細に説明する。
[Examples] Next, with reference to FIG. 1 and subsequent figures, a case where the two-way communication system according to the present invention is applied to a data communication system between a personal computer and a facsimile machine as described above is described in detail. Explained.

この発明においては、第1図に示すようにプリンタイン
ターフェース70を利用して、双方向通信を実現したもの
である。
In the present invention, bidirectional communication is realized by utilizing a printer interface 70 as shown in FIG.

第2図はこの双方向通信システムにおける受信系1Aの一
例を示し、第3図は送信系1Bの一例を示す。
FIG. 2 shows an example of the receiving system 1A in this two-way communication system, and FIG. 3 shows an example of the transmitting system 1B.

第2図に示す受信系1Aにおいて、10はファクシミリアダ
プタ、20はホスト側装置であるパソコンを示す。30はパ
ソコン20などのデータをプリントアウトするためのプリ
ンタである。ファクシミリアダプタ10は、スレーブ側装
置として機能する。
In the receiving system 1A shown in FIG. 2, reference numeral 10 is a facsimile adapter, and 20 is a host side personal computer. Reference numeral 30 is a printer for printing out data from the personal computer 20 and the like. The facsimile adapter 10 functions as a slave side device.

電話回線より供給されたデータは、網制御回路(NCU)4
0を経て、モデム50に供給されてデータ復調が行なわれ
た後、復調されたデータは並列直列変換回路60におい
て、1バイトのパラレルデータがシリアルデータに変換
される。
The data supplied from the telephone line is the network control circuit (NCU) 4
After passing through 0 and being supplied to the modem 50 for data demodulation, the demodulated data is converted by the parallel-serial conversion circuit 60 into 1-byte parallel data into serial data.

復調データをシリアル変換するため、この例ではパソコ
ン20より供給されたシリアルクロックSCKに同期して、
シリアル変換される。
In order to convert the demodulated data to serial, in this example, in synchronization with the serial clock SCK supplied from the personal computer 20,
Converted to serial.

シリアル変換されたデータは、プリンタインターフェー
ス70を経て、パソコン20に供給される。
The serial-converted data is supplied to the personal computer 20 via the printer interface 70.

シリアルデータの送出は、プリンタインターフェース70
に設けられたビジィー線が利用される。
The printer interface 70 sends serial data.
The busy line provided in is used.

第3図は双方向通信システムにおける送信系1Bの一例を
示すものであって、送信系1Bもパソコン20、プリンタ30
の他にファクシミリアダプタ10で構成されている。
FIG. 3 shows an example of the transmission system 1B in the two-way communication system. The transmission system 1B is also a personal computer 20 and a printer 30.
In addition to the above, the facsimile adapter 10 is configured.

パソコン20より送信されたデータはプリンタインターフ
ェース70を経て、プリンタ30に供給されて必要なプリン
ト処理が実行される。データ伝送の場合には、このプリ
ンタインターフェース70を経て、信号変換手段100に供
給され、信号変換されたデータはモデム50を経てNCU40
に供給され、電話回線等の通信回線側に送出される。こ
のとき、パソコン20側はプリントアウトモードとなって
いる。
The data transmitted from the personal computer 20 is supplied to the printer 30 via the printer interface 70 and the necessary print processing is executed. In the case of data transmission, the data is supplied to the signal conversion means 100 via the printer interface 70, and the signal-converted data is transmitted via the modem 50 to the NCU 40.
Is supplied to the communication line side such as a telephone line. At this time, the personal computer 20 side is in the printout mode.

第4図はプリンタインターフェース70の一例を示す。FIG. 4 shows an example of the printer interface 70.

パソコン20側からは8ビットのデータ線D0〜D7の他に、
ストローブ線(STB)及びビジィー線(BUSY)の計9本
の線が導出され、これが入力端子71に導かれる。入力端
子71において、データ線D0〜D7はプリンタ30側の端子72
の対応するデータ線D0〜D7に接続される。このプリンタ
側端子72の各データ線D0〜D7は、モデム50にデータバス
を介して供給される。また、端子72のデータ線のうちの
1本、即ちD0はデータ通信のときパソコン側から受信ブ
ロックを供給するのに用いられる。
From the personal computer 20 side, in addition to the 8-bit data lines D0 to D7,
A total of nine lines, that is, a strobe line (STB) and a busy line (BUSY), are led out, and these are led to the input terminal 71. In the input terminal 71, the data lines D0 to D7 are the terminals 72 on the printer 30 side.
Of the corresponding data lines D0 to D7. The data lines D0 to D7 of the printer-side terminal 72 are supplied to the modem 50 via the data bus. Also, one of the data lines of the terminal 72, that is, D0, is used to supply a reception block from the personal computer side during data communication.

端子71と72の各ストローブ線STBとビジィー線BUSYとの
間には、第1の切換手段75が設けられる。パソコン20か
らのデータをそのままプリントアウトするときには、端
子71におけるストローブ線STBとビジィー線BUSYとが、
端子72の対応するラインに接続される。
First switching means 75 is provided between each strobe line STB of terminals 71 and 72 and busy line BUSY. When printing the data from the personal computer 20 as it is, the strobe line STB and the busy line BUSY at the terminal 71 are
Connected to the corresponding line of terminal 72.

データ通信即ち受信データをパソコン20側に伝送する場
合には、プリンタインターフェース70側に切り換えられ
るようになされている。
When data communication, that is, received data is transmitted to the personal computer 20 side, it can be switched to the printer interface 70 side.

この切り換えは、マイコン80より送出された切換制御信
号(FAX)により行なわれる。制御信号FAXが得られる
と、トランジスタ76がオンしてリレー77が付勢される結
果、第1の切換手段75は実線図示の状態に切り換えられ
る。これによって、ビジィー線BUSYはシリアルデータ用
のデータ線として利用されることになる。
This switching is performed by a switching control signal (FAX) sent from the microcomputer 80. When the control signal FAX is obtained, the transistor 76 is turned on and the relay 77 is energized. As a result, the first switching means 75 is switched to the state shown by the solid line. As a result, the busy line BUSY is used as a data line for serial data.

ストローブ線STBはデータの授受を行なうための前処理
時のタイミング合わせに利用される。
The strobe line STB is used for timing adjustment during preprocessing for transmitting / receiving data.

即ち、パソコン20側から得られたストローブ信号(便宜
的にSTBとする、第6図C)は、第1の切換手段75及び
アンプ85を経て、D方フリップフロップ86のセット端子
に供給される。ストローブ信号STBの到来によって、そ
のQ端子からはそのストローブ信号STBの立ち下がりに
同期したハイレベルのパルスが得られる。このハイレベ
ルのパルス(以下BUSYパルスという)は、インバータ87
を経て、第2の切換手段82のD0端子に供給される。
That is, the strobe signal (STB for convenience, FIG. 6C) obtained from the personal computer 20 side is supplied to the set terminal of the D-type flip-flop 86 via the first switching means 75 and the amplifier 85. . When the strobe signal STB arrives, a high level pulse synchronized with the falling edge of the strobe signal STB is obtained from the Q terminal. This high-level pulse (hereinafter referred to as BUSY pulse) is
And is supplied to the D0 terminal of the second switching means 82.

第2の切換手段82は、ビジィー線BUSYをデータ線DATAと
しても使用するための切換手段で、受信データを送信す
るまでの間はパソコン20とプリンタインターフェース70
側とのタイミング調整用の信号線として使用される。
The second switching means 82 is a switching means for using the busy line BUSY also as the data line DATA, and until the reception data is transmitted, the personal computer 20 and the printer interface 70.
Used as a signal line for timing adjustment with the side.

従って、データ伝送が開始されるまではQ端子のビジィ
ー信号は、インバータ83を経てビジィー線BUSYに送出さ
れる。
Therefore, until the data transmission is started, the busy signal of the Q terminal is sent to the busy line BUSY via the inverter 83.

また、マイコン80より出力されたBUSYとREADYの切換信
号(第6図E)は、アンプ88を経て第2の切換手段82の
D0端子に供給される。従って、このD0端子はストローブ
信号STBが得られてから、レディー状態を示す切換信号
が得られるまでの間、常にローレベルを保持することに
なる。
Further, the BUSY / READY switching signal (FIG. 6E) output from the microcomputer 80 is sent to the second switching means 82 via the amplifier 88.
Supplied to the D0 pin. Therefore, the D0 terminal always maintains the low level from the time when the strobe signal STB is obtained until the time when the switching signal indicating the ready state is obtained.

なお、第2の切換手段82はマイコン80より出力された切
換信号SENDによって制御される。
The second switching means 82 is controlled by the switching signal SEND output from the microcomputer 80.

さて、端子73に供給された入力受信データは、並列直列
変換回路60に供給されて、データがシリアル変換される
(第6図A,D)。シリアル変換のためのクロックとして
は、パソコン20より送出されたシリアルクロックSCKが
利用される(第6図A)。このシリアルクロックは、デ
ータ線D0〜D7の内の一本のデータ線を利用して送出され
る。この例では、D0のデータ線がシリアルクロックSCK
のクロック線としても利用される。
Now, the input reception data supplied to the terminal 73 is supplied to the parallel-serial conversion circuit 60, and the data is serial-converted (FIG. 6, A, D). As the clock for serial conversion, the serial clock SCK sent from the personal computer 20 is used (Fig. 6A). This serial clock is sent out using one of the data lines D0 to D7. In this example, the D0 data line is the serial clock SCK.
Also used as a clock line.

シリアルクロックSCKに同期して、シリアル変換された
1バイトの入力受信データはインバータ79、第2の切換
手段82のD1端子、さらには、インバータ83及び第1の切
換手段75を経てビジィー線BUSYに送出される。これで、
受信データが、パソコン20側にシリアル伝送される。
In synchronization with the serial clock SCK, the serially converted 1-byte input received data is transferred to the busy line BUSY via the inverter 79, the D1 terminal of the second switching means 82, the inverter 83 and the first switching means 75. Sent out. with this,
The received data is serially transmitted to the personal computer 20 side.

なお、D型フリップフロップ86の反転端子より得られ
るストローブ信号STBはマイコン80に供給されて、スト
ローブパルスSTBの到来が検出される。
The strobe signal STB obtained from the inverting terminal of the D-type flip-flop 86 is supplied to the microcomputer 80, and the arrival of the strobe pulse STB is detected.

第5図は、データ受信時におけるパソコン20とモデム50
との間の信号授受を行なうための制御プログラムの一例
である。
FIG. 5 shows a personal computer 20 and a modem 50 when receiving data.
3 is an example of a control program for exchanging signals with and.

従って、第1の切換手段75は実線図示側に切り換えら
れ、第2の切換手段82はD0端子側に切り換えられている
ものとする。
Therefore, it is assumed that the first switching means 75 is switched to the solid line side and the second switching means 82 is switched to the D0 terminal side.

まず、パソコン側の制御プログラム120がスタートする
ことにより、ステータスクロックST・CKの送出に伴っ
て、ファクシミリアダプタ10側の制御プログラム140で
はその確認処理が行なわれる(ステップ121,141)。
First, when the control program 120 on the personal computer side is started, the confirmation processing is performed by the control program 140 on the facsimile adapter 10 side with the sending of the status clocks ST and CK (steps 121 and 141).

アダプタ側においては、その後着信の有無がチェックさ
れ、着信があったときにはレディー信号READYがパソコ
ン側に送出され、このレディー信号READYを受けて、パ
ソコン側からはストローブ信号STBが送出される。この
ストローブ信号STBはアダプタ側において確認される(1
22,123,143,144)。
The adapter side then checks whether there is an incoming call, and when there is an incoming call, a ready signal READY is sent to the personal computer side, and upon receipt of this ready signal READY, a strobe signal STB is sent from the personal computer side. This strobe signal STB is confirmed on the adapter side (1
22,123,143,144).

ストローブ信号STBの確認が終了すると、アダプタ側か
らはレディー信号READYが送出されると共に、受信デー
タの内1バイトのデータがロードされる。受信データの
ロードが終了すると、ビジィー信号BUSYが送出される
(ステップ145〜147)。
When the confirmation of the strobe signal STB is completed, a ready signal READY is sent from the adapter side and 1 byte of the received data is loaded. When the loading of the reception data is completed, the busy signal BUSY is transmitted (steps 145 to 147).

パソコン側においては、レディー信号READYを受けるこ
とによってこれが確認されると、次にBUSY信号の確認が
行なわれる(ステップ124,125)。両者が何れも確認さ
れると、ストローブ信号STBがアダプタ側に送出され、
これを受けてアダプタ140側では、そのストローブ信号S
TBの確認処理が実行される(ステップ126,148)。この
ストローブ信号の確認が終了すると、ビジィー線BUSYが
データ線として利用すべく第2の切換手段82がD1端子側
に切り換え制御される(ステップ149)。
On the personal computer side, if this is confirmed by receiving the ready signal READY, then the BUSY signal is confirmed (steps 124 and 125). If both are confirmed, strobe signal STB is sent to the adapter side,
In response to this, on the adapter 140 side, the strobe signal S
TB confirmation processing is executed (steps 126 and 148). When the confirmation of the strobe signal is completed, the second switching means 82 is switched to the D1 terminal side so as to use the busy line BUSY as a data line (step 149).

ビジィー線BUSYの切り換えが終了すると、パソコン側か
らはシリアルクロックSCKが送出され、これに伴って並
列直列変換された受信データが送出される(ステップ12
7,150)。
When the switching of the busy line BUSY is completed, the serial clock SCK is sent from the personal computer side, and the parallel-to-serial converted received data is sent accordingly (step 12
7,150).

パソコン側では1ビットずつ順次受信され、1バイト分
の受信データの入力があったときには、シリアルクロッ
クSCKの送出が停止されると共に、受信した入力データ
の処理が実行される(ステップ128〜131)。
The personal computer sequentially receives the data bit by bit, and when the received data of 1 byte is input, the transmission of the serial clock SCK is stopped and the processing of the received input data is executed (steps 128 to 131). .

入力受信データの処理が終了すると、ステップ132にお
いてストローブ信号STBが送出されるから、アダプタ側
では、このストローブ信号STBの到来を確認した後、ビ
ジィー線BUSYを本来のビジィー線となるように切り換え
る(ステップ151,152)。その後、受信データが1ペー
ジの末行まで終了したかどうかがチェックされ、終了し
ていないときには、ステップ124に戻り、上述したと同
じ手順によって相互のタイミングをみながら1バイトず
つ順次シリアルデータがパソコン20側に伝送される。
When the processing of the input reception data is completed, the strobe signal STB is transmitted in step 132, and therefore the adapter side confirms the arrival of the strobe signal STB and then switches the busy line BUSY to the original busy line ( Steps 151, 152). After that, it is checked whether or not the received data is completed up to the end of one page, and if it is not completed, the process returns to step 124, and the serial data is serially transferred byte by byte to the personal computer while checking the mutual timing by the same procedure as described above. It is transmitted to the 20 side.

1ページ分のデータの入力及びパソコンへの送出が終了
すると、この制御ルーチンを抜ける(ステップ133,15
3)。
When the input of data for one page and the transmission to the personal computer are completed, this control routine is exited (steps 133, 15).
3).

このように、ステップ121〜123及び141〜144までは、何
れもパソコン側の受信準備確認ステップであり、またス
テップ124〜126まで及びステップ145〜148までは受信デ
ータのスタート同期を取るためのステップである。これ
は何れもバイト同期となされている。
As described above, steps 121 to 123 and 141 to 144 are all steps for confirming reception preparation on the personal computer side, and steps 124 to 126 and steps 145 to 148 are steps for synchronizing the start of the received data. Is. These are all byte-synchronized.

そして、ステップ127〜129まで及びステップ149,150は
何れもビット同期の区間である。そして、残りのステッ
プ130〜132まで及びステップ151,152は何れもバイト同
期の区間である。
Then, steps 127 to 129 and steps 149 and 150 are all bit synchronization sections. Then, the remaining steps 130 to 132 and steps 151 and 152 are both byte synchronization sections.

その結果、パソコン20側から送出されたシリアルクロッ
クSCKに同期して、1バイトの受信データがシリアル変
換されると共に、このシリアルクロックSCKに同期し
て、ビジィー線BUSYを介して1バイトのデータがシリア
ル転送される(第6図A,D参照)。
As a result, 1 byte of received data is serially converted in synchronization with the serial clock SCK sent from the personal computer 20 side, and 1 byte of data is transferred via the busy line BUSY in synchronization with this serial clock SCK. It is transferred serially (see A and D in Fig. 6).

第7図は第3図において示した信号変換手段100の一例
を示すものである。パソコン20から出力されたプリント
アウト用のデータは、上述したプリンタインターフェー
ス70を通して取り込まれ、一旦プリンタコードバッファ
用のRAM101に蓄積される。
FIG. 7 shows an example of the signal converting means 100 shown in FIG. The data for printout output from the personal computer 20 is taken in through the printer interface 70 described above and is temporarily stored in the RAM 101 for printer code buffer.

バッファ用RAM101のプリンタコードバッファが一杯にな
ると、プリンタインターフェース70からビジィー信号BU
SYがパソコン20側に転送され、これによってパソコン20
からのデータ送出がコントロールされる。
When the printer code buffer of the buffer RAM 101 is full, the busy signal BU is output from the printer interface 70.
SY is transferred to the PC 20 side, which causes the PC 20
The data transmission from is controlled.

そして、バッファRAM101のバッファ内のデータが順次、
ソフトウェアによるインタープリタ102によって解釈さ
れ、ROMで構成されたキャラクタージェネレータ103の文
字フォントが読みだされ、これがドットデータに変換さ
れて、ドットマップメモリ用RAM104上に展開する。
Then, the data in the buffer of the buffer RAM 101 is sequentially
A character font of the character generator 103 composed of a ROM is read by the software interpreter 102, read out, converted into dot data, and expanded on the dot map memory RAM 104.

横1ラインのドットデータが蓄積されると、1ラインの
データがコードテーブル用ROM106のコードテーブルが参
照されて、ファクシミリデータに変換され、これが順次
ファクシミリコードバッファ用のRAM105に蓄積される。
When the horizontal 1-line dot data is accumulated, the 1-line data is converted into facsimile data by referring to the code table of the code table ROM 106, and this is sequentially accumulated in the RAM 105 for the facsimile code buffer.

そして、通信速度に応じたタイミングにより、ファクシ
ミリコードバッファRAM105からデータが読み出され、上
述したモデム50によって、規定のアナログ信号に変換さ
れ、これがNCU40を通して電話回線側に送出されること
になる。
Then, the data is read from the facsimile code buffer RAM 105 at a timing corresponding to the communication speed, converted into a specified analog signal by the above-mentioned modem 50, and this is sent to the telephone line side through the NCU 40.

なお、ファクシミリのデータは、横1ライン毎にライン
の区切り信号であるEOL信号が挿入され、その1ライン
の送出時間が規定されている。規定された最大時間を超
えない範囲で、1ラインのデータ送出の区切り信号EOL
との間に、論理0の信号が挿入される。また、8ビット
分のファクシミリコードデータが生成され、8ビット単
位でモデム50に転送されるようになされている。
In the facsimile data, an EOL signal, which is a line delimiter signal, is inserted for each horizontal line, and the transmission time of the one line is specified. Delimiter signal EOL for 1 line data transmission within the specified maximum time
A signal of logic 0 is inserted between and. Further, 8-bit facsimile code data is generated and transferred to the modem 50 in 8-bit units.

このように信号変換手段100においては、プリンタイン
ターフェース70を通して、パソコン20から送信されたプ
リントアウト用のデータがドット情報に一旦展開され、
これが符号化されて規定のモデム50によって、電話回線
を通じて相手側のファクシミリ装置に直接伝送されるよ
うになる。
As described above, in the signal converting means 100, the print-out data transmitted from the personal computer 20 is once expanded into dot information through the printer interface 70,
This is encoded and directly transmitted to the facsimile machine of the other party through the telephone line by the specified modem 50.

第8図はこの信号変換処理の一例を示すフローチャート
である。割り込み処理によってパソコン20からデータ即
ちプリントアウト用のデータを受け取った場合、これが
バッファRAM101に格納され、その後第8図の手順に従っ
て処理される。即ちデータバッファ用RAM101から順にプ
リントアウト用のデータが読み出され、そのデータがコ
マンドデータか、生のデータかがチェックされる(即ち
111,112)。
FIG. 8 is a flowchart showing an example of this signal conversion processing. When the data, that is, the data for printout, is received from the personal computer 20 by the interrupt processing, it is stored in the buffer RAM 101 and then processed according to the procedure of FIG. That is, the data for printout is sequentially read from the data buffer RAM 101, and it is checked whether the data is command data or raw data (that is,
111,112).

コマンドデータのときには、そのデータを解析して種々
の設定が行なわれることになる(ステップ113)。その
後再びステップ111に戻る。
In the case of command data, the data is analyzed and various settings are made (step 113). Then, the process returns to step 111 again.

取り込んだデータが生データであるときには、そのデー
タがコードデータか、それともドットデータかがチェッ
クされ(ステップ114)、コードデータである場合に
は、受け取ったキャラクターコードから文字を認識し、
文字フォントを読み出すことになる(ステップ115)。
When the captured data is raw data, it is checked whether the data is code data or dot data (step 114). If it is code data, a character is recognized from the received character code,
The character font will be read (step 115).

得られたフォントデータが仮想VRAM上に格納されてドッ
ト展開が行なわれる(ステップ116)。これはドットマ
ップメモリRAM104が利用される。
The obtained font data is stored in the virtual VRAM and dot development is performed (step 116). The dot map memory RAM 104 is used for this.

ドット展開を行なった後は、1行分の展開が完了したら
縦1ドット分を横に見て、1ライン分のデータが順次フ
ァクシミリコードバッファ用RAM105に格納される。
After the dot development, when the development for one line is completed, one vertical line is viewed horizontally, and one line of data is sequentially stored in the facsimile code buffer RAM 105.

その後、上述したようにモデムの割り込み処理によって
このコードバッファ用RAM105に格納されたデータが1バ
イトずつ順次読み出され、これがアナログ信号に変換さ
れて、電話回線側に送出されることになる。
Thereafter, as described above, the data stored in the code buffer RAM 105 is sequentially read byte by byte by the interrupt processing of the modem as described above, converted into an analog signal, and transmitted to the telephone line side.

「発明の効果」 以上説明したように、この発明によれば、プリンタイン
ターフェースにおいて、ホスト側装置からデータ線を通
してスレーブ側装置にシリアルクロックを送出し、スレ
ーブ側装置においてはこのシリアルクロックに同期し
て、受信データをビジィー線を通してホスト側装置に伝
送し、かつ、ホスト側ではこのクロックに同期してデー
タを受け取るようにしたものである。
As described above, according to the present invention, in the printer interface, the host side device sends the serial clock to the slave side device through the data line, and the slave side device synchronizes with the serial clock. The received data is transmitted to the host side device through the busy line, and the host side receives the data in synchronization with this clock.

これによれば、プリンタインターフェースのみによっ
て、データの双方向通信が可能になる。
According to this, bidirectional communication of data becomes possible only by the printer interface.

この場合、ビジィー線とデータストローブ線を巧みに利
用することにより、受信されたデータをシリアル変換し
た状態でビット同期させながら、ホスト側装置に送出す
るようにしたものである。
In this case, the busy line and the data strobe line are skillfully used so that the received data is serially converted and bit-synchronized and sent to the host side device.

そのため、送信時においては、ホスト側装置から得られ
たプリントアウト用のデータがそのままモデムを経て通
信回線に伝送され、また通信回線より受け取った受信デ
ータは、一旦シリアル変換された後、パソコン側に供給
されるようになる。
Therefore, at the time of transmission, the data for printout obtained from the host device is transmitted to the communication line via the modem as it is, and the received data received from the communication line is once serial-converted and then sent to the personal computer side. Will be supplied.

これによって第2図のプリンタインターフェースのみで
双方向通信が可能になる特徴を有する。即ち、従来のよ
うにプリンタインターフェースの他にRS−232Cの通信イ
ンターフェースを設ける必要がない。その結果、この種
双方向通信システムを極めて効率的に活用できる特徴を
有する。
As a result, bidirectional communication is possible only with the printer interface shown in FIG. That is, it is not necessary to provide an RS-232C communication interface in addition to the printer interface as in the conventional case. As a result, the bidirectional communication system of this kind has a characteristic that it can be utilized extremely efficiently.

したがって、この発明に係る双方向通信システムはパソ
コンとファクシミリ装置との間のデータ通信を行なう場
合の、そのファクシミリアダプタとして適用して極めて
好適である。
Therefore, the two-way communication system according to the present invention is very suitable for application as a facsimile adapter for data communication between a personal computer and a facsimile machine.

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

第1図はこの発明に係る双方向通信システムの概要を示
す図、第2図はこの双方向通信システムにおける受信系
の一例を示す系統図、第3図は同様にその送信系の一例
を示す系統図、第4図はプリンタインターフェースの具
体例を示す構成図、第5図はソフト側装置とスレーブ側
装置との受信時における信号授受の関係を示すフローチ
ャート、第6図はその動作説明に供する波形図、第7図
は信号変換手段の具体例を示す系統図、第8図はその動
作説明に供する制御プログラムの一例を示すフローチャ
ート、第9図及び第10図はこの発明の説明に供する双方
向通信システムの構成図である。 1A……双方向システムの受信系 1B……双方向システムの送信系 10……ファクシミリアダプタ 20……パソコン(ソフト側オン装置) 30……プリンタ 40……NCU 50……モデム 60……並列直列変換回路 70……プリンタ用インターフェース 71,72……端子 74……バッファ回路 80……マイコン 75,82……第1及び第2の切換手段 100……信号変換手段 D0〜D7……データ線 BUSY……ビジィー線(ビジィー信号) STB……ストローブ線(ストローブ信号)
FIG. 1 is a diagram showing an outline of a bidirectional communication system according to the present invention, FIG. 2 is a system diagram showing an example of a receiving system in this bidirectional communication system, and FIG. 3 is an example of a transmitting system thereof. System diagram, FIG. 4 is a configuration diagram showing a specific example of the printer interface, FIG. 5 is a flow chart showing the relationship of signal transmission / reception at the time of reception between the software side device and the slave side device, and FIG. 6 is provided for explaining the operation thereof. Waveform diagram, FIG. 7 is a system diagram showing a concrete example of the signal converting means, FIG. 8 is a flow chart showing an example of a control program for explaining the operation thereof, and FIGS. 9 and 10 are both for explaining the present invention. It is a block diagram of a communication system for communication. 1A: Receiving system for bidirectional system 1B: Sending system for bidirectional system 10: Facsimile adapter 20: Personal computer (device on software side) 30: Printer 40: NCU 50: Modem 60: Parallel series Conversion circuit 70 ...... Printer interface 71, 72 ...... Terminal 74 ...... Buffer circuit 80 ...... Microcomputer 75, 82 ...... First and second switching means 100 ...... Signal conversion means D0 to D7 ...... Data line BUSY ...... Busy line (busy signal) STB …… Strobe line (strobe signal)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ビジィー線、データストローブ線及びパラ
レルデータ線で構成されるプリンタインターフェースに
おいて、 ホスト側装置からデータ線を通してスレーブ側装置にク
ロックが送出され、 スレーブ側装置においては、このクロックに同期したデ
ータを上記ビジィー線を通してホスト側装置に伝送する
ようにし、かつ、ホスト側ではこのクロックに同期して
データを受け取るようにしたことを特徴とする双方向通
信システム。
1. In a printer interface composed of a busy line, a data strobe line and a parallel data line, a clock is sent from the host side device to the slave side device through the data line, and the slave side device synchronizes with this clock. A two-way communication system characterized in that data is transmitted to a device on the host side through the busy line, and the host side receives data in synchronization with this clock.
JP63173751A 1988-07-14 1988-07-14 Two-way communication system Expired - Fee Related JPH0720154B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63173751A JPH0720154B2 (en) 1988-07-14 1988-07-14 Two-way communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63173751A JPH0720154B2 (en) 1988-07-14 1988-07-14 Two-way communication system

Publications (2)

Publication Number Publication Date
JPH0225140A JPH0225140A (en) 1990-01-26
JPH0720154B2 true JPH0720154B2 (en) 1995-03-06

Family

ID=15966458

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63173751A Expired - Fee Related JPH0720154B2 (en) 1988-07-14 1988-07-14 Two-way communication system

Country Status (1)

Country Link
JP (1) JPH0720154B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06348617A (en) * 1993-06-11 1994-12-22 Nec Corp Information transmission system via unattended computer system using fax
TWI306562B (en) 2006-03-20 2009-02-21 Htc Corp Data transmission method, host, and the transmission circuit thereof
CN100552659C (en) * 2006-05-24 2009-10-21 宏达国际电子股份有限公司 Data transmission method and its transmission circuit

Also Published As

Publication number Publication date
JPH0225140A (en) 1990-01-26

Similar Documents

Publication Publication Date Title
JPS63132552A (en) Modem with improved hand-shake function
JPH0748779B2 (en) Modem device
EP0483984B1 (en) ASCII to ASCII transfer using fax protocol
EP0079426B1 (en) Data communication system
JPS59100663A (en) Multi-purpose facsimile device
JPH0720154B2 (en) Two-way communication system
KR930006826B1 (en) Laser printer for fax
JPH0225157A (en) Facsimile adaptor
JPH0720151B2 (en) Communications system
JPH0258468A (en) Communication system
JP3118309B2 (en) Facsimile communication network adapter
EP0484145A2 (en) Remote printing using fax
JP2545148B2 (en) Image data conversion method
JP2572033B2 (en) Facsimile machine
JP2822412B2 (en) Asynchronous line controller
JP3228796B2 (en) Protocol converter
JPS59154848A (en) Facsimile multiple address transmission device
JPS5985177A (en) Facsimile control system
EP0400543B1 (en) Facsimile transmission system
JPH0157545B2 (en)
JPH05216602A (en) Information processing system
JPH03247164A (en) Picture repeater
JPH0983690A (en) Input and output processing method in picture processing system
JPS6072371A (en) Fax output controlling system
JP3198251B2 (en) Information communication terminal

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees