JPH02109152A - Terminal controller - Google Patents

Terminal controller

Info

Publication number
JPH02109152A
JPH02109152A JP63262473A JP26247388A JPH02109152A JP H02109152 A JPH02109152 A JP H02109152A JP 63262473 A JP63262473 A JP 63262473A JP 26247388 A JP26247388 A JP 26247388A JP H02109152 A JPH02109152 A JP H02109152A
Authority
JP
Japan
Prior art keywords
data
received
cut
power supply
sram
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
JP63262473A
Other languages
Japanese (ja)
Inventor
Hidenaga Ichiriki
一力 英修
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 Tateisi Electronics Co
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 Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP63262473A priority Critical patent/JPH02109152A/en
Publication of JPH02109152A publication Critical patent/JPH02109152A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

PURPOSE:To cope with the cut-off of power supply without saving the received data by using a nonvolatile memory to buff the data received from a terminal equipment. CONSTITUTION:A terminal controller 1 transfers the data received from a terminal equipment to an SRAM 12 and returns a reception acknowledge signal ACK to the terminal equipment. When no process having high priority exists any more, the data buffed in the SRAM 12 is sent to a disk file. A single-byte power supply cut-off information register is set into the SRAM 12. A CPU 10 refers to the information register after the power supply is cut off and performs a process based on the flag contents. In case the power supply is cut off before transmission of the ACK, a retransmission request is given to a terminal equipment DTE 2 or the DTE 2 is kept waiting. Thus the transmitted data is received. In case the power supply is cut after the ACK, the retransmission is requested to the DTE 2 and the data is received as long as a retransmission request is received. In case the power supply is cut off during the disk transmission, the data stored in the SRAM 12 is transmitted again to the disk memory from beginning.

Description

【発明の詳細な説明】 fat産業産業別用分野 この発明はECRを管理するストアコントローラ等、複
数の端末装置からデータを受信してこのデータを管理す
る端末管理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a terminal management device that receives data from a plurality of terminal devices and manages the data, such as a store controller that manages ECR.

(11)発明の概要 この発明に係る端末管理装置は、端末装置からメモリ 受信したデータをディスク雫ヂ羊キに蓄積記憶する装置
であって、端末装置との通信速度を高速に保ち、且つ、
突然の電源の遮断(以下[電断Jという)にも対応でき
るように端末装置から受信したデータを不揮発性メモリ
のバッファに記憶するようにした。
(11) Summary of the Invention The terminal management device according to the present invention is a device that accumulates and stores data received from a terminal device in a memory on a disk, maintains a high communication speed with the terminal device, and
Data received from the terminal device is stored in a buffer of non-volatile memory in order to cope with sudden power interruption (hereinafter referred to as power outage J).

(C1従来の技術 ストアコントローラは複数のECRから売上データ等を
受信して管理ファイル(−船釣にディスクメモリに設定
されている。)に記憶する。しかし端末装置との交信時
には、交信速度を高速に保つため受信したデータをメモ
リにバッファリングするようにしている。なぜならば、
ディスクメモリのアクセス速度は半導体メモリに比して
106倍掛かるためである。
(C1 Conventional technology The store controller receives sales data etc. from multiple ECRs and stores it in a management file (set in the disk memory for boat fishing). However, when communicating with the terminal device, the communication speed is In order to maintain high speed, received data is buffered in memory.This is because:
This is because the access speed of disk memory is 106 times that of semiconductor memory.

fd1発明が解決しようとする課題 しかしながら、この方式ではデータをバッファリングし
たのち電断した場合、受信データが失われるという問題
点がある。この場合(A、C側で)電源断検知をしてか
らDC側の電源が落ちるまでの間(数]、0m5)にデ
ータを不揮発性メモリに退避させることが考えられるが
、受信データ以外にもCPUのレジスタの内容等退避が
必要なデータが多くあり上記短時間に受信データを完全
に退避させることは極めて困難であった。
Problems to be Solved by the FD1 Invention However, this method has a problem in that if the power is cut off after data has been buffered, the received data will be lost. In this case, it is conceivable to save data to non-volatile memory during the period (number of meters, 0m5) after power failure is detected (on A and C sides) until the power on the DC side is turned off, but in addition to the received data, However, there is a large amount of data that needs to be saved, such as the contents of CPU registers, and it is extremely difficult to completely save the received data within the above short time.

られるが、上記のようにディスクメモリのアクセス時間
は半導体メモリに比して極めで長いため端末装置との伝
送効率が著しく低下するという問題がある。
However, as mentioned above, the access time of disk memory is much longer than that of semiconductor memory, so there is a problem in that the transmission efficiency with the terminal device is significantly reduced.

よって従来は電断は不可抗力として容認したり、どうし
ても回避しなければならない場合には無停電電源装置を
備えており経費が掛かる欠点があった。
Therefore, in the past, power outages were accepted as a force majeure event, or when they had to be avoided, an uninterruptible power supply was provided, which had the disadvantage of being expensive.

この発明はこのような現状に鑑み、受信データを退避さ
せなくても電断に対応できる端末管理装置を提供するこ
とを目的とする。
In view of the current situation, it is an object of the present invention to provide a terminal management device that can cope with power outages without evacuating received data.

(e)課題を解決しようとする手段 この発明は、複数の端末装置と回線を介して接続され、
端末装置から受信したデータをバッファリングしたのち
ディスクメモリに記憶する端末管理装置において、 端末装置から受信したデータをバッファリングするメモ
リを不揮発性メモリで構成したことを特徴とする。
(e) Means for Solving the Problems This invention provides a method for connecting a plurality of terminal devices via a line,
A terminal management device that buffers data received from a terminal device and then stores it in a disk memory, characterized in that the memory for buffering the data received from the terminal device is configured with a nonvolatile memory.

(f1作用 この発明に係る端末管理装置は、端末装置から受信した
データをバッファリングするメモリを不揮発性メモリで
構成した。これにより、受信したのちディスクメモリに
転送するまでの間に電断した場合でもデータが消失する
ことがなく、また、端末装置との交信時に伝送効率を低
下させることがない。
(f1 effect) In the terminal management device according to the present invention, the memory for buffering data received from the terminal device is configured with a non-volatile memory.As a result, even if the power is cut off after data is received and before it is transferred to the disk memory, However, data will not be lost, and transmission efficiency will not be reduced during communication with a terminal device.

(尊実施例 第1図はこの発明の実施例である端末管理装置のブロッ
ク図である。端末管理装置1には複数の端末装置(DT
E)2が接続されている。端末管理装置1のCPU1.
Oにはシステムプログラム等が記憶されているROMI
I、端末装置から受信したデータを一時記憶するSRA
M1..2.他のデータを記憶するDRAMI 3.管
理ファイルを有するディスクメモリ14.端末装置2と
の通信を制御する通信制御部15がバスを介して接続さ
れている。SRAM12には電源のバックアップ装置1
6が接続されている。また、CPUl0の割り込み端子
には電源監視装置17が接続されている。電源監視装置
17はこの装置に電源を供給する電源部I8のAC側の
電源の状態を監視している。電源部18は商用電源(交
流100V)を降圧・整流し、十数Vの直流を装置に供
給するものであるが、交流側が落ちたのち直流側がOV
になるまで、トランスの誘導電圧や平滑コンデンサの充
電電荷等のため数十肥の時間差がある。この時間差を利
用して以下の退避動作が行われる。すなわち、を源監視
装置17はAC側の電源供給が絶たれると直ちに電断割
り込み信号をCPU]、Oに人力する。CPUl0はこ
の信号により最優先の割り込み動作を行う。この動作が
レジスタ等の内容をSRAMl2(の退避エリア)に退
避させる動作である。
(Embodiment 1) FIG. 1 is a block diagram of a terminal management device which is an embodiment of the present invention.The terminal management device 1 includes a plurality of terminal devices (DT
E) 2 is connected. CPU1 of the terminal management device 1.
O is ROMI where system programs etc. are stored.
I. SRA that temporarily stores data received from the terminal device
M1. .. 2. DRAMI to store other data 3. Disk memory with management files 14. A communication control unit 15 that controls communication with the terminal device 2 is connected via a bus. SRAM12 has power backup device 1
6 is connected. Further, a power supply monitoring device 17 is connected to the interrupt terminal of the CPU10. The power supply monitoring device 17 monitors the state of the power supply on the AC side of the power supply section I8 that supplies power to this device. The power supply unit 18 steps down and rectifies the commercial power supply (AC 100V) and supplies a dozen or more V of DC to the device.
There is a time lag of several tens of meters until the voltage is reached due to the induced voltage of the transformer, the charging charge of the smoothing capacitor, etc. The following evacuation operation is performed using this time difference. That is, the power source monitoring device 17 sends a power interruption interrupt signal to the CPU and O immediately when the power supply on the AC side is cut off. CPU10 performs the highest priority interrupt operation based on this signal. This operation is an operation for saving the contents of registers and the like to (the save area of) SRAM12.

第2図は同端末管理装置の通常動作のフローチャートで
ある。端末装置からデータを受信すると、このデータを
SRAM12(のバッファエリア)にリアルタイム転送
する。SRAMのアクセスタイムは十分速いためデータ
受信速度に同期してこれを実行することができる。転送
が完了したらn2−=n3に進みデータを送信した端末
装置に対して受信肯定応答信号(A CK)を返信する
(n3)。ここで他の優先度の高い処理があるが否かを
判断しくn4)、あればその処理を行う(n5)。優先
度の高い処理が無くなればn4=n6に進み、SRAM
1.2にバッファリングしたデータをディスクファイル
に転送する(n6)。転送が完了すればn7→n8でS
RAMをクリアして動作を終える。
FIG. 2 is a flowchart of the normal operation of the terminal management device. When data is received from the terminal device, this data is transferred to (the buffer area of) the SRAM 12 in real time. Since the access time of SRAM is sufficiently fast, this can be executed in synchronization with the data reception speed. When the transfer is completed, the process proceeds to n2-=n3, and a reception acknowledgment signal (ACK) is returned to the terminal device that sent the data (n3). At this point, it is determined whether there is any other high-priority processing (n4), and if there is, that processing is performed (n5). When there are no more high priority processes, the process proceeds to n4=n6, and the SRAM
1. Transfer the data buffered in step 2 to the disk file (n6). When the transfer is completed, press S from n7 to n8.
Clear the RAM and end the operation.

ここで、SRAM12には1バイトの電断情報レジスタ
が設定されている。このレジスタの各ビットは以下の内
容を表している。
Here, a 1-byte power failure information register is set in the SRAM 12. Each bit of this register represents the following contents.

(7)が” 1. ”のとき「AcK送信送信断電断6
)が“1”のときr A、 CK送信後電断」(5)が
“1”のとき「ディスク転送中電断」(4)〜(0)[
通信相手端末装置の識別番号」電断復旧後、CPUl0
は上記レジスタを参照し、(7)〜(5)のフラグの内
容に基づいて第3図(A)〜(C)の動作を行う。
When (7) is "1.", "AcK transmission transmission power failure 6"
) is “1”, r A, power cut after CK transmission” (5) is “1”, “power cut during disk transfer” (4) to (0) [
Identification number of the communication partner terminal device" CPU10 after power outage recovery
refers to the register and performs the operations shown in FIGS. 3A to 3C based on the contents of the flags (7) to (5).

rACK送信前に電断」した場合には、データの受信途
中に電断したと考えられ端末装置もまだデータをクリア
していないため同図(A)の動作を行う。端末装置に再
送要求するかまたは再度送信されてくるまで待機しくn
1O)、送信されてきたデータを受信する(nil)。
If the power is cut off before rACK is sent, it is considered that the power was cut off while data was being received and the terminal device has not cleared the data yet, so it performs the operation shown in (A) in the figure. Either request the terminal device for retransmission or wait until it is retransmitted.
1O), receives the transmitted data (nil).

r会CK送信後に電断」した場合にはデータの内容は全
部受信しているが受信内容が損なわれていないかを確認
するため再送を要求し同図(B)の動作を行う。端末装
置に再送を要求しくn12)、再送があるか否かを判断
する(n 13)。再送があればそのデータを受信しく
n14.)、なければそのまま次の動作に進む。すなわ
ち、端末装置に対して一端ACKを送信しているため、
端末装置ではデータを消去している可能性がある。この
ため、データが再送されるかいなかは不定である。
If the power is cut off after transmitting the CK, all the data has been received, but a retransmission is requested to confirm that the received content has not been damaged, and the operation shown in FIG. 10B is performed. The terminal device is requested to retransmit (n12), and it is determined whether there is retransmission (n13). If there is a retransmission, please receive the data n14. ), otherwise proceed to the next operation. In other words, since an ACK is sent to the terminal device,
Data may have been erased on the terminal device. For this reason, it is uncertain whether or not the data will be retransmitted.

同図(C)はSRAMに記憶されているデータのディス
クメモリへの転送を最初からやり直す(n15)。
In (C) of the same figure, the transfer of the data stored in the SRAM to the disk memory is restarted from the beginning (n15).

この端末管理装置は、ECRを管理するストアコントロ
ーラに適用できるほか、データが発生する端末装置から
そのデータを吸い上げてファイリングする全ての装置に
適用することができる。
This terminal management device can be applied to a store controller that manages ECRs, and can also be applied to all devices that collect and file data from a terminal device that generates the data.

(h1発明の効果 以上のようにこの発明の端末管理装置によれば、端末装
置から受信したデータをディスクメモリに転送する前に
電断した場合でも、このデータは不揮発性メモリに記憶
されているためこのままでデータが消失することがない
。これにより、電断した場合、他の重要なデータ(例え
ば、レジスタの内容等)を退避させることができ、装置
の非常時の運用効率を向上することができる。また、デ
ータ受信を不揮発性の半導体メモリで行うため交信速度
が低下せず、通信の効率化を図ることができる。
(h1 Effects of the Invention As described above, according to the terminal management device of the present invention, even if the power is cut off before data received from the terminal device is transferred to the disk memory, this data is stored in the nonvolatile memory. Therefore, data will not be lost in this state.As a result, in the event of a power outage, other important data (for example, the contents of registers, etc.) can be evacuated, improving the operational efficiency of the equipment in an emergency. Furthermore, since data reception is performed using a non-volatile semiconductor memory, communication speed does not decrease, and communication efficiency can be improved.

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

第1図はこの発明の実施例である端末管理装置のブロッ
ク図、第2図は同端末管理装置のデータ受信時の動作を
示すフローチャート、第3図(A)〜(C)は同端末管
理装置の電断復旧時の動作を示すフローチャートである
。 1.22−3RA、14−ディスクメモリ、16−バッ
クアップ装置、17−電源監視装置。
Fig. 1 is a block diagram of a terminal management device that is an embodiment of the present invention, Fig. 2 is a flowchart showing the operation of the terminal management device when receiving data, and Figs. 3 (A) to (C) are diagrams showing the terminal management device. 3 is a flowchart showing the operation of the device when the device recovers from a power outage. 1.22-3RA, 14-disk memory, 16-backup device, 17-power monitoring device.

Claims (1)

【特許請求の範囲】[Claims] (1)複数の端末装置と回線を介して接続され、端末装
置から受信したデータをバッファリングしたのちディス
クメモリに記憶する端末管理装置において、 端末装置から受信したデータをバッファリングするメモ
リを不揮発性メモリで構成したことを特徴とする端末管
理装置。
(1) In a terminal management device that is connected to multiple terminal devices via lines and buffers data received from the terminal devices and then stores it in disk memory, the memory that buffers the data received from the terminal devices is made non-volatile. A terminal management device characterized by being configured with memory.
JP63262473A 1988-10-18 1988-10-18 Terminal controller Pending JPH02109152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63262473A JPH02109152A (en) 1988-10-18 1988-10-18 Terminal controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63262473A JPH02109152A (en) 1988-10-18 1988-10-18 Terminal controller

Publications (1)

Publication Number Publication Date
JPH02109152A true JPH02109152A (en) 1990-04-20

Family

ID=17376272

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63262473A Pending JPH02109152A (en) 1988-10-18 1988-10-18 Terminal controller

Country Status (1)

Country Link
JP (1) JPH02109152A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5283035A (en) * 1975-12-29 1977-07-11 Seiko Epson Corp Memory unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5283035A (en) * 1975-12-29 1977-07-11 Seiko Epson Corp Memory unit

Similar Documents

Publication Publication Date Title
US5604866A (en) Flow control system having a counter in transmitter for decrementing and incrementing based upon transmitting and received message size respectively for indicating free space in receiver
US7496787B2 (en) Systems and methods for checkpointing
US7978705B2 (en) Self-healing link sequence counts within a circular buffer
EP0730230A3 (en) Method and apparatus for prioritizing and handling errors in a computer system
US8719479B2 (en) Network adaptor optimization and interrupt reduction
JPH02109152A (en) Terminal controller
JP2943710B2 (en) Buffer busy control method
JPH069036B2 (en) I / O controller
CN206479978U (en) A kind of bus system for being used to handle multiple bus apparatus data
JP3262130B2 (en) Information processing device
JP3118746B2 (en) Bus extension system
JPS61196353A (en) Multiplexing bus control system
JPS61260350A (en) Parallel processing control system
JPS6075953A (en) Information monitor system
JP2615982B2 (en) Communication error recovery method and device
JP2690226B2 (en) End notification synchronization control method
JPH05100971A (en) Information processing system
US20020138655A1 (en) Reducing memory copies by a network controller
JPS62291236A (en) Ambient equipment controller for computer system
JPS6228876A (en) Information processing system
JPS63219050A (en) Data processing system
JPS60198938A (en) Communication controller
JPH07319802A (en) Data transfer system
JPS62105243A (en) Recovery device for system fault
JPS614339A (en) Message transfer control system of local network in data processor