JPH0594397A - Data processing system - Google Patents

Data processing system

Info

Publication number
JPH0594397A
JPH0594397A JP3283680A JP28368091A JPH0594397A JP H0594397 A JPH0594397 A JP H0594397A JP 3283680 A JP3283680 A JP 3283680A JP 28368091 A JP28368091 A JP 28368091A JP H0594397 A JPH0594397 A JP H0594397A
Authority
JP
Japan
Prior art keywords
data
ecr
station
processing
polling
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
JP3283680A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Haruhara
一義 春原
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP3283680A priority Critical patent/JPH0594397A/en
Publication of JPH0594397A publication Critical patent/JPH0594397A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To reduce the processing time of a CPU and to enable an efficient data processing by declaring it to each device to designate a data transmitting request and successively transmitting data to respective devices after the decleration. CONSTITUTION:Among ECR (electronic registers) 11-13 connected through a communication line 14, the ECR desiring to be a master station outputs an open start command and when this command is received at the ECR of a communicating party, it is recognized that the ECR is the master station. Afterwards, the data are successively transmitted to the respective ECR in the manner of polling. Therefore, only when the data output is generated, the operation as the main station is executed, CPU time can be allocated to the side of a front application, and the efficient processing is executed. Further, since the data can be transmitted from any ECR, operation efficiency can be improved by transmitting the data from the ECR even when a person in charge is away from the master station (master ECR) and stays at the slave station (slate ECR).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電子レジスタ(EC
R),POSシステム、データターミナル等の通信制御
におけるデータ処理システムに関する。
BACKGROUND OF THE INVENTION The present invention relates to an electronic register (EC
R), a POS system, a data processing system in communication control such as a data terminal.

【0002】[0002]

【従来の技術】POSシステムは、百貨店、スーパー、
専門店、小売店などの売り場に設置され、単品管理、顧
客管理、売上管理などに使用するデータを即時に収集す
る端末装置である。一般にはレジスタ機能、データを一
時記憶するファイル機能、上位装置へ接続するオンライ
ン機能を有している。上記POSシステムでは、一般に
主局に多数の従局が接続され、主局が従局のポーリング
(制御局から特定の従局へ伝送される「送信勧誘」をい
う)あるいはセレクション(次に送るメッセージを受信
するように指示するために、制御局からある一つの従局
へ送られる「受信要求」をいう)を行うポーリング方式
が採用されている。従来のPOSシステムなどにおける
ポーリング方式の通信制御は、図9で示される。図9に
示すように、主局よりポーリングを発行し、従局にて転
送するデータがある場合(図9では従局n)はこれに同
期し送出していた。このポーリングの場合には接続処理
は主局から働きかけるが、切断処理は従局から行い、従
局は主局からポーリングしてもらわない限り、送信要求
があっても伝送できない。従って、主局は常時順繰りに
従局に対してポーリングすることが必要となる。
2. Description of the Related Art POS systems are used in department stores, supermarkets,
It is a terminal device that is installed at a sales floor such as a specialty store or a retail store and immediately collects data used for single item management, customer management, sales management, and the like. Generally, it has a register function, a file function for temporarily storing data, and an online function for connecting to a host device. In the above-mentioned POS system, a large number of slave stations are generally connected to the master station, and the master station receives polling of the slave station (meaning "invitation to send" transmitted from the control station to a specific slave station) or selection (message to be sent next) In order to instruct the above, a polling method is used in which a "reception request" is sent from the control station to a certain slave station. The polling method communication control in the conventional POS system is shown in FIG. As shown in FIG. 9, when the master station issues polling and there is data to be transferred by the slave station (slave station n in FIG. 9), the data was sent in synchronization with this. In the case of this polling, the connection process is operated from the master station, but the disconnection process is carried out from the slave station, and the slave station cannot transmit even if there is a transmission request unless polled by the master station. Therefore, the main station needs to constantly poll the slave stations.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の通信制御を行うデータ処理システムにあって
は、主局が従局のポーリングを行うポーリング方式によ
ってデータ通信をしていたため、瞬時処理の必要なアプ
リケーション(例えば、マスタ/Bマスタのスキャニン
グシステム等)では、常に主局の処理を行わなければな
らず、フロントにおいて動作するアプリケーションの処
理時間が低下するという問題点があった。また、必ず主
局が従局のポーリングを行うため、例えば責任者が主局
(マスタ側)から離れた従局(スレーブ側)にいてそこ
からプログラムデータ等を送りたいような場合でもデー
タ伝送することはできず、一旦マスタ側に行ってデータ
伝送しなければならないという問題点もあった。上記不
具合を改善するために、例えば回線の制御権を得よう
とする局がENQを送信し、回線の獲得を要求し、相手
側からの肯定応答によって回線の制御権を得るコンテン
ション方式とする、あるいは専用CPUによる制御等
が考えられるが、コンテンション方式の場合は通信速
度が速いことから通信制御系が複雑になるという欠点が
あり、専用CPUによる制御の場合はハードコストが
上昇するという欠点がある。してみれば、ポーリング方
式であってもコンテンション方式と同じように何れの局
(装置)からでもデータを伝送できるようにすれば、C
PUの処理時間を減らし、効率よいデータ処理ができる
ことができることは明らかである。本発明の課題は、ポ
ーリング方式の通信手順を改良して何れの装置からでも
データ伝送をできるようにすることである。
However, in such a conventional data processing system for controlling communication, since the master station carries out data communication by the polling method of polling the slave stations, instantaneous processing is required. However, in such applications (for example, a master / B master scanning system), the processing of the master station must be performed at all times, and the processing time of the application operating in the front is reduced. Also, since the master station always polls the slave stations, data transmission is not possible even if the responsible person is at a slave station (slave side) away from the master station (master side) and wants to send program data from there. However, there is also a problem in that the data must be transmitted once to the master side. In order to improve the above-mentioned trouble, for example, a station trying to obtain control of the line transmits ENQ, requests acquisition of the line, and obtains control of the line by an affirmative response from the other side. Alternatively, control by a dedicated CPU is conceivable, but the contention method has a drawback that the communication control system becomes complicated due to the high communication speed, and the control by the dedicated CPU causes an increase in hardware cost. There is. Then, if the data can be transmitted from any station (device) in the same manner as in the contention method even in the polling method, C
It is obvious that the PU processing time can be reduced and efficient data processing can be performed. An object of the present invention is to improve the polling method communication procedure so that data can be transmitted from any device.

【0004】[0004]

【課題を解決するための手段】本発明の手段は次の通り
である。宣言手段1(図1の機能ブロック図を参照、以
下同じ)は、複数装置(例えば、ECR;POSシステ
ム等の端末)を接続し、何れかの装置からデータ伝送要
求の指定を行うことで他の装置にデータを伝送するデー
タ処理システムにおいて、データ伝送要求の指定を行う
ことを各装置に宣言するもので、例えば各装置のうち主
局になろうとする装置が、通信回路を介して他の装置に
スタートコマンドを出力することにより宣言する。伝送
手段2は宣言手段1による宣言の後に各装置に対し順次
データを伝送するもので、例えばスタートコマンドが出
力され、このスタートコマンドが他の装置に受け取られ
ればそれらの装置に対してポーリング的にデータを伝送
する。
The means of the present invention are as follows. The declaring means 1 (see the functional block diagram in FIG. 1, the same applies hereinafter) connects a plurality of devices (for example, an ECR; a terminal such as a POS system) and designates a data transmission request from any of the devices. In a data processing system for transmitting data to a device, the device declares to each device that a data transmission request is to be specified. It is declared by outputting a start command to the device. The transmitting means 2 sequentially transmits data to each device after the declaration by the declaring means 1. For example, a start command is output, and if this start command is received by another device, those devices are polled. Transmit data.

【0005】[0005]

【作用】本発明の手段の作用は次の通りである。先ず、
複数装置が通信回線等を通して接続され、何れかの装置
からデータ伝送要求の指定が行われると他の装置にデー
タが伝送され得る状態になっているものとする。この状
態で、任意の装置から所定のデータを伝送しようとする
場合には、宣言手段1によりデータ伝送要求の指定を行
うことが各装置に宣言され、宣言手段1による宣言の後
に伝送手段2によって各装置に対し順次データが伝送さ
れる。従って、何れの装置からでもデータが伝送できる
ようになる。
The operation of the means of the present invention is as follows. First,
It is assumed that a plurality of devices are connected through a communication line or the like, and when any device specifies a data transmission request, data is ready to be transmitted to another device. When transmitting predetermined data from any device in this state, the declaring means 1 declares to each device that a data transmission request is to be designated, and after the declaring means 1 declares, the transmitting means 2 makes a declaration. Data is sequentially transmitted to each device. Therefore, data can be transmitted from any device.

【0006】[0006]

【実施例】以下、図2〜図8を参照して実施例を説明す
る。図2〜図8は通信制御機能を備えたデータ処理シス
テムの一実施例を示す図であり、本実施例はデータ処理
装置としてマスター・スレーブ型の電子レジスタ(EC
R)に適用した例である。先ず、構成を説明する。図2
はデータ処理システム10のブロック図である。図2に
おいて、符号11,12,13は通信回線14を介して
接続された複数の電子レジスタ(ECR)であり、上記
電子レジスタ11,12,13のうちの1つの電子レジ
スタは必ずしも主局となるマスタECRでなくてもよく
全て従局のスレーブECRであってもよい。従って、電
子レジスタ11,12,13は通信制御に関しては同一
のハード的構成をとることができるため、電子レジスタ
11を代表して説明し、電子レジスタ12,13につい
ては部材番号のみを付して重複箇所の説明を省略する。
電子レジスタ11において、符号21はCPUであり、
CPU21は図示しないROMに格納されているマイク
ロプログラムに従ってRAM22との間でデータの授受
を行ったりしながら各種動作に必要な値を演算する演算
部21aと、演算部21aで処理したデータに基づいて
後述する伝送装置24、印字部26、ドロア27等を制
御するための制御信号を出力する制御部21b、フラグ
21cを含んで構成されている。
EXAMPLES Examples will be described below with reference to FIGS. 2 to 8 are views showing an embodiment of a data processing system having a communication control function. In this embodiment, a master / slave type electronic register (EC) is used as a data processing device.
It is an example applied to R). First, the configuration will be described. Figure 2
FIG. 3 is a block diagram of the data processing system 10. In FIG. 2, reference numerals 11, 12, and 13 denote a plurality of electronic registers (ECR) connected via a communication line 14, and one of the electronic registers 11, 12, and 13 is not necessarily the main station. The master ECR does not have to be a master ECR and all slave ECRs of slave stations may be used. Therefore, the electronic registers 11, 12, and 13 can have the same hardware configuration with respect to communication control. Therefore, the electronic register 11 will be described as a representative, and only the member numbers are given to the electronic registers 12 and 13. The description of the overlapping parts will be omitted.
In the electronic register 11, reference numeral 21 is a CPU,
The CPU 21 calculates a value required for various operations while exchanging data with the RAM 22 according to a microprogram stored in a ROM (not shown), and based on the data processed by the calculation unit 21a. The transmission device 24, the printing unit 26, the drawer 27, and the like, which will be described later, are configured to include a control unit 21b that outputs a control signal for controlling the drawer 27, and a flag 21c.

【0007】CPU21には、データ伝送処理を処理を
含むECRの各種の動作を制御する制御用のマイクロプ
ログラムを記憶するROM(不図示)、書込みと読出し
が可能な揮発性メモリからなり、入力された売上データ
が商品名、個数、金額等に分類されて記憶されるPLU
ファイルを構成するとともに、データ送受信用バッフ
ァ、各種レジスタ等を備えたRAM22、テンキー、フ
ァンクションキー、プログラムデータを順次設定するた
めのオートプログラム(PGM)設定キー及び各モード
を指定するモードスイッチが設けられたキー入力部2
3、ECR12,13と通信回線(無線通信も含む)1
4を経由して相互にデータ伝送を行う伝送装置24、各
種のデータを表示する表示部25、RAM22に記憶さ
れたPLUファイル等の各種データをジャーナル用紙お
よびレシート用紙に印字する印字部26、現金を収納し
現金/預かり金キー等が操作された際に開放されるドロ
ア27がそれぞれ接続されている。
The CPU 21 is composed of a ROM (not shown) for storing a control microprogram for controlling various operations of the ECR including data transmission processing, a volatile memory capable of writing and reading, and is inputted. PLU in which the sales data is classified and stored according to product name, number of products, amount of money, etc.
A RAM 22 having a buffer for data transmission / reception, various registers, a numeric keypad, a function key, an automatic program (PGM) setting key for sequentially setting program data, and a mode switch for designating each mode are provided while composing a file. Key input section 2
3, ECR12, 13 and communication line (including wireless communication) 1
4, a transmission device 24 for mutually transmitting data, a display unit 25 for displaying various data, a printing unit 26 for printing various data such as a PLU file stored in the RAM 22 on journal paper and receipt paper, cash Are connected to drawers 27 that are opened when the cash / deposit key is operated.

【0008】上記キー入力部23には、そのキーボード
上にテンキー31、ファンクションキー、オートプログ
ラム設定キー等の設定キーが設けられているほか、「設
定(P)」、「登録(REG)」、「電源オフ(OF
F)」、「点検(X)」、「精算(Z)」の各モードに
指定するモードスイッチMSが設けられている。
The key input section 23 is provided with setting keys such as a numeric keypad 31, function keys, and auto program setting keys on its keyboard, as well as "setting (P)", "registration (REG)", "Power off (OF
A mode switch MS for designating each mode of “F)”, “inspection (X)”, and “settlement (Z)” is provided.

【0009】また、上記RAM22は書込みと読出しが
可能な揮発性メモリであり、売上データや演算に使用す
るいわゆるワーキングメモリである。具体的には、RA
N22には商品コードによる個数、金額等の売上データ
を記憶するPLUファイル22a、送受信の際の売上デ
ータを圧縮された形で一時的に記憶するデータ送信用バ
ッファ、レジスタ、カウンタ及びフラグを構成するレジ
スタ領域、CPU21の作動領域(ワーキングエリア)
等が他メモリ22bとして設けられている。なお、一般
にマスター型の電子レジスタはスレーブ型の電子レジス
タとRAM22のレジスタ領域の構成のみが異なってい
る。
The RAM 22 is a readable and writable volatile memory and is a so-called working memory used for sales data and calculation. Specifically, RA
N22 comprises a PLU file 22a for storing sales data such as the number and amount of money according to the product code, a data transmission buffer, a register, a counter and a flag for temporarily storing the sales data in a compressed form during transmission and reception. Register area, CPU21 operating area (working area)
Etc. are provided as the other memory 22b. Generally, the master electronic register differs from the slave electronic register only in the configuration of the register area of the RAM 22.

【0010】次に、本実施例の動作を説明する。本デー
タ処理システムは、ポーリング通信手順を以下のように
改良することによってポーリングのような動作を行うと
ともにコンテンショクと同じように何れの端末(ECR
11〜13)からもデータ(例えば、プログラムデー
タ)を送出できるようにするものである。このために、
先ず、どの端末からもオープンコマンドが出力できるよ
うにする。そして、これらの端末のうち主局になりたい
端末がオープンコマンドを出力し、他の端末がこのオー
プンコマンドを受け取れば、以後、主局となった端末が
ポーリング又はセレクディングを行ってデータを送出す
るようにする。すなわち、以下のような特徴を有する。 全ての端末が主局となりうる。 データ出力が発生した場合のみ、主局オープン処理
(図3)により主局となる動作を行う。 出力完了後主局クローズ処理(図7)により従局に戻
る。 オープン/クローズのタイミングにより他端末との同
期を合わせる。 以下、図3〜図7のフローを用いて各端末からのデータ
送出動作を具体的に説明する。
Next, the operation of this embodiment will be described. This data processing system performs an operation such as polling by improving the polling communication procedure as follows, and at the same time as in the case of contention, any terminal (ECR
Data (for example, program data) can be transmitted from 11 to 13). For this,
First, open command can be output from any terminal. Then, of these terminals, the terminal that wants to become the master station outputs an open command, and when the other terminals receive this open command, the terminal that has become the master station then sends data by polling or selecting. To do so. That is, it has the following features. All terminals can be master stations. Only when data output occurs, the operation to become the master station is performed by the master station open processing (FIG. 3). After the output is completed, it returns to the slave station by the master station close processing (Fig. 7). Synchronize with other terminals according to the open / close timing. Hereinafter, the data transmission operation from each terminal will be specifically described with reference to the flows of FIGS.

【0011】図3は主局も従局もない、すなわち何れの
端末も主局になり得る端末(ECR11,12,13)
のデータ伝送処理フローであり、ある端末からデータが
送出される際の手順を示している。同図中、符号Sn
(n=1,2,…)はフローの各ステップを示す。
In FIG. 3, there is no master station or slave station, that is, any terminal can be a master station (ECR 11, 12, 13).
Is a data transmission processing flow of, and shows a procedure when data is transmitted from a certain terminal. In the figure, reference numeral Sn
(N = 1, 2, ...) Shows each step of the flow.

【0012】プログラムがスタートすると、先ずステッ
プS1で主局がオープン中か否かを判別し、どこかの主
局がオープンしていればステップS2をジャンプしてス
テップS3に進む。また主局がオープン中でなければス
テップS2で通信回線14を監視し、回線状態がアイド
ル中(すなわち、通信回線14があいているか)か否か
を判別する。ステップS3では自局のポーリング待ちを
行い、ステップS4でポーリングがあるか否かを判別す
る。自局のポーリング待ちを行ってポーリングがなけれ
ばステップS2に戻ってポーリングを待ち続け、ポーリ
ングがあればステップS5で自分が従局になる従局処理
(図6)を行って本フローの処理を終える。
When the program starts, it is first determined in step S1 whether or not the master station is open. If any master station is open, step S2 is jumped to step S3. If the main station is not open, the communication line 14 is monitored in step S2 to determine whether the line status is idle (that is, whether the communication line 14 is open). In step S3, the polling of the local station is waited, and in step S4, it is determined whether or not there is polling. If it waits for polling of its own station and if there is no polling, it returns to step S2 to continue waiting for polling.

【0013】一方、ステップS2で回線アイドル中のと
きは通信回線14があいているときであるからステップ
S6で図4に示すような主局オープンスタートのコマン
ド列を通信回線14に出力し、ステップS7で自局が主
局になりたい場合の主局処理(図5)を行う。次いで、
ステップS8で主局処理が全台終了したか否かを判別
し、全台終了したときはステップS9でクローズコマン
ドを出力して処理を終了するクローズ処理(図7)を行
い、ステップS10でオープン中のフラグ21c(31
c,41c)をクリアして本フローの処理を終える。
On the other hand, when the communication line 14 is open when the line is idle in step S2, the main station open start command sequence as shown in FIG. 4 is output to the communication line 14 in step S6, and the step In S7, main station processing (FIG. 5) is performed when the own station wants to become the main station. Then
In step S8, it is determined whether or not the main station processing has been completed for all units, and when all units have been completed, a close command is output in step S9 to end the processing (FIG. 7), and open in step S10. Inside flag 21c (31
c, 41c) is cleared, and the processing of this flow ends.

【0014】図5は主局処理のフローチャートであり、
前記図3のステップS7に対応しオートプログラムによ
り実行される。この主局処理はあくまで自局からポーリ
ング等を出力するだけの処理であって受取る処理は前提
としていない。
FIG. 5 is a flowchart of the main station processing.
It is executed by an automatic program corresponding to step S7 in FIG. This main station process is merely a process of outputting polling and the like from its own station, and is not premised on a process of receiving it.

【0015】先ず、ステップS11で主局になりたいと
いうセレクションを出力するセレクティングを行う。こ
こで、セレクティングとはセンタが相手を指定してデー
タを受信する要求をいう。すなわち、後述する図8のデ
ータの流れに示すようにPolling my idを出力する。次
いで、ステップS12で図8に示すようにデータ(同
図、データ1参照)を出力し、ACKを受けてステップ
S12でポーリング(同図、ポーリング1,ポーリング
n参照)を出力する。ここで、ポーリングとはセンタが
相手に対して順番にデータの送信を要求することをい
う。
First, in step S11, selection is performed to output a selection indicating that the user wants to be the master station. Here, selecting means a request for the center to specify a partner and receive data. That is, Polling my id is output as shown in the data flow of FIG. 8 described later. Then, in step S12, the data (see data 1 in FIG. 8) is output as shown in FIG. 8, and in response to the ACK, polling (see polling 1 and polling n in FIG. 8) is output. Here, polling means that the center sequentially requests the other party to transmit data.

【0016】ポーリングを出力しステップS14でその
応答を待って、応答があったときはステップS15で応
答がACKか否かを判別する。ACKがあったときはス
テップS16で次のデータをセットし、ステップS16
で終了ファイルEOF(エンド・オブ・ファイル)か否
かを判別し、EOFのときは全てのファイルについての
ポーリング出力が終了したときであるから本フローの処
理を終え、EOFでないときはステップS11に戻って
上記処理を繰返す。
Polling is output and the response is waited for in step S14. When there is a response, it is determined in step S15 whether the response is ACK. If there is an ACK, the next data is set in step S16, and step S16
Determines whether or not the file is the end file EOF (end of file). When EOF, the polling output for all files has ended, so the processing of this flow ends, and when it is not EOF, go to step S11. Then, the above process is repeated.

【0017】一方、ステップS15でACKがなかった
とき(NAKのとき)はステップS18でリトライを実
行し、リトライが成立すればステップS11に戻って上
記処理を繰り返し、リトライを所定回数実行して成立し
ないときは通信回線14上や相手の端末に何等の不備が
あるときであるからステップS19でエラー処理を行っ
て本フローの処理を終了する。
On the other hand, if there is no ACK in step S15 (when NAK), a retry is executed in step S18. If the retry is established, the process returns to step S11 and the above processing is repeated, and the retry is executed a predetermined number of times. If not, it means that there is some deficiency on the communication line 14 or on the other party's terminal, so error processing is performed in step S19 and the processing of this flow ends.

【0018】図6は従局処理のフローチャートであり、
前記ステップS5に対応する。先ず、ステップS21で
従局は主局からのセレクション待ちを行い、セレクショ
ンがあるとステップS22でプログラムデータをセット
する。次いで、ステップS23でポーリング待ちを行
い、ポーリングがくるとステップS24でACK又はN
AKを出力してステップS21に戻って従局処理を終了
する。
FIG. 6 is a flowchart of the slave station process.
It corresponds to step S5. First, in step S21, the slave station waits for selection from the master station, and if there is a selection, program data is set in step S22. Next, in step S23, a polling wait is performed, and when polling comes, ACK or N is sent in step S24.
AK is output and the process returns to step S21 to end the slave station process.

【0019】図7はクローズ処理のフローチャートであ
り、前記ステップS9に対応する。先ず、ステップS3
1でクローズコマンドを任意端末へ出力し、ステップS
32でACKか否かを判別する。ACKがあったときは
ステップS33でクローズ処理が全台処理されたか否か
を判別し、全台終了したときはステップS31に戻って
上記クローズコマンドを出力する処理を繰り返す。AC
Kがなかったときは主局処理が終わっていないと判断し
てステップS34で主局処理(図3)を再開してステッ
プS31に戻る。
FIG. 7 is a flowchart of the closing process, which corresponds to step S9. First, step S3
1 outputs the close command to any terminal, and step S
At 32, it is determined whether or not ACK. When ACK is received, it is determined in step S33 whether or not the closing process has been performed for all units, and when all the units are finished, the process returns to step S31 and the process of outputting the close command is repeated. AC
When there is no K, it is determined that the main station processing has not ended, the main station processing (FIG. 3) is restarted in step S34, and the process returns to step S31.

【0020】以上、図3〜図6の処理フローを用いてあ
る端末からデータが送出される際の伝送手順を説明した
が、上記手順を主局と従局1、従局nとのデータフロー
としてとらえると図8で示される。図8を参照しながら
本データ処理システムの特徴部分の動作を説明する。
The transmission procedure when data is transmitted from a certain terminal has been described above using the processing flows of FIGS. 3 to 6. The above procedure can be understood as a data flow between the master station, slave station 1 and slave station n. Is shown in FIG. The operation of the characteristic part of the present data processing system will be described with reference to FIG.

【0021】先ず、主局オープン処理を実行する(図
3)。主局オープン処理は図3で示したように次の〜
手順により実行される。 通信回線14を監視する(前記ステップS2)。 通信回線14状態がアイドルの場合(図8アに示すよ
うに主局になりたい端末が主局としてオープンスタート
コマンド列(図4)を通信回線14に出力する。 出力後、ダミーのポーリングを出力する(図8イ、エ
参照)。 このポーリング(ポーリング1、ポーリングn)に同
期して他端末(従局1、従局n)より主局スタートを受
諾した旨の肯定的応答ACKを出す(図8ウ、オ参
照)。 否定応答NAK以外であれば主局として自データの出
力処理を行う。 また、肯定応答の場合は上記に戻る。
First, the main station open process is executed (FIG. 3). The main station open process is as follows as shown in Fig. 3.
It is executed by the procedure. The communication line 14 is monitored (step S2). When the state of the communication line 14 is idle (as shown in FIG. 8A, the terminal that wants to be the master station outputs the open start command sequence (FIG. 4) as the master station to the communication line 14. After the output, the dummy polling is output. (See FIG. 8A and D.) In synchronization with this polling (Polling 1, Polling n), another terminal (slave station 1, slave station n) issues an affirmative response ACK indicating that the master station start is accepted (FIG. 8C). If the response is other than the negative response NAK, the main station performs the output processing of its own data, and in the case of the positive response, returns to the above.

【0022】すなわち、主局処理では図8カに示すよう
に主局と認められた端末からセレクションをするために
Polling my id(自分のID)を通信回線14に出力
し、以下データ1、ポーリング1…(図8キ、ク)の順
でデータ及びポーリングを出力する。
That is, in the main station processing, as shown in FIG. 8, in order to select from the terminal recognized as the main station,
Polling my id (own ID) is output to the communication line 14, and data 1 and polling 1 ...

【0023】このようにしてデータが送出されると、あ
る一定周期(データ出力までの必要時間+マージン分)
間は主局としてふるまう。通信回線14上にデータが存
在しなくなってこの周期の処理が終了すると前記図7の
クローズ処理となる。すなわち、 他端末にクローズする旨のクローズコマンドを出力す
る(前記ステップS31)。 他端末が送信データを持っている場合は否定応答(N
AK)となる。否定応答を受けると再度主局として動作
を再開する(前記ステップS34)。 ACK応答でかつ全台のクローズ処理が終了すると、こ
こで主局→従局となる。
When data is transmitted in this way, a certain fixed period (required time until data output + margin)
The room acts as the main station. When there is no data on the communication line 14 and the processing of this cycle ends, the close processing of FIG. 7 is performed. That is, a close command to close is output to another terminal (step S31). If the other terminal has transmission data, a negative response (N
AK). When the negative response is received, the operation is resumed as the main station again (step S34). When an ACK response is received and the closing process for all units is completed, the master station becomes a slave station.

【0024】以上説明したように、本実施例では、通信
回線14を介して接続された複数のECR11〜13の
うち主局になりたいECRがオープンスタートコマンド
を出力し、相手のECRがこのコマンドを受け取ると主
局と認められ、以後、各ECRに対しポーリング的に順
次データを伝送するようにしているので、データ出力が
発生した場合のみ主局としての動作を行われることとな
ってCPU時間を極力フロントアプリケーション側へ割
り付けることができ、効率のよい処理を実現することが
できる。また、何れのECRからでもデータ伝送ができ
るようになるため、責任者が主局(マスタECR)から
離れて従局(スレーブECR)にいてもそのECRから
データ伝送するようになり、運用効率を格段に向上させ
ることができる。さらに、全ての端末が主局としての機
能を有することとなるため、システムダウンが発生しに
くくなり、信頼性の向上を図ることができる。
As described above, in the present embodiment, the ECR which is the main station among the plurality of ECRs 11 to 13 connected via the communication line 14 outputs the open start command, and the other ECR sends this command. When the data is received, it is recognized as the master station, and thereafter, data is transmitted in a polling sequence to each ECR. Therefore, the operation as the master station is performed only when data output occurs, and the CPU time is reduced. It can be allocated to the front application side as much as possible, and efficient processing can be realized. Moreover, since data can be transmitted from any ECR, data can be transmitted from the ECR even if the responsible person is away from the master station (master ECR) and is in the slave station (slave ECR), which significantly improves the operational efficiency. Can be improved. Furthermore, since all the terminals have the function as the main station, it is difficult for the system to go down, and the reliability can be improved.

【0025】なお、上記実施例はECRに適用した場合
の例であるが、データ伝送処理を含む装置にはすべて適
用可能であり、例えばPOSシステム、データターミナ
ル等のデータ処理装置に適用してもよい。
Although the above embodiment is an example applied to ECR, it can be applied to all devices including data transmission processing, and can be applied to data processing devices such as POS system and data terminal. Good.

【0026】また、データ伝送処理は通信系であればど
のような種類の処理であってもよく、例えば売上データ
の点検/精算処理やオートプログラムにも適用できるこ
とは言うまでもない。
Further, it goes without saying that the data transmission process may be any kind of process as long as it is a communication system and can be applied to, for example, sales data inspection / accounting process and an automatic program.

【0027】[0027]

【発明の効果】本発明によれば、データ伝送要求の指定
を行うことを各装置に宣言し、宣言の後に各装置に対し
順次データを伝送するようにしているので、何れの装置
からでもデータを伝送することができ、CPUの処理時
間を減らし、効率よいデータ処理ができる。
According to the present invention, each device is declared to specify the data transmission request, and after the declaration, the data is sequentially transmitted to each device. Can be transmitted, the processing time of the CPU can be reduced, and efficient data processing can be performed.

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

【図1】本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.

【図2】データ処理システムの全体構成を示す図であ
る。
FIG. 2 is a diagram showing an overall configuration of a data processing system.

【図3】データ処理システムのデータ伝送処理のプログ
ラムを示すフローチャートである。
FIG. 3 is a flowchart showing a program for data transmission processing of the data processing system.

【図4】データ処理システムのスタートコマンド列を示
す図である。
FIG. 4 is a diagram showing a start command sequence of the data processing system.

【図5】データ処理システムの主局処理を示すフローチ
ャートである。
FIG. 5 is a flowchart showing main station processing of the data processing system.

【図6】データ処理システムの従局処理を示すフローチ
ャートである。
FIG. 6 is a flowchart showing slave station processing of the data processing system.

【図7】データ処理システムのクローズ処理を示すフロ
ーチャートである。
FIG. 7 is a flowchart showing a closing process of the data processing system.

【図8】データ処理システムのデータフローを示すフロ
ーチャートである。
FIG. 8 is a flowchart showing a data flow of the data processing system.

【図9】従来のデータ処理システムのデータフローを示
す図である。
FIG. 9 is a diagram showing a data flow of a conventional data processing system.

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

11,12,13 ECR 14 通信回線 21,31,41 CPU 21c,31c,41c フラグ 22,32,42 RAM 23,33,43 キー入力部 24,34,44 伝送装置 25,35,45 表示部 11, 12, 13 ECR 14 communication line 21, 31, 41 CPU 21c, 31c, 41c flag 22, 32, 42 RAM 23, 33, 43 key input unit 24, 34, 44 transmission device 25, 35, 45 display unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数装置を接続し、何れかの装置からデ
ータ伝送要求の指定を行うことで他の装置にデータを伝
送するデータ処理システムにおいて、 前記データ伝送要求の指定を行うことを各装置に宣言す
る宣言手段と、 前記宣言手段による宣言の後に各装置に対し順次データ
を伝送する伝送手段と、 を具備したことを特徴とするデータ処理システム。
1. In a data processing system in which a plurality of devices are connected and a data transmission request is designated from any one of the devices to transmit data to another device, the designation of the data transmission request is performed by each device. A data processing system comprising: a declaring means for declaring according to claim 1; and a transmitting means for sequentially transmitting data to each device after the declaration by the declaring means.
JP3283680A 1991-10-02 1991-10-02 Data processing system Pending JPH0594397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3283680A JPH0594397A (en) 1991-10-02 1991-10-02 Data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3283680A JPH0594397A (en) 1991-10-02 1991-10-02 Data processing system

Publications (1)

Publication Number Publication Date
JPH0594397A true JPH0594397A (en) 1993-04-16

Family

ID=17668682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3283680A Pending JPH0594397A (en) 1991-10-02 1991-10-02 Data processing system

Country Status (1)

Country Link
JP (1) JPH0594397A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188644A (en) * 2010-03-09 2011-09-22 Toshiba Corp Protective relay device, control method for the same, control program for the same, and protective relay system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188644A (en) * 2010-03-09 2011-09-22 Toshiba Corp Protective relay device, control method for the same, control program for the same, and protective relay system

Similar Documents

Publication Publication Date Title
US4873631A (en) Point of sale automatic back-up system and method
CN104919435B (en) Control system, the control method of control system and control device
JPH0594397A (en) Data processing system
JPH06101071B2 (en) Sales data processor
JPH0635818A (en) Data processing system
JP2811032B2 (en) Card terminal device
JP2578208B2 (en) Product sales data processing device
JP2546055Y2 (en) Menu display device
JP3599709B2 (en) POS device with notification function of business takeover items
JPH0681171B2 (en) Transmission information output device
JPH0556083A (en) Data processing system
JP2541432B2 (en) Data processing system
JP2589207B2 (en) POS system
JPH0752476B2 (en) Electronic cash register
JPH05165749A (en) Data processing system
JPH0816666A (en) Radio order management system
JP2000076550A (en) Plu file updation management system
JPS6153748B2 (en)
JPS6063674A (en) File retrieval system of local area network system
JPH0477994A (en) Merchandise data processor
JPH11242700A (en) Order data processing system
JPS61289492A (en) Sales data transmitting/receiving system
JPH0426746B2 (en)
JP2000207623A (en) Controller for vending machine
KR20010037034A (en) METHOD FOR INSTITUTING TERMINAL NUMBER OF Point Of Sale(POS) SYSTEM