JPH0522380A - Pseudo host emulate system - Google Patents

Pseudo host emulate system

Info

Publication number
JPH0522380A
JPH0522380A JP3167870A JP16787091A JPH0522380A JP H0522380 A JPH0522380 A JP H0522380A JP 3167870 A JP3167870 A JP 3167870A JP 16787091 A JP16787091 A JP 16787091A JP H0522380 A JPH0522380 A JP H0522380A
Authority
JP
Japan
Prior art keywords
function
communication
instruction
pseudo host
emulation
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
JP3167870A
Other languages
Japanese (ja)
Inventor
Satoru Watanabe
哲 渡邊
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP3167870A priority Critical patent/JPH0522380A/en
Publication of JPH0522380A publication Critical patent/JPH0522380A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize the pseudo host emulate system in which the evaluation of a communication function controlling a communication IC and as communica tion protocol is executed by its own equipment only. CONSTITUTION:A main controller 1 publicates a transmission command or a reception command to a communication function 2 and a pseudo host emulate function 5 by using a key entry from a KB input device 6. The communication function 2 and the pseudo host emulate function 5 are communicated with each other via an IO instruction analysis function 3 and IC emulate function 4 according to the communication protocol. When the communication function 2 executes an instruction to control the communication IC, a CPU is trapped and the processing is transferred to the IC emulate function 4 through the IO instruction analysis function 3. In the case of an OUT instruction, the IC emulate function 4 transits the IC state and in the case of an IN instruction, a status is transferred to the IO instruction function 3 and the processing is returned to the IO instruction analysis function. Succeedingly, all the operations are finished to restore the communication function 2 and the processing result is printed out.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は疑似ホストエミュレート
方式に関し、特に通信用ICと通信プロトコルを制御す
るパソコン端末の通信機能をCPUのIOトラップ機能
を利用し評価する疑似ホストエミュレート方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pseudo host emulation system, and more particularly to a pseudo host emulation system for evaluating a communication function of a personal computer terminal for controlling a communication IC and a communication protocol by utilizing an IO trap function of a CPU.

【0002】[0002]

【従来の技術】従来、パソコン端末の通信機能の評価
は、疑似ホスト装置と通信機器とこれらを接続する回線
等を用意し、実際の動作環境と同一の状態を作りだし処
理を実行して行っていた。
2. Description of the Related Art Conventionally, the evaluation of the communication function of a personal computer terminal has been performed by preparing a pseudo host device, a communication device, and a line connecting these devices, and creating the same state as the actual operating environment and executing the processing. It was

【0003】[0003]

【発明が解決しようとする課題】上述した従来のパソコ
ン端末の通信機能の評価は、疑似ホスト装置と通信機器
とこれらを接続する回線等の環境が整わないと実施でき
ないという問題点があった。
The above-mentioned evaluation of the communication function of the conventional personal computer terminal has a problem that it cannot be carried out unless the environment such as the pseudo host device and the communication device and the line connecting them are prepared.

【0004】本発明の目的は、通信用ICをエミュレー
トするICエミュレート機能と、自装置内で疑似ホスト
として動作する疑似ホストエミュレート機能とを設ける
ことにより、自装置のみで通信用ICと通信用プロトコ
ルとを制御する通信機能の評価を実施することが可能な
疑似ホストエミュレート方式を提供することにある。
It is an object of the present invention to provide an IC emulation function for emulating a communication IC and a pseudo host emulation function for operating as a pseudo host in the device itself so that the device itself can function as a communication IC. It is to provide a pseudo host emulation method capable of evaluating a communication function for controlling a communication protocol.

【0005】[0005]

【課題を解決するための手段】本発明の疑似ホストエミ
ュレート方式は、通信機能とIOトラップ機能とを有す
るCPUを実装したパソコン端末において、前記通信機
能が通信用ICを制御するために使用する命令のハント
および前記通信機能の処理を復旧するIO命令解析機能
と、前記通信機能が制御する前記通信用ICをエミュレ
ートするICエミュレート機能と、自装置内で疑似ホス
トとして動作する疑似ホストエミュレート機能とを有
し、自装置内で前記通信用ICと通信用プロトコルとを
制御する前記通信機能の評価を実施し結果を出力する構
成である。
According to the pseudo host emulation method of the present invention, a personal computer terminal equipped with a CPU having a communication function and an IO trap function is used by the communication function to control a communication IC. IO command analysis function for recovering instruction hunt and processing of the communication function, IC emulation function for emulating the communication IC controlled by the communication function, and pseudo host emulation functioning as a pseudo host in the own device. It has a rate function and is configured to evaluate the communication function for controlling the communication IC and the communication protocol in its own device and output the result.

【0006】[0006]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0007】図1は本発明の一実施例のブロック図であ
る。
FIG. 1 is a block diagram of an embodiment of the present invention.

【0008】1はメインコントローラを、2は通信機能
を、3はIO命令解析機能を、4はICエミュレート機
能を、5は疑似ホストエミュレート機能を、6はキーボ
ード入力装置(以下KB入力装置と記す)を、7はプリ
ンタをそれぞれ示す。
1 is a main controller, 2 is a communication function, 3 is an IO instruction analysis function, 4 is an IC emulation function, 5 is a pseudo host emulation function, 6 is a keyboard input device (hereinafter referred to as a KB input device). 7) indicates a printer, respectively.

【0009】次に本実施例を構成する各機能について説
明する。
Next, each function which constitutes this embodiment will be described.

【0010】メインコントローラ1は、通信機能2およ
び疑似ホストエミュレート機能5を制御する機能と、通
信機能2を評価する機能と、評価結果をプリンタ7に出
力する機能とを持つ。図2はメインコントローラの処理
の流れ図である。
The main controller 1 has a function of controlling the communication function 2 and the pseudo host emulation function 5, a function of evaluating the communication function 2, and a function of outputting the evaluation result to the printer 7. FIG. 2 is a flow chart of processing of the main controller.

【0011】ステップ(以下Sと記す)1でオペレータ
がKB入力装置6から入力するキー入力を受け、S2で
評価項目により送信指示および受信指示を通信機能2と
疑似ホストエミュレート機能5とに出力し、S3で通信
機能2と疑似ホストエミュレート機能5とからの終了通
知を待ち、IC制御異常通知の受付も行う。次にS4で
通信機能2の評価を双方の指示に対する終了結果と、I
Cエミュレート機能4からのIC制御の異常通知により
判断し、S5で評価結果をプリンタ7に出力し、終了す
る。
At step (hereinafter referred to as S) 1, the operator receives a key input from the KB input device 6, and at S2, a transmission instruction and a reception instruction are output to the communication function 2 and the pseudo host emulation function 5 according to the evaluation item. Then, in S3, the end notification from the communication function 2 and the pseudo host emulation function 5 is waited, and the IC control abnormality notification is also received. Next, in S4, the evaluation of the communication function 2 is completed with respect to both instructions, and I
Judgment is made from the IC control abnormality notification from the C emulation function 4, the evaluation result is output to the printer 7 in S5, and the processing is ended.

【0012】通信機能2は、評価の対象となる機能であ
る。メインコントローラ1からの送信指示と受信指示に
より通信用ICを制御して通信プロトコルに則りホスト
装置とデータ通信し、動作終了後、メインコントローラ
1に終了結果を通知するものである。
The communication function 2 is a function to be evaluated. The communication IC is controlled by the transmission instruction and the reception instruction from the main controller 1 to perform data communication with the host device according to the communication protocol, and after the operation is finished, the main controller 1 is notified of the termination result.

【0013】IO命令解析機能3は、CPUによりトラ
ップされたIO命令を解析する機能と通信機能2の処理
を復旧する機能を持つ。図3はIO命令解析機能の処理
の流れ図である。
The IO instruction analysis function 3 has a function of analyzing the IO instruction trapped by the CPU and a function of restoring the processing of the communication function 2. FIG. 3 is a flow chart of processing of the IO instruction analysis function.

【0014】S6でCPUによりトラップされたステッ
プ(以降トラップアドレス)のIO命令を解析し、S7
で通信用ICを制御する命令のみをポートNO.により
判別し、通信用ICポートである場合は、S8でICエ
ミュレート機能4にトラップの通知(ハント通知)をす
る。通信機能2の処理を復旧する場合は、トラップされ
た命令が、通信用ICを制御する命令以外の場合はS9
でトラップアドレスから、通信用ICを制御する命令の
場合はS10でトラップアドレスの次のステップから処
理を復旧する。
The IO instruction of the step (hereinafter, trap address) trapped by the CPU in S6 is analyzed, and S7 is analyzed.
Only the command to control the communication IC with the port No. If it is a communication IC port, the IC emulation function 4 is notified of a trap (hunt notification) in S8. When the processing of the communication function 2 is restored, if the trapped instruction is other than the instruction for controlling the communication IC, S9.
In the case of the instruction for controlling the communication IC from the trap address, the processing is restored from the step following the trap address in S10.

【0015】ICエミュレート機能4は、通信機能2に
対して通信用ICをエミュレートする機能を持ち、IO
命令解析機能3と疑似ホストエミュレート機能5の間に
介在して、双方からの命令や通知を解析し、これらの命
令と通知とによりIC状態を遷移させたりステータス
(ICの状態を刺すデータ)や送受信データの引渡や引
取を行う。
The IC emulation function 4 has a function of emulating a communication IC with respect to the communication function 2,
Intervenes between the instruction analysis function 3 and the pseudo host emulation function 5, analyzes the instructions and notifications from both sides, and transitions the IC state or status (data that punctures the IC state) by these instructions and notifications. And send and receive sent and received data.

【0016】図4はICエミュレート機能のハント通知
による処理の流れ図である。
FIG. 4 is a flow chart of the processing by the hunt notification of the IC emulation function.

【0017】S11でIO命令解析機能3からハント通
知を受けたらS12でトラップされた命令を解析し、デ
ータ送受信命令の場合はS13で疑似ホストエミュレー
ト機能5に対してデータ引取要求又はデータ引渡要求を
通知し、IC制御命令の場合は14でICの状態を遷移
するかIO命令解析機能3にステータスを通知する。ま
た、IC制御の正誤判断で異常がある場合はS15でメ
インコントローラ1に通知する。
When the hunt notification is received from the IO command analysis function 3 in S11, the trapped command is analyzed in S12, and in the case of a data transmission / reception command, in S13, a data transfer request or a data transfer request is sent to the pseudo host emulation function 5. In the case of an IC control instruction, the state of the IC is changed at 14 or the IO instruction analysis function 3 is notified of the status. If the IC control is correct or incorrect, the main controller 1 is notified in step S15.

【0018】図5はICエミュレート機能の送信通知/
受信通知による処理の流れ図である。
FIG. 5 shows the transmission notification of the IC emulation function /
It is a flowchart of the process by reception notification.

【0019】S16で疑似ホストエミュレート機能から
送信通知/受信通知を受付けると、S17で通知内容に
よりIC状態を遷移させる。
When the transmission notification / reception notification is received from the pseudo host emulation function in S16, the IC state is changed according to the contents of the notification in S17.

【0020】疑似ホストエミュレート機能5は、通信機
能2に対し疑似ホスト装置としての機能と、通信プロト
コルの正誤判断を行う機能とを持つ。
The pseudo host emulation function 5 has a function as a pseudo host device with respect to the communication function 2 and a function for judging whether the communication protocol is right or wrong.

【0021】図6は疑似ホストエミュレート機能の送信
指示/受信指示による処理の流れ図である。
FIG. 6 is a flow chart of processing by the transmission instruction / reception instruction of the pseudo host emulation function.

【0022】S18でメインコントローラ1から送信指
示および受信指示を受付けると、S19でICエミュレ
ート機能4を介し、通信機能2とのデータ通信を行い、
動作終了後、S20でメインコントローラ1に終了結果
を通知する。
When the transmission instruction and the reception instruction are received from the main controller 1 in S18, data communication with the communication function 2 is performed via the IC emulation function 4 in S19,
After the operation ends, the end result is notified to the main controller 1 in S20.

【0023】図7は疑似ホストエミュレート機能のデー
タ引取通知/データ引渡通知による処理の流れ図であ
る。
FIG. 7 is a flow chart of processing by the data transfer notification / data transfer notification of the pseudo host emulation function.

【0024】疑似ホストエミュレート機能5は、ICエ
ミュレート機能4からの要求に対して動作を決定する内
部モードを持ち、S21でデータ引取通知およびデータ
引渡通知を受けると、S22で通知の要求種別ごとにデ
ータ送信時には送信モード、データ受信時には受信モー
ドとし、上記以外はアイドルモードとするよう制御す
る。各モードの動作内容は以下に記述するような動作と
なる。送信モード時は、ICエミュレート機能4に送信
通知を発行し、S23でデータ引渡要求を受けたタイミ
ングで1データずつ送信データを引き渡す。受信モード
時は、ICエミュレート機能4に受信通知を発行し、S
24でデータ引取要求を受けたタイミングで受信データ
を1データずつ引き取る。
The pseudo host emulation function 5 has an internal mode for determining an operation in response to a request from the IC emulation function 4, and when it receives a data take-back notification and a data delivery notification in S21, the notification request type in S22. The control is performed such that the transmission mode is set for data transmission, the reception mode is set for data reception, and the idle mode is set for other cases. The operation contents of each mode are as described below. In the transmission mode, a transmission notification is issued to the IC emulation function 4, and the transmission data is delivered one by one at the timing when the data delivery request is received in S23. In the reception mode, a reception notification is issued to the IC emulation function 4, and S
At 24, the reception data is received one by one at the timing when the data reception request is received.

【0025】次に通信機能の評価動作について説明す
る。図面としては図1を参照して説明する。
Next, the operation of evaluating the communication function will be described. The drawing will be described with reference to FIG.

【0026】オペレータによるKB入力装置6からのキ
ー入力をトリガとして、メインコントローラ1は、通信
機能2および疑似ホストエミュレート機能5に対して送
信指示又は受信指示を発行する。通信機能2および疑似
ホストエミュレート機能5はメインコントローラ1から
の指示を受け、通信プロトコルに則りIO命令解析機能
3およびICエミュレート機能4を介して通信する。通
信機能2が通信用ICを制御する命令を実行すると、C
PUがトラップし、IO命令解析機能3を介してICエ
ミュレート機能4に処理を移す。ICエミュレート機能
4ではOUT命令の場合はIC状態を遷移させ、IN命
令の場合はステータスをIO命令解析機能3に引渡し、
処理をIO命令解析機能3に戻す。IO命令解析機能3
は通信機能2に処理を戻すが、この時、IN命令の場合
のみステータスを通信機能2に引き渡す。通信機能2で
データ送受信命令が実行されるとCPUがトラップし、
IO命令解析機能3を介してICエミュレート機能4に
処理を移す。ICエミュレート機能4は疑似ホストエミ
ュレート機能5に、OUT命令の場合はデータ引取要求
を、IN命令の場合はデータ引渡要求を通知して処理を
疑似ホストエミュレート機能5に移す。疑似ホストエミ
ュレート機能5はICエミュレート機能4からの要求内
容と動作モードによりデータの引渡または引取動作をす
る。動作終了後ICエミュレート機能4を介してIO命
令解析機能3に処理が戻される。IO命令解析機能3は
通信機能2に処理を戻すが、IN命令の場合のみ疑似ホ
ストエミュレート機能5から引き渡されたデータを通信
機能2に引き渡す。
The main controller 1 issues a transmission instruction or a reception instruction to the communication function 2 and the pseudo host emulation function 5 by using a key input from the KB input device 6 by the operator as a trigger. The communication function 2 and the pseudo host emulation function 5 receive an instruction from the main controller 1, and communicate via the IO command analysis function 3 and the IC emulation function 4 according to the communication protocol. When the communication function 2 executes a command for controlling the communication IC, C
The PU traps and transfers the processing to the IC emulation function 4 via the IO instruction analysis function 3. In the IC emulation function 4, in the case of an OUT instruction, the IC state is changed, and in the case of an IN instruction, the status is passed to the IO instruction analysis function 3,
The processing is returned to the IO instruction analysis function 3. IO instruction analysis function 3
Returns the processing to the communication function 2, but at this time, the status is passed to the communication function 2 only in the case of the IN command. When the data transmission / reception command is executed by the communication function 2, the CPU traps,
The processing is transferred to the IC emulation function 4 via the IO instruction analysis function 3. The IC emulation function 4 notifies the pseudo host emulation function 5 of a data take-up request in the case of an OUT instruction and a data delivery request in the case of an IN instruction, and shifts the processing to the pseudo host emulation function 5. The pseudo host emulation function 5 delivers or receives data depending on the request content from the IC emulation function 4 and the operation mode. After the operation is completed, the processing is returned to the IO instruction analysis function 3 via the IC emulation function 4. The IO command analysis function 3 returns the processing to the communication function 2, but only in the case of the IN command, the data transferred from the pseudo host emulation function 5 is transferred to the communication function 2.

【0027】[0027]

【発明の効果】以上説明したように、本発明は、通信機
能が通信用ICを制御するために使用する命令のハント
および通信機能の処理を復旧するIO命令解析機能と、
通信用ICをエミュレートするICエミュレート機能
と、自装置内で疑似ホストとして動作する疑似ホストエ
ミュレート機能とを設けることにより、自装置のみで通
信用ICと通信用プロトコルとを制御する通信機能の評
価を実施することが可能となるという効果が有る。
As described above, according to the present invention, the hunting of the instruction used by the communication function to control the communication IC and the IO instruction analysis function for restoring the processing of the communication function,
By providing an IC emulation function that emulates a communication IC and a pseudo host emulation function that operates as a pseudo host in the own device, a communication function that controls the communication IC and the communication protocol only in the own device There is an effect that it is possible to carry out the evaluation of.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】メインコントローラの処理の流れ図である。FIG. 2 is a flow chart of processing of a main controller.

【図3】IO命令解析機能の処理の流れ図である。FIG. 3 is a flowchart of processing of an IO instruction analysis function.

【図4】ICエミュレート機能のハント通知による処理
の流れ図である。
FIG. 4 is a flowchart of processing by hunt notification of an IC emulation function.

【図5】ICエミュレート機能の送信通知/受信通知に
よる処理の流れ図である。
FIG. 5 is a flow chart of processing by transmission notification / reception notification of the IC emulation function.

【図6】疑似ホストエミュレート機能の送信指示/受信
指示による処理の流れ図である。
FIG. 6 is a flowchart of a process according to a transmission instruction / reception instruction of the pseudo host emulation function.

【図7】疑似ホストエミュレート機能のデータ引取通知
/データ引渡通知による処理の流れ図である。
FIG. 7 is a flow chart of processing by a data transfer notification / data transfer notification of the pseudo host emulation function.

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

1 メインコントローラ2 通信機能3 IO命
令解析機能4 ICエミュレート機能5 疑似ホス
トエミュレート機能6 キーボード入力装置(KB入
力装置)7 プリンタ
1 Main Controller 2 Communication Function 3 IO Command Analysis Function 4 IC Emulation Function 5 Pseudo Host Emulation Function 6 Keyboard Input Device (KB Input Device) 7 Printer

Claims (1)

【特許請求の範囲】 【請求項1】 通信機能とIOトラップ機能とを有する
CPUを実装したパソコン端末において、前記通信機能
が通信用ICを制御するために使用する命令のハントお
よび前記通信機能の処理を復旧するIO命令解析機能
と、前記通信機能が制御する前記通信用ICをエミュレ
ートするICエミュレート機能と、自装置内で疑似ホス
トとして動作する疑似ホストエミュレート機能とを有
し、自装置内で前記通信用ICと通信用プロトコルとを
制御する前記通信機能の評価を実施し結果を出力するこ
とを特徴とする疑似ホストエミュレート方式。
Claim: What is claimed is: 1. A personal computer terminal equipped with a CPU having a communication function and an IO trap function, wherein the communication function hunts an instruction used for controlling a communication IC and the communication function. It has an IO command analysis function for restoring processing, an IC emulation function for emulating the communication IC controlled by the communication function, and a pseudo host emulation function for operating as a pseudo host in its own device. A pseudo host emulation method, wherein the communication function for controlling the communication IC and the communication protocol is evaluated in the device and the result is output.
JP3167870A 1991-07-09 1991-07-09 Pseudo host emulate system Pending JPH0522380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3167870A JPH0522380A (en) 1991-07-09 1991-07-09 Pseudo host emulate system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3167870A JPH0522380A (en) 1991-07-09 1991-07-09 Pseudo host emulate system

Publications (1)

Publication Number Publication Date
JPH0522380A true JPH0522380A (en) 1993-01-29

Family

ID=15857611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3167870A Pending JPH0522380A (en) 1991-07-09 1991-07-09 Pseudo host emulate system

Country Status (1)

Country Link
JP (1) JPH0522380A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7178674B2 (en) 2001-09-03 2007-02-20 Lts Lohmann Therapie Systeme Ag Container comprising a slide cover

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7178674B2 (en) 2001-09-03 2007-02-20 Lts Lohmann Therapie Systeme Ag Container comprising a slide cover

Similar Documents

Publication Publication Date Title
US8442509B2 (en) System and method for managing a wireless device from removable media with processing capability
US6256659B1 (en) System and method for performing hybrid preemptive and cooperative multi-tasking in a computer system
US4734853A (en) Terminal control system
WO2022032984A1 (en) Mqtt protocol simulation method and simulation device
US20010039566A1 (en) Method and apparatus for controlling an animatronic device using a web enabled cellular phone
US20010011215A1 (en) Network device simulation system and method
CN106625674A (en) Command processing method for robot and robot
JPH0522380A (en) Pseudo host emulate system
CN113608782B (en) Control console design method capable of redirecting CAN bus
JPH06131478A (en) Multi-data-flow-processor device
CN110865960B (en) Emulating a PCIe bus over a network
JPH047655A (en) Program evaluation method and communication system evaluation device
WO2022022446A1 (en) Log printing method, device and system
CN115729675A (en) Terminal remote login processing method and system
JPS61128351A (en) Communication system
JP2639377B2 (en) Operating devices for electronic equipment
JPH03282855A (en) Program evaluating method for computer network system
KR940007831B1 (en) Method of executing the read instruction between rpu and cip
JPH06175828A (en) Os operating method
CN117873942A (en) Communication method based on HMI device, HMI device and storage medium
KR0154488B1 (en) Method for dumping system package using pc in the full electronic switching system
CN116244122A (en) Method for displaying embedded linux kernel printing through pseudo terminal
KR100440578B1 (en) The Method of Operator Message Process between the Internal Functional Processors in High Speed Router
JPH022447A (en) Terminal emulator
JPH03288255A (en) Network control system for multiprocessor