JPH0424858A - Handshake system between host computer and tool - Google Patents
Handshake system between host computer and toolInfo
- Publication number
- JPH0424858A JPH0424858A JP13050190A JP13050190A JPH0424858A JP H0424858 A JPH0424858 A JP H0424858A JP 13050190 A JP13050190 A JP 13050190A JP 13050190 A JP13050190 A JP 13050190A JP H0424858 A JPH0424858 A JP H0424858A
- Authority
- JP
- Japan
- Prior art keywords
- tool
- host computer
- time
- response
- computer
- 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
- 238000000034 method Methods 0.000 claims description 26
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 238000004904 shortening Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 7
Landscapes
- Information Transfer Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明はホストコンピュータとツールとのハンドシェイ
ク方式に係り、特に、ホストコンピュータを使ってワン
チップマイクロコンピュータ用エミュレータを制御する
場合に用いて好適なものである。[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a handshake method between a host computer and a tool, and is particularly suitable for use when a host computer is used to control an emulator for a one-chip microcomputer. It is something.
〈従来の技術〉
例えば、ホストコンピュータでワンチップマイクロコン
ピュータ用エミュレータ(以後ツールとする)を制御す
る場合、ホストコンピュータ側からツール側に与えられ
た1つの要求に対し、ツールがそれを処理し、その結果
をホストコンピュータ側に伝えるような通信を上記ホス
トコンピュータと上記ツールとの間で行っていた。<Prior art> For example, when a host computer controls a one-chip microcomputer emulator (hereinafter referred to as a tool), the tool processes one request given from the host computer to the tool, Communication is carried out between the host computer and the tool to convey the results to the host computer.
このような目的で行われる通信を、従来は、−組の伝送
路を使用して交互に通信を行う方式である半二重通信方
式で行っていた。Conventionally, communication for this purpose has been performed using a half-duplex communication method in which communication is performed alternately using two sets of transmission paths.
〈発明か解決しようとする課題〉
上記ツールには、データ処理を行うために種々の資源が
用意されている。これらの資源を有効に使用するために
は、ツール内の処理をマルチタスク処理にするのが望ま
しい。しかしながら、ツールをマルチタスク処理て動作
させると、ホストコンピュータとツールとの間で両者が
同時に送信を行う事態が発生することかある。このよう
な場合、従来のように共通の伝送路を利用する半二重通
信方式を行っていると、データの衝突により両者間の通
信のハンドシェイクがとれなくなることがある。このた
め、従来は半二重通信方式によりホストコンピュータと
ツールとの間で通信をおこなっている場合には、ツール
をマルチタスク処理で動作させることが出来なかった。<Problems to be Solved by the Invention> The above tools are provided with various resources for data processing. In order to use these resources effectively, it is desirable to perform multitasking within the tool. However, when the tool is operated by multitasking, a situation may occur where both the host computer and the tool transmit data at the same time. In such a case, if a conventional half-duplex communication method using a common transmission path is used, handshaking between the two parties may become impossible due to data collision. For this reason, in the past, when communication was performed between a host computer and a tool using a half-duplex communication method, it was not possible to operate the tool in multi-task processing.
本発明は上述の問題点に鑑み、半二重通信方式て通信を
行いながらホストコンピュータでツールを制御している
ときに、上記ツールをマルチタスク処理て動作させても
両者間のハンドシェイクを確保出来るようにすることを
目的とする。In view of the above-mentioned problems, the present invention ensures handshaking between the two parties even when the tool is operated by multitasking when the tool is controlled by the host computer while communicating using the half-duplex communication method. The purpose is to make it possible.
〈課題を解決するための手段〉
本発明のホストコンピュータとツールとのハントシェイ
ク方式は、ホストコンピュータとツールとの間で半二重
通信方式で通信を行い、上記ホストコンピュータにより
上記ツールを制御するようにした制御方式において、上
記ホストコンピュータ側のタイムアウト時間を上記ツー
ル側のタイムアウト時間よりも短く設定しておき、上記
ホストコンピュータと上記ツールとの間のハンドシェイ
クがとれなくなったときは、上記ホストコンピュータ側
を先にタイムアウトさせてその動作状態を送信状態から
受信状態に移行させることにより、これら両者間のハン
トシェイクを確保するようにしている。<Means for Solving the Problems> In the hunt shake method between a host computer and a tool of the present invention, communication is performed between the host computer and the tool using a half-duplex communication method, and the tool is controlled by the host computer. In this control method, the timeout time on the host computer side is set shorter than the timeout time on the tool side, and when the handshake between the host computer and the tool cannot be established, the host computer By causing the computer side to time out first and transitioning its operating state from the transmitting state to the receiving state, huntshaking between these two systems is ensured.
〈作用〉
ホストコンピュータのタイムアウト設定時間をツールの
タイムアウト設定時間よりも短くしているので、上記ホ
ストコンピュータと上記ツールとの間のハンドシェイク
がとれなくなったときは。<Operation> Because the host computer's timeout setting is shorter than the tool's timeout setting, when handshake between the host computer and the tool cannot be established.
上記ホストコンピュータの方が必ず先にタイムアウトし
てその動作を送信動作から受信動作に切り換える。これ
により、ホストコンピュータ側からのリクエストの送信
が中止され、ホストコンビエータからのレスポンスの返
信のみを受は取る状態となり、ホストコンピュータとツ
ールとの間のハントシェイクが復帰する。The host computer always times out first and switches its operation from transmitting operation to receiving operation. As a result, the transmission of requests from the host computer side is stopped, a state is reached in which only responses are received from the host combiator, and the huntshake between the host computer and the tool is restored.
〈実施例〉
第1図は、本発明の一実施例を示すホストコンピュータ
とツールとの間で行われる通信内容の説明図である。<Embodiment> FIG. 1 is an explanatory diagram of the contents of communication performed between a host computer and a tool showing an embodiment of the present invention.
本実施例におけるツール2はワンチップマイコン用エミ
ュレータであり、ホストコンピュータlとツール2との
間で行われる通信方式は半二重通信方式が用いられてい
る。このような通信方式において、ホストコンピュータ
1からのリクエストreqlにたいして、ツール2は処
理■を実行し、レスポンスreslをホストコンピュー
タ1に対して返信する。ホストコンピュータ1から送信
されるリクエストは、第2図のリクエストシーケンス説
明図に示すように、リクエストの送信に対して所定のリ
クエスト時間treq以内に必ずリクエストの返信を受
は取ってリクエストシーケンスを終了する。The tool 2 in this embodiment is an emulator for a one-chip microcomputer, and the communication method used between the host computer 1 and the tool 2 is a half-duplex communication method. In such a communication system, the tool 2 executes process (2) in response to a request reql from the host computer 1, and returns a response resl to the host computer 1. As shown in the request sequence explanatory diagram of FIG. 2, a request sent from the host computer 1 is always received within a predetermined request time treq after the request is sent, and the request sequence ends. .
レスポンスは、第3図のレスポンスシーケンス説明図に
示すように、レスポンスの送信に対して必ずレスポンス
の返信を所定のレスポンス時間tres以内に受は取り
、レスポンスシーケンスを終了する。As shown in the response sequence explanatory diagram of FIG. 3, a response is always received within a predetermined response time tres in response to the response transmission, and the response sequence ends.
第4図に、ホストコンピュータl側のリクエストシーケ
ンスのフローチャートを示す。第4図において、ホスト
コンピュータlはステップP□でリクエストの送信をし
た後、ステップP2でリクエストの返信が来たか否かを
調べる。そして、もしリクエストの返信が来たならばリ
クエストの返信に対する受信動作を行う。また、リクエ
ストの返信が来ない場合はステップP3に進み、リクエ
ストの送信を行った時点から動作を開始しているタイマ
ーの値が所定のリクエスト時間treq以上経過したか
否かを調べ、もし所定゛のリクエスト時間treq以上
経過していればタイムアウトの処理を行う。また、所定
のリクエスト時間treq以内であれば、再びリクエス
トの返信が来たか否かを調べに行く。FIG. 4 shows a flowchart of the request sequence on the host computer I side. In FIG. 4, the host computer 1 transmits a request in step P□, and then checks in step P2 whether or not a reply to the request has been received. Then, if a reply to the request is received, a reception operation for the reply to the request is performed. If no response to the request is received, proceed to step P3, and check whether the value of the timer that has started operating from the time the request was sent has exceeded a predetermined request time treq. If the request time treq or more has elapsed, timeout processing is performed. Furthermore, if the request time is within the predetermined request time treq, the server checks again to see if a reply to the request has been received.
第5図のフローチャートに示すように、ツール2側に3
ける処理の流れも第4図におけるホストコンピュータ1
側の処理の流れと同じであるが、この場合は、ステップ
P3におけるタイムアウト処理を行う条件が所定のレス
ポンス時間tres以上経った場合である点が相違して
いる。As shown in the flowchart in Figure 5, 3
The flow of processing is also the same as that of the host computer 1 in Figure 4.
The flow of the process is the same as that of the previous example, but the difference is that in this case, the condition for performing the timeout process in step P3 is when a predetermined response time tres or more has elapsed.
次に、本実施例のホストコンピュータとツールとのハン
ドシェイク方式を実施するための具体的な方法を説明す
る。Next, a specific method for implementing the handshake method between the host computer and the tool of this embodiment will be described.
第1図に示すように、ホストコンピュータ1側からのリ
クエストが1〜nと複数個発生し、それに対するツール
2側の処理かマルチタスクで行われて、ツール2からの
レスポンスが非同期にホストコンピュータ1側へ送られ
る場合、半二重通信方式の通信回線では必ずホストコン
ピュータ1からのリクエストとツール2からのレスポン
スとの衝突が発生し、ホストコンピュータlとツール2
とのハントシェイクが取れなくなる。As shown in Figure 1, multiple requests 1 to n are generated from the host computer 1, and the tool 2 processes them or multitasks, and the response from the tool 2 is sent asynchronously to the host computer. When the data is sent to side 1, a collision between the request from host computer 1 and the response from tool 2 always occurs in the half-duplex communication line, and the communication between host computer 1 and tool 2
You won't be able to get a hunt shake with.
そこで、本方式ではホストコンピュータlとツール2と
の間のハンドシェイクを復帰させるために、以下の方式
を取っている。すなわち、タイマー値treq(タイマ
ー値tresとし、ホストコンピュータ1のリクエスト
とツールとのレスポンスか衝突してハントシェイクか取
れなくなった場合、ホストコンピュータl側の方か必ず
先にタイムアウト状態を検出するようにしている。Therefore, in this method, in order to restore the handshake between the host computer 1 and the tool 2, the following method is adopted. In other words, if the timer value treq (timer value tres) is used, and the host computer 1's request and the tool's response collide and a huntshake cannot be obtained, the host computer 1 side must always detect the timeout state first. ing.
タイムアウト状態を検出したら、ホストコンピュータ1
側はリクエストの送信を中止し、ツール2からのレスポ
ンスの送信に対する受信動作に移り、レスポンスに対す
る返信をツール2に対して送る。When a timeout condition is detected, host computer 1
The side stops sending the request, moves on to receive the response sent from the tool 2, and sends a reply to the response to the tool 2.
ツール2は、ホストコンピュータlヘレスポンスの送信
を行った後は、ホストコンピュータlからのレスポンス
の返信のみを待つ。After transmitting the response to the host computer 1, the tool 2 waits only for the response from the host computer 1.
ホストコンピュータlからのリクエストとツール2から
のレスポンスとが衝突した場合、上記の方式により次の
ようにしてホストコンピュータlとツール2との間のハ
ンドシェイクか復帰する。When a request from the host computer 1 and a response from the tool 2 collide, the handshake between the host computer 1 and the tool 2 is restored as follows using the above method.
すなわち、ホストコンピュータ1からのりクエストとツ
ール2からのレスポンスとか衝突してから所定のリクエ
スト時間treqが経過した時点で、ホストコンピュー
タlはタイムアウト処理に入ってリクエストの送信を中
止し、ツール2からのレスポンスの送信に対する受信動
作に入る。そして、次に、ホストコンピュータ1はリク
エストの返信をツール2に対して送る。That is, when a predetermined request time treq has elapsed since the request from the host computer 1 collides with the response from the tool 2, the host computer 1 enters a timeout process and stops sending the request, and the request from the tool 2 Start receiving operation for response transmission. Then, the host computer 1 sends a reply to the request to the tool 2.
一方、ツール2側のタイムアウト時間tresは、ホス
トコンピュータl側のタイムアウト時間treqに比べ
て十分大きいので、ホストコンピュータlがタイムアウ
ト動作に入り、ツール2のレスポンスの送信に対するレ
スポンスの返信が来るまてタイムアウト処理に移ること
はない。この場合、ツール2側はホストコンピュータl
からのレスポンスの返信のみを待っているので、ホスト
コンピュータ1側でのタイムアウト処理により中止され
たホストコンピュータ1からのリクエストの送信を受は
取ることなく、ホストコンピュータlからのレスポンス
の返信のみを受は取り、ホストコンピュータlとツール
2とのハンドシェイクが復帰する。On the other hand, the timeout time tres on the tool 2 side is sufficiently larger than the timeout time treq on the host computer l side, so the host computer l enters the timeout operation and waits until the response to the response sent by the tool 2 is received. It will not proceed to processing. In this case, the tool 2 side is the host computer
Since it is waiting only for the response from the host computer 1, it does not receive the request transmission from the host computer 1 that was canceled due to timeout processing on the host computer 1 side, but only receives the response from the host computer 1. The handshake between host computer 1 and tool 2 is restored.
(発明の効果〉
本発明は上述したように、ホストコンピュータとツール
との間で半二重通信方式により通信を行うに際し、上記
ホストコンピュータ側のタイムアウト時間を上記ツール
側のタイムアウト時間よりも短く設定し、上記ホストコ
ンピュータと上記ツールとの間のハントシェイクがとれ
なくなったときに、上記ホストコンピュータ側を先にタ
イムアウトさせてその動作状態を送信状態から受信状態
に移行させるようにしたので、半二重の通信方式による
ホストコンピュータとマルチタスク処理を行うツールと
のハンドシェイクを確実に行うことか出来る。したがっ
て、ツール内での処理をマルチタスク処理で行うことが
可能なので、ツール内の各資源を有効に使うことか出来
、ツールの高機能化、処理速度の高速化および多機能化
を実現出来る。(Effects of the Invention) As described above, the present invention sets the timeout time on the host computer side to be shorter than the timeout time on the tool side when communicating between the host computer and the tool using the half-duplex communication method. However, when the huntshake between the host computer and the tool cannot be established, the host computer times out first and its operating state changes from the sending state to the receiving state, so it is half-secondary. It is possible to reliably perform handshaking between the host computer and the tool that performs multitasking processing using a heavy communication method.Therefore, processing within the tool can be performed by multitasking, so each resource within the tool can be It can be used effectively, and tools can be made more sophisticated, faster in processing speed, and more multifunctional.
第1図は、本発明の一実施例を示すホストコンピユータ
とツールとの間の通信内容説明図、第2図は、リクエス
トシーケンス説明図、第3図は、レスポンスシーケンス
説明図、第4図は、リクエストシーケンスフローチャー
ト、
第5図は、レスポンスシーケンスフローチャートである
。
l・・・ホストコンピュータ、 2・・・ツール。
req・・・リクエスト、 res・・・レスポンス
。
treq・・−所定のリクエスト時間。
tres・・・所定のレスポンス時間。
特許出願人 沖電気工業株式会社代理人
弁理士 船 橋 國 則りク−” /7/′
−、/ −7,”、7 Ji”t IW#第2図
1、?ガ°;75−クン、z 、’、f e 12第3
図FIG. 1 is an explanatory diagram of communication content between a host computer and a tool showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of a request sequence, FIG. 3 is an explanatory diagram of a response sequence, and FIG. 4 is an explanatory diagram of a response sequence. , a request sequence flowchart, and FIG. 5 is a response sequence flowchart. l...Host computer, 2...Tool. req...request, res...response. treq--predetermined request time. tres...predetermined response time. Patent applicant Oki Electric Industry Co., Ltd. Agent
Patent Attorney Noriku Funabashi /7/'
-, / -7,",7 Ji"t IW#Figure 2 1,? ga °;75-kun, z,', f e 12th 3rd
figure
Claims (1)
通信を行い、上記ホストコンピュータにより上記ツール
を制御するようにした制御方式において、 上記ホストコンピュータ側のタイムアウト時間を上記ツ
ール側のタイムアウト時間よりも短く設定し、上記ホス
トコンピュータと上記ツールとの間のハンドシェイクが
とれなくなったときに、上記ホストコンピュータ側を先
にタイムアウトさせて上記ホストコンピュータの動作状
態を送信状態から受信状態に移行させることにより、こ
れら両者間のハンドシェイクを確保するようにしたこと
を特徴とするホストコンピュータとツールとのハンドシ
ェイク方式。[Scope of Claim] A control method in which communication is performed between a host computer and a tool using a half-duplex communication method, and the tool is controlled by the host computer, wherein a timeout period on the side of the host computer is controlled by the tool. When the handshake between the host computer and the tool cannot be established, the host computer times out first and the operating status of the host computer is received from the sending state. A handshake method between a host computer and a tool, characterized in that the handshake between the two is ensured by transitioning the host computer to the tool state.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13050190A JPH0424858A (en) | 1990-05-21 | 1990-05-21 | Handshake system between host computer and tool |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13050190A JPH0424858A (en) | 1990-05-21 | 1990-05-21 | Handshake system between host computer and tool |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0424858A true JPH0424858A (en) | 1992-01-28 |
Family
ID=15035782
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13050190A Pending JPH0424858A (en) | 1990-05-21 | 1990-05-21 | Handshake system between host computer and tool |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0424858A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009069974A (en) * | 2007-09-11 | 2009-04-02 | Fuji Xerox Co Ltd | Bus interface circuit and information processor |
-
1990
- 1990-05-21 JP JP13050190A patent/JPH0424858A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009069974A (en) * | 2007-09-11 | 2009-04-02 | Fuji Xerox Co Ltd | Bus interface circuit and information processor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2526009B2 (en) | Asynchronous full-duplex communication method | |
| CN1330128C (en) | Long-range control method and system for communication device | |
| JPH0343653B2 (en) | ||
| JP2948380B2 (en) | Data communication device | |
| JP3422401B2 (en) | Redundant controller | |
| KR100460087B1 (en) | Method for controlling a data traffic each of task in data transmit and receive | |
| JPH06309260A (en) | Inter-process communication system | |
| JPH0240755A (en) | Data processor | |
| JPH0540732A (en) | Data processing method | |
| JPH089792Y2 (en) | SCSI adapter circuit for host-to-host communication | |
| JPH01295357A (en) | System bus control system | |
| JPH02302859A (en) | Communication line opening restricting system | |
| JPH01149111A (en) | Communication method between programmable controller and host cpu | |
| JPH04229351A (en) | Micromainframe link control system | |
| JPH03282855A (en) | Program evaluating method for computer network system | |
| JPH0310310A (en) | Automatic power source disconnection system for online terminal | |
| JPH0916495A (en) | Communication control method | |
| JPS63314046A (en) | Operation monitor device for destination processor | |
| KR20020045217A (en) | Method for confirming a data receiving of pci card by polling method | |
| JPH04372042A (en) | Input/output interrupt processing management system | |
| JPH0612904B2 (en) | Transmission control method | |
| JPH0828721B2 (en) | Inter-system coupling control method in LAN | |
| JP2001136299A (en) | Data communication system and data communication method | |
| JPH01161565A (en) | Session activating system between data processor | |
| JPH0682348B2 (en) | Input/Output Control Method |