JPH01144749A - Communication device - Google Patents

Communication device

Info

Publication number
JPH01144749A
JPH01144749A JP62304018A JP30401887A JPH01144749A JP H01144749 A JPH01144749 A JP H01144749A JP 62304018 A JP62304018 A JP 62304018A JP 30401887 A JP30401887 A JP 30401887A JP H01144749 A JPH01144749 A JP H01144749A
Authority
JP
Japan
Prior art keywords
power supply
data transmission
timer
communication device
transmission
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
JP62304018A
Other languages
Japanese (ja)
Inventor
Yasumitsu Matsuda
松田 泰充
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 JP62304018A priority Critical patent/JPH01144749A/en
Publication of JPH01144749A publication Critical patent/JPH01144749A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve transmitting efficiency by continuously executing data transmission before the generation of abnormality when the abnormality is recovered and a time counting is not finished. CONSTITUTION:When the abnormality is generated in a main power source 5 during the transmission of data, which are stored in a memory 3, through a communicating interface 4 to an opponent station and the main power source 5 is recovered after the transmission can not executed, a CPU1 discriminates whether a timer 2 finishes the time counting or not. When the timer 2 finishes the time counting, the opponent station already goes to a condition that the data transmission is not received and on the other hand, when the timer 2 continues the time counting, the opponent station is in a condition that the data transmission is received. When the timer 2 finishes the time counting, the timer is started again by the CPU1 and the transmission is re-executed from the first step. Then, when the timer 2 does not finish the time counting, the data transmission before the abnormality of the main power source is continuously executed. Thus, the transmitting efficiency is improved.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、通信装置に関し、侍に、電源に異常が発生
した場合の異常回復処理を改良した通信装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a communication device, and more particularly, to a communication device with improved abnormality recovery processing when an abnormality occurs in the power supply.

[従来の技術] 従来の通信装置では、予め通信装置同士で所定時間を取
決めておき、データ伝送開始時点から一定時間の間だけ
データ伝送を行ない、その時間が経過した場合には、伝
送されるデータを受付けないような通信監視が行なわれ
ている。このような従来の通信装置では、伝送中に電源
に異常が発生した場合、を口手局の状態にかかわらず、
中断した伝送を途中から継続して行なうか、あるいは、
初期状態に戻って最初から伝送をやり直す。従来の通信
装置における伝送シーケンスの例を第3図に示す。
[Prior Art] In conventional communication devices, a predetermined time is determined between the communication devices in advance, data is transmitted only for a certain period of time from the start of data transmission, and when that time has elapsed, data is transmitted. Communication monitoring is being conducted to prevent data from being accepted. In such conventional communication equipment, if an abnormality occurs in the power supply during transmission, regardless of the state of the transmitting station,
Either continue the interrupted transmission, or
Return to the initial state and start transmission again from the beginning. FIG. 3 shows an example of a transmission sequence in a conventional communication device.

第3図(a)は電源に異常が発生した後に伝送シーケン
スを継続する場合を示し、第3図(b)は電源に異常が
発生した後、シーケンスをリセットする場合を示す。第
3図(a)および(b)では、A局からB局へデータ伝
送が行なわれている。
FIG. 3(a) shows a case where the transmission sequence is continued after an abnormality occurs in the power supply, and FIG. 3(b) shows a case where the sequence is reset after an abnormality occurs in the power supply. In FIGS. 3(a) and 3(b), data is being transmitted from station A to station B.

第3図(a)において、A局およびB局は伝送開始とと
もに、各局のタイマをスタートさせる。
In FIG. 3(a), stations A and B start their respective timers at the same time as transmission begins.

A局からB局へデータ■および■が伝送された後、A局
の電源に異常が生じ、このA局の電源に異常が発生して
いる間にB局のタイマがタイムアツプしたとする。A局
では、電源が回復したとき、電源異常前の伝送シーケン
スを継続して、データ■を伝送するが、B局は伝送され
たデータを受付けることなく、エラーの旨をA局に通知
する。
Assume that after data (1) and (2) are transmitted from station A to station B, an abnormality occurs in the power supply of station A, and while the abnormality occurs in the power supply of station A, the timer of station B times out. When the power is restored, the A station continues the transmission sequence before the power failure and transmits the data (2), but the B station does not accept the transmitted data and notifies the A station of the error.

第3図(b)において、A局およびB局は伝送開始とと
もに、各局のタイマをスタートさせる。
In FIG. 3(b), stations A and B start their respective timers at the start of transmission.

A局からB局へデータ■および■が伝送された後、A局
の電源に異常が生じ、その電源回復後にタイマの計時が
継続しているものとする。A局では、電源が回復した後
、シーケンスをリセットするため、B局はエラーの旨を
A局に通知する。
It is assumed that after data (1) and (2) are transmitted from station A to station B, an abnormality occurs in the power supply of station A, and the timer continues to measure time after the power supply is restored. After the power is restored at station A, station B notifies station A of the error in order to reset the sequence.

[発明が解決しようとする問題点] 上述のごとく、従来の通信装置では、通信を行なってい
る双方の通信装置の一方に異常が発生した場合には、伝
送シーケンスのずれが発生し、正常に伝送を行なうこと
ができないという問題点があった。
[Problems to be Solved by the Invention] As mentioned above, in conventional communication devices, when an abnormality occurs in one of the communication devices that are communicating, a shift in the transmission sequence occurs and the communication cannot be performed normally. There was a problem that transmission could not be performed.

それゆえに、この発明の主たる目的は、通信中に電源に
異常が発生したとしても、データ伝送を正常に行なえる
ような通信装置を提供することである。
Therefore, the main object of the present invention is to provide a communication device that can normally perform data transmission even if an abnormality occurs in the power supply during communication.

[問題点を解決するための手段] この発明に係る通信装置は、外部通信装置との間のデー
タ伝送が開始したとき予め定める時間の計時を行なう計
時手段と、外部通信装置とのデータ伝送を行なうための
電力を供給する第1の電力供給手段と、第1の電力供給
手段とは別に設けられ、計時手段への電力の供給が可能
な第2の電力供給手段と、外部通信装置との間のデータ
伝送中に第1の電力供給手段に異常が生じた後、第1の
電力供給手段が回復したとき、計時手段の計時が終了し
たか否かを判別する判別手段と、判別手段によって計時
手段の計時が終了していることが判別されたことに応じ
て、外部通信装置との間のデータ伝送を最初からやり直
し、計時手段の計時が終了していないことが判別された
ことに応じて、第1の電力供給手段の異常発生前のデー
タ伝送を継続して行なうように制御する伝送制御手段と
を備えて構成される。
[Means for Solving the Problems] A communication device according to the present invention includes a timer that measures a predetermined time when data transmission with an external communication device starts, and a timer that measures a predetermined time when data transmission with an external communication device starts. a first power supply means for supplying power to the timekeeping means, a second power supply means provided separately from the first power supply means and capable of supplying power to the timekeeping means, and an external communication device. When the first power supply means recovers after an abnormality occurs in the first power supply means during data transmission between When it is determined that the time measurement by the time measurement means has ended, the data transmission with the external communication device is restarted from the beginning, and in response to the determination that the time measurement by the time measurement means has not ended. and transmission control means for controlling the first power supply means to continue data transmission before the occurrence of an abnormality.

[作用] この発明に係る通信装置は、データ伝送中に第1の電力
供給手段に異常が生じた場合には、計時手段には第2の
電力供給手段から電力を供給して時間の計時を継続し、
当該異常が回復したとき、計時手段の計時が終了したか
否かを判別し、計時が終了している場合には、計時を再
度開始するとともに、データ伝送を最初からやり直し、
計時が終了していない場合には、第1の電力供給手段の
異常発生前のデータ伝送を継続して行なう。
[Operation] In the communication device according to the present invention, if an abnormality occurs in the first power supply means during data transmission, the time measurement means is supplied with power from the second power supply means to keep time. continue,
When the abnormality is recovered, it is determined whether or not the timekeeping by the timekeeping means has ended, and if the timekeeping has ended, the timekeeping is restarted and the data transmission is restarted from the beginning.
If the time measurement has not ended, the data transmission performed before the occurrence of the abnormality in the first power supply means is continued.

[発明の実施例] 第2図は、この発明の通信装置の電気的構成を示す概略
ブロック図である。第2図において、この実施例の通信
装置には、CPUIが設けられる。
[Embodiments of the Invention] FIG. 2 is a schematic block diagram showing the electrical configuration of a communication device of the invention. In FIG. 2, the communication device of this embodiment is provided with a CPUI.

CPUIには、タイマ2とメモリ3と通信インターフェ
イス4とが接続される。タイマ2は、予め定める時間を
計時するものである。相手局のタイマもこのタイマ2と
同じ計時時間にセットされている。メモリ3は後で説明
する第1図に示すようなCPUIの動作プログラムを格
納するROMと、伝送データなどを格納するRAMとを
含む。通信インターフェイス4はCPUIと相手局との
間のデータ伝送を行なうものである。上述のCPUI。
A timer 2, memory 3, and communication interface 4 are connected to the CPUI. The timer 2 measures a predetermined time. The timer of the other station is also set to the same time as this timer 2. The memory 3 includes a ROM that stores a CPU operating program as shown in FIG. 1, which will be described later, and a RAM that stores transmission data and the like. The communication interface 4 is for data transmission between the CPUI and the other station. CPUI mentioned above.

タイマ2.メモリ3および通信インターフェイス4はメ
イン電源5から電力が供給される。また、タイマ2はメ
イン電源5に異常が生じたとき、バックアップ電源6か
ら電力が供給される。なお、タイマ2はメイン電源5と
は別の電源によって絶えず安定的に電力が供給されるよ
うにしてもよい。
Timer 2. Memory 3 and communication interface 4 are supplied with power from main power supply 5 . Further, the timer 2 is supplied with power from the backup power supply 6 when an abnormality occurs in the main power supply 5. Note that the timer 2 may be constantly and stably supplied with power by a power source different from the main power source 5.

第1図はこの発明の一実施例の動作を説明するためのフ
ロー図である。次に、第1図ないし第2図を参照して、
この発明の一実施例の動作について説明する。
FIG. 1 is a flow diagram for explaining the operation of an embodiment of the present invention. Next, referring to Figures 1 and 2,
The operation of one embodiment of this invention will be explained.

CPUIは伝送を開始すると、タイマ2の計時をスター
トさせ、たとえばメモリ3に記憶されているデータを通
信インターフェイス4を介して相手局に伝送する。この
伝送処理中にメイン電源5に異常が生じて伝送が行なえ
なくなった後、メイン電源5が回復したときには、CP
UIはタイマ2が計時を終了したか否かを判別する。な
お、タイマ2はメイン電源の異常発生中にも、バックア
ップ電源6から電力の供給を受けて正常に動作する。し
たがって、タイマ2が計時を終了していれば、相手局が
既にデータ伝送を受付けない状態となっており、一方、
タイマ2が計時を継続していれば、相手局がデータ伝送
を受付ける状態にある。
When the CPUI starts transmission, it starts the timer 2 and transmits the data stored in the memory 3 to the other station via the communication interface 4, for example. After an abnormality occurs in the main power supply 5 during this transmission process and transmission cannot be performed, when the main power supply 5 is restored, the CP
The UI determines whether timer 2 has finished timing. Note that the timer 2 receives power from the backup power supply 6 and operates normally even when an abnormality occurs in the main power supply. Therefore, if timer 2 has finished counting, the other station is already in a state where it cannot accept data transmission, and on the other hand,
If timer 2 continues to measure time, the other station is ready to accept data transmission.

CPUIはタイマ2が計時を終了している場合には、タ
イマを再度スタートさせ、伝送を最初からやり直す。ま
た、タイマ2が計時を終了していない場合には、メイン
電源異常前のデータ伝送を継続して行なう。
If timer 2 has finished counting, the CPUI restarts the timer and restarts the transmission from the beginning. Furthermore, if the timer 2 has not finished counting, the data transmission performed before the main power failure is continued.

[発明の効果コ 以上のように、この発明によれば、データ伝送中に第1
の電力供給手段に異常が生じた場合には、計時手段には
第2の電力供給手段から電力を供給して時間の計時を継
続し、当該異常が回復したとき、計時手段の計時が終了
したか否かを判別し、計時が終了している場合には、計
時を再度開始するために、データ伝送を最初からやり直
し、計時が終了していない場合には、第1の電源供給手
段の異常発生前のデータ伝送を継続して行なうようにし
たので、外部電源に異常が生じた場合にも、通信局同士
のシーケンスのずれがなくなるため、データの無駄な伝
送を行なうことがなくなり、伝送効率が向上する。
[Effects of the Invention] As described above, according to the present invention, the first
If an abnormality occurs in the second power supply means, the timekeeping means is supplied with power from the second power supply means to continue measuring time, and when the abnormality is recovered, the timekeeping of the timekeeping means is terminated. If the time measurement has ended, data transmission is restarted from the beginning in order to restart the time measurement, and if the time measurement has not ended, it is determined that there is an abnormality in the first power supply means. Since the data transmission before the occurrence continues, even if an abnormality occurs in the external power supply, there will be no sequence deviation between communication stations, eliminating unnecessary data transmission and improving transmission efficiency. will improve.

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

第1図はこの発明の一実施例の動作を説明するためのフ
ロー図である。第2図はこの発明の一実施例の電気的構
成を示す概略ブロック図である。 第3図は従来の伝送シーケンスを説明するための図であ
る。 図において、1はCPU、2はタイマ、3はメモリ、4
は通信インターフェイス、5はメイン電源、6はバック
アップ電源を示す。 特許出願人 立石電機株式会社    、、1.4+ 
 1、代理人弁理士深見久部(・□ 1.・ (ほか2名  ” 3.’r、:41 :″″萬1図 
      第2図
FIG. 1 is a flow diagram for explaining the operation of an embodiment of the present invention. FIG. 2 is a schematic block diagram showing the electrical configuration of an embodiment of the present invention. FIG. 3 is a diagram for explaining a conventional transmission sequence. In the figure, 1 is the CPU, 2 is the timer, 3 is the memory, and 4
5 indicates a communication interface, 5 indicates a main power supply, and 6 indicates a backup power supply. Patent applicant: Tateishi Electric Co., Ltd., 1.4+
1. Representative Patent Attorney Kube Fukami (・□ 1.・ (and 2 other people)
Figure 2

Claims (1)

【特許請求の範囲】 伝送開始時点から予め定める時間が経過するまでデータ
伝送可能な外部通信装置との間でデータ伝送を行なう通
信装置であって、 前記外部通信装置との間のデータ伝送が開始したとき、
前記予め定める時間の計時を行なう計時手段と、 前記外部通信装置との間でデータ伝送を行なうための電
力を供給する第1の電力供給手段と、前記第1の電力供
給手段とは別に設けられ、前記計時手段への電力の供給
が可能な第2の電力供給手段と、 前記外部通信装置との間のデータ伝送中に前記第1の電
力供給手段に異常が生じた後、前記第1の電力供給手段
が回復したとき、前記計時手段の計時が終了したか否か
を判別する判別手段と、前記判別手段によって、前記計
時手段の計時が終了していることが判別されたことに応
じて、前記外部通信装置との間のデータ伝送を最初から
やり直し、前記判別手段によって、前記計時手段の計時
が終了していないことが判別されたことに応じて、前記
第1の電力供給手段の異常発生前のデータ伝送を継続し
て行なうように制御する伝送制御手段とを備えた通信装
置。
[Scope of Claims] A communication device that performs data transmission with an external communication device capable of data transmission until a predetermined time elapses from the start of the transmission, wherein data transmission with the external communication device starts. When I did,
A clock means for measuring the predetermined time; a first power supply means for supplying power for data transmission between the external communication device; and a first power supply means provided separately from the first power supply means. , after an abnormality occurs in the first power supply means during data transmission between the second power supply means capable of supplying power to the time measurement means and the external communication device, the first power supply means When the power supply means is restored, a determining means determines whether or not the time counting by the time measuring means has ended; , the data transmission with the external communication device is restarted from the beginning, and the determination means determines that the time measurement of the time measurement means has not finished, and the first power supply means is abnormal. 1. A communication device comprising: a transmission control means for controlling to continue data transmission before an occurrence.
JP62304018A 1987-11-30 1987-11-30 Communication device Pending JPH01144749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62304018A JPH01144749A (en) 1987-11-30 1987-11-30 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62304018A JPH01144749A (en) 1987-11-30 1987-11-30 Communication device

Publications (1)

Publication Number Publication Date
JPH01144749A true JPH01144749A (en) 1989-06-07

Family

ID=17928079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62304018A Pending JPH01144749A (en) 1987-11-30 1987-11-30 Communication device

Country Status (1)

Country Link
JP (1) JPH01144749A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007205690A (en) * 2006-02-06 2007-08-16 Paloma Ind Ltd Water heater

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007205690A (en) * 2006-02-06 2007-08-16 Paloma Ind Ltd Water heater

Similar Documents

Publication Publication Date Title
US7428660B2 (en) Starting control method, duplex platform system, and information processor
JPH01144749A (en) Communication device
JP2003296133A (en) Controller
CN107272400B (en) Synchronous redundant sequence control device and method
CN104536840B (en) A kind of Watch Dog Timer and its control method
JPH06318107A (en) Programmable controller, and resetting method for specific other station, resetting factor detecting method for other station, abnormal station monitoring method, synchronism detecting method, and synchronization stopping method of decentralized control system using programmable controller
JP3166552B2 (en) CPU monitoring method and CPU monitoring device
JP2799104B2 (en) Redundant switching device for programmable controller
JPH08305664A (en) Method and device for cpu monitoring
CN114779881B (en) Synchronous detection method, device, equipment and storage medium for redundancy computer
JPS60126742A (en) Start supervisory system of information processing unit
JPH01245322A (en) Power failure control circuit for microprocessor
JP2002006996A (en) Power-on system of information processing system
JPH04160420A (en) Uninterruptible power supply unit
CN115884144A (en) Near field communication method and device, NFC chip and NFC equipment
JPS5881372A (en) Remote powering-off system
JP2614926B2 (en) Power control system
JPH06332587A (en) Power supply protection device for computer
CN114546905A (en) Channel synchronization control method and device for multi-channel CPU
JP2591690Y2 (en) Runaway monitoring device for CPU
JPS6091430A (en) Remote control system of power supply
JPS60174535A (en) Switching control system of communication device of duplex constitution
JPH0519897A (en) Resetting control circuit of information processor
JPH01151394A (en) Remote supervisory control system
JPH07202992A (en) Line terminating device considering maintainability