JPH07120369B2 - Relay device - Google Patents

Relay device

Info

Publication number
JPH07120369B2
JPH07120369B2 JP62255662A JP25566287A JPH07120369B2 JP H07120369 B2 JPH07120369 B2 JP H07120369B2 JP 62255662 A JP62255662 A JP 62255662A JP 25566287 A JP25566287 A JP 25566287A JP H07120369 B2 JPH07120369 B2 JP H07120369B2
Authority
JP
Japan
Prior art keywords
message
host
response
buffer
card authentication
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
JP62255662A
Other languages
Japanese (ja)
Other versions
JPH0198061A (en
Inventor
敏文 田中
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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP62255662A priority Critical patent/JPH07120369B2/en
Publication of JPH0198061A publication Critical patent/JPH0198061A/en
Publication of JPH07120369B2 publication Critical patent/JPH07120369B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】 《発明の分野》 この発明は、カード認証端末群と2以上のホストとの間
にあって、これら相互間における交信電文の中継を行な
う中継装置の改良に関する。
Description: FIELD OF THE INVENTION The present invention relates to an improvement in a relay device between a card authentication terminal group and two or more hosts, which relays a communication message between them.

《発明の概要》 この発明では、カード認証端末からいずれかのホストへ
送信すべき電文が受信されたとき、該当ホストのレスポ
ンス待ち電文数がそのマルチ処理件数に達していると、
当該電文を電文バッファに格納した後、該当ホストのレ
スポンス待ち電文数に空きができるのを待ってから、該
当ホストへの送信,レスポンスタイマ値によるレスポン
ス待ちタイムアウト時刻のセット,レスポンス待ちステ
ータスのセットを行なうようにして、マルチ処理件数に
かかわりなく、電文バッファが満杯に至るまで、カード
認証端末からの電文を受付けるようにしたものである。
<< Outline of the Invention >> In the present invention, when a message to be transmitted to any of the hosts is received from the card authentication terminal, the number of response waiting messages of the corresponding host has reached the number of multi-processes,
After storing the relevant message in the message buffer, wait until the number of response waiting messages of the relevant host becomes available, then send to the relevant host, set the response wait timeout time by the response timer value, and set the response wait status. By doing so, regardless of the number of multi-process cases, the message from the card authentication terminal is accepted until the message buffer is full.

《従来技術とその問題点》 この種の中継装置は、クラスターコントローラ等とよば
れ、LANで結ばれたカード認証端末群と伝送回線を介し
て接続された2以上のホストとの間にあって、これら相
互間における交信電文を中継するようになされている。
<< Prior Art and its Problems >> This type of relay device is called a cluster controller or the like, and is provided between a card authentication terminal group connected by LAN and two or more hosts connected via a transmission line. It is designed to relay communication messages between each other.

例えば、このような伝送装置は、LANにより結ばれた大
規模店舗内のカード認証端末群を、2以上のカード会社
のホストへつながる専用回線に中継する場合等に利用さ
れる。
For example, such a transmission device is used when relaying a card authentication terminal group in a large-scale store connected by a LAN to a dedicated line connected to hosts of two or more card companies.

ところで、従来この種の中継装置においては、各ホスト
の同時処理可能な電文処理件数,すなわち中継装置側か
ら見ればレスポンス返送を待つことなく返送してもよい
という電文送信件数(以下、これをマルチ処理件数とい
う)を予め登録しておき、カード認証端末からいずれか
のホストへ送信すべき電文が受信された場合、該当ホス
トのレスポンス待ち電文数がそのマルチ処理件数に達し
ていない場合には、レスポンス待ちの電文が存在しても
それに構わずカード認証端末から受信された電文を直ち
に該当ホストに対し送信するような処理が採用されてい
る。
By the way, in the conventional relay device of this type, the number of message processings that can be simultaneously processed by each host, that is, the number of message transmissions that the relay device may return without waiting for a response (hereinafter If the message to be sent to any of the hosts is received from the card authentication terminal, and the number of response waiting messages of the corresponding host has not reached the number of multi-processes, Regardless of the presence of a message waiting for a response, a process is adopted that immediately transmits the message received from the card authentication terminal to the relevant host.

この場合、同時処理させるべく送信された電文のいずれ
かに処理不能のものがあり、所定のレスポンス待ちタイ
ムアウト時刻を経過してもホストからレスポンスが返送
されない場合には、エラー電文を作成して電文送信元で
あるカード認証端末へ知らせてやらねばならない。
In this case, if one of the messages sent for simultaneous processing cannot be processed and the response is not returned from the host even after the specified response wait timeout time, create an error message and create a message. You must notify the card authentication terminal that is the sender.

このため、この種のマルチ処理件数が登録された中継装
置では、該当ホストからのレスポンス待ちの間、カード
認証端末からの受信電文を保存しておく必要があり、こ
のため複数個の電文バッファが全ホストに対し共通に確
保されている。
For this reason, in the relay device in which this kind of multi-processing number is registered, it is necessary to save the received message from the card authentication terminal while waiting for the response from the corresponding host, and therefore multiple message buffers are stored. Reserved for all hosts.

しかしながら、このような従来の中継装置の場合、電文
バッファ全体としては空きバッファが存在しても、各ホ
ストについてレスポンス待ち電文数がそのマルチ処理件
数に達してしまうと、直ちに当該ホストに対するカード
認証端末からの電文受付を停止し、ビジー電文を返送す
るようになされていたため、電文バッファが充分に利用
されず、ひいてはカード認証端末利用者にサービス低下
をもたらすという問題点があった。
However, in the case of such a conventional relay device, even if there is a free buffer as a whole message buffer, when the number of response waiting messages for each host reaches the number of multi-processes, the card authentication terminal for that host is immediately transmitted. Since it was designed to stop the reception of telegrams from and send back a busy telegram, there was a problem that the telegram buffer was not fully used and eventually the service deteriorates for the card authentication terminal user.

《発明の目的》 この発明の目的は、この種のマルチ処理件数の登録が可
能な中継装置において、電文バッファをその能力限界ま
で有効に利用し、中継装置側における電文受付数を増加
させることによって、カード認証端末利用者に対するサ
ービス向上を図ることにある。
<Object of Invention> An object of the present invention is to effectively use a message buffer up to its capacity limit in a relay device capable of registering the number of multi-process cases of this kind, and to increase the number of message receptions on the relay device side. , To improve services for card authentication terminal users.

《発明の構成と効果》 この発明は上記の目的を達成するために、カード認証端
末群と2以上のホストとの間にあって、これら相互間に
おける交信電文を中継する中継装置であって、 カード認証端末から受信した電文を格納するための複数
個の電文バッファと、 マルチ処理件数及びレスポンスタイマ値を各ホスト別に
記憶させたテーブルと、 カード認証端末からいずれかのホストへ送信すべき電文
が受信されたとき、該当ホストのレスポンス待ち電文数
がそのマルチ処理件数に達していなければ、当該電文を
電文バッファに格納した後、直ちに該当ホストへの送
信,レスポンスタイマ値によるレスポンスタイマ待ちタ
イムアウト時刻のセット,レスポンス待ちステータスの
セットを行なう一方、マルチ処理件数に達していれば、
当該電文を電文バッファに格納した後、該当ホストのレ
スポンス待ち電文数に空きができるのを待ってから、該
当ホストへの送信,レスポンスタイマ値によるレスポン
ス待ちタイムアウト時刻のセット,レスポンス待ちステ
ータスのセットを行なう手段と、 カード認証端末から何れかのホストへ送信すべき電文が
受信されたとき、電文バッファが満杯のときには、当該
電文を電文バッファへ格納することなく、当該送信元カ
ード認証端末に対しビジー電文を送信する手段と、 電文バッファに格納されたいずれかの電文に関しレスポ
ンス待ちタイムアウト時刻の経過が検出されたときに
は、当該電文の送信元に対しエラー電文を送信する手段
と、 を具備することを特徴とするものである。
<< Structure and Effect of the Invention >> In order to achieve the above object, the present invention is a relay device for relaying a communication message between a card authentication terminal group and two or more hosts, the card authentication Multiple message buffers for storing messages received from the terminal, a table that stores the number of multi-processes and the response timer value for each host, and a message to be sent to any host from the card authentication terminal is received. When the number of response waiting messages of the corresponding host does not reach the number of multi-processes, the message is stored in the message buffer and immediately sent to the corresponding host, and the response timer wait timeout time is set by the response timer value. While setting the response wait status, if the number of multi-processes has been reached,
After storing the relevant message in the message buffer, wait until the number of response waiting messages of the relevant host becomes available, then send to the relevant host, set the response wait timeout time by the response timer value, and set the response wait status. When the message to be sent to any host is received from the card authentication terminal and the message buffer is full, the message is not stored in the message buffer and the source card authentication terminal is busy. A means for transmitting a message, and a means for transmitting an error message to the sender of the message when the elapse of the response wait timeout time is detected for any of the messages stored in the message buffer. It is a feature.

このような構成によれば、各ホストについてレスポンス
待ち電文数がそのマルチ処理件数に達したとしても、そ
れだけでは直ちにビジー電文の返送は行なわれず、全電
文バッファが満杯になったときに初めてビジー電文の返
送が行なわれるため、中継装置としての電文受付数を増
加させ、ひいてはカード認証端末利用者に対するサービ
ス向上を図ることができる。
With such a configuration, even if the number of response waiting messages for each host reaches the number of multi-processes, the busy message is not immediately returned with that alone, and the busy message will not be returned until the entire message buffer becomes full. Since it is returned, it is possible to increase the number of received electronic messages as a relay device, and to improve the service to the card authentication terminal user.

《実施例の説明》 第1図は本発明に係る中継装置が適用されたカード認証
システム全体の構成を示すブロック図である。
<< Description of Embodiments >> FIG. 1 is a block diagram showing a configuration of an entire card authentication system to which a relay device according to the present invention is applied.

同図においてクラスタコントローラ1は本発明の中継装
置に相当するもので、これから延びる複数系統のLAN1〜
5には、多数のカード認証端末(以下、CATという)が
接続されている。
In the figure, a cluster controller 1 corresponds to the relay device of the present invention, and a plurality of systems of LAN 1 to
A large number of card authentication terminals (hereinafter referred to as CAT) are connected to 5.

また、クラスタコントローラ1には、ダイレクトにスト
アコントローラ(オフィスコンピュータ)2が接続さ
れ、これらとの間の交信も可能になされている。
A store controller (office computer) 2 is directly connected to the cluster controller 1 so that communication with them is possible.

ここで、以上説明したクラスタコントローラ1,ストアコ
ントローラ2及びカード認証端末CATは通常同一店舗内
に設置され、専用回線を介してセンタのホストコンピュ
ータ等との交信が可能になされている。
Here, the cluster controller 1, the store controller 2 and the card authentication terminal CAT described above are usually installed in the same store and can communicate with the host computer or the like of the center via a dedicated line.

この例では、クラスタコントローラ1はそれぞれ固有の
専用回線を介して2台のホストコンピュータ1,2へと接
続されている。
In this example, the cluster controller 1 is connected to two host computers 1 and 2 via their own dedicated lines.

第2図に示されるように、クラスタコントローラ1の制
御部は、CPU3,ROM4及びRAM5を主体としたマイクロコン
ピュータを主体として構成され、そのシステムバスには
前述したホスト1,2の専用回線を接続するためのホスト
1インタフェース6,ホスト2インタフェース7が接続さ
れ、またストアコントローラ2,各LANとの接続のための
ストアコントローラインタフェース8及びLAN1インタフ
ェース〜LAN5インタフェース9-1〜9-5がそれぞれ接続さ
れている。
As shown in FIG. 2, the control unit of the cluster controller 1 is mainly composed of a microcomputer mainly composed of CPU3, ROM4 and RAM5, and the dedicated lines of the above-mentioned hosts 1 and 2 are connected to the system bus thereof. Host 1 interface 6 and host 2 interface 7 for connection, and store controller 2, store controller interface 8 for connection with each LAN and LAN 1 interface to LAN 5 interface 9-1 to 9-5 are respectively connected. ing.

そして、第3図に示されるように、RAM5内には複数個
(図示例では18個)の電文バッファが設けられており、
各電文バッファ内にはバッファステータス,ホストレス
ポンス待ちタイムアウト時刻,送信元CATチャネルNo.,
送信元CATアドレス,送信先及び送信データがそれぞれ
格納可能になされている。
And as shown in FIG. 3, a plurality of (18 in the illustrated example) message buffers are provided in the RAM 5,
In each message buffer, the buffer status, host response wait timeout time, source CAT channel number,
The source CAT address, destination and transmission data can be stored respectively.

ここで、バッファステータスの内容は、数値0が空,数
値1がホスト送信前,数値2がホスト送信中,数値3が
ホストレスポンス待ち,数値4がCAT送信中をそれぞれ
表わしている。
Here, the content of the buffer status indicates that the numerical value 0 is empty, the numerical value 1 is before the host transmission, the numerical value 2 is during the host transmission, the numerical value 3 is waiting for the host response, and the numerical value 4 is during the CAT transmission.

また、ホストレスポンス待ちタイムアウト時刻は、0000
0000〜99999999(×10msec)の単位でホストレスポンス
待ちタイムアウト時刻を記憶するようになされている。
In addition, the host response wait timeout time is 0000
The host response wait timeout time is stored in units of 0000 to 99999999 (× 10 msec).

また、送信元CATチャネルは1〜5,送信元CATアドレスは
01〜1F(hex)となされている。
Also, the source CAT channel is 1 to 5, the source CAT address is
It is said to be 01 to 1F (hex).

更に、送信先としては、数値1がホスト1,数値2がホス
ト2,数値3がストアコントローラ2に意味付けがなされ
ている。
Further, as the destination, the numerical value 1 is assigned to the host 1, the numerical value 2 is assigned to the host 2, and the numerical value 3 is assigned to the store controller 2.

一方、RAM5内には以上の送信バッファのほかに、第5図
に示されるホストインフォメーションテーブル及び第6
図に示される現在時刻レジスタが格納されている。
On the other hand, in addition to the above transmission buffer, the host information table and the sixth information shown in FIG.
The present time register shown in the figure is stored.

ホストインフォメーションテーブルには、ホスト1,ホス
ト2,ストアコントローラ毎に、前述したマルチ処理件
数,レスポンスタイマ値がそれぞれ格納されている。
The host information table stores the number of multi-processes and the response timer value described above for each of host 1, host 2, and store controller.

ここで、マルチ処理件数とは、該当ホストに対し、直前
の送信電文に関するレスポンスを受信していないまま
に、そのまま送信できる件数を表わしている。
Here, the number of multi-processes represents the number of cases that can be transmitted to the corresponding host as it is without receiving the response regarding the immediately previous transmission message.

なお、前述したように送信電文バッファには、マルチ処
理件数とはかかわりなく、ホスト1,ホスト2,ストアコン
トローラのトータルが18まで電文を格納可能になされて
いる。
As described above, the transmission message buffer can store up to 18 messages in total for the host 1, host 2, and store controller regardless of the number of multi-processes.

また、レスポンスタイマ値は、該当ホストに対し電文送
信後からレスポンス受信までの監視タイマ時刻である。
The response timer value is the monitoring timer time from the transmission of the message to the corresponding host until the reception of the response.

また、第6図に示される現在時刻レジスタの内容は、例
えば割込処理によって10msec毎に+1されており、ここ
に00000000〜99999999(×10msec)の単位で、現在時刻
データが逐次生成されるようになされている。
The contents of the current time register shown in FIG. 6 are incremented by 1 every 10 msec, for example, by an interrupt process, so that the current time data is sequentially generated in the unit of 00000000 to 99999999 (× 10 msec). Has been done.

一方、前述したバッファステータスの定義は、第4図に
示される時系列的な状態を表わしており、図中〜が
バッファステータスの内容数値に対応している。
On the other hand, the above-mentioned definition of the buffer status represents the time-series state shown in FIG. 4, and in the drawing correspond to the contents numerical values of the buffer status.

更に、ホストレスポンス待ちタイムアウト時刻の算出
は、ホストに送信した直後に、現在時刻レジスタに登録
された現在時刻を読出し、これに該当ホストのレスポン
スタイマ値を加算して、その値をホストレスポンス待ち
タイムアウト時刻とするものである。
Furthermore, the host response waiting timeout time is calculated by reading the current time registered in the current time register immediately after sending it to the host, adding the response timer value of the corresponding host to this, and then calculating that value. It is the time.

次に、第7図はROM4に格納されたシステムプログラムの
構成を示すフローチャートであり、以下このフローチャ
ートを参照しながら、本実施例装置の動作を系統的に説
明する。
Next, FIG. 7 is a flowchart showing the configuration of the system program stored in the ROM 4, and the operation of the apparatus of this embodiment will be systematically described below with reference to this flowchart.

電源投入等によりプログラムがスタートされると、公知
の初期処理によって各種レジスタ,フラグ類の初期設定
が行なわれた後(ステップ701)、各ホスト毎にステー
タス3(レスポンス待ち)のバッファ数を算出する(ス
テップ702)。
When the program is started by turning on the power, various registers and flags are initialized by known initialization processing (step 701), and then the number of status 3 (waiting for response) buffers is calculated for each host. (Step 702).

プログラムスタート当初にあっては、第3図に示される
送信電文バッファには一切電文が格納されていないか
ら、その後マルチ処理件数に達していないホストは有り
と判定され(ステップ703肯定)、更にそのホストに対
しステータスが1(ホスト送信前)のバッファはなしと
判定されて(ステップ704否定)、以後ホストレスポン
ス待ちタイムアウトのバッファ有りをチェックしながら
(ステップ705否定)、なんらかの電文が受信されるの
を待機する状態となる(ステップ706否定)。
At the beginning of the program start, since there is no message stored in the transmission message buffer shown in FIG. 3, it is judged that there is a host that has not reached the number of multi-processes thereafter (Yes at step 703). It is determined that there is no buffer with a status of 1 (before sending the host) to the host (No at step 704), and while checking the existence of the buffer for waiting for a host response (No at step 705), some message is received. It becomes a state of waiting (No at step 706).

この状態において、なんらかの電文が受信されると(ス
テップ706肯定)、受信された電文がCATからのものか、
あるいはホスト(ホスト1,ホスト2,ストアコントロー
ラ)からのものかの判定を行なう。
In this state, if any message is received (Yes at step 706), whether the received message is from CAT,
Alternatively, it is determined whether it is from the host (host 1, host 2, store controller).

そして、CATからの電文であれば、空バッファ有りを条
件として(ステップ707肯定)、該当ホストからのレス
ポンス待ちのバッファの数は、既にマルチ処理件数に達
しているか否かの判定を行なう(ステップ708)。
Then, if it is a message from CAT, it is determined whether or not the number of buffers waiting for a response from the corresponding host has already reached the number of multi-processes, on condition that there is an empty buffer (Yes in step 707) (step 707). 708).

プログラムスタート当初、マルチ処理件数に達している
わけはないから、その結果はマルチ処理件数に達してい
ないと判定され(ステップ708否定)、続いて受信デー
タを空バッファに格納し、送信元CATのチャネルNo.,ア
ドレス,送信先をセットし、更にバッファステータスを
2(ホスト送信中)にセットする(ステップ709)。
At the beginning of the program, since the number of multi-processes has not been reached, it is judged that the result has not reached the number of multi-processes (No at step 708). Then, the received data is stored in the empty buffer, and the source CAT The channel number, address and destination are set, and the buffer status is set to 2 (host transmitting) (step 709).

その後、受信データを該当ホストに送信して(ステップ
710)、送信エラーの判定を行なう(ステップ711)。
Then, send the received data to the corresponding host (step
710), the transmission error is judged (step 711).

ここで、送信エラーと判定されれば(ステップ711肯
定)、直ちに該当CATに対しエラー電文を送信し、バッ
ファの内容をクリアするのに対し(ステップ712)、送
信が正常と判定されれば(ステップ711否定)、該当バ
ッファのステータスを3(レスポンス待ち)にセット
し、ホストレスポンス待ちタイムアウト時刻をセットす
る(ステップ713)。
Here, if it is determined that there is a transmission error (Yes at step 711), an error message is immediately transmitted to the corresponding CAT and the contents of the buffer are cleared (step 712), whereas if it is determined that the transmission is normal (step 712). (No at step 711), the status of the corresponding buffer is set to 3 (waiting for response), and the host response waiting timeout time is set (step 713).

前述したように、このホストレスポンス待ちタイムアウ
ト時刻の算出は、ホストに送信した直後に、現在時刻レ
ジスタから現在時刻を読出し、これにホストインフォメ
ーションテーブルから読み出したレスポンスタイマ値を
加算し、これをホストレスポンス待ちタイムアウト時刻
とするのである。
As described above, this host response waiting timeout time is calculated by reading the current time from the current time register immediately after sending it to the host, adding the response timer value read from the host information table to this, and then adding this to the host response. The waiting time-out time is set.

以後、以上説明した受信データを空バッファに格納し、
送信元CATのチャネルNo.,アドレス,送信先をセット
し、またバッファステータスを2(ホスト送信中)にセ
ットする処理(ステップ709)及び受信データを該当ホ
ストに送信し(ステップ710)、その後送信エラーの有
無に応じて(ステップ711)、エラー電文の送信か(ス
テップ712)、該当バッファステータスを3(レスポン
ス待ち)にセットし、ホストレスポンス待ちタイムアウ
ト時刻をセットする処理(ステップ713)からなる一連
の処理を、該当ホストからのレスポンス待ちのバッファ
の数がマルチ処理件数に達するまでの間(ステップ70
8)、継続するわけである。
After that, the received data described above is stored in the empty buffer,
The process of setting the channel number, address, and destination of the source CAT, and setting the buffer status to 2 (during host transmission) (step 709) and transmitting the received data to the relevant host (step 710), and then transmitting Depending on whether there is an error (step 711), an error message is transmitted (step 712), the corresponding buffer status is set to 3 (waiting for response), and the host response waiting timeout time is set (step 713). Process until the number of buffers waiting for a response from the corresponding host reaches the number of multi-processes (step 70
8), continue.

これに対して、以上の受信送信処理を繰り返す間に、該
当ホストからのレスポンス待ちのバッファの数がマルチ
処理件数に達しているとの判定がなされると(ステップ
708肯定)、その場合には従来装置のように直ちにビジ
ー電文を該当CATに送信するのではなく、受信データを
そのまま空バッファに格納し、送信元CATのチャネルN
o.,アドレス,送信先をセットし、またバッファステー
タス1を(ホスト送信前)にセットする処理を実行する
(ステップ714)。
On the other hand, when it is determined that the number of buffers waiting for a response from the corresponding host has reached the number of multi-processes while repeating the above reception / transmission process (step
708), in that case, instead of immediately transmitting a busy telegram to the corresponding CAT as in the conventional device, the received data is stored in the empty buffer as it is, and the channel N of the source CAT is stored.
The process of setting o., address and destination, and setting buffer status 1 to (before host transmission) is executed (step 714).

すなわち、従来装置の場合、いずれかのホストに関しマ
ルチ処理件数に達すれば、直ちにCATからの電文受付を
停止してビジー電文を返送していたのに対し、本実施例
装置の場合その時点で電文バッファに空きがあれば(ス
テップ707肯定)、CATからの電文をそのまま受付け、た
だしバッファステータスを1(ホスト送信前)にセット
して、送信自体は後述するように、マルチ処理件数に空
きができるまで待機するわけである。
That is, in the case of the conventional device, when the number of multi-processes is reached for any of the hosts, the message reception from the CAT is immediately stopped and the busy message is returned, whereas in the case of the device of the present embodiment, the message is transmitted at that time. If there is free space in the buffer (Yes in step 707), the message from CAT is accepted as it is, but the buffer status is set to 1 (before host transmission), and the transmission itself has a space for the number of multi-processes, as described later. To wait until.

以後、マルチ処理件数に達したホスト側において、いず
れかの処理が完了してその旨のレスポンスが返送される
と(ステップ706肯定)、直ちに受信データの送信先CAT
のチャネルNo.,アドレス,送信元から当該レスポンスに
対応した電文の登録されたバッファが検索され(ステッ
プ715)、該当するバッファが存在すれば(ステップ716
肯定)、該当バッファのステータスを4(CAT送信前)
にセットし(ステップ717)、受信データを該当CATに送
信し(ステップ718)、最後に該当バッファをクリアす
る(ステップ719)。
After that, when the host side that has reached the number of multi-processes completes one of the processes and returns a response to that effect (Yes at step 706), immediately the destination CAT of the received data is sent.
The channel in which the message corresponding to the response is registered is searched from the channel No., address, and sender (step 715), and if the corresponding buffer exists (step 716).
Affirmative), the status of the corresponding buffer is 4 (before sending CAT)
(Step 717), the received data is transmitted to the corresponding CAT (step 718), and finally the corresponding buffer is cleared (step 719).

これにより、当該ホストに関しマルチ処理件数には電文
1個分だけ空きが生ずることとなる。
As a result, there is a vacancy in the number of multi-processes for the host by one message.

すると、それまで電文バッファに格納され、いまだ送信
されていなかった電文は、マルチ処理件数に達していな
いホスト有り(ステップ703肯定),ホストに対しステ
ータスが1(ホスト送信前)のバッファ有り(ステップ
704肯定)と判定される結果、バッファステータスを2
(ホスト送信中)にセットした後(ステップ720)、該
当ホスト送信前の電文は該当ホストへと送信され(ステ
ップ721)、その後送信エラーの有無に応じて(ステッ
プ722)、該当CATに対するエラー電文を送信してバッフ
ァをクリアする処理(ステップ723)、あるいは該当バ
ッファのステータスを3(レスポンス待ち)にセット
し、ホストレスポンス待ちタイムアウト時刻をセットす
る処理(ステップ724)が択一的に実行されることとな
る。
Then, there is a host which has been stored in the message buffer and has not yet been sent until then, and there is a host whose number of multi-processes has not reached (Yes at step 703) and a buffer with a status of 1 (before host transmission) to the host (step)
704), the buffer status is set to 2
After setting to (during host transmission) (step 720), the message before sending the corresponding host is sent to the corresponding host (step 721), and then depending on whether there is a transmission error (step 722), the error message for the corresponding CAT. To clear the buffer (step 723) or to set the status of the corresponding buffer to 3 (wait for response) and set the host response wait timeout time (step 724) as an alternative. It will be.

つまり、以上を簡略化して説明すれば、CATから受信さ
れる電文を順次該当するホストへ送信していく間に、該
当ホストがマルチ処理件数に達した場合、その時点で電
文バッファに空きがあれば、なおも該当ホストに対する
電文を受付けておき、その後該当ホストについてマルチ
処理件数に空きが生じた時点で、これを該当ホストヘ送
信するわけである。
In other words, to simplify the above description, if the host reaches the number of multi-processes while sequentially transmitting the messages received from CAT to the corresponding host, there is a free space in the message buffer at that time. For example, a message is still received for the relevant host, and when there is a vacancy in the number of multi-processes for the relevant host, this is transmitted to the relevant host.

一方、以上の動作を更に継続することにより、電文バッ
ファが全て満杯となり、空バッファなしと判定されると
(ステップ707否定)、初めてこの時点において該当CAT
に対しビジー電文の送信が行なわれ(ステップ725)、
この場合にはもはやCATからの電文受付は不能となる。
On the other hand, if the message buffer becomes full and it is determined that there is no empty buffer by continuing the above operation (No at Step 707), the corresponding CAT at this time
A busy telegram is sent to (step 725),
In this case, it is no longer possible to receive the message from CAT.

また、受信待機状態において(ステップ706否定)、い
ずれかの送信された電文に対し、ホスト側で処理不能等
の原因によりレスポンス待ちタイムアウトのバッファが
生ずると(ステップ705肯定)、その場合には当該電文
バッファから該当する内容を読み出して、エラー電文を
作成し、これを該当CATに返送することとなる(ステッ
プ726)。
Further, in the reception standby state (No at step 706), if a buffer for response wait timeout occurs for any of the transmitted messages due to inability to process on the host side (Yes at step 705), in that case. The corresponding contents are read from the message buffer, an error message is created, and this is sent back to the corresponding CAT (step 726).

第8A図は、クラスタコントローラ(C/C)を経由して、
カード認証端末(CAT)からいずれかのホスト(ホスト
1,ホスト2,ストアコントローラ)へと送られる電文のフ
ォーマットを示すもので、図示から明らかなように、送
信元CATはチャネルNo.及びアドレスから構成され、また
送信先ホストとしては数値0001,0002,0003をそれぞれホ
スト1,ホスト2及びストアコントローラに意味付けてお
り、更にその後にカード取引データを付したものであ
る。
Fig. 8A shows a cluster controller (C / C)
From the card authentication terminal (CAT) to any host (host
1, host 2, store controller), it shows the format of the message sent to the sender.As is clear from the figure, the source CAT is composed of the channel number and address, and the destination host is the numerical value 0001,0002. , 0003 are assigned to the host 1, host 2 and store controller, respectively, and card transaction data is added after that.

また第8B図には、ホストからクラスタコントローラ(C/
C)を経由して、カード認証端末(CAT)へ送信すべき電
文のフォーマットを示すもので、この場合にも送信元ホ
スト,送信先CAT,処理結果データを図示のようにフォー
マット構成するのである。
Also shown in Figure 8B is the host to cluster controller (C /
It shows the format of the message to be sent to the card authentication terminal (CAT) via C). In this case as well, the source host, destination CAT, and processing result data are formatted as shown in the figure. .

以上の実施例の説明のように、本発明によれば、各ホス
ト毎にマルチ処理件数,レスポンス待ちタイムアウト時
刻の設定を可能として、受信電文数を増大するという基
本的な効果に加え、いずれかのホストに関しマルチ処理
件数を越えた場合にも、電文バッファが満杯になるまで
は、CATからの電文受付を継続し、これにより電文受付
数を増加して、CAT利用者にサービス向上を図るという
効果が得られるわけである。
As described in the above embodiments, according to the present invention, in addition to the basic effect that the number of multi-process cases and the response waiting timeout time can be set for each host to increase the number of received messages, Even if the number of multi-processes for the host is exceeded, it will continue to accept messages from CAT until the message buffer becomes full, thereby increasing the number of messages accepted and improving service for CAT users. The effect can be obtained.

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

第1図は本発明が適用されるカード認証システムの全体
構成を示すブロック図、第2図はクラスタコントローラ
のハードウエア構成を示すブロック図、第3図は電文バ
ッファの構成を示すメモリマップ、第4図はバッファス
テータスの定義を解説するための説明図、第5図はホス
トインフォメーションテーブルの内容を示すメモリマッ
プ、第6図は現在時刻レジスタの内容を示すメモリマッ
プ、第7図は同クラスタコントローラのソフトウエア構
成を示すフローチャート、第8A図はクラスタコントロー
ラを経由して、カード認証端末からいずれかのホストへ
と送られる電文のフォーマットを示す図、第8B図はホス
トからクラスタコントローラを経由して、カード認証端
末へ送信すべき電文のフォーマットを示す図である。 1……クラスターコントローラ 2……ストアコントローラ 3……CPU 4……ROM 5……RAM 6……ホスト1インタフェース 7……ホスト2インタフェース 8……ストアコントローラインタフェース 9-1〜9-5……LAN1インタフェース〜LAN5インタフェース
1 is a block diagram showing the overall configuration of a card authentication system to which the present invention is applied, FIG. 2 is a block diagram showing the hardware configuration of a cluster controller, FIG. 3 is a memory map showing the configuration of a message buffer, and FIG. FIG. 4 is an explanatory diagram for explaining the definition of the buffer status, FIG. 5 is a memory map showing the contents of the host information table, FIG. 6 is a memory map showing the contents of the current time register, and FIG. 7 is the same cluster controller. Fig. 8A is a flow chart showing the software configuration of the above, Fig. 8A is a diagram showing the format of a message sent from the card authentication terminal to one of the hosts via the cluster controller, and Fig. 8B is from the host via the cluster controller. It is a figure which shows the format of the electronic message which should be transmitted to a card authentication terminal. 1 …… Cluster controller 2 …… Store controller 3 …… CPU 4 …… ROM 5 …… RAM 6 …… Host 1 interface 7 …… Host 2 interface 8 …… Store controller interface 9-1 to 9-5 …… LAN1 Interface to LAN5 interface

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】カード認証端末群と2以上のホストとの間
にあって、これら相互間における交信電文を中継する中
継装置であって、 カード認証端末から受信した電文を格納するための複数
個の電文バッファと、 マルチ処理件数及びレスポンスタイマ値を各ホスト別に
記憶させたテーブルと、 カード認証端末からいずれかのホストへ送信すべき電文
が受信されたとき、該当ホストのレスポンス待ち電文数
がそのマルチ処理件数に達していなければ、当該電文を
電文バッファに格納した後、直ちに該当ホストへの送
信,レスポンスタイマ値によるレスポンスタイマ待ちタ
イムアウト時刻のセット,レスポンス待ちステータスの
セットを行なう一方、マルチ処理件数に達していれば、
当該電文を電文バッファに格納した後、該当ホストのレ
スポンス待ち電文数に空きができるのを待ってから、該
当ホストへの送信,レスポンスタイマ値によるレスポン
ス待ちタイムアウト時刻のセット,レスポンス待ちステ
ータスのセットを行なう手段と、 カード認証端末から何れかのホストへ送信すべき電文が
受信されたとき、電文バッファが満杯のときには、当該
電文を電文バッファへ格納することなく、当該送信元カ
ード認証端末に対しビジー電文を送信する手段と、 電文バッファに格納されたいずれかの電文に関しレスポ
ンス待ちタイムアウト時刻の経過が検出されたときに
は、当該電文の送信元に対しエラー電文を送信する手段
と、 を具備することを特徴とする中継装置。
1. A relay device between a card authentication terminal group and two or more hosts for relaying a communication message between them, and a plurality of messages for storing a message received from the card authentication terminal. A buffer, a table in which the number of multi-processes and response timer values are stored for each host, and when a message to be sent to one of the hosts is received from the card authentication terminal, the number of response-waiting messages for that host is the multi-process. If the number of messages has not reached the number, the message is stored in the message buffer, then immediately sent to the corresponding host, the response timer waiting timeout time is set by the response timer value, and the response waiting status is set. If
After storing the relevant message in the message buffer, wait until the number of response waiting messages of the relevant host becomes available, then send to the relevant host, set the response wait timeout time by the response timer value, and set the response wait status. When the message to be sent to any host is received from the card authentication terminal and the message buffer is full, the message is not stored in the message buffer and the source card authentication terminal is busy. A means for transmitting a message, and a means for transmitting an error message to the sender of the message when the elapse of the response wait timeout time is detected for any of the messages stored in the message buffer. Characteristic relay device.
JP62255662A 1987-10-09 1987-10-09 Relay device Expired - Fee Related JPH07120369B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62255662A JPH07120369B2 (en) 1987-10-09 1987-10-09 Relay device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62255662A JPH07120369B2 (en) 1987-10-09 1987-10-09 Relay device

Publications (2)

Publication Number Publication Date
JPH0198061A JPH0198061A (en) 1989-04-17
JPH07120369B2 true JPH07120369B2 (en) 1995-12-20

Family

ID=17281868

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62255662A Expired - Fee Related JPH07120369B2 (en) 1987-10-09 1987-10-09 Relay device

Country Status (1)

Country Link
JP (1) JPH07120369B2 (en)

Also Published As

Publication number Publication date
JPH0198061A (en) 1989-04-17

Similar Documents

Publication Publication Date Title
US4574284A (en) Communication bus interface unit
US5175732A (en) Method and apparatus for controlling data communication operations within stations of a local-area network
JPH11296316A (en) Peripheral processor and control method therefor
JPH0824320B2 (en) Method and device for buffer chaining in communication control device
JP3825692B2 (en) Method and apparatus for handling invalidation requests for processors not present in a computer system
JPH07120369B2 (en) Relay device
JPH0410658B2 (en)
JP3799741B2 (en) Bus controller
JPH09269936A (en) Remote reading processing method and device therefor
JPS5811146B2 (en) Communication method using polling emulator
JP2821299B2 (en) Access control method
JP3351581B2 (en) Data relay device
JP2848442B2 (en) Arbitrary message data discrimination method
JPH01258521A (en) Multi-address communication system
JPS5936456A (en) Communication controller
JPS588008B2 (en) Transmission control method
JPH0334051A (en) Interface control system
JPS61165160A (en) Bus controlling system
JPH0198057A (en) Repeating installation
JPH08185286A (en) Printer controller
JPS62212762A (en) Processing system for function decentralized information
JPS59212053A (en) Data relay system
JPH08149153A (en) Virtual buffer control system in relay computer
JPH10207829A (en) Bus controller
JPH0426476B2 (en)

Legal Events

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