JPH0635818A - Data processing system - Google Patents

Data processing system

Info

Publication number
JPH0635818A
JPH0635818A JP20760292A JP20760292A JPH0635818A JP H0635818 A JPH0635818 A JP H0635818A JP 20760292 A JP20760292 A JP 20760292A JP 20760292 A JP20760292 A JP 20760292A JP H0635818 A JPH0635818 A JP H0635818A
Authority
JP
Japan
Prior art keywords
data
transmission
transmitted
machine
station
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
JP20760292A
Other languages
Japanese (ja)
Inventor
Katsuhiko Motoike
克彦 本池
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 JP20760292A priority Critical patent/JPH0635818A/en
Publication of JPH0635818A publication Critical patent/JPH0635818A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PURPOSE:To shorten the waiting time for transmission of data, to prevent the collision of data and to improve the data transfer efficiency by sending its own transmission data onto a circuit after the data are transferred with the data processor of the specific ranking. CONSTITUTION:A deciding means discriminates whether the data are transmitted or not by a data processor of the specific ranking in order to successively transfer the data in a prescribed sequence. Then the data can be transmitted in the prescribed order of machine No. of machines (ECR11-13), for example, in such a manner that the data on the machine No.2 are transmitted after the transmission of the data on the machine No.1. Thus, the data processor of a specific machine No. that transmitted the data is discriminated. A transmitting means sends its own data onto a circuit the data processor of the specific ranking transmitted the data. Thus, the data are transmitted onto the circuit by the data processor of the next ranking after the data processor of the specific ranking transmitted the data.

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システムの伝送(転
送ともいう)方式には、ポーリング方式とコンテンショ
ン方式の2通りがある。ポーリング方式では、一般にセ
ンタ装置(親機)に多数の端末装置(子機)が接続さ
れ、親機が子機のポーリング(親機から特定の子機へ伝
送される「送信勧誘」をいう)を行う。従来のPOSシ
ステムなどにおけるポーリング方式の通信制御は、図1
2で示される。図12に示すように、システムの1台を
ポーリングマスタ(主局)とし、主局より従局にポーリ
ングを発行し、従局は伝送したいデータがない場合はN
ULLデータを応答し、伝送したいデータがある場合は
ACKデータを応答する。このポーリングの場合には接
続処理は主局から働きかけるが、切断処理は従局から行
い、従局は主局からポーリングしてもらわない限り、送
信要求があっても伝送できない。従って、主局は常時順
繰りに従局に対してポーリングすることが必要となる。
一方、コンテンション方式は、回線の制御権を得ようと
する局がENQを送信し、回線の獲得を要求し、相手側
からの肯定応答によって回線の制御権を得る方式であ
り、図13に示すように、システムの全台が主局にも属
局にもなる複合局であって伝送データが揃えば回線のあ
き状態をみて回線があいていれば伝送し、回線があいて
いなければ回線があくのを待って伝送するようにするも
のである。
2. Description of the Related Art POS systems are used in department stores, supermarkets,
It is a terminal device that is installed in 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. There are two types of transmission (also referred to as transfer) methods of the conventional POS system, a polling method and a contention method. In the polling method, a large number of terminal devices (slave devices) are generally connected to a center device (slave device), and the master device polls the slave devices (refers to "solicitation invitation" transmitted from the master device to a specific slave device). I do. The polling method communication control in the conventional POS system is shown in FIG.
Indicated by 2. As shown in FIG. 12, one of the systems is used as a polling master (master station), the master station issues polling to the slave station, and the slave station outputs N if there is no data to be transmitted.
It responds to the ULL data and responds to the ACK data if there is data to be transmitted. 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 master station must constantly poll the slave stations in turn.
On the other hand, the contention system is a system in which a station trying to obtain control of a line transmits ENQ, requests acquisition of the line, and obtains control of the line by an affirmative response from the other party. As shown in the figure, all stations in the system are compound stations that are both main stations and affiliated stations, and if the transmission data are available, check the open state of the line to transmit if the line is open, and transmit if the line is not open. It waits for a break before transmission.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の通信制御を行うデータ処理システムにあって
は、主局が従局のポーリングを行うポーリング方式によ
ってデータ伝送をするものでは、主局から従局へ受信状
態を1台ずつ問い合わせていることから伝送時間がかか
りすぎてしまうという問題点があった。例えば、図12
に示すように5台マシンからなるポーリング方式の場
合、主局であるNo.1マシンがポーリングをNo.
2,3,4,5の順にかけているものとすると、ポーリ
ングをNo.4マシンにかけたときに、No.3マシン
に伝送データが揃った場合にはNo.3マシンは次のポ
ーリングがかかるまで伝送待ちになってしまう。このよ
うに、ポーリング方式には伝送待ちが長いという欠点が
あった。一方、コンテンション方式の場合は伝送待ち時
間が短いという長所があるものの、図13に示すように
あるマシンが伝送中に2台以上のマシンで転送データが
揃うと伝送データが回線上でぶつかってしまうという欠
点があった。このような状態が続くと伝送に時間がかか
り、最悪の場合はシステムロックすることになる。本発
明の課題は、データ伝送の待ち時間を短縮し、伝送デー
タのぶつかりを防止できるようにすることである。
However, in such a conventional data processing system for performing communication control, in a data transmission system in which a master station performs data transmission by a polling method in which a slave station polls a slave station, However, there is a problem in that it takes too much transmission time because the reception status is inquired one by one. For example, in FIG.
In the case of the polling system consisting of five machines as shown in Fig. 2, the main station No. No. 1 machine does polling.
Assuming that the numbers 2, 3, 4, and 5 are applied in this order, polling is performed in No. No. 4 when running on 4 machines If the transmission data is collected in three machines, No. The three machines will wait for transmission until the next polling. As described above, the polling method has a drawback that it has a long transmission wait. On the other hand, the contention method has an advantage that the transmission waiting time is short, but as shown in FIG. 13, when one machine is transmitting data and two or more machines have the same transmission data, the transmission data collides on the line. There was a drawback that it would end up. If such a state continues, transmission will take time, and in the worst case, the system will be locked. An object of the present invention is to reduce the waiting time for data transmission and prevent collision of transmission data.

【0004】[0004]

【課題を解決するための手段】本発明の手段は次の通り
である。判別手段1(図1の機能ブロック図を参照、以
下同じ)は、複数のデータ処理装置(例えば、ECR,
POSシステム等の端末)を回線により接続したデータ
処理システムにおいて、予め決められた順に伝送データ
を順次伝送するため特定順位のデータ処理装置によりデ
ータが伝送されたことを判別するもので、例えばマシン
No1のデータ伝送が終了するとマシンNo.2がデー
タ伝送するというように予め決められたマシンNo.順
にデータ伝送可能な構造とし、どのマシンNo.のデー
タ処理装置によりデータ伝送されたかを判別する。伝送
手段2は、特定順位のデータ処理装置によりデータの伝
送が終了後、自己の伝送データを回線上に送出するもの
で、例えば特定順位のデータ処理装置からのデータ伝送
の終了を待って次の順位のデータ処理装置から伝送デー
タが回線上に伝送される。
The means of the present invention are as follows. The discriminating means 1 (see the functional block diagram of FIG. 1, the same applies hereinafter) includes a plurality of data processing devices (for example, ECR,
In a data processing system in which terminals (such as a POS system) are connected by a line, it is determined that data has been transmitted by a data processing device of a specific order in order to sequentially transmit transmission data in a predetermined order. When the data transmission of the machine No. is completed. 2 has a predetermined machine number such that data is transmitted. The structure is such that data can be transmitted in order, and which machine No. It is determined whether the data has been transmitted by the data processing device. The transmission means 2 sends out its own transmission data onto the line after the data processing device of the specific rank finishes the data transmission. For example, the transmission means 2 waits for the end of the data transmission from the data processing device of the specific rank to proceed to the next step. Transmission data is transmitted on the line from the data processor of the order.

【0005】[0005]

【作用】本発明の手段の作用は次の通りである。先ず、
複数のデータ処理装置が通信回線等を通して接続され、
何れかの装置からデータ伝送要求の指定が行われると予
め決められた順に他の装置に順次データが伝送され得る
状態になっているものとする。この状態で、特定順位の
データ処理装置によってデータが伝送されたことが判別
手段1で判別され、特定順位のデータ処理装置によるデ
ータの伝送の終了後に伝送手段2により、自己の伝送デ
ータが回線上に送出される。従って、データ伝送の待ち
時間を短縮し、伝送データのぶつかりが防止できる。
The operation of the means of the present invention is as follows. First,
Multiple data processing devices are connected via communication lines,
When a data transmission request is designated from any device, it is assumed that the data can be sequentially transmitted to another device in a predetermined order. In this state, the discriminating means 1 discriminates that the data is transmitted by the data processor of the specific rank, and after the data transmission by the data processor of the specific rank is completed, the transmitting means 2 transmits its own transmission data on the line. Sent to. Therefore, the waiting time for data transmission can be shortened and the collision of transmission data can be prevented.

【0006】[0006]

【実施例】以下、図2〜図11を参照して実施例を説明
する。図2〜図11は通信制御機能を備えたデータ処理
システムの一実施例を示す図であり、本実施例はデータ
処理装置としてマスター・スレーブ型の電子レジスタ
(ECR)に適用した例である。先ず、構成を説明す
る。図2はデータ処理システム10のブロック図であ
る。図2において、符号11,12,13は通信回線1
4を介して接続された複数の電子レジスタ(ECR)で
あり、上記電子レジスタ11,12,13のうちの1つ
の電子レジスタは必ずしも主局となるマスタECRでな
くてもよく全て従局のスレーブECRであってもよい。
この通信回線14を用いた通信には屋内の装置間を専用
の回線を介して行うインライン(屋内通信)と例えば電
話回線を利用して店単位でデータやりとりをするオンラ
インとがある。本データ処理システム10では通信回線
14を介して複数の電子レジスタ11,12,13を接
続し予め決められた順に伝送データを順次転送するた
め、各電子レジスタ11,12,13に夫々自分のマシ
ンNo.11a,12a,13aを設けるようにしてい
る。上記、電子レジスタ11,12,13は通信制御に
関しては同一のハード的構成をとることができるため、
電子レジスタ11を代表して説明する。
EXAMPLES Examples will be described below with reference to FIGS. 2 to 11 are diagrams showing an embodiment of a data processing system having a communication control function, and this embodiment is an example applied to a master / slave type electronic register (ECR) as a data processing device. First, the configuration will be described. FIG. 2 is a block diagram of the data processing system 10. In FIG. 2, reference numerals 11, 12, and 13 denote communication lines 1.
4 is a plurality of electronic registers (ECR) connected via four, and one of the electronic registers 11, 12 and 13 does not necessarily have to be the master ECR serving as the master station, but all slave ECRs of slave stations. May be
Communication using the communication line 14 includes in-line (indoor communication) in which indoor devices are connected via a dedicated line and online in which data is exchanged in store units using, for example, a telephone line. In the present data processing system 10, since a plurality of electronic registers 11, 12, 13 are connected via the communication line 14 and transmission data is sequentially transferred in a predetermined order, each electronic register 11, 12, 13 has its own machine. No. 11a, 12a and 13a are provided. Since the electronic registers 11, 12 and 13 can have the same hardware configuration for communication control,
The electronic register 11 will be described as a representative.

【0007】図3はデータ処理システムの電子レジスタ
11のブロック図である。電子レジスタ11において、
符号21はCPUであり、CPU21はROM22に格
納されているマイクロプログラムに従ってRAM23と
の間でデータの授受を行ったりしながら各種動作に必要
な値を演算し、処理したデータに基づいて後述する伝送
制御装置26、表示部27、印字部29、ドロア31等
を制御する。CPU21には、データ伝送処理を処理を
含むECRの各種の動作を制御する制御用のマイクロプ
ログラムを記憶するROM22と、書込みと読出しが可
能な揮発性メモリからなり、入力された売上データが商
品名、個数、金額等に分類されて記憶されるPLUファ
イルを構成するとともに、マシン接続表23a、データ
送受信用バッファ、各種レジスタ等を備えたRAM23
と、テンキー、ファンクションキー、プログラムデータ
を順次設定するためのオートプログラム(PGM)設定
キー及び各モードを指定するモードスイッチが設けられ
たキー入力部24を制御する入力制御部25と、ECR
12,13と通信回線(無線通信も含む)14を経由し
て相互にデータ伝送を行う伝送制御装置26と、各種の
データを表示する表示部27を駆動する表示駆動部28
と、RAM23に記憶されたPLUファイル等の各種デ
ータをジャーナル用紙およびレシート用紙に印字する印
字部29を制御する印字制御部30と、現金を収納し現
金/預かり金キー等が操作された際に開放されるドロア
31がそれぞれ接続されている。
FIG. 3 is a block diagram of the electronic register 11 of the data processing system. In the electronic register 11,
Reference numeral 21 is a CPU, and the CPU 21 calculates values required for various operations while exchanging data with the RAM 23 in accordance with a microprogram stored in the ROM 22, and transmits data to be described later based on the processed data. The control device 26, the display unit 27, the printing unit 29, the drawer 31, and the like are controlled. The CPU 21 includes a ROM 22 that stores a micro program for control that controls various operations of the ECR including a data transmission process, and a volatile memory that can be written and read, and the input sales data is a product name. A RAM 23 having a machine connection table 23a, a data transmission / reception buffer, various registers, and the like, which constitutes a PLU file classified and stored according to the number of pieces, the amount of money, and the like.
And a numeric keypad, a function key, an automatic program (PGM) setting key for sequentially setting program data, and an input control unit 25 for controlling a key input unit 24 provided with a mode switch for designating each mode, and an ECR.
12, 13 and a transmission control device 26 for mutually transmitting data via a communication line (including wireless communication) 14, and a display drive unit 28 for driving a display unit 27 for displaying various data.
And a print control unit 30 for controlling a print unit 29 for printing various data such as a PLU file stored in the RAM 23 on journal paper and receipt paper, and when cash is stored and a cash / deposit key is operated. The drawers 31 to be opened are connected to each other.

【0008】上記キー入力部24には、そのキーボード
上にテンキー31、ファンクションキー32等の操作キ
ーが設けられているほか、「設定(P)」、「登録(R
EG)」、「電源オフ(OFF)」、「点検(X)」、
「精算(Z)」の各モードに指定するモードスイッチM
Sが設けられている。
The key input section 24 is provided with operation keys such as a numeric keypad 31 and a function key 32 on its keyboard, as well as "setting (P)" and "register (R)".
EG) ”,“ power off (OFF) ”,“ check (X) ”,
Mode switch M to specify each mode of "Payment (Z)"
S is provided.

【0009】また、上記RAM23は書込みと読出しが
可能な揮発性メモリであり、売上データや演算に使用す
るいわゆるワーキングメモリである。具体的には、RA
M23には商品コードによる個数、金額等の売上データ
を記憶するPLUファイル、送受信の際の売上データを
圧縮された形で一時的に記憶するデータ送信用バッフ
ァ、レジスタ、カウンタ及びフラグを構成するレジスタ
領域、CPU21の作動領域(ワーキングエリア)、複
数のECRの接続情報を記憶するマシン接続表23aが
設けられている。
The RAM 23 is a writable and readable volatile memory and is a so-called working memory used for sales data and calculation. Specifically, RA
M23 is a PLU file that stores sales data such as the number and amount of money according to the product code, a data transmission buffer that temporarily stores sales data in a compressed form during transmission / reception, a register, a register that configures a counter and a flag. An area, an operation area (working area) of the CPU 21, and a machine connection table 23a for storing connection information of a plurality of ECRs are provided.

【0010】図4は本データ処理システムの通信プロト
コルで用いられる送信データの構成を示す図である。図
4に示すようにNULLデータを含む全ての転送データ
(データ転送、インライン開始、インライン終了)に送
信局と受信局データをもたせるように構成する。すなわ
ち、NULLデータは、データ転送開始、宣言データ等
のヘッダデータとして伝送タイミングをとるための「プ
リアンプル」、送信局となる台のマシンNo.等の「送
信局データ」、受信局となる台のマシンNo.等の「受
信局データ」及び制御コマンドの「NULL」からな
り、データ転送は、「プリアンプル」、「送信局デー
タ」、「受信局データ」、「データ有無情報」及び「実
データ」からなる。また、インライン開始は、「プリア
ンプル」、「送信局データ」、「受信局データ」及び
「インライン開始コマンド」からなり、インライン終了
は、「プリアンプル」、「送信局データ」、「受信局デ
ータ」及び「インライン終了コマンド」からなる。な
お、全台に転送しようとするときは「受信局データ」を
“FF”[HEX]とする。
FIG. 4 is a diagram showing the structure of transmission data used in the communication protocol of this data processing system. As shown in FIG. 4, all transfer data including NULL data (data transfer, in-line start, in-line end) have the transmitting station and the receiving station data. That is, the NULL data is a "preample" for taking a transmission timing as header data such as data transfer start, declaration data, and the like. “Sending station data”, etc., the machine number of the machine to be the receiving station. Etc. consists of "receiving station data" and control command "NULL", and data transfer consists of "preample", "transmitting station data", "receiving station data", "data existence information" and "actual data". . The in-line start consists of "pre-ampule", "transmitting station data", "reception station data" and "in-line start command", and in-line termination is "pre-ampule", "transmitting station data", "receiving station data". And “inline end command”. When the data is to be transferred to all units, the "reception station data" is set to "FF" [HEX].

【0011】次に、本実施例の動作を説明する。本デー
タ処理システムは、予め決められた順に伝送データ順次
伝送することによりポーリングのような親局を不要にし
て伝送待ち時間を短くし伝送データのぶつかりをなくす
ようにするものである。このために、先ずデータ処理処
理装置の全台(本実施例では、5台)を局制御が可能な
複合局とし、また、図4に示すようにNULLデータを
含む全ての伝送データに送信局と受信局をもたせる。そ
して、送信局、受信局データには、マシンNo.を対応
させ、この送信局、受信局データを見ればどのマシンが
どのマシンに伝送しているのかが分かるようにする。マ
シンNo.はNo1からNo.5まで順にふりつけるこ
ととし、図5に示すようにシステム内の何れかのマシン
から全台にインライン開始コマンドを発行すると、マシ
ンNo.1がデータ伝送し(伝送データがない場合は、
図5に示すようにNULLデータを伝送する)、マシン
No1の伝送が終了するとマシンNo.2がデータ伝送
するというようにマシンNo.の順にデータ伝送し、デ
ータ処理システムに接続されている全マシンの伝送が終
了したら、最初のマシンNoに戻ってマシンNo.1が
データ伝送するというように動作する。すなわち、デー
タ伝送を開始し、特定順位のマシン(本実施例では、E
CR)からNULLデータが伝送されると、NULLデ
ータを受けとった次のマシンNo.のマシンはある一定
時間後にその次のマシンNo.のところへNULLデー
タを送出する。このように、予め決められた順に伝送デ
ータを順次伝送することによって親局がなくてもデータ
を伝送することができる。
Next, the operation of this embodiment will be described. This data processing system is intended to eliminate the need for a master station such as polling by sequentially transmitting the transmission data in a predetermined order to shorten the transmission waiting time and eliminate the collision of the transmission data. To this end, first, all the data processing devices (five in this embodiment) are combined stations capable of station control, and as shown in FIG. 4, all transmission data including NULL data are transmitted to the transmitting station. And have a receiving station. Then, in the transmitting station and receiving station data, the machine number. By referring to the data of the transmitting station and the receiving station, it is possible to know which machine is transmitting to which machine. Machine No. No. 1 to No. 5 in order, and if any machine in the system issues an inline start command to all machines as shown in FIG. 1 transmits data (if there is no transmission data,
(Null data is transmitted as shown in FIG. 5), and when the transmission of the machine No. 1 is completed, the machine No. 2 transmits data and the machine number. Data is transmitted in this order, and when the transmission of all machines connected to the data processing system is completed, the process returns to the first machine No. 1 performs data transmission. That is, the data transmission is started, and the machine of a specific rank (E in this embodiment, E
CR), the next machine No. that receives the NULL data receives the NULL data. The machine of the next machine No. after the certain time. To send NULL data to. Thus, by sequentially transmitting the transmission data in a predetermined order, the data can be transmitted without the master station.

【0012】図6及び図7はデータ伝送がある(すなわ
ち、データが発生した)場合の例を示す図であり、図6
は5台のマシンからなるデータ処理システムにおいて、
No.4マシンがNULLデータを伝送中にNo.3マ
シンに伝送データが揃って伝送待ちになった例である。
この場合、No.3マシンの図示の時点でデータが発生
するが、この時点ではNo.3マシンは伝送可能な権利
をNo.4マシンに権利を譲っているのでデータ伝送は
できず、図6に示すようにNo.3マシンからNo.4
マシン、No.5マシンを経て再び自分の権利がきたと
きにデータ伝送ができる。しかし、図12に示した従来
のポーリング方式のシステムと比較すれば明らかなよう
な逐一ポーリングを行わないので伝送待ち時間を大幅に
短縮することができる。
FIG. 6 and FIG. 7 are diagrams showing an example when there is data transmission (that is, data is generated).
Is a data processing system consisting of five machines,
No. No. 4 while four machines are transmitting NULL data. This is an example in which the transmission data is gathered in three machines and waiting for transmission.
In this case, No. Data is generated at the illustrated time of the three machines, but at this time, No. No. 3 machine has no right to transmit. Since the right has been transferred to four machines, data transmission cannot be performed, and as shown in FIG. No. 3 from machine 3 Four
Machine, No. You can transmit data when your right comes again after 5 machines. However, as compared with the conventional polling system shown in FIG. 12, no obvious polling is performed one by one, so that the transmission waiting time can be greatly shortened.

【0013】図7はマシンNo.1が伝送中にNo.2
マシンとNo.3マシンとNo.5マシンに伝送データ
が揃ったときの例である。この図に示すように、図13
のコンテンション方式と違ってデータが回線上でぶつか
ることはない。従って、伝送に時間がかかったり、シス
テムロックの発生を防止することができる。
FIG. 7 shows the machine number. No. 1 is being transmitted. Two
Machine and No. 3 machines and No. This is an example when the transmission data is collected in 5 machines. As shown in FIG.
Unlike the contention method, data does not collide on the line. Therefore, it is possible to prevent the transmission from taking a long time and the occurrence of system lock.

【0014】また、図8はマシンNo.2が回線断など
の障害でデータ伝送できなくなった時の異常状態を示す
図である。マシンNo.1がデータ伝送して一定時間経
ってもマシンNo.2がデータ伝送しない時は、マシン
No.3がデータ伝送する。すなわち、一定時間経って
次のマシンNoのマシンからデータ伝送がなかったとき
はそのマシンがロック等していることが考えられるから
そのマシンの次のマシンが強制的にデータ伝送を開始す
る。
Further, FIG. 2 is a diagram showing an abnormal state when data cannot be transmitted due to a failure such as line disconnection. Machine No. Machine No. 1 transmits data for a certain period of time. 2 does not transmit data, the machine number. 3 transmits data. That is, when there is no data transmission from the machine of the next machine No after a certain period of time, it is considered that the machine is locked, so that the machine next to the machine forcibly starts the data transmission.

【0015】図9は主局も従局もない、すなわち何れの
端末も主局になり得る端末(マシンNo.nのECR)
の監視タスクフローチャートであり、同図中、符号Sn
(n=1,2,…)はフローの各ステップを示す。
9 shows that there is no master station or slave station, that is, any terminal can be a master station (ECR of machine No. n).
2 is a flowchart of a monitoring task of the reference numeral Sn in FIG.
(N = 1, 2, ...) Shows each step of the flow.

【0016】プログラムがスタートすると、先ずステッ
プS1で回線14上にデータがあるか否かを判別し、回
線14上にデータがあるときはステップS2で送信局セ
ットし、ステップS2でデータの送信元の送信局が自局
の前の端末か(送信局n−1か)否かを判別する。送信
局が前の送信局n−1のときはステップS4でデータの
送信が終了しているか否かを判別し、データの送出が終
了したときは自局の送出順番であると判断してステップ
S5で自局の送出順番フラグをONして本フローの処理
を終える。
When the program starts, it is first determined in step S1 whether or not there is data on the line 14, and if there is data on the line 14, the transmitting station is set in step S2, and the source of the data is transmitted in step S2. It is determined whether or not the transmitting station of is a terminal before the own station (transmitting station n-1). When the transmitting station is the previous transmitting station n-1, it is determined in step S4 whether or not the data transmission is completed, and when the data transmission is completed, it is determined that it is the transmission order of the own station and the step is performed. In step S5, the transmission order flag of the local station is turned on and the processing of this flow ends.

【0017】一方、上記ステップS3で送信局が自局の
前の端末ではない(送信局n−1ではない)ときはステ
ップS6でデータの送出が終了したか否かを判別し、デ
ータの送出が終了したときは一定時間後に強制的にデー
タ伝送するためのダウンタイマの動作を開始する。次い
で、ステップS8で動作開始したダウンタイマが一定時
間経ったか(ダウンタイマオーバーか)否かを判別し、
ダウンタイマが一定時間終わったときはステップS9で
送信局をインクリメントしてステップS1に戻り、ま
た、ダウンタイマがオーバーしていないときはデータ送
信の動作途中であると判断してそのままステップS1に
戻る。なお、上記ステップS4またはステップS6でデ
ータ送出が終了したときは上記ダウンタイマはクリアさ
れるものとする。すなわち、一定時間経過すると送信局
がインクリメントされ、予め決められた順に伝送データ
が順次伝送されるようになる。
On the other hand, if it is determined in step S3 that the transmitting station is not the terminal in front of itself (not the transmitting station n-1), it is determined in step S6 whether or not the data transmission is completed, and the data is transmitted. When is finished, the operation of the down timer for forcibly transmitting data is started after a certain period of time. Next, it is determined whether or not the down timer started to operate in step S8 has passed a certain time (down timer is over),
When the down timer has expired for a certain period of time, the transmitting station is incremented in step S9 and the process returns to step S1. When the down timer has not expired, it is determined that the data transmission operation is in progress and the process directly returns to step S1. . Note that the down timer is cleared when the data transmission is completed in step S4 or step S6. That is, the transmission station is incremented after a certain period of time, and the transmission data is sequentially transmitted in a predetermined order.

【0018】また、上記ステップS1で回線14上にデ
ータがないときはステップS10でダウンタイマが動作
中か否かを判別し、ダウンタイマが動作中のときはステ
ップS8に進んでダウンタイマがオーバーか否かを判別
し、また、ダウンタイマが動作中でないときはステップ
S7に進んでダウンタイマの動作を開始させる。
If there is no data on the line 14 in step S1, it is determined in step S10 whether or not the down timer is operating. If the down timer is operating, the process proceeds to step S8 and the down timer is over. If the down timer is not in operation, the process proceeds to step S7 to start the operation of the down timer.

【0019】図10にマシンNo.nにおいてデータを
送出するデータ送出フローチャートであり、本フローは
前記図9の監視タスクフローにおいて順番が自局にくる
まで伝送データを保持し自局にきたときデータを送出す
る処理を示すフローである。先ず、ステップS11でデ
ータがあるか否かを判別し、データがあったときはステ
ップS12でデータに送信局、受信局を付加する。次い
で、ステップS13で自局の送出順番か否かを判別し、
自局の送出順番のときはステップS14でデータ送出を
行って本フローの処理を終了する。
FIG. 10 shows the machine number. 10 is a data transmission flow chart for transmitting data in n, and this flow is a flow showing a process of retaining transmission data until the turn comes to the own station and sending the data when it comes to the own station in the monitoring task flow of FIG. . First, in step S11, it is determined whether or not there is data, and if there is data, a transmitting station and a receiving station are added to the data in step S12. Next, in step S13, it is determined whether or not it is the transmission order of the own station,
If it is the transmission order of its own station, the data is transmitted in step S14 and the processing of this flow ends.

【0020】以上説明したように、本実施例では、通信
回線14を介して接続された複数のECR11〜13を
複合局とするとともに、NULLデータを含む全ての伝
送データにマシンNo.に対応した送信局と受信局を設
け、特定順位のECRによりデータが伝送されたかを判
別し、特定順位のECRによるデータの伝送の重量後に
自己の伝送データを回線14上に送出するようにしてい
るので、ポーリング方式に比べて伝送待ち時間を大幅に
短くすることができるとともに、コンテンション方式の
ようなデータのぶつかりを防止することができ、データ
伝送の効率を格段に向上させることができる。
As described above, in the present embodiment, a plurality of ECRs 11 to 13 connected via the communication line 14 are used as a composite station, and all transmission data including NULL data are assigned to the machine number. By providing a transmitting station and a receiving station corresponding to, it is determined whether the data is transmitted by the ECR of the specific rank, and the transmission data of its own is sent to the line 14 after the weight of the data transmission by the ECR of the specific rank. Therefore, the transmission waiting time can be significantly shortened as compared with the polling method, and the data collision as in the contention method can be prevented and the efficiency of data transmission can be significantly improved.

【0021】なお、予め決められた順に伝送データを順
次伝送するものであれば何でもよく、例えば図11に示
すようなループ形状の回線で接続されているものでも同
様の処理が行える(図11中〜はループ形状の回線
上に設けられた端末を示している)。この場合には、デ
ータは各端末〜内の伝送制御部を通過して伝送され
る。例えば、端末とが伝送中であれば他端末には何
のデータも送出されないので、その状態ではデータ伝送
を禁止する宣言を行い、その宣言の後伝送を開始するよ
うにすれば他端末が勝手に動作することがなくなる。
Any data may be used as long as it can sequentially transmit the transmission data in a predetermined order. For example, the same processing can be performed even if the data is connected by a loop-shaped line as shown in FIG. 11 (in FIG. 11). ~ Indicates a terminal provided on a loop-shaped line). In this case, the data is transmitted through the transmission control units in each terminal. For example, if data is being sent to or from a terminal, no data will be sent to the other terminal. Therefore, if a declaration is made to prohibit data transmission in that state, and transmission is started after the declaration, the other terminal will be able to Will not work.

【0022】なお、上記実施例は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.

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

【0024】[0024]

【発明の効果】本発明によれば、予め決められた順に伝
送データを順次伝送するため、特定順位のデータ処理装
置によりデータが伝送されたかを判別手段で判別し、特
定順位のデータ処理装置によるデータの伝送の終了後に
伝送手段により自己の伝送データを回線上に送出するよ
うにしているので、データ伝送の待ち時間を短縮し、伝
送データのぶつかりを防止でき、効率よいデータ伝送が
できる。
According to the present invention, since the transmission data are sequentially transmitted in a predetermined order, the discriminating means discriminates whether or not the data is transmitted by the data processor of the specific order, and the data processor of the specific order is used. Since the transmission means sends its own transmission data onto the line after the data transmission is completed, the data transmission waiting time can be shortened, collision of the transmission data can be prevented, and efficient data transmission 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 command sequence of the data processing system.

【図5】データ処理システムの伝送手順を示す図であ
る。
FIG. 5 is a diagram showing a transmission procedure of the data processing system.

【図6】データ処理システムの伝送手順を示す図であ
る。
FIG. 6 is a diagram showing a transmission procedure of the data processing system.

【図7】データ処理システムの伝送手順を示す図であ
る。
FIG. 7 is a diagram showing a transmission procedure of the data processing system.

【図8】データ処理システムの異常状態の伝送手順を示
す図である。
FIG. 8 is a diagram showing a transmission procedure of an abnormal state of the data processing system.

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

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

【図11】データ処理システムのループ形状の回線によ
る伝送手順を示す図である。
FIG. 11 is a diagram showing a transmission procedure by a loop-shaped line of the data processing system.

【図12】ポーリング方式の伝送手順を示す図である。FIG. 12 is a diagram showing a transmission procedure of a polling method.

【図13】データ処理システムのコンテンション方式の
ぶつかりを説明するための図である。
FIG. 13 is a diagram for explaining a collision of the contention system of the data processing system.

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

11,12,13 ECR 14 通信回線 21 CPU 22 ROM 23 RAM 23a マシン接続表 24 キー入力部 26 伝送制御装置 11, 12, 13 ECR 14 communication line 21 CPU 22 ROM 23 RAM 23a machine connection table 24 key input unit 26 transmission control device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータ処理装置を回線により接続
したデータ処理システムにおいて、 予め決められた順に伝送データを順次伝送するため特定
順位のデータ処理装置によりデータが伝送されたことを
判別する判別手段と、 前記特定順位のデータ処理装置によりデータの伝送が終
了すると、自己の伝送データを回線上に送出する伝送手
段と、 を具備したことを特徴とするデータ処理システム。
1. A data processing system in which a plurality of data processing devices are connected by a line, for determining that data has been transmitted by a data processing device of a specific order in order to sequentially transmit transmission data in a predetermined order. And a transmission means for transmitting its own transmission data to the line when data transmission by the data processing device of the specific order is completed.
JP20760292A 1992-07-10 1992-07-10 Data processing system Pending JPH0635818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20760292A JPH0635818A (en) 1992-07-10 1992-07-10 Data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20760292A JPH0635818A (en) 1992-07-10 1992-07-10 Data processing system

Publications (1)

Publication Number Publication Date
JPH0635818A true JPH0635818A (en) 1994-02-10

Family

ID=16542500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20760292A Pending JPH0635818A (en) 1992-07-10 1992-07-10 Data processing system

Country Status (1)

Country Link
JP (1) JPH0635818A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2555695A (en) * 2016-08-25 2018-05-09 Johnson Matthey Plc Reduced sulfation impact on CU-SCRS

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2555695A (en) * 2016-08-25 2018-05-09 Johnson Matthey Plc Reduced sulfation impact on CU-SCRS

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
US5079740A (en) System and method of providing an automatic back-up primary terminal for a cluster of secondary terminals
US7203728B2 (en) Point-of-sale system and distributed computer network for same
US5058057A (en) Link control system communicating between terminals
JPH07104984B2 (en) Electronic cash register system
JPH0635818A (en) Data processing system
JPH0594397A (en) Data processing system
JP2578208B2 (en) Product sales data processing device
CA2289950A1 (en) Point-of-sale system and distributed computer network for same
JPH06303174A (en) Radio type data processor
JPH05165749A (en) Data processing system
US5790135A (en) Process control implementing and visualizing method
JP2811032B2 (en) Card terminal device
JPS6249560A (en) Data transmitting system
JPH02144797A (en) Pos terminal equipment
JP2541432B2 (en) Data processing system
JP2513391B2 (en) Data transmission system
JPH05158835A (en) Data processing system
JPS62172830A (en) Data transmission system
JPH05334568A (en) Data transmitter
JPS63244162A (en) Card certifying terminal equipment
JPS6153748B2 (en)
JPH04112255A (en) Terminal identifying data setting method
JP2000207623A (en) Controller for vending machine