JP2004355618A - Telegram processor, apparatus control device, household electrical appliance, program for telegram processor, microcomputer system, and program for microcomputer system - Google Patents

Telegram processor, apparatus control device, household electrical appliance, program for telegram processor, microcomputer system, and program for microcomputer system Download PDF

Info

Publication number
JP2004355618A
JP2004355618A JP2004138295A JP2004138295A JP2004355618A JP 2004355618 A JP2004355618 A JP 2004355618A JP 2004138295 A JP2004138295 A JP 2004138295A JP 2004138295 A JP2004138295 A JP 2004138295A JP 2004355618 A JP2004355618 A JP 2004355618A
Authority
JP
Japan
Prior art keywords
message
unit
processing
microcomputer
database
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
JP2004138295A
Other languages
Japanese (ja)
Inventor
Yukiko Nagoshi
由紀子 名越
Toshiaki Katano
寿昭 片野
Hidetomo Takubo
英智 田窪
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004138295A priority Critical patent/JP2004355618A/en
Publication of JP2004355618A publication Critical patent/JP2004355618A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To properly process, after restart, unprocessed telegrams accumulated by operation stop. <P>SOLUTION: A telegram 6 received or created by a telegram creation part 10 is stored in a telegram memory 3. After a waiting time, a telegram processing part 15 reads the telegram 6 from the telegram memory 3, and transmits it to the outside or provides it to an internal process. When the transmission or the internal process of the telegram 6 is ended, an identification sign addition part 18 adds a sign representing processing completion to the telegram 6. A database stored in a determination database memory 4 is used for describing a processing time limit for every content of the telegram 6. When an apparatus control device 100 receives a restart signal 8 after stopping its operation, a telegram determination part 20 makes the processing part 15 process the telegrams, out of the telegrams 6 stored in the telegram memory 3, not having been processed and having unexpired processing time limits. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、外部と電文をやり取りすることにより処理を行う電文処理装置、機器制御装置、家電機器、電文処理装置用プログラム、マイクロコンピュータシステムおよびマイクロコンピュータシステム用プログラムに関する。   The present invention relates to a message processing device, a device control device, a home appliance, a program for a message processing device, a program for a message processing device, a microcomputer system, and a program for a microcomputer system that perform processing by exchanging messages with the outside.

家庭内の通信インフラ、すなわちホームネットワークと呼ばれるものとして、映像など高速、大容量のデータ伝送を必要とするネットワークのみならず、家庭内の様々ないわゆる白物家電機器や住宅設備機器に適用可能な、比較的低速かつ低容量で安価な設備系のネットワークについても必要性が高まっていると言われている。後者のネットワークを容易に構築可能にすることを目的として、例えばエコーネットコンソーシアムによるECHONET(エコーネット)規格が策定されている(非特許文献1の第1部「ECHONETの概要」§1-1)。ECHONET規格等の設備系ネットワークを含めた家庭用ネットワークにおいても、他の構内ネットワーク(LAN;Local Area Network)やインタネット等と同様に、ネットワークに接続される各機器は、ネットワークに固有のプロトコルにもとづいた形式で、ある情報単位毎に情報を相互にやり取りする。一時にネットワークに送り出される情報の単位は、パケットと称される。一方、意味ある内容を含む情報の単位は電文(メッセージ)と称される。電文は単一のパケットとしてやり取りされる場合もあり、複数のパケットに分けてやり取りされる場合もあり得る。   As a home communication infrastructure, that is, a home network, it can be applied not only to networks that require high-speed, large-capacity data transmission such as video, but also to various home appliances and household equipment in the home. It is said that there is a growing need for inexpensive equipment networks with relatively low speed, low capacity and low capacity. For the purpose of making it possible to easily construct the latter network, for example, the ECHONET (EchoNet) standard by the Echonet Consortium has been formulated (Non-Patent Document 1, Part 1 "Overview of ECHONET" §1-1) . In a home network including an equipment network such as the ECHONET standard, like other local area networks (LANs) and the Internet, each device connected to the network is based on a protocol unique to the network. Information is exchanged for each information unit in a specific format. A unit of information sent to the network at one time is called a packet. On the other hand, a unit of information including meaningful content is called a message. The message may be exchanged as a single packet or may be exchanged in a plurality of packets.

また、情報家電(主として家庭で使用されることを想定した電気機器を「家電機器」と称し、特にネットワークに接続されて情報のやり取りが可能なものを「情報家電」と称している)の内部においても、各装置部分の制御等を個別に担当する複数のマイクロコンピュータ(子マイクロコンピュータと称される)とそれらを連携動作させるマイクロコンピュータ(親マイクロコンピュータと称される)とが相互に電文を交換し合うことで、情報家電全体の有機的な制御動作および外部のネットワークとの通信を実現するものが登場している。   In addition, the inside of information home appliances (electric appliances mainly intended for home use are referred to as "home appliances", and those connected to a network and capable of exchanging information are referred to as "information home appliances"). In this case, a plurality of microcomputers (called child microcomputers) that individually control each device and the like, and a microcomputer (called a parent microcomputer) that operates them in cooperation with each other, transmit messages to each other. By exchanging each other, those that realize organic control operation of the entire information appliance and communication with an external network have appeared.

ところで、このような情報家電において、ハードエラーの発生等によりマイクロコンピュータが動作を停止する場合がある。かかる問題に対処するものとして、例えば特許文献1に開示される技術が知られている。この従来技術は、冷蔵庫等の家電機器の機器制御装置が動作停止したときに、これを発見したユーザが復旧スイッチを操作することにより、機器制御装置の再起動を可能にするものである。
「ECHONET規格書Version 2.11」ECHONET CONSORTIUM(エコーネットコンソーシアム)(”HTTP://www.echonet.gr.jp”にアップロード) 特開2001−280777公報
In such information home appliances, the microcomputer may stop operating due to a hardware error or the like. To cope with such a problem, for example, a technique disclosed in Patent Document 1 is known. According to this conventional technique, when a device control device of a home electric appliance such as a refrigerator stops operating, a user who discovers the device operates a recovery switch to restart the device control device.
"ECHONET Standards Version 2.11" ECHONET CONSORTIUM (uploaded to "HTTP://www.echonet.gr.jp") JP 2001-280777 A

しかしながら、機器制御装置が動作停止している期間には、未処理の電文が機器制御装置に放置されることになる。特許文献1は動作停止により滞留した未処理電文について、再起動後に適切に処理する手段を開示するものではなかった。   However, during the period in which the operation of the device control device is stopped, an unprocessed message is left in the device control device. Patent Literature 1 does not disclose a means for appropriately processing an unprocessed electronic message that has accumulated due to operation stoppage after restarting.

本発明は上記の問題点に鑑みてなされたもので、動作停止により滞留した未処理電文について、再起動後に適切に処理することを可能にする電文処理装置、機器制御装置、家電機器、電文処理装置用プログラム、マイクロコンピュータシステムおよびマイクロコンピュータシステム用プログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems, and has a message processing device, a device control device, a home appliance, and a message processing device that can appropriately process an unprocessed message that has accumulated due to an operation stoppage after a restart. It is an object to provide a device program, a microcomputer system, and a microcomputer system program.

請求項1に記載の発明は外部と電文をやり取りすることにより処理を行う電文処理装置であって、外部から電文を受信する電文受信手段と電文を作成する電文作成手段との少なくとも1を有する電文発生手段と、前記電文発生手段が受信または作成した前記電文を記憶する電文記憶手段と、前記電文記憶手段が記憶する前記電文を読み出し、前記電文にもとづく処理をする電文処理手段と、前記処理が終了した電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、前記電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、前記電文処理装置が動作停止した後に受信する再起動信号に応答して前記電文を前記電文記憶手段から読み出し、読み出した前記電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記処理をさせる電文判別手段と、を備えるものである。   The invention according to claim 1 is a message processing device that performs processing by exchanging messages with the outside, and has at least one of a message receiving unit that receives a message from the outside and a message creating unit that creates a message. Generating means, a message storing means for storing the message received or created by the message generating means, a message processing means for reading out the message stored in the message storing means, and performing a process based on the message; and An identification code adding unit that adds an identification code indicating that processing has been completed to the message storage unit with an identification code indicating that processing has been completed, a discrimination database storage unit that stores a database describing a processing time limit for each content of the message, In response to a restart signal received after the message processing device has stopped operating, read the message from the message storage unit, and among the read messages, For those whose serial identification code is not attached, only those within the processing time limit by referring to the database, in which and a message determination means for the processing to the message processing means.

この発明によれば、動作停止後に受信する再起動信号に応答して、電文記憶手段に記憶される電文が読み出され、判別データベース記憶手段に記憶されるデータベースを参照することにより、未処理の電文のうち処理期限内のものに限り処理が行われるので、動作停止期間中に未処理であった電文を処理できるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。   According to the present invention, in response to the restart signal received after the operation is stopped, the telegram stored in the telegram storage is read, and the unprocessed data is read by referring to the database stored in the discrimination database storage. Since processing is performed only on messages that are within the processing time limit, messages that have not been processed during the operation suspension period can be processed, and unnecessary processing of unprocessed messages that have passed the processing time limit can be avoided. Can be omitted.

この発明における電文処理手段による処理の態様として、作成された電文の外部への送信、受信された電文の外部への送信、受信された電文にもとづく機器の制御などの内部処理、あるいは電文の内容にもとづいてそれら複数種類の処理を択一的に行う態様、を実施することが可能である。   As an aspect of processing by the message processing means in the present invention, transmission of a created message to the outside, transmission of a received message to the outside, internal processing such as control of a device based on the received message, or content of the message Based on this, it is possible to implement an embodiment in which the plurality of types of processing are selectively performed.

請求項2に記載の発明は請求項1に記載の電文処理装置であって、前記電文発生手段が前記電文作成手段を有しており、前記データベースは前記電文作成手段が作成する前記電文の内容ごとに、前記処理期限経過後において前記電文を新たに作成すべきか否かをさらに記述しており、前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に新たに前記電文を作成させるものである。   The invention according to claim 2 is the message processing device according to claim 1, wherein the message generating means has the message creating means, and the database is a content of the message created by the message creating means. Each further describes whether the message should be newly created after the elapse of the processing time limit, and the message determination unit determines whether the message read from the message storage unit in response to the restart signal has Of these, for those not having the identification code and after the expiration of the processing time limit, by further referring to the database, the message is newly created in the message creating means only for those to be newly created. It is to let.

この発明によれば、動作停止によって処理期限を経過した未処理の電文について、データベースを参照することにより、新たに作成すべきものについてのみ、新たに電文が作成されるので、処理期限を経過した電文に代えて再起動後の新たな状況を反映した新たな電文を処理できるとともに、不必要な処理を行う無駄を省くことができる。   According to the present invention, for an unprocessed message that has passed the processing deadline due to the operation stoppage, by referring to the database, a new message is created only for a new message to be created. Instead, a new message reflecting a new situation after the restart can be processed, and unnecessary processing for unnecessary processing can be eliminated.

請求項3に記載の発明は、通信回線を通じて外部装置と電文をやり取りすることにより機器の制御を行う制御部と、前記制御部と前記通信回線との間に介在してこれら双方に整合するよう前記電文のプロトコル変換を行う通信部と、を備える機器制御装置であって、前記通信部は前記通信回線から送られる第1電文と前記制御部から送られる第2電文とを受信する電文受信手段と、前記電文受信手段が受信した前記第1電文および前記第2電文を記憶する電文記憶手段と、前記電文記憶手段が記憶する前記第1電文および前記第2電文を読み出し、読み出した前記第1電文の前記制御部への送信をし、読み出した前記第2電文の前記通信回線への送信をする電文処理手段と、前記電文処理手段による前記送信が終了した前記第1電文および前記第2電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、前記第1電文および前記第2電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、前記通信部が動作停止した後に受信する再起動信号に応答して前記第1電文および前記第2電文を前記電文記憶手段から読み出し、読み出した前記第1電文および前記第2電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記送信をさせる電文判別手段と、を備えるものである。   According to a third aspect of the present invention, a control unit for controlling a device by exchanging a message with an external device through a communication line, and a control unit interposed between the control unit and the communication line so as to match both of them. A communication unit that performs protocol conversion of the message, wherein the communication unit receives a first message sent from the communication line and a second message sent from the control unit. A message storage unit that stores the first message and the second message received by the message reception unit; and a first message that reads out the first message and the second message that the message storage unit stores. A message processing unit that transmits a message to the control unit and transmits the read second message to the communication line; and the first message and the previous message whose transmission by the message processing unit is completed. An identification code adding unit that records the second message in the message storage unit with an identification code indicating that the process has been completed, and a database that describes a processing time limit for each of the first message and the second message. A determination database storage unit that reads the first and second messages from the message storage unit in response to a restart signal received after the communication unit stops operating, and reads the read first and second messages; A message discriminating unit that causes the message processing unit to transmit only a message that does not have the identification code and that is within the processing time limit by referring to the database is provided.

この発明によれば、動作停止後に通信部が受信する再起動信号に応答して、電文記憶手段に記憶される電文が読み出され、判別データベース記憶手段に記憶されるデータベースを参照することにより、未処理の電文のうち処理期限内のものに限り送信処理が行われるので、通信部の動作停止期間中に未送信であった電文を送信することができるとともに、処理期限を経過した未処理の電文について不必要な送信を行う無駄を省くことができる。さらに、プロトコル変換機能を有する部分であって多様な機器制御装置の間で共通の機能を持つ通信部が、制御部から分離されているので、多様な機器に対応した多様な機器制御装置の全体的な設計コストの低減を図ることができる。   According to the present invention, in response to the restart signal received by the communication unit after the operation is stopped, the message stored in the message storage unit is read, and by referring to the database stored in the determination database storage unit, Since transmission processing is performed only for unprocessed messages that are within the processing time limit, messages that have not been transmitted during the operation stop period of the communication unit can be transmitted, and unprocessed messages that have passed the processing time limit can be transmitted. It is possible to eliminate waste of unnecessary transmission of a message. Furthermore, since a communication unit that has a protocol conversion function and has a common function among various device control devices is separated from the control unit, a variety of device control devices corresponding to various devices can be used as a whole. The design cost can be reduced.

請求項4に記載の発明は請求項3に記載の機器制御装置であって、前記通信部が、第3電文を作成する電文作成手段をさらに備え、前記電文記憶手段は、前記電文作成手段が作成した前記第3電文をも記憶し、前記電文処理手段は、前記電文記憶手段が記憶する前記第3電文をも読み出し、読み出した前記第3電文の前記通信回線への送信を行い、読み出した前記第1電文については前記制御部へのデータ要求を内容とするものを除いて前記制御部への送信をし、前記データ要求を内容とするものについては前記電文作成手段に前記第3電文を作成させ、前記識別符号付加手段は前記電文処理手段による前記送信が終了した前記第3電文をも、処理済みを示す前記識別符号を付して前記電文記憶手段に記録し、前記データベースは前記第3電文についてもその内容ごとに前記処理期限を記述しており、前記電文判別手段は、前記再起動信号に応答して前記第3電文をも前記電文記憶手段から読み出し、読み出した前記第3電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記送信をさせ、前記制御部は、前記電文作成部が前記データ要求に応じて前記第3電文を作成するのに必要なデータを、前記通信部へ送信するものである。   The invention according to claim 4 is the device control device according to claim 3, wherein the communication unit further includes a message creation unit that creates a third message, and the message storage unit includes: The generated third message is also stored, and the message processing unit also reads the third message stored in the message storage unit, transmits the read third message to the communication line, and reads the third message. The first message is transmitted to the control unit except for the one containing the data request to the control unit. For the one containing the data request, the third message is sent to the message creating means. The identification code adding unit also records the third message, which has been transmitted by the message processing unit, in the message storage unit with the identification code indicating that processing has been completed, and the database stores the third message. 3 den The processing expiration date is also described for each of the contents, and the electronic message discriminating unit also reads the third electronic message from the electronic message storage unit in response to the restart signal, and among the read third electronic messages, For those not given the identification code, by referring to the database, only those that are within the processing time limit, the message processing unit is made to transmit the data, and the control unit transmits the data request And transmitting data necessary for generating the third telegram to the communication unit in accordance with.

この発明によれば、第1電文のうち、データ要求を内容とするものについては、制御部が送信するデータにもとづいて、制御部に代わって通信部が、データ要求に対する応答としての第3電文を作成し、さらに送信するので、比較的大きい制御部の負担を通信部が分担することにより軽減するとともに、データ要求への即答性を高めることができる。   According to the present invention, of the first telegrams, those having the content of the data request, the communication unit in place of the control unit, based on the data transmitted by the control unit, transmits the third telegram as a response to the data request. Is created and further transmitted, so that the burden on the relatively large control unit is reduced by the communication unit being shared, and the responsiveness to the data request can be improved.

請求項5に記載の発明は請求項4に記載の機器制御装置であって、前記データベースが前記第3電文の内容ごとに、前記処理期限経過後において前記第3電文を新たに作成すべきか否かをさらに記述しており、前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記第3電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に前記第3電文として新たに作成させ、前記制御部は、前記再起動信号によって前記通信部が動作を再開した後に、前記電文作成部が前記第3電文を新たに作成するのに必要なデータを前記通信部へ送信するものである。この発明によれば、通信部の動作停止によって処理期限を経過した未処理の第3電文について、データベースを参照することにより、新たに作成すべきものについてのみ新たに作成されるので、処理期限を経過した第3電文に代えて再起動後の新たな状況を反映した第3電文を送信できるとともに、不必要な送信を行う無駄を省くことができる。   The invention according to claim 5 is the device control device according to claim 4, wherein the database is configured to newly create the third message after the processing time limit elapses for each content of the third message. The message identification means, wherein the identification code is not attached to the third message read from the message storage means in response to the restart signal, and the processing time limit For the post-elapsed data, the database is further referred to, so that only the data to be newly prepared is newly generated as the third telegram by the telegram generating means, and the control unit performs the communication by the restart signal. After the unit resumes operation, the message creation unit transmits data necessary for newly creating the third message to the communication unit. According to the present invention, the unprocessed third telegram that has passed the processing deadline due to the stop of the operation of the communication unit is newly created only for the newly created one by referring to the database. The third message reflecting the new situation after the restart can be transmitted in place of the third message, and unnecessary transmission of unnecessary transmission can be eliminated.

請求項6に記載の発明は請求項5に記載の機器制御装置であって、前記データベースが前記第2電文についてもその内容ごとに、前記処理期限経過後において前記第2電文を新たに作成すべきか否かをさらに記述しており、前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記第2電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に前記第3電文として新たに作成させ、前記制御部は、前記再起動信号によって前記通信部が動作を再開した後に、前記電文作成部が前記第3電文として電文を新たに作成するのに必要なデータをも前記通信部へ送信するものである。   The invention according to claim 6 is the device control device according to claim 5, wherein the database should newly create the second message after the processing time limit elapses for each content of the second message. Whether or not the second message read from the message storage unit in response to the restart signal is not assigned the identification code, and For those after the processing time limit, by further referring to the database, only the message to be newly created is made to be newly created as the third message by the message creating means. After the communication unit restarts its operation, the message creation unit also transmits to the communication unit data necessary for newly creating a message as the third message.

この発明によれば、第3電文だけでなく第2電文についても、未処理であって処理期限が経過しかつ新たに作成すべきものについては、第3電文として新たに作成され送信されるので、処理期限を経過した未処理の第2電文に代えて再起動後の新たな状況を反映した新たな電文を送信できるとともに、不必要な送信を行う無駄を省くことができる。   According to this invention, not only the third telegram but also the second telegram that has not been processed, the processing time limit has elapsed, and should be newly generated are newly generated and transmitted as the third telegram. A new message reflecting the new situation after the restart can be transmitted in place of the unprocessed second message after the processing time limit, and unnecessary waste of unnecessary transmission can be eliminated.

請求項7に記載の発明は請求項3ないし6のいずれかに記載の機器制御装置であって、前記制御部が、前記通信部の動作を監視し前記通信部が動作停止すると前記再起動信号を前記通信部へ送信するものである。   The invention according to claim 7 is the apparatus control device according to any one of claims 3 to 6, wherein the control unit monitors the operation of the communication unit, and the restart signal is output when the communication unit stops operating. Is transmitted to the communication unit.

この発明によれば、制御部が通信部の動作を監視し、通信部が動作停止すると再起動信号を通信部へ送信するので、動作停止期間を短くすることができるとともに、動作を監視する装置を別途に設ける必要がなく、機器制御装置を低廉に構成することができる。   According to the present invention, the control unit monitors the operation of the communication unit, and when the communication unit stops operating, transmits a restart signal to the communication unit. Therefore, the operation stop period can be shortened, and the operation monitoring device Need not be separately provided, and the device control device can be configured at low cost.

請求項8に記載の発明は、通信回線を通じて外部装置と電文をやり取りすることにより機器の制御を行う制御部と、前記制御部と前記通信回線との間に介在して、これら双方に整合するよう前記電文のプロトコル変換を行う通信部と、を備える機器制御装置であって、前記制御部は、前記通信部から送られる第1電文を受信する電文受信手段と、第2電文を作成する電文作成手段と、前記電文受信手段が受信した前記第1電文および前記電文作成手段が作成した前記第2電文を記憶する電文記憶手段と、前記電文記憶手段が記憶する前記第1電文および前記第2電文を読み出し、読み出した前記第1電文に基づく前記機器の制御を行い、読み出した前記第2電文の前記通信部への送信をする電文処理手段と、前記電文処理手段による前記制御が終了した前記第1電文および前記送信が終了した前記第2電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、前記第1電文および前記第2電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、前記通信部が動作停止した後に受信する再起動信号に応答して前記第1電文および前記第2電文を前記電文記憶手段から読み出し、読み出した前記第1電文および前記第2電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記送信または制御をさせる電文判別手段と、を備えるものである。   The invention according to claim 8 is a control unit that controls equipment by exchanging a message with an external device through a communication line, and is interposed between the control unit and the communication line to match both of them. A communication unit that performs protocol conversion of the message, wherein the control unit receives a first message sent from the communication unit, and a message that creates a second message. Creation means; message storage means for storing the first message received by the message reception means and the second message created by the message creation means; and the first message and the second message stored by the message storage means. A message processing unit that reads a message, controls the device based on the read first message, and transmits the read second message to the communication unit; and the control by the message processing unit. An identification code adding unit that adds an identification code indicating that processing has been completed to the completed first telegram and the second telegram that has been transmitted and records them in the telegram storage unit; and the first telegram and the second telegram. Discrimination database storage means for storing a database describing a processing time limit for each of the contents, and the first message and the second message in response to a restart signal received after the communication unit stops operating. Out of the read first message and the second message, to which the identification code is not attached, by referring to the database, only those within the processing time limit and transmitting the message to the message processing means. Or electronic message discriminating means for performing control.

この発明によれば、動作停止後に制御部が受信する再起動信号に応答して、電文記憶手段に記憶される電文が読み出され、判別データベース記憶手段に記憶されるデータベースを参照することにより、未処理の電文のうち処理期限内のものに限り制御および送信の処理が行われるので、制御部の動作停止期間中に未処理であった電文を処理することができるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。さらに、プロトコル変換機能を有する部分であって多様な機器制御装置の間で共通の機能を持つ通信部が、制御部から分離されているので、多様な機器に対応した多様な機器制御装置の全体的な設計コストの低減を図ることができる。   According to the present invention, in response to the restart signal received by the control unit after the operation is stopped, the message stored in the message storage unit is read, and by referring to the database stored in the determination database storage unit, Since the control and transmission processing is performed only for the unprocessed messages within the processing time limit, the messages that were not processed during the operation stop period of the control unit can be processed, and the processing time limit has passed. Waste of performing unnecessary processing for unprocessed messages can be eliminated. Furthermore, since a communication unit that has a protocol conversion function and has a common function among various device control devices is separated from the control unit, a variety of device control devices corresponding to various devices can be used as a whole. The design cost can be reduced.

請求項9に記載の発明は請求項8に記載の機器制御装置であって、前記データベースが前記第2電文の内容ごとに、前記処理期限経過後において前記第2電文を新たに作成すべきか否かをさらに記述しており、前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記第2電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に前記第2電文を新たに作成させるものである。   The invention according to claim 9 is the apparatus control device according to claim 8, wherein the database is to newly create the second message after the processing time limit elapses for each content of the second message. The message identification means, wherein the identification code is not assigned to the second message read from the message storage means in response to the restart signal, and the processing time limit With respect to the data after the passage, the database is further referred to, so that only the data to be newly generated is caused to be newly generated by the message generating means.

この発明によれば、制御部の動作停止によって処理期限を経過した未処理の第2電文について、データベースを参照することにより、新たに作成すべきものについてのみ新たに作成されるので、処理期限を経過した第2電文に代えて再起動後の新たな状況を反映した第2電文を送信できるとともに、不必要な送信を行う無駄を省くことができる。   According to the present invention, the unprocessed second telegram which has passed the processing deadline due to the stop of the operation of the control unit is newly created only for the new message to be created by referring to the database. In place of the second message, the second message reflecting the new situation after the restart can be transmitted, and unnecessary transmission of unnecessary transmission can be eliminated.

請求項10に記載の発明は請求項8または9に記載の機器制御装置であって、前記通信部が前記制御部の動作を監視し、前記制御部が動作停止すると前記再起動信号を前記制御部へ送信するものである。   The invention according to claim 10 is the device control device according to claim 8 or 9, wherein the communication unit monitors the operation of the control unit, and controls the restart signal when the control unit stops operating. To be transmitted to the department.

この発明によれば、通信部が制御部の動作を監視し、制御部が動作停止すると再起動信号を制御部へ送信するので、動作停止期間を短くすることができるとともに、動作を監視する装置を別途に設ける必要がなく、機器制御装置を低廉に構成することができる。   According to the present invention, the communication unit monitors the operation of the control unit, and when the control unit stops operating, transmits a restart signal to the control unit, so that the operation stop period can be shortened and the operation monitoring device Need not be separately provided, and the device control device can be configured at low cost.

請求項11に記載の発明は家電機器であって、請求項1または2に記載の電文処理装置、または請求項3ないし10のいずれかに記載の機器制御装置を備えるものである。   An eleventh aspect of the present invention is a home electric appliance, which includes the electronic message processing device according to the first or second aspect, or the appliance control device according to any one of the third to tenth aspects.

この発明によれば、家電機器が本願発明による電文処理装置または機器制御装置を備えるので、動作停止期間中に未処理であった電文を処理できるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができるという有用な家電機器が得られる。   According to the present invention, since the home electric appliance includes the message processing device or the device control device according to the present invention, it is possible to process a message that has not been processed during the operation suspension period, and not to process an unprocessed message that has passed the processing time limit. A useful home appliance that can eliminate waste of performing necessary processing can be obtained.

請求項12に記載の発明は電文処理装置用プログラムであって、外部と電文をやり取りすることにより処理を行う電文処理装置を、外部から電文を受信する電文受信手段と電文を作成する電文作成手段との少なくとも1を有する電文発生手段と、前記電文発生手段が受信または作成した前記電文を記憶する電文記憶手段と、前記電文記憶手段が記憶する前記電文を読み出し、前記電文にもとづく処理をする電文処理手段と、前記処理が終了した電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、前記電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、前記電文処理装置が動作停止した後に受信する再起動信号に応答して前記電文を前記電文記憶手段から読み出し、読み出した前記電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記処理をさせる電文判別手段として機能させるものである。   The invention according to claim 12 is a program for a message processing device, comprising: a message processing device that performs processing by exchanging a message with an external device; a message receiving device that receives a message from the outside; and a message creating device that creates a message. A message generating unit having at least one of the following: a message storing unit that stores the message received or created by the message generating unit; a message that reads the message stored by the message storing unit and performs a process based on the message A processing unit, an identification code adding unit that adds an identification code indicating that processing has been completed to the electronic mail storage unit with an identification code indicating that the processing has been completed, and stores a database that describes a processing time limit for each content of the electronic mail. Reading the message from the message storage device in response to a restart signal received after the message processing device stops operating; Then, for the read out messages, to which the identification code is not attached, only those within the processing time limit by referring to the database are made to function as message determination means for causing the message processing means to perform the processing. Things.

この発明によれば、電文処理装置が前記各手段として機能するので、動作停止期間中に未処理であった電文を処理できるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができるという有用な電文処理装置が得られる。   According to the present invention, since the message processing device functions as each of the units, it is possible to process a message that has not been processed during the operation suspension period, and perform unnecessary processing on the unprocessed message that has passed the processing time limit. A useful message processing device that can reduce waste can be obtained.

請求項13に記載の発明は、互いの間で電文を通信する複数のマイクロコンピュータと、前記複数のマイクロコンピュータの何れもが読み書き可能なログメモリと、を備えるマイクロコンピュータシステムであって、前記複数のマイクロコンピュータの一である第1マイクロコンピュータは、前記電文を作成する電文作成手段と、前記電文作成手段が作成した前記電文を、前記複数のマイクロコンピュータの別の一である第2マイクロコンピュータへ送信する電文送信手段と、前記電文送信手段が送信する前記電文を前記ログメモリに記録する第1電文書込手段と、前記電文の内容ごとに処理期限を記述した第1データベースを記憶する第1データベースメモリと、を備えており、前記第2マイクロコンピュータは、前記電文送信手段が送信した前記電文を、その内容に応じて処理する電文処理手段と、前記ログメモリに記録された前記電文のうち前記電文処理手段による処理が終了したものについて、処理済みを示す第1識別符号を付して前記ログメモリへ記録する識別符号付加手段と、前記電文の内容ごとに処理期限を記述した第2データベースを記憶する第2データベースメモリと、前記第2マイクロコンピュータが動作停止した後に受信する再起動信号に応答して、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第2データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に処理をさせる第1電文判別手段と、を備えており、前記第1マイクロコンピュータは、 前記第2マイクロコンピュータが前記再起動信号を受信した後に、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第1データベースを参照することにより、前記処理期限経過後のものに限り、前記電文作成手段に新たに電文を作成させる第2電文判別手段を、さらに備えるものである。   The invention according to claim 13 is a microcomputer system comprising: a plurality of microcomputers for communicating electronic messages among each other; and a log memory readable and writable by any of the plurality of microcomputers. The first microcomputer, which is one of the microcomputers, sends the message created by the message creating means and the message created by the message creating means to a second microcomputer that is another one of the plurality of microcomputers. A message transmitting means for transmitting, a first message storing means for recording the message transmitted by the message transmitting means in the log memory, and a first database for storing a first database describing a processing time limit for each content of the message. And a database memory, wherein the second microcomputer transmits the message transmitted by the message transmitting unit. A message processing means for processing the message in accordance with the contents thereof, and a first identification code indicating that the message processing has been completed among the messages recorded in the log memory. Means for adding an identification code to be recorded in the log memory, a second database memory for storing a second database in which a processing time limit is described for each content of the message, and a re-data received after the second microcomputer stops operating. In response to a start signal, the electronic mail is read from the log memory, and among the read electronic mails, those which are not given the first identification code and which are within the processing time limit by referring to the second database. And a first message discriminating means for causing the message processing means to perform a process. After the second microcomputer receives the restart signal, the electronic device reads the electronic message from the log memory, and refers to the first database for the read electronic message without the first identification code. Therefore, only a message after the elapse of the processing time limit is further provided with a second message discriminating means for causing the message creating means to newly create a message.

この発明によれば、電文を受信したマイクロコンピュータが、動作停止後に受信する再起動信号に応答して、ログメモリに記憶される電文を読み出し、データベースを参照することにより未処理の電文のうち処理期限内のものに限り処理を行うとともに、電文を作成したマイクロコンピュータもログメモリに記憶される電文を読み出し、データベースを参照することにより未処理の電文のうち処理期限経過後のものについて新たな電文を作成するので、動作停止期間中に未処理であった電文のうち、そのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できる。すなわち、動作停止期間中に未処理であった電文について、適切な処理を行うことができる。   According to the present invention, the microcomputer that receives the message reads out the message stored in the log memory in response to the restart signal received after the operation is stopped, and processes the unprocessed message by referring to the database. The microcomputer that created the message reads out the message stored in the log memory and refers to the database. Of the messages that were not processed during the operation suspension period, new ones that do not hinder processing can be processed as they are, and old ones reflect the new situation after restart. The new message with the new content can be processed. That is, appropriate processing can be performed on a message that has not been processed during the operation suspension period.

請求項14に記載の発明は、請求項13に記載のマイクロコンピュータシステムであって、前記第1データベースが前記電文の内容ごとに、前記処理期限後に前記電文を新たに作成すべきか否かをさらに記述しており、前記第2電文判別手段は、前記ログメモリから読み出した前記電文のうち前記第1識別符号が付されておらず、かつ前記処理期限経過後のものについて、前記第1データベースをさらに参照することにより、新たに作成すべきものに限り、前記電文作成手段に新たに電文を作成させるものである。   The invention according to claim 14 is the microcomputer system according to claim 13, wherein the first database further determines, for each content of the message, whether the message should be newly created after the processing time limit. And the second message discriminating means stores the first database of the messages read out from the log memory without the first identification code and after the processing time limit has passed. By further referring to the above, only the message to be newly created causes the message creating means to create a new message.

この発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち処理期限経過後のものについてデータベースをさらに参照し、新たに電文を作成すべきものに限って新たに電文を作成するので、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。   According to the present invention, since the microcomputer that has created the message further refers to the database for unprocessed messages after the processing time limit and creates a new message only for those that should create a new message, In addition, it is possible to eliminate unnecessary processing of performing unnecessary processing on an unprocessed message whose processing time limit has passed.

請求項15に記載の発明は、請求項14に記載のマイクロコンピュータシステムであって、前記第2電文判別手段が、前記ログメモリから読み出した前記電文のうち前記第1識別符号が付されておらず、前記処理期限経過後のものであって、かつ新たに作成すべきものでないものを、前記電文送信手段に送信させるものである。   The invention according to claim 15 is the microcomputer system according to claim 14, wherein the second message discriminating means assigns the first identification code to the message read from the log memory. That is, the message transmission unit transmits the message after the processing time limit has expired and should not be newly created to the message transmission unit.

この発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち、処理期限経過後のものであって、かつ新たに電文を作成すべきでないものについては、その電文を再び送信するので、処理期限を経過した未処理の電文について、例えば再起動後の状況が未処理の電文の内容と変わりがない場合に、新たな電文を作成する無駄を省くことができるとともに、適切な処理を行うことができる。   According to the present invention, the microcomputer that has created the message transmits the unprocessed message again after the expiration of the processing deadline and for which a new message should not be created. Therefore, for an unprocessed message whose processing time limit has passed, for example, when the situation after restarting is the same as the content of the unprocessed message, the waste of creating a new message can be eliminated, and appropriate processing can be performed. It can be performed.

請求項16に記載の発明は、請求項13に記載のマイクロコンピュータシステムであって、前記第1マイクロコンピュータが、前記電文作成手段が作成した前記電文を前記ログメモリに記録する第2電文書込手段をさらに備え、前記第1電文書込手段は、前記第2電文書込手段が記録した前記電文のうち、前記電文送信手段による送信が終了したものについて、処理済みを示す第2識別符号を付して前記ログメモリに記録し、前記第1マイクロコンピュータは、前記第1マイクロコンピュータが動作停止した後に受信する再起動信号に応答して、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第2識別符号が付されていないものについて、前記第1データベースを参照することにより、前記処理期限内のものに限り前記電文送信手段に送信させ、前記処理期限経過後のものについては、前記電文作成手段に新たに電文を作成させる第3電文判別手段をさらに備えるものである。   The invention according to claim 16 is the microcomputer system according to claim 13, wherein the first microcomputer records the electronic message created by the electronic message creating means in the log memory. Means, wherein the first electronic document incorporation means, among the electronic messages recorded by the second electronic document incorporation means, for those which have been transmitted by the electronic message transmitting means, have a second identification code indicating that processing has been completed. The first microcomputer reads out the message from the log memory in response to a restart signal received after the first microcomputer stops operating, and records the read out message in the log memory. Of those not given the second identification code, by referring to the first database, only those within the processing time limit It is sent to the serial message transmission means, for those of after the processing time limit is to further comprise a third message determination means for creating a new message in the message creating means.

この発明によれば、電文を作成したマイクロコンピュータが、動作停止後に受信する再起動信号に応答して、ログメモリに記憶される電文を読み出し、データベースを参照することにより未処理の電文のうち処理期限内のものに限り送信を行うとともに、処理期限経過後のものについては新たな電文を作成するので、動作停止期間中に未処理であった電文のうち、受信側がそのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できる。すなわち、動作停止期間中に未送信であった電文について、受信側が適切な処理を行うことができる。   According to the present invention, the microcomputer that has created the message reads out the message stored in the log memory in response to the restart signal received after the operation is stopped, and processes the unprocessed message by referring to the database. Only messages within the deadline are sent, and new messages are created for those that have passed the processing deadline. If there is no new one, it can be processed as it is, and if it is old, a new message that reflects the new situation after the restart can be processed. That is, the receiving side can perform an appropriate process on a message that has not been transmitted during the operation suspension period.

請求項17に記載の発明は、請求項16に記載のマイクロコンピュータシステムであって、前記第1データベースが前記電文の内容ごとに、前記処理期限後に前記電文を新たに作成すべきか否かをさらに記述しており、前記第3電文判別手段は、前記ログメモリから読み出した前記電文のうち前記第2識別符号が付されておらず、かつ前記処理期限経過後のものについて、前記第1データベースをさらに参照することにより、新たに作成すべきものに限り、前記電文作成手段に新たに電文を作成させるものである。   The invention according to claim 17 is the microcomputer system according to claim 16, wherein the first database determines, for each content of the message, whether the message should be newly created after the processing time limit. And the third message discriminating means stores the first database in the message read from the log memory without the second identification code and after the processing time limit. By further referring to the above, only the message to be newly created causes the message creating means to create a new message.

この発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち処理期限経過後のものについてデータベースをさらに参照し、新たに電文を作成すべきものに限って新たに電文を作成するので、処理期限を経過した未送信の電文について受信側が不必要な処理を行う無駄を省くことができる。   According to the present invention, since the microcomputer that has created the message further refers to the database for unprocessed messages after the processing time limit and creates a new message only for those that should create a new message, In addition, it is possible to eliminate the need for the receiving side to perform unnecessary processing on an untransmitted message whose processing time limit has elapsed.

請求項18に記載の発明は、請求項17に記載のマイクロコンピュータシステムであって、前記第3電文判別手段が、前記ログメモリから読み出した前記電文のうち前記第2識別符号が付されておらず、前記処理期限経過後のものであって、かつ新たに作成すべきものでないものを、前記電文送信手段に送信させるものである。   The invention according to claim 18 is the microcomputer system according to claim 17, wherein the third message discriminating means assigns the second identification code to the message read from the log memory. That is, the message transmission unit transmits the message after the processing time limit has expired and should not be newly created to the message transmission unit.

この発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち、処理期限経過後のものであって、かつ新たに電文を作成すべきでないものについては、その電文を再び送信するので、処理期限を経過した未処理の電文について、例えば再起動後の状況が未処理の電文の内容と変わりがない場合に、新たな電文を作成する無駄を省くことができるとともに、受信側が適切な処理を行うことができる。   According to the present invention, the microcomputer that has created the message transmits the unprocessed message again after the expiration of the processing deadline and for which a new message should not be created. Therefore, for an unprocessed message whose processing time limit has passed, for example, when the situation after restarting does not differ from the content of the unprocessed message, it is possible to eliminate wasteful creation of a new message, and to ensure that the receiving side is appropriate. Processing can be performed.

請求項19に記載の発明は、請求項13ないし18の何れかに記載のマイクロコンピュータシステムであって、前記複数のマイクロコンピュータが、互いの間で電文を通信する親マイクロコンピュータと複数の子マイクロコンピュータとを含んでおり、前記複数の子マイクロコンピュータの間での前記電文の通信は、前記親マイクロコンピュータを中継して行われ、前記第1マイクロコンピュータは、前記複数の子マイクロコンピュータの一であり、前記第2マイクロコンピュータは、前記親マイクロコンピュータであるというものである。   The invention according to claim 19 is the microcomputer system according to any one of claims 13 to 18, wherein the plurality of microcomputers communicate with each other by a parent microcomputer and a plurality of child microcomputers. And the communication of the message between the plurality of child microcomputers is performed by relaying the parent microcomputer, and the first microcomputer is one of the plurality of child microcomputers. And the second microcomputer is the parent microcomputer.

この発明によれば、親マイクロコンピュータと複数の子マイクロコンピュータとを含むマイクロコンピュータシステムについて、親マイクロコンピュータが動作停止期間中に未処理であった電文について、適切な処理を行うことができる。   According to the present invention, for a microcomputer system including a parent microcomputer and a plurality of child microcomputers, appropriate processing can be performed on a message that has not been processed by the parent microcomputer during the operation suspension period.

請求項20に記載の発明は、請求項13ないし18の何れかに記載のマイクロコンピュータシステムであって、前記複数のマイクロコンピュータが、互いの間で電文を通信する親マイクロコンピュータと複数の子マイクロコンピュータとを含んでおり、前記複数の子マイクロコンピュータの間での前記電文の通信は、前記親マイクロコンピュータを中継して行われ、前記第1マイクロコンピュータは、前記複数の子マイクロコンピュータの一であり、前記第2マイクロコンピュータは、前記複数の子マイクロコンピュータの別の一であるというものである。   According to a twentieth aspect of the present invention, in the microcomputer system according to any one of the thirteenth to eighteenth aspects, the plurality of microcomputers communicate with each other by a parent microcomputer and a plurality of child microcomputers. And the communication of the message between the plurality of child microcomputers is performed by relaying the parent microcomputer, and the first microcomputer is one of the plurality of child microcomputers. And the second microcomputer is another one of the plurality of child microcomputers.

この発明によれば、親マイクロコンピュータと複数の子マイクロコンピュータとを含むマイクロコンピュータシステムについて、複数の子マイクロコンピュータの一つが動作停止期間中に未処理であった電文について、適切な処理を行うことができる。   According to the present invention, for a microcomputer system including a parent microcomputer and a plurality of child microcomputers, one of the plurality of child microcomputers performs appropriate processing on a message that has not been processed during the operation suspension period. Can be.

請求項21に記載の発明は、請求項19または20に記載のマイクロコンピュータシステムであって、前記複数の子マイクロコンピュータのうちの少なくとも1が、前記親マイクロコンピュータの動作を監視し、前記親マイクロコンピュータが動作を停止すると前記再起動信号を前記親マイクロコンピュータへ送信するものである。   The invention according to claim 21 is the microcomputer system according to claim 19 or 20, wherein at least one of the plurality of child microcomputers monitors an operation of the parent microcomputer, and When the computer stops operating, the restart signal is transmitted to the parent microcomputer.

この発明によれば、子マイクロコンピュータが親マイクロコンピュータの動作を監視し、親マイクロコンピュータが動作停止すると再起動信号を親マイクロコンピュータへ送信するので、動作停止期間を短くすることができるとともに、動作を監視する装置を別途に設ける必要がなく、マイクロコンピュータシステムを低廉に構成することができる。   According to the present invention, the child microcomputer monitors the operation of the parent microcomputer, and when the parent microcomputer stops operating, transmits a restart signal to the parent microcomputer. There is no need to provide a separate device for monitoring the microcomputer, and the microcomputer system can be configured at low cost.

請求項22に記載の発明は、請求項19ないし21のいずれかに記載のマイクロコンピュータシステムであって、前記親マイクロコンピュータが、前記複数の子マイクロコンピュータの動作を監視し、前記複数の子マイクロコンピュータの何れかが動作を停止すると、動作を停止した前記子マイクロコンピュータへ前記再起動信号を送信するものである。   The invention according to claim 22 is the microcomputer system according to any one of claims 19 to 21, wherein the parent microcomputer monitors operations of the plurality of child microcomputers, and When one of the computers stops operating, the restart signal is transmitted to the child microcomputer that has stopped operating.

この発明によれば、親マイクロコンピュータが各子マイクロコンピュータの動作を監視し、子マイクロコンピュータが動作停止すると再起動信号を子マイクロコンピュータへ送信するので、動作停止期間を短くすることができるとともに、動作を監視する装置を別途に設ける必要がなく、マイクロコンピュータシステムを低廉に構成することができる。   According to the present invention, the parent microcomputer monitors the operation of each child microcomputer, and transmits a restart signal to the child microcomputer when the child microcomputer stops operating, so that the operation stop period can be shortened, There is no need to separately provide a device for monitoring the operation, and the microcomputer system can be configured at low cost.

請求項23に記載の発明は家電機器であって、請求項13ないし22のいずれかに記載のマイクロコンピュータシステムを備えるものである。   According to a twenty-third aspect of the present invention, there is provided a household electrical appliance, comprising the microcomputer system according to any one of the thirteenth to twenty-second aspects.

この発明によれば、家電機器が本願発明によるマイクロコンピュータシステムを備えるので、動作停止期間中に未処理であった電文のうち、そのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できるという有用な家電機器が得られる。   According to the present invention, since the home electric appliance includes the microcomputer system according to the present invention, among the unprocessed telegrams during the operation stop period, new ones that do not hinder the processing can be processed as they are, For the old one, a useful home electric appliance can be obtained that can process a new message reflecting the new situation after the restart.

請求項24に記載の発明は、互いの間で電文を通信する複数のマイクロコンピュータと、前記複数のマイクロコンピュータの何れもが読み書き可能なログメモリと、を備えるマイクロコンピュータシステムのためのマイクロコンピュータシステム用プログラムであって、前記複数のマイクロコンピュータの一である第1マイクロコンピュータを、前記電文を作成する電文作成手段と、前記電文作成手段が作成した前記電文を、前記複数のマイクロコンピュータの別の一である第2マイクロコンピュータへ送信する電文送信手段と、前記電文送信手段が送信する前記電文を前記ログメモリに記録する第1電文書込手段と、前記電文の内容ごとに処理期限を記述した第1データベースを記憶する第1データベースメモリとして機能させ、前記第2マイクロコンピュータを、前記電文送信手段が送信した前記電文を、その内容に応じて処理する電文処理手段と、前記ログメモリに記録された前記電文のうち前記電文処理手段による処理が終了したものについて、処理済みを示す第1識別符号を付して前記ログメモリへ記録する識別符号付加手段と、前記電文の内容ごとに処理期限を記述した第2データベースを記憶する第2データベースメモリと、前記第2マイクロコンピュータが動作停止した後に受信する再起動信号に応答して、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第2データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に処理をさせる第1電文判別手段として機能させ、前記第1マイクロコンピュータを、前記第2マイクロコンピュータが前記再起動信号を受信した後に、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第1データベースを参照することにより、前記処理期限経過後のものに限り、前記電文作成手段に新たに電文を作成させる第2電文判別手段としてさらに機能させるものである。   25. A microcomputer system for a microcomputer system comprising: a plurality of microcomputers for communicating electronic messages among each other; and a log memory readable and writable by any of the plurality of microcomputers. A first microcomputer which is one of the plurality of microcomputers, a message creating means for creating the message, and the message created by the message creating means, A message transmitting unit for transmitting the message to the second microcomputer, a first message recording unit for recording the message transmitted by the message transmitting unit in the log memory, and a processing expiration date is described for each content of the message. Functioning as a first database memory for storing a first database; The microcomputer, a message processing unit that processes the message transmitted by the message transmission unit in accordance with the content thereof, and a message that has been processed by the message processing unit among the messages recorded in the log memory, An identification code adding unit that adds a first identification code indicating that processing has been completed to the log memory and records the same in the log memory; a second database memory that stores a second database that describes a processing time limit for each content of the message; In response to a restart signal received after the microcomputer has stopped operating, read out the message from the log memory, and for the read out message not having the first identification code, read the second database. As a first message discriminating means that causes the message processing means to perform processing only for those within the processing time limit by reference. And causing the first microcomputer to read the message from the log memory after the second microcomputer receives the restart signal, and read the message without the first identification code. By referring to the first database, only the data after the processing time limit has passed is further made to function as a second message discriminating means for causing the message creating means to newly create a message.

この発明によれば、第1および第2マイクロコンピュータが上記の各手段として機能するので、動作停止期間中に未処理であった電文のうち、そのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できるという有用なマイクロコンピュータシステムが得られる。   According to the present invention, since the first and second microcomputers function as the above-described units, among the messages that have not been processed during the operation suspension period, new ones that do not hinder the processing can be used as they are. A useful microcomputer system can be obtained that can process and, for old ones, can process new messages that reflect the new situation after the restart.

請求項1に記載の発明によれば、動作停止後に受信する再起動信号に応答して、電文記憶手段に記憶される電文が読み出され、判別データベース記憶手段に記憶されるデータベースを参照することにより、未処理の電文のうち処理期限内のものに限り処理が行われるので、動作停止期間中に未処理であった電文を処理できるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。   According to the first aspect of the present invention, in response to the restart signal received after the operation is stopped, the telegram stored in the telegram storage unit is read, and the database stored in the discrimination database storage unit is referred to. As a result, only the unprocessed messages within the processing time limit are processed, so that the unprocessed messages during the operation suspension period can be processed, and unnecessary processing of the unprocessed messages after the processing time limit is performed. Waste of processing can be eliminated.

請求項2に記載の発明によれば、動作停止によって処理期限を経過した未処理の電文について、データベースを参照することにより、新たに作成すべきものについてのみ、新たに電文が作成されるので、処理期限を経過した電文に代えて再起動後の新たな状況を反映した新たな電文を処理できるとともに、不必要な処理を行う無駄を省くことができる。   According to the second aspect of the present invention, for unprocessed messages that have passed the processing deadline due to the suspension of operation, by referring to the database, only new messages to be newly created are newly created. It is possible to process a new message reflecting the new situation after the restart in place of the expired message, and to avoid waste of unnecessary processing.

請求項3に記載の発明によれば、動作停止後に通信部が受信する再起動信号に応答して、電文記憶手段に記憶される電文が読み出され、判別データベース記憶手段に記憶されるデータベースを参照することにより、未処理の電文のうち処理期限内のものに限り送信処理が行われるので、通信部の動作停止期間中に未送信であった電文を送信することができるとともに、処理期限を経過した未処理の電文について不必要な送信を行う無駄を省くことができる。さらに、プロトコル変換機能を有する部分であって多様な機器制御装置の間で共通の機能を持つ通信部が、制御部から分離されているので、多様な機器に対応した多様な機器制御装置の全体的な設計コストの低減を図ることができる。   According to the third aspect of the present invention, in response to the restart signal received by the communication unit after the operation is stopped, the message stored in the message storage unit is read, and the database stored in the determination database storage unit is read. By referring, the transmission processing is performed only for the unprocessed messages within the processing time limit, so that the messages that have not been transmitted during the operation stop period of the communication unit can be transmitted, and the processing time limit is set. It is possible to eliminate unnecessary transmission of unnecessary transmitted messages that have passed. Furthermore, since a communication unit that has a protocol conversion function and has a common function among various device control devices is separated from the control unit, a variety of device control devices corresponding to various devices can be used as a whole. The design cost can be reduced.

請求項4に記載の発明によれば、第1電文のうち、データ要求を内容とするものについては、制御部が送信するデータにもとづいて、制御部に代わって通信部が、データ要求に対する応答としての第3電文を作成し、さらに送信するので、比較的大きい制御部の負担を通信部が分担することにより軽減するとともに、データ要求への即答性を高めることができる。   According to the fourth aspect of the present invention, among the first telegrams, those having a data request as a content, the communication unit, instead of the control unit, responds to the data request based on the data transmitted by the control unit. Since the third message is created and further transmitted, the burden on the relatively large control unit can be reduced by the sharing of the communication unit, and the responsiveness to the data request can be improved.

請求項5に記載の発明によれば、通信部の動作停止によって処理期限を経過した未処理の第3電文について、データベースを参照することにより、新たに作成すべきものについてのみ新たに作成されるので、処理期限を経過した第3電文に代えて再起動後の新たな状況を反映した第3電文を送信できるとともに、不必要な送信を行う無駄を省くことができる。   According to the fifth aspect of the present invention, the unprocessed third telegram which has passed the processing time limit due to the stoppage of the operation of the communication unit is newly created only for what should be newly created by referring to the database. In addition, the third message reflecting the new situation after the restart can be transmitted instead of the third message after the processing time limit, and unnecessary waste of unnecessary transmission can be eliminated.

請求項6に記載の発明によれば、第3電文だけでなく第2電文についても、未処理であって処理期限が経過しかつ新たに作成すべきものについては、第3電文として新たに作成され送信されるので、処理期限を経過した未処理の第2電文に代えて再起動後の新たな状況を反映した新たな電文を送信できるとともに、不必要な送信を行う無駄を省くことができる。   According to the invention described in claim 6, not only the third telegram but also the second telegram which has not been processed, the processing time limit has elapsed, and should be newly generated, is newly generated as the third telegram. Since the message is transmitted, a new message reflecting the new situation after the restart can be transmitted in place of the unprocessed second message after the processing time limit, and unnecessary waste of unnecessary transmission can be eliminated.

請求項7に記載の発明によれば、制御部が通信部の動作を監視し、通信部が動作停止すると再起動信号を通信部へ送信するので、動作停止期間を短くすることができる。したがってこの発明は、冷蔵庫にように長時間の冷却動作停止が許されない装置、さらにセキュリティ装置(不審者を感知する人体センサ、火災を感知するセンサなど)のように短時間の動作停止も許されないものへの利用にも好適である。さらに、動作を監視する装置を別途に設ける必要がなく、機器制御装置を低廉に構成することができる。   According to the invention described in claim 7, the control unit monitors the operation of the communication unit, and when the communication unit stops operating, transmits a restart signal to the communication unit, so that the operation stop period can be shortened. Therefore, according to the present invention, a device in which cooling operation cannot be stopped for a long time, such as a refrigerator, and a short-time operation stop, such as a security device (a human body sensor for detecting a suspicious individual, a sensor for detecting a fire, etc.), are not allowed. It is also suitable for use in things. Further, there is no need to separately provide a device for monitoring the operation, and the device control device can be configured at low cost.

請求項8に記載の発明によれば、動作停止後に制御部が受信する再起動信号に応答して、電文記憶手段に記憶される電文が読み出され、判別データベース記憶手段に記憶されるデータベースを参照することにより、未処理の電文のうち処理期限内のものに限り制御および送信の処理が行われるので、制御部の動作停止期間中に未処理であった電文を処理することができるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。さらに、プロトコル変換機能を有する部分であって多様な機器制御装置の間で共通の機能を持つ通信部が、制御部から分離されているので、多様な機器に対応した多様な機器制御装置の全体的な設計コストの低減を図ることができる。   According to the invention described in claim 8, in response to the restart signal received by the control unit after the operation is stopped, the telegram stored in the telegram storage unit is read, and the database stored in the discrimination database storage unit is read. By referencing, since the control and transmission processing is performed only for the unprocessed messages within the processing time limit, the unprocessed messages during the operation stop period of the control unit can be processed, It is possible to eliminate unnecessary processing of performing unnecessary processing on an unprocessed message whose processing period has passed. Furthermore, since a communication unit that has a protocol conversion function and has a common function among various device control devices is separated from the control unit, a variety of device control devices corresponding to various devices can be used as a whole. The design cost can be reduced.

請求項9に記載の発明によれば、制御部の動作停止によって処理期限を経過した未処理の第2電文について、データベースを参照することにより、新たに作成すべきものについてのみ新たに作成されるので、処理期限を経過した第2電文に代えて再起動後の新たな状況を反映した第2電文を送信できるとともに、不必要な送信を行う無駄を省くことができる。   According to the ninth aspect of the present invention, the unprocessed second telegram which has passed the processing deadline due to the stop of the operation of the control unit is newly created only for what should be newly created by referring to the database. In addition, the second message reflecting the new situation after the restart can be transmitted in place of the second message after the processing time limit, and unnecessary transmission of unnecessary transmission can be eliminated.

請求項10に記載の発明によれば、通信部が制御部の動作を監視し、制御部が動作停止すると再起動信号を制御部へ送信するので、動作停止期間を短くすることができる。したがってこの発明は、冷蔵庫にように長時間の冷却動作停止が許されない装置、さらにセキュリティ装置(不審者を感知する人体センサ、火災を感知するセンサなど)のように短時間の動作停止も許されないものへの利用にも好適である。さらに、動作を監視する装置を別途に設ける必要がなく、機器制御装置を低廉に構成することができる。   According to the tenth aspect, the communication unit monitors the operation of the control unit, and when the control unit stops operating, transmits a restart signal to the control unit. Therefore, the operation stop period can be shortened. Therefore, according to the present invention, a device in which cooling operation cannot be stopped for a long time, such as a refrigerator, and a short-time operation stop, such as a security device (a human body sensor for detecting a suspicious individual, a sensor for detecting a fire, etc.), are not allowed. It is also suitable for use in things. Further, there is no need to separately provide a device for monitoring the operation, and the device control device can be configured at low cost.

請求項11に記載の発明によれば、家電機器が本願発明による電文処理装置または機器制御装置を備えるので、動作停止期間中に未処理であった電文を処理できるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができるという有用な家電機器が得られる。   According to the eleventh aspect of the present invention, since the home electric appliance is provided with the message processing device or the device control device according to the present invention, it is possible to process a message that has not been processed during the operation suspension period, and to process a message that has not passed the processing time limit. A useful home appliance that can eliminate waste of unnecessary processing of a processing message can be obtained.

請求項12に記載の発明によれば、動作停止期間中に未処理であった電文を処理できるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができるという有用な電文処理装置が得られる。   According to the twelfth aspect of the present invention, it is possible to process a message that has not been processed during the operation suspension period, and it is possible to eliminate waste of performing unnecessary processing on an unprocessed message that has passed the processing time limit. A useful message processing device is obtained.

請求項13に記載の発明によれば、電文を受信したマイクロコンピュータが、動作停止後に受信する再起動信号に応答して、ログメモリに記憶される電文を読み出し、データベースを参照することにより未処理の電文のうち処理期限内のものに限り処理を行うとともに、電文を作成したマイクロコンピュータもログメモリに記憶される電文を読み出し、データベースを参照することにより未処理の電文のうち処理期限経過後のものについて新たな電文を作成するので、動作停止期間中に未処理であった電文のうち、そのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できる。すなわち、動作停止期間中に未処理であった電文について、適切な処理を行うことができる。   According to the thirteenth aspect, the microcomputer that has received the message reads the message stored in the log memory in response to the restart signal received after the operation is stopped, and refers to the database to perform the unprocessed process. Of the unprocessed messages, the microcomputer that created the message reads out the message stored in the log memory, and refers to the database. Since a new message is created for the message, of the messages that were not processed during the operation suspension period, new messages that do not hinder processing can be processed as they are, and old messages can be processed after restart. It can process messages with new contents reflecting new situations. That is, appropriate processing can be performed on a message that has not been processed during the operation suspension period.

請求項14に記載の発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち処理期限経過後のものについてデータベースをさらに参照し、新たに電文を作成すべきものに限って新たに電文を作成するので、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。   According to the invention as set forth in claim 14, the microcomputer that has created the message further refers to the database for unprocessed messages after the processing time limit, and newly creates a message only for a message to be newly created. Since the message is created, it is possible to eliminate unnecessary processing of performing unnecessary processing on an unprocessed message whose processing time limit has passed.

請求項15に記載の発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち、処理期限経過後のものであって、かつ新たに電文を作成すべきでないものについては、その電文を再び送信するので、処理期限を経過した未処理の電文について、例えば再起動後の状況が未処理の電文の内容と変わりがない場合に、新たな電文を作成する無駄を省くことができるとともに、適切な処理を行うことができる。   According to the invention as set forth in claim 15, the microcomputer that has created the message, among the unprocessed messages, after the processing time limit has expired and for which a new message should not be created, Since the message is transmitted again, it is possible to eliminate the waste of creating a new message for an unprocessed message whose processing time limit has passed, for example, when the status after restarting is the same as the content of the unprocessed message. In addition, appropriate processing can be performed.

請求項16に記載の発明によれば、電文を作成したマイクロコンピュータが、動作停止後に受信する再起動信号に応答して、ログメモリに記憶される電文を読み出し、データベースを参照することにより未処理の電文のうち処理期限内のものに限り送信を行うとともに、処理期限経過後のものについては新たな電文を作成するので、動作停止期間中に未処理であった電文のうち、受信側がそのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できる。すなわち、動作停止期間中に未送信であった電文について、受信側が適切な処理を行うことができる。   According to the invention described in claim 16, the microcomputer that has created the message reads the message stored in the log memory in response to the restart signal received after the operation is stopped, and refers to the database to perform the unprocessed process. Only messages that are within the processing deadline are sent, and new messages are created for those that have passed the processing deadline. Even if there is no problem, new messages can be processed as they are, and old ones can be processed with new contents reflecting the new situation after the restart. That is, the receiving side can perform an appropriate process on a message that has not been transmitted during the operation suspension period.

請求項17に記載の発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち処理期限経過後のものについてデータベースをさらに参照し、新たに電文を作成すべきものに限って新たに電文を作成するので、処理期限を経過した未送信の電文について受信側が不必要な処理を行う無駄を省くことができる。   According to the seventeenth aspect of the present invention, the microcomputer that has created the message further refers to the database for unprocessed messages after the processing time limit has expired, and newly selects only those for which a new message should be created. Since the electronic message is created, it is possible to eliminate waste of the receiving side performing unnecessary processing on the untransmitted electronic message whose processing time limit has elapsed.

請求項18に記載の発明によれば、電文を作成したマイクロコンピュータが、未処理の電文のうち、処理期限経過後のものであって、かつ新たに電文を作成すべきでないものについては、その電文を再び送信するので、処理期限を経過した未処理の電文について、例えば再起動後の状況が未処理の電文の内容と変わりがない場合に、新たな電文を作成する無駄を省くことができるとともに、受信側が適切な処理を行うことができる。   According to the invention as set forth in claim 18, the microcomputer that has created the message, among the unprocessed messages, after the expiration of the processing deadline and for which a new message should not be created, Since the message is transmitted again, it is possible to eliminate the waste of creating a new message for an unprocessed message whose processing time limit has passed, for example, when the status after restarting is the same as the content of the unprocessed message. At the same time, the receiving side can perform appropriate processing.

請求項19に記載の発明によれば、親マイクロコンピュータと複数の子マイクロコンピュータとを含むマイクロコンピュータシステムについて、親マイクロコンピュータが動作停止期間中に未処理であった電文について、適切な処理を行うことができる。   According to the invention described in claim 19, for a microcomputer system including a parent microcomputer and a plurality of child microcomputers, the parent microcomputer performs appropriate processing on a message that has not been processed during the operation suspension period. be able to.

請求項20に記載の発明によれば、親マイクロコンピュータと複数の子マイクロコンピュータとを含むマイクロコンピュータシステムについて、複数の子マイクロコンピュータの一つが動作停止期間中に未処理であった電文について、適切な処理を行うことができる。   According to the twentieth aspect, for a microcomputer system including a parent microcomputer and a plurality of child microcomputers, it is possible to appropriately handle a message in which one of the plurality of child microcomputers has not been processed during the operation suspension period. Processing can be performed.

請求項21に記載の発明によれば、子マイクロコンピュータが親マイクロコンピュータの動作を監視し、親マイクロコンピュータが動作停止すると再起動信号を親マイクロコンピュータへ送信するので、動作停止期間を短くすることができるとともに、動作を監視する装置を別途に設ける必要がなく、マイクロコンピュータシステムを低廉に構成することができる。   According to the invention described in claim 21, the child microcomputer monitors the operation of the parent microcomputer, and transmits a restart signal to the parent microcomputer when the parent microcomputer stops operating, so that the operation suspension period is shortened. In addition, it is not necessary to separately provide a device for monitoring the operation, and the microcomputer system can be configured at low cost.

請求項22に記載によれば、親マイクロコンピュータが各子マイクロコンピュータの動作を監視し、子マイクロコンピュータが動作停止すると再起動信号を子マイクロコンピュータへ送信するので、動作停止期間を短くすることができるとともに、動作を監視する装置を別途に設ける必要がなく、マイクロコンピュータシステムを低廉に構成することができる。   According to claim 22, the parent microcomputer monitors the operation of each child microcomputer, and when the child microcomputer stops operating, sends a restart signal to the child microcomputer, so that the operation stop period can be shortened. In addition to this, there is no need to separately provide a device for monitoring the operation, and the microcomputer system can be configured at low cost.

請求項23に記載の発明によれば、家電機器が本願発明によるマイクロコンピュータシステムを備えるので、動作停止期間中に未処理であった電文のうち、そのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できるという有用な家電機器が得られる。   According to the invention described in claim 23, since the home electric appliance is provided with the microcomputer system according to the present invention, among the unprocessed telegrams during the operation stop period, new telegrams that do not hinder processing as they are can be used. A useful home electric appliance can be obtained that can process the message as it is, and can process a message of new content that reflects a new situation after restarting the old one.

請求項24に記載によれば、第1および第2マイクロコンピュータが上記の各手段として機能するので、動作停止期間中に未処理であった電文のうち、そのまま処理しても支障のない新しいものについてはそのまま処理できるとともに、古いものについては、再起動後の新たな状況を反映した新たな内容の電文を処理できるという有用なマイクロコンピュータシステムが得られる。   According to the twenty-fourth aspect, since the first and second microcomputers function as each of the above means, a new one which has not been harmed even if it has been processed as it is during the operation suspension period. Can be processed as it is, and the old one can process a message with new contents reflecting a new situation after the restart, thereby obtaining a useful microcomputer system.

[実施の形態1〜3の概略]
図1は、本発明の実施の形態による電文処理装置のハードウェア構成を示すブロック図である。電文処理装置100は、外部と電文をやり取りすることにより処理を行う装置であり、後述する機器制御装置の通信部あるいは制御部はその好ましい適用例に該当する。電文処理装置100は、CPU1、プログラムメモリ2、電文メモリ(電文記憶部)3および判別データベースメモリ(判別データベース記憶部)4を備えている。CPU1は、自身と外部5との間で電文6をやり取りするとともに、電文メモリ3および判別データベースメモリ4と協働して様々な処理を行う。プログラムメモリ2は、CPU1の動作を規定するプログラムを記憶する。電文メモリ3は、受信した電文6または作成した電文6を記憶する。判別データベースメモリ4は、CPU1が動作停止したときに外部の再起動装置7から送られる再起動信号8に応答して、CPU1が再起動したときに、電文メモリ3に滞留している未処理の電文6について、処理すべきか否かについての判断基準を提供するデータベースを記憶する。電文メモリ3および判別データベースメモリ4はいずれも、CPU1の再起動にともなって記憶内容が消去されないアドレスが割り当てられている。したがって、電文メモリ3に記憶される電文6および判別データベースメモリ4に記憶されるデータベースは、CPU1の再起動にともなって消失しない。
[Outline of Embodiments 1 to 3]
FIG. 1 is a block diagram illustrating a hardware configuration of a message processing device according to an embodiment of the present invention. The message processing device 100 is a device that performs processing by exchanging messages with the outside, and a communication unit or a control unit of a device control device described below corresponds to a preferable application example. The message processing device 100 includes a CPU 1, a program memory 2, a message memory (message storage unit) 3, and a determination database memory (discrimination database storage unit) 4. The CPU 1 exchanges messages 6 between itself and the outside 5 and performs various processes in cooperation with the message memory 3 and the discrimination database memory 4. The program memory 2 stores a program that defines the operation of the CPU 1. The message memory 3 stores the received message 6 or the created message 6. In response to the restart signal 8 sent from the external restart device 7 when the CPU 1 stops operating, the discrimination database memory 4 stores the unprocessed data stored in the message memory 3 when the CPU 1 restarts. A database for providing a criterion for determining whether to process the message 6 is stored. Both the message memory 3 and the discrimination database memory 4 are assigned addresses at which stored contents are not erased when the CPU 1 is restarted. Therefore, the message 6 stored in the message memory 3 and the database stored in the discrimination database memory 4 do not disappear when the CPU 1 is restarted.

図2は、電文処理装置100の機能にもとづくブロック図である。CPU1およびプログラムメモリ2は、電文メモリ3および判別データベースメモリ4と協働することにより、図2に描かれる電文処理装置100を実現する。なお、図2のように構成される電文処理装置100は、プログラムを用いることなくハードウェアで構成しても良い。   FIG. 2 is a block diagram based on the functions of the message processing device 100. The CPU 1 and the program memory 2 implement the message processing device 100 illustrated in FIG. 2 by cooperating with the message memory 3 and the discrimination database memory 4. The message processing device 100 configured as shown in FIG. 2 may be configured by hardware without using a program.

電文処理装置100の各部の詳細な機能については、その好ましい適用例である各実施の形態の説明の中で後述することとし、ここでは概略のみを説明する。電文受信部11は、外部から送信された電文6を受信する。電文作成部12は電文を作成する。電文発生部10は、電文受信部11と電文作成部12とのうち、少なくとも一つを備えている。電文発生部10が受信した電文6または電文作成部12が作成した電文6は、電文メモリ3に記憶される。電文送信部16は、電文メモリ3に記憶される電文6を読み出し、外部へ送信する。内部処理部17は、電文メモリ3に記憶される電文6を読み出し、読み出した電文6にもとづいて内部処理(例えば機器の制御)を行う。   The detailed functions of each unit of the message processing device 100 will be described later in the description of each embodiment which is a preferable application example, and only the outline will be described here. The message receiving unit 11 receives the message 6 transmitted from the outside. The message creation unit 12 creates a message. The message generating unit 10 includes at least one of a message receiving unit 11 and a message creating unit 12. The message 6 received by the message generator 10 or the message 6 created by the message creator 12 is stored in the message memory 3. The message transmission unit 16 reads the message 6 stored in the message memory 3 and transmits the message to the outside. The internal processing unit 17 reads the electronic message 6 stored in the electronic message memory 3 and performs internal processing (for example, device control) based on the read electronic message 6.

電文6の発生および処理の形態として、作成された電文6の外部5への送信、受信した電文6の外部5への送信、受信した電文6にもとづく機器の制御などの内部処理があり得る。したがって電文発生部10が電文受信部11を備えるときには、電文処理部15は電文送信部16と内部処理部17とのうち少なくとも一方を備えている。また電文発生部10が電文作成部12を備えるときには、電文処理部15は電文送信部16を備えている。電文処理部15が電文送信部16と内部処理部17との双方を備え、電文6の内容に応じていずれかによる処理を択一的に行っても良い。   As a form of generation and processing of the message 6, there may be internal processing such as transmission of the created message 6 to the outside 5, transmission of the received message 6 to the outside 5, control of a device based on the received message 6, and the like. Therefore, when the message generating unit 10 includes the message receiving unit 11, the message processing unit 15 includes at least one of the message transmitting unit 16 and the internal processing unit 17. When the message generator 10 includes the message generator 12, the message processor 15 includes the message transmitter 16. The message processing unit 15 may include both the message transmission unit 16 and the internal processing unit 17, and may perform one of the processes according to the content of the message 6.

CPU1は各種の処理を行うものであるため、電文メモリ3に電文6が記憶された後に、電文処理部15が電文6を電文メモリ3から読み取るまでには、通常において待ち時間が発生する。したがってCPU1が動作停止すると、待ち時間未経過のため未処理のままであった電文6が、電文メモリ3に滞留することとなる。電文処理装置100は、未処理の滞留電文を以下のように処理する。なおCPU1が動作停止すると、電文メモリ3および判別データベースメモリ4を含めて電文処理装置100が動作停止する。   Since the CPU 1 performs various processes, after the message 6 is stored in the message memory 3, a waiting time usually occurs until the message processing unit 15 reads the message 6 from the message memory 3. Therefore, when the operation of the CPU 1 is stopped, the telegram 6 which has not been processed because the waiting time has not elapsed has stayed in the telegram memory 3. The message processing device 100 processes an unprocessed staying message in the following manner. When the operation of the CPU 1 is stopped, the operation of the message processing device 100 including the message memory 3 and the discrimination database memory 4 is stopped.

識別符号付加部18は、電文メモリ3に記憶される電文6について、電文処理部15による処理が終了すると、処理済みを示す識別符号を付して電文メモリ3に記録する。判別データベースメモリ4が記憶するデータベースは、各電文6の内容ごとに処理する意義のある期限、すなわち処理期限を記述している。動作停止した後に外部から入力される再起動信号8に応答して、電文判別部20は電文6を電文記憶部から読み出し、読み出した電文6のうち識別符号が付されていないものについて、前記データベースを参照することにより処理期限内のものに限り、電文処理部15に処理をさせる。したがって電文処理装置100では、動作停止期間中に未処理であった電文6を、再起動後に処理できるとともに、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。   When the processing by the message processing unit 15 is completed for the message 6 stored in the message memory 3, the identification code adding unit 18 attaches an identification code indicating that processing has been completed, and records the message in the message memory 3. The database stored in the discrimination database memory 4 describes a meaningful time limit for processing for each content of each message 6, that is, a processing time limit. In response to the restart signal 8 input from the outside after the operation is stopped, the message discrimination unit 20 reads the message 6 from the message storage unit. And causes the message processing unit 15 to perform processing only for those within the processing time limit. Therefore, the message processing device 100 can process the message 6 that has not been processed during the operation suspension period after the restart, and can also eliminate waste of performing unnecessary processing on the unprocessed message that has passed the processing time limit. .

[実施の形態1]
(機器制御装置の概略)
図3は、本発明の実施の形態1による機器制御装置のハードウェア構成を示すブロック図である。以下において、機器制御装置101が冷蔵庫201に適用された例について説明する。機器制御装置101は、制御部102および通信部103を備えている。制御部102は、通信回線Lを通じてコントローラ110および他の家電機器111と電文6をやり取りすることにより、冷却器105や温度センサ106その他の機器の制御を行う。通信部103は制御部102と通信回線Lとに介在して、これら双方に整合するよう電文6のプロトコル変換を行うことを主目的とする装置部分である。機器制御装置101では、通信部103が既述の電文処理装置100の一例に該当する。通信回線Lは、例えばECHONET(エコーネット)規格にもとづく設備系ネットワークである。通信回線Lの通信媒体は有線に限らず、例えば無線であってもよい。無線の例として、特小無線あるいはBluetoothを採用可能である。なお、通信回線Lが仮にECHONET規格にもとづくものであっても、機器制御装置101の内部の通信については、当該規格にしたがう必要はない。
[Embodiment 1]
(Outline of equipment control device)
FIG. 3 is a block diagram illustrating a hardware configuration of the device control device according to the first embodiment of the present invention. Hereinafter, an example in which the device control apparatus 101 is applied to the refrigerator 201 will be described. The device control device 101 includes a control unit 102 and a communication unit 103. The control unit 102 controls the cooler 105, the temperature sensor 106, and other devices by exchanging messages 6 with the controller 110 and other home appliances 111 via the communication line L. The communication section 103 is an apparatus section interposed between the control section 102 and the communication line L and mainly performing protocol conversion of the message 6 so as to match both of them. In the device control apparatus 101, the communication unit 103 corresponds to an example of the above-described message processing apparatus 100. The communication line L is a facility network based on, for example, the ECHONET (Echo Net) standard. The communication medium of the communication line L is not limited to a wire, and may be, for example, wireless. As an example of wireless communication, special wireless communication or Bluetooth can be adopted. Note that even if the communication line L is based on the ECHONET standard, it is not necessary for the communication inside the device control apparatus 101 to follow the standard.

通信部103はCPU1a、プログラムメモリ2a、電文メモリ(電文記憶部)3aおよび判別データベースメモリ(判別データベース記憶部)4aを備えている。これらは電文処理装置100(図1)が備えるCPU1、プログラムメモリ2、電文メモリ3および判別データベースメモリ4の一例に各々該当する。すなわちCPU1aは、自身と通信回線Lとの間および自身と制御部102との間で電文6をやり取りするとともに、電文メモリ3aおよび判別データベースメモリ4aと協働して様々な処理を行う。プログラムメモリ2aは、CPU1aの動作を規定するプログラムを記憶する。電文メモリ3aは、受信した電文6または作成した電文6を記憶する。判別データベースメモリ4aは、CPU1aが動作停止することにより制御部102から送られる再起動信号8に応答してCPU1aが再起動したときに、電文メモリ3aに滞留している未処理の電文6の処理に関する判断基準を記述したデータベースを記憶する。電文メモリ3aおよび判別データベースメモリ4aはいずれも、CPU1aの再起動にともなって記憶内容が消去されないアドレスが割り当てられている。なお、CPU1aの動作停止の原因としては、通信回線Lを通じて送られる電文6のエラーや、機器制御装置101の内部の処理に由来するものがあり得る。   The communication unit 103 includes a CPU 1a, a program memory 2a, a message memory (message storage unit) 3a, and a discrimination database memory (discrimination database storage unit) 4a. These correspond to examples of the CPU 1, the program memory 2, the message memory 3, and the discrimination database memory 4 included in the message processing device 100 (FIG. 1). That is, the CPU 1a exchanges messages 6 between itself and the communication line L and between itself and the control unit 102, and performs various processes in cooperation with the message memory 3a and the discrimination database memory 4a. The program memory 2a stores a program that defines the operation of the CPU 1a. The message memory 3a stores the received message 6 or the created message 6. When the CPU 1a is restarted in response to the restart signal 8 sent from the control unit 102 when the operation of the CPU 1a is stopped, the discrimination database memory 4a processes the unprocessed message 6 remaining in the message memory 3a. A database that describes the criteria for determination is stored. The message memory 3a and the discrimination database memory 4a are all assigned addresses at which the stored contents are not erased when the CPU 1a is restarted. The cause of the stoppage of the operation of the CPU 1a may be caused by an error in the message 6 transmitted through the communication line L or by an internal process of the device control apparatus 101.

一方、制御部102はCPU1b、プログラムメモリ2bおよび電文メモリ(電文記憶部)3bを備えている。CPU1bは、自身と通信部103との間で電文6をやり取りするとともに、電文メモリ3bと協働して冷却器105や温度センサー106の制御を含む様々な処理を行う。プログラムメモリ2bは、CPU1bの動作を規定するプログラムを記憶する。電文メモリ3bは、受信した電文6または作成した電文6を記憶する。   On the other hand, the control unit 102 includes a CPU 1b, a program memory 2b, and a message memory (message storage unit) 3b. The CPU 1b exchanges the telegram 6 between itself and the communication unit 103, and performs various processes including the control of the cooler 105 and the temperature sensor 106 in cooperation with the telegram memory 3b. The program memory 2b stores a program that defines the operation of the CPU 1b. The message memory 3b stores the received message 6 or the created message 6.

またCPU1bは、CPU1aが動作停止したときにCPU1aを再起動させる役割をも果たす。例えばCPU1bは、CPU1aから定期的に(例えば100ms毎に)送られる停止監視信号9を受信し、ある期間(例えば1s)停止監視信号9を受信できなかったときに、CPU1aが動作停止したと判定し、再起動信号8を送信する。これにより通信部103は、動作停止した後に自動的に再起動する。   The CPU 1b also plays a role of restarting the CPU 1a when the operation of the CPU 1a is stopped. For example, the CPU 1b receives the stop monitoring signal 9 transmitted periodically (for example, every 100 ms) from the CPU 1a, and determines that the operation of the CPU 1a is stopped when the stop monitoring signal 9 cannot be received for a certain period (for example, 1 s). Then, a restart signal 8 is transmitted. Thereby, the communication unit 103 automatically restarts after the operation is stopped.

またCPU1aはレジスタ21aを備えており、CPU1bはレジスタ21bを備えている。これらのレジスタ21aおよび21bの働きについては後述する。   The CPU 1a includes a register 21a, and the CPU 1b includes a register 21b. The operation of these registers 21a and 21b will be described later.

なお、CPU1a及びCPU1bの動作を規定する上記プログラムは、ROM、フレキシブルディスク、CD−ROM等の記録媒体631を通じて供給することも、電話回線、ネットワーク等の伝送媒体633(通信回線Lを含めても良い)を通じて供給することも可能である。図3には、記録媒体631としてCD−ROMが描かれており、伝送媒体633として電話回線が描かれている。通信回線Lが電話回線である場合も有り得る。CD−ROMに記録されたプログラムは、冷蔵庫201の外部装置としてのCD−ROM読取装置632を不図示のインタフェース等へ接続することにより、読み出すことができ、更にプログラムメモリ2a、2bに格納することができる。記録媒体631としてROMの形態でソフトウェア及びデータが供給される場合には、当該ROMをプログラムメモリ2a、2bとして機器制御装置101に搭載することにより、機器制御装置101はプログラムに従った処理を実行可能となる。伝送媒体633を通じて供給されるプログラムは、通信部103により受信され、プログラムメモリ2a、2bに格納される。伝送媒体633は、有線の伝送媒体に限らず無線の伝送媒体であっても良い。   The above-mentioned program that defines the operations of the CPU 1a and the CPU 1b can be supplied through a recording medium 631 such as a ROM, a flexible disk, or a CD-ROM, or transmitted over a transmission medium 633 (including a communication line L such as a telephone line or a network). Good) is also possible. FIG. 3 illustrates a CD-ROM as the recording medium 631, and a telephone line as the transmission medium 633. The communication line L may be a telephone line. The program recorded on the CD-ROM can be read out by connecting a CD-ROM reader 632 as an external device of the refrigerator 201 to an interface (not shown) or the like, and further stored in the program memories 2a and 2b. Can be. When software and data are supplied in the form of a ROM as the recording medium 631, the device control device 101 executes processing according to the program by mounting the ROM as the program memories 2a and 2b in the device control device 101. It becomes possible. The program supplied through the transmission medium 633 is received by the communication unit 103 and stored in the program memories 2a and 2b. The transmission medium 633 is not limited to a wired transmission medium but may be a wireless transmission medium.

(機器制御装置の通常処理)
図4は機器制御装置101の機能にもとづくブロック図である。CPU1aおよびプログラムメモリ2aは、電文メモリ3aおよび判別データベースメモリ4aと協働することにより、図4に描かれる通信部103を実現する。同様にCPU1bおよびプログラムメモリ2bは、電文メモリ3aと協働することにより、図4に描かれる制御部102を実現する。なお、図4のように構成される通信部103および制御部102は、プログラムを用いることなくハードウェアで構成しても良い。
(Normal processing of equipment control device)
FIG. 4 is a block diagram based on the functions of the device control device 101. The CPU 1a and the program memory 2a realize the communication unit 103 illustrated in FIG. 4 by cooperating with the message memory 3a and the determination database memory 4a. Similarly, the CPU 1b and the program memory 2b realize the control unit 102 illustrated in FIG. 4 in cooperation with the message memory 3a. The communication unit 103 and the control unit 102 configured as shown in FIG. 4 may be configured by hardware without using a program.

電文受信部30は、通信回線Lから送られる電文(特に第1電文と仮称する)6を受信する。受信された第1電文6は、プロトコル変換部31により通信回線Lのプロトコルにもとづく形式から機器制御装置101の内部の通信のプロトコルにもとづく形式へと変換された後、電文メモリ3aへ記憶される。電文メモリ3aに記憶された第1電文6は、通常においてある待ち時間を経て読み出される。読み出された第1電文6の一部は、電文送信部32によって制御部102へ送信される。   The message receiving unit 30 receives a message (in particular, temporarily referred to as a first message) 6 sent from the communication line L. The received first message 6 is converted from a format based on the protocol of the communication line L by the protocol conversion unit 31 to a format based on the communication protocol inside the device control apparatus 101, and is stored in the message memory 3a. . The first message 6 stored in the message memory 3a is normally read after a certain waiting time. A part of the read first telegram 6 is transmitted to the control unit 102 by the telegram transmitting unit 32.

機器制御装置101が取り扱う電文6の内容には、図5に示す種類がある。制御要求はコントローラ110等の外部装置から「温度を4°Cに設定せよ」等の制御を要求するものであり、データ要求はコントローラ110等から「温度データを送れ」等のデータを要求するものである。通信部103は制御要求を受信すると、これを制御部102へ送り、制御部102によって要求通りの制御が行われる。データ要求については、これを受信した通信部103によって要求通りのデータがコントローラ110等へ返送される。   The contents of the message 6 handled by the device control apparatus 101 include the types shown in FIG. The control request is for requesting control such as “set the temperature to 4 ° C.” from an external device such as the controller 110, and the data request is for requesting data such as “send temperature data” from the controller 110 or the like. It is. Upon receiving the control request, the communication unit 103 sends the control request to the control unit 102, and the control unit 102 performs control as requested. With respect to the data request, the communication unit 103 that has received the data request returns the data as requested to the controller 110 or the like.

制御要求への応答は、例えば「温度を4°Cに設定せよ」という制御要求に対して「受信した」旨を応答するものであり、制御要求を受信した通信部103によって行われる。データ要求への応答は、例えば「温度データを送れ」というデータ要求に対して温度データを返送するものであり、上記の通り、データ要求を受信した通信部103によって送信される。通知は、コントローラ110からの要求によらずに、機器制御装置101が自発的に温度データ等を通知するものである。   The response to the control request is, for example, a response to the effect that "received" to the control request "set the temperature to 4 ° C.", and is performed by the communication unit 103 that has received the control request. The response to the data request is, for example, to return the temperature data in response to the data request “Send temperature data”, and is transmitted by the communication unit 103 that has received the data request as described above. In the notification, the device control apparatus 101 voluntarily notifies temperature data and the like without a request from the controller 110.

図4に戻って、第1電文6には制御要求およびデータ要求が含まれる。電文メモリ3aから読み出された第1電文6のうち、制御要求については電文送信部32を通じて制御部102へ送られ、データ要求については後述するように通信部103において内部処理される。電文送信部32から送られた制御要求を内容とする第1電文6は、電文受信部34によって受信され、電文メモリ3bへ記憶される。電文メモリ3bへ記憶された第1電文6は書込部35により読み出され、レジスタ21bへ書き込まれる。   Referring back to FIG. 4, the first message 6 includes a control request and a data request. Of the first telegrams 6 read from the telegram memory 3a, control requests are sent to the control unit 102 via the telegram transmission unit 32, and data requests are internally processed in the communication unit 103 as described later. The first message 6 containing the control request sent from the message transmitting unit 32 is received by the message receiving unit 34 and stored in the message memory 3b. The first telegram 6 stored in the telegram memory 3b is read by the writing unit 35 and written into the register 21b.

レジスタ21bは、制御対象である冷却器105および温度センサ106等の制御対象の状態および設定条件(例えば庫内温度、ドアの開閉、消費電力、設定温度など)を保持している。駆動制御部36はレジスタ21bに保持される設定条件を満たすように冷却器105等の制御を行い、検出部37は例えば温度センサ106が検出した庫内温度をレジスタ21bに書き込む。したがって、コントローラ110等の外部機器は、電文6を通じてレジスタ21bが保持する設定温度を書き換えることにより、庫内温度が新たな設定温度になるように冷却器105を制御することができ、レジスタ21bが保持する庫内温度を読み出すことにより、電文6を通じて庫内温度を知ることができる。   The register 21b holds the states of the control targets such as the cooler 105 and the temperature sensor 106, which are the control targets, and the setting conditions (for example, the internal temperature, the opening and closing of the door, the power consumption, the setting temperature, and the like). The drive control unit 36 controls the cooler 105 and the like so as to satisfy the setting conditions held in the register 21b, and the detection unit 37 writes, for example, the internal temperature detected by the temperature sensor 106 to the register 21b. Therefore, the external device such as the controller 110 can control the cooler 105 so that the internal temperature becomes the new set temperature by rewriting the set temperature held by the register 21b through the message 6. By reading the stored internal temperature, the internal temperature can be known through the electronic message 6.

再び図4に戻って、電文作成部40は、レジスタ21bが保持するデータを読み出し、読み出したデータにもとづいて電文6を作成する。この電文6は通知を内容とするものを含んでいる。作成された電文6は電文メモリ3bに記憶され、通常ある待ち時間を経て読み出され、電文送信部41によって通信部103へ送信される。電文送信部41が送信した電文(特に第2電文と仮称する)6は電文受信部42によって受信され、電文メモリ3aに記憶される。電文メモリ3aに記憶された第2電文6は、通常においてある待ち時間を経て読み出される。   Returning to FIG. 4 again, the message creating unit 40 reads the data held by the register 21b, and creates the message 6 based on the read data. The electronic message 6 includes a message that includes a notification. The created message 6 is stored in the message memory 3b, usually read out after a certain waiting time, and transmitted to the communication unit 103 by the message transmission unit 41. The message (especially, tentatively referred to as a second message) 6 transmitted by the message transmitting unit 41 is received by the message receiving unit 42 and stored in the message memory 3a. The second message 6 stored in the message memory 3a is normally read after a certain waiting time.

第2電文6のうち通知を内容とするものには、通信回線Lを通じてコントローラ110等の外部機器へ通知する外部通知と、通信部103へ通知する内部通知とが含まれる。内部通知を内容とする第2電文6は、書込部46によって電文メモリ3aから読み出され、レジスタ21aへ書き込まれる。このようにしてレジスタ21bの内容は、内部通知としての第2電文6を通じてレジスタ21aへ反映される。内部通知は、例えばレジスタ21bの内容に変更があったとき、あるいは定期的に行うと良い。また外部通知としての第2電文6も、書込部46よって電文メモリ3aから読み出され、レジスタ21aへ書き込まれる。   Out of the second telegrams 6, the content of the notification includes an external notification notified to an external device such as the controller 110 via the communication line L, and an internal notification notified to the communication unit 103. The second message 6 having the content of the internal notification is read from the message memory 3a by the writing unit 46 and written into the register 21a. Thus, the contents of the register 21b are reflected on the register 21a through the second message 6 as an internal notification. The internal notification may be made, for example, when the content of the register 21b is changed or periodically. The second message 6 as an external notification is also read from the message memory 3a by the writing unit 46 and written into the register 21a.

通信回線Lを通じて送られた第1電文6のうちデータ要求を内容とするものは、電文メモリ3aから読み出されると、指示部49の指示により電文作成部48は電文6を作成する。電文作成部48は、レジスタ21aに保持されるデータを読み出し、読み出したデータにもとづいてデータ要求への応答を内容とする電文(特に第3電文と仮称する)6を作成する。作成された第3電文6は電文メモリ3aに記憶される。   Of the first telegrams 6 sent via the communication line L, those having a data request as a content are read from the telegram memory 3a, and the telegram creator 48 prepares the telegram 6 according to the instruction of the instruction unit 49. The message creation unit 48 reads the data held in the register 21a, and creates a message (especially a third message) 6 containing a response to the data request based on the read data. The created third message 6 is stored in the message memory 3a.

通信回線Lを通じて送られた第1電文6のうち制御要求を内容とするものは、電文メモリ3aから読み出されると、既に述べたように制御部102へ伝えられるとともに、指示部49の指示により電文作成部48が制御要求への応答を内容とする電文6を作成する。作成された制御要求への応答は、上記の第3電文6として電文メモリ3aに記憶される。   When the first message 6 transmitted through the communication line L and having the content of the control request is read out from the message memory 3a, it is transmitted to the control unit 102 as described above, and the message is transmitted according to the instruction of the instruction unit 49. The creating unit 48 creates the electronic message 6 containing the response to the control request. The response to the created control request is stored in the message memory 3a as the third message 6.

電文メモリ3aに記憶される第2電文6のうち外部通知を内容とするもの、並びに制御要求への応答およびデータ要求への応答を内容とする第3電文6は、読み出された後にプロトコル変換部43によって内部通信のプロトコルにもとづく形式から通信回線Lのプロトコルにもとづく形式へと変換される。プロトコル変換部43によってプロトコル変換された電文6は、電文送信部44によって通信回線Lへ送信される。機器制御装置101は通常処理として、主として以上の処理を行っている。   Of the second telegrams 6 stored in the telegram memory 3a, those having the contents of the external notification and the third telegrams 6 having the contents of the response to the control request and the response to the data request are protocol converted after being read. The unit 43 converts the format based on the protocol of the internal communication into the format based on the protocol of the communication line L. The message 6 whose protocol has been converted by the protocol converter 43 is transmitted to the communication line L by the message transmitter 44. The device control apparatus 101 mainly performs the above processing as normal processing.

図6は機器制御装置101のうち通信部103における通常処理の主要な流れを示すフローチャートである。通常処理(S100)が開始されると、電文6の受信または作成が行われる(S1)。この処理は電文受信部30および42、並びに電文作成部48によって行われる。つづいて、受信および作成された電文6が電文メモリ3aに記録される(S2)。その後、通常において他の処理による待ち時間を経て(S3)、電文6が電文メモリ3aから読み出される(S4)。その後、読み出された電文6の各々について、制御部102への送信、通信回線Lへの送信、および内部処理(ここでは、電文作成部48への電文作成の指示およびレジスタ21aへの書き込み)等の処理が行われる(S5)。   FIG. 6 is a flowchart showing a main flow of the normal processing in the communication unit 103 of the device control apparatus 101. When the normal processing (S100) is started, reception or creation of the message 6 is performed (S1). This process is performed by the message receiving units 30 and 42 and the message creating unit 48. Subsequently, the received and created message 6 is recorded in the message memory 3a (S2). Thereafter, the message 6 is read from the message memory 3a (S4), usually after a waiting time for other processing (S3). After that, for each of the read messages 6, transmission to the control unit 102, transmission to the communication line L, and internal processing (here, an instruction to create a message to the message creation unit 48 and write to the register 21a) Are performed (S5).

図7は、通信部103における発生する電文6とその処理形態との関係を示す説明図である。図7が示すように、作成された電文6は通信回線Lへ送信され、通信回線Lを通じて受信した電文6は、制御部102への送信または内部処理(ここでは電文作成部48への電文作成の指示)に供される。制御部102から受信した電文6は、通信回線Lへの送信または内部処理(ここでは、レジスタ21aへの書き込み)に供される。   FIG. 7 is an explanatory diagram showing the relationship between the message 6 generated in the communication unit 103 and its processing mode. As shown in FIG. 7, the created message 6 is transmitted to the communication line L, and the message 6 received through the communication line L is transmitted to the control unit 102 or internal processing (here, the message creation to the message creation unit 48 is performed). Instructions). The message 6 received from the control unit 102 is transmitted to the communication line L or used for internal processing (here, writing to the register 21a).

図6に戻って、ステップS5の処理が終了すると、フラグ設定部(識別符号付加部)33および45(図4)は、電文6に処理済みを示す識別符号を付して電文記憶部3aに記録する。後述するように、識別符号は通信部103の再起動後に滞留電文の処理を行う際に利用される。通常処理(S100)は、以上の処理を反復して行う。   Returning to FIG. 6, when the process of step S5 is completed, the flag setting units (identification code adding units) 33 and 45 (FIG. 4) attach the identification code indicating that the message 6 has been processed to the message storage unit 3a. Record. As will be described later, the identification code is used when processing the retained message after the communication unit 103 is restarted. In the normal processing (S100), the above processing is repeatedly performed.

図8は、メモリ3aに記憶される電文6のデータ構造の例を示す説明図である。この例では、電文6は処理フラグ、発生時刻、電文内容およびデータを含んでいる。処理フラグは、電文6が電文記憶部3aに記憶されるときには、例えば「0」に設定されており、ステップS5の処理が終了するとフラグ設定部33および45により「1」に設定される。この場合、値「0」は電文6が未処理であることを表示し、値「1」は処理済みであることを表示する。発生時刻は、電文6が生成または受信された時刻、あるいは電文メモリ3aに記録された時刻をタイムスタンプとして記録したものである。電文6の内容については図5に既に示している。データは、電文6の内容によって付される場合と付されない場合とがある。データには、設定温度等の指示値、庫内温度等の検出値などが含まれる。   FIG. 8 is an explanatory diagram showing an example of the data structure of the message 6 stored in the memory 3a. In this example, the message 6 includes a processing flag, an occurrence time, a message content, and data. The processing flag is set to, for example, “0” when the message 6 is stored in the message storage unit 3a, and is set to “1” by the flag setting units 33 and 45 when the process of step S5 ends. In this case, the value “0” indicates that the message 6 has not been processed, and the value “1” indicates that the message 6 has been processed. The occurrence time is obtained by recording the time at which the message 6 was generated or received, or the time recorded in the message memory 3a as a time stamp. The contents of the message 6 are already shown in FIG. The data may or may not be added depending on the contents of the message 6. The data includes an instruction value such as a set temperature, a detected value such as an internal temperature, and the like.

(再起動後の滞留電文の処理)
つぎに図4のブロック図および図9のフローチャートを参照しつつ、通信部103の再起動後に行われる滞留電文の処理について説明する。なお、通信部103のCPU1aが通常処理(S100)を開始する前に、判別データベースメモリ4aにはデータベースが記録されている。データベースの記録は、通常において製品出荷前に実行される。CPU1aが通常処理(S100)を行っている間、制御部102はCPU1aと電文6を送受信するとともに、CPU1aの動作停止の有無を監視している(S12)。またCPU1aが通常処理(S100)を行うのに伴って、電文メモリ3aには電文6が記録されるとともに、フラグが設定される(図6)。
(Processing of retained messages after restart)
Next, with reference to the block diagram of FIG. 4 and the flowchart of FIG. 9, a description will be given of the processing of a retained message performed after the communication unit 103 is restarted. Before the CPU 1a of the communication unit 103 starts the normal processing (S100), a database is recorded in the discrimination database memory 4a. The recording of the database is usually performed before the product is shipped. While the CPU 1a performs the normal processing (S100), the control unit 102 transmits and receives the electronic message 6 to and from the CPU 1a and monitors whether the operation of the CPU 1a is stopped (S12). As the CPU 1a performs the normal processing (S100), the message 6 is recorded in the message memory 3a and a flag is set (FIG. 6).

つぎにCPU1aがハードエラー等の原因により、その動作を停止すると(S13)、制御部102が備える再起動部50は動作停止を検出し(S14)、さらに再起動信号8を送信する。通信部103が備える再起動信号受信部51が再起動信号8を受信すると(S15)、CPU1aは再起動する(S16)。つづいて制御部102は、内部通知として電文6を通信部103へ送信することにより、レジスタ21bの内容を通信部103へ伝える。通信部103の電文受信部42が、この電文6を受信すると(S17)、電文メモリ3a、書込部46を経て、レジスタ21aへレジスタ21bの内容が書き込まれる(S18)。すなわちレジスタ21aの内容が、レジスタ21bの最新の内容により更新される。つぎに電文判別部53は、電文メモリ3aに記憶される電文6を読み出し(S19)、判別データベースメモリ4aに記憶されるデータベースを参照しつつ、電文6の判別および処理を行う(S21)。   Next, when the CPU 1a stops its operation due to a hardware error or the like (S13), the restart unit 50 included in the control unit 102 detects the stop of the operation (S14), and further transmits a restart signal 8. When the restart signal receiving unit 51 included in the communication unit 103 receives the restart signal 8 (S15), the CPU 1a restarts (S16). Subsequently, the control unit 102 transmits the content of the register 21b to the communication unit 103 by transmitting the message 6 to the communication unit 103 as an internal notification. When the message receiving unit 42 of the communication unit 103 receives the message 6 (S17), the contents of the register 21b are written to the register 21a via the message memory 3a and the writing unit 46 (S18). That is, the contents of the register 21a are updated with the latest contents of the register 21b. Next, the message determining unit 53 reads out the message 6 stored in the message memory 3a (S19), and performs the determination and processing of the message 6 with reference to the database stored in the determination database memory 4a (S21).

図10は、判別データベースメモリ4aに記憶されるデータベースの例を示す説明図である。データベースには、電文6の内容ごとに処理期限が記述されている。処理期限は、電文6が受信または作成された後に送信等の処理を行うことに意義のある期限、すなわち電文6の有効期限である。例えば温度調整要求については、処理期限は比較的永く設定でき、例えば180secに設定される。これに対して、ドアの開閉についての不定期通知(ドアが開いたとき、あるいは閉じたときのように、開閉状態が変化したときに通知される)は、処理期限は比較的短く設定するのが望ましく、例えば100secに設定される。モータの不調についての不定期通知(モータの不調が発生したときに異常を知らせる)については、いつまでも有効であり処理期限は無期限に設定される。   FIG. 10 is an explanatory diagram showing an example of a database stored in the discrimination database memory 4a. The database describes a processing time limit for each content of the message 6. The processing time limit is a time limit that is meaningful for performing processing such as transmission after the message 6 is received or created, that is, an expiration date of the message 6. For example, for a temperature adjustment request, the processing time limit can be set relatively long, for example, set to 180 seconds. On the other hand, an irregular notification about the opening and closing of the door (notified when the open / closed state changes, such as when the door is opened or closed), is set to have a relatively short processing time limit. Is desirably set, for example, to 100 seconds. The irregular notification of a motor malfunction (notifying an abnormality when a motor malfunction occurs) is valid forever, and the processing time limit is set to indefinite.

データベースには、さらに電文6の再作成の必要性の有無が記述されている。ここで再作成とは、電文メモリ3aに記憶され未処理のまま処理期限を経過した電文6について、更新されたレジスタ21aの内容にもとづいて電文6を作成することを意味する。例えば温度調整要求は通信回線Lを通じて受信した電文6であり、通信部103で再作成することができないので、再作成の必要なしと記述される。また正常に動作していることについての定期通知については、つぎの定期的な通知が予定されているため、再作成の必要なしとされる。一方、ドアの開閉についての不定期通知については、ドアの開閉について新たな状態を反映した情報を通知するのが望ましく、再作成の必要有りと記述される。   The database further describes whether the message 6 needs to be recreated. Here, the re-creation means that the message 6 is created based on the updated contents of the register 21a for the message 6 which has been stored in the message memory 3a and has not yet been processed and whose processing time limit has elapsed. For example, the temperature adjustment request is the message 6 received through the communication line L, and cannot be re-created by the communication unit 103, and is described as not requiring re-creation. In addition, as for the periodic notification of the normal operation, the next periodic notification is scheduled, and it is not necessary to re-create the notification. On the other hand, with regard to the irregular notification of the opening and closing of the door, it is desirable to notify information reflecting a new state of the opening and closing of the door, and it is described that re-creation is necessary.

図11は、ステップS21の処理の流れを示すフローチャートである。電文判別部53は、電文メモリ3aから読み出した電文6ごとに、ステップS21の処理を行う。ある電文6についてステップS21の処理が開始されると、電文判別部53は、電文6に付された処理フラグを判定する(S31)。処理フラグが処理済みを示しておれば、その電文6についてはステップS21の処理を終了する。処理フラグが処理済みを示していなければ、現在時刻と電文6に付されたタイムスタンプとの差が、データベースに記述される処理期限以内であるか否かが判定される(S32)。処理期限以内であれば、その電文6について電文送信部32および44による送信、並びに指示部49による電文作成の指示の処理が行われる(S53)。処理期限を経過しておれば、その電文6は無用の電文であるため、電文判別部53によって電文メモリ3aから消去される(S34)。つづいて電文判別部53は、データベースを参照することにより、電文6の再作成が必要か否かを判定する(S35)。再作成が無用であれば、ステップS21の処理は終了する。再作成が必要であれば、電文判別部53は電文作成部48に電文6を作成させる(S36)。再作成された電文6は、プロトコル変換部43を経て電文送信部44により、通信回線Lへ送信される(S37)。その後、ステップS21の処理は終了する。   FIG. 11 is a flowchart illustrating the flow of the process of step S21. The message determining unit 53 performs the process of step S21 for each message 6 read from the message memory 3a. When the process of step S21 is started for a certain message 6, the message determination unit 53 determines a processing flag attached to the message 6 (S31). If the processing flag indicates that processing has been completed, the processing of step S21 is ended for the message 6. If the processing flag does not indicate that the processing has been completed, it is determined whether the difference between the current time and the time stamp attached to the message 6 is within the processing time limit described in the database (S32). If it is within the processing time limit, transmission of the message 6 by the message transmission units 32 and 44 and processing of an instruction to create a message by the instruction unit 49 are performed (S53). If the processing time limit has passed, the message 6 is an unnecessary message, and is deleted from the message memory 3a by the message determination unit 53 (S34). Subsequently, the message determining unit 53 determines whether the message 6 needs to be re-created by referring to the database (S35). If the re-creation is unnecessary, the process in step S21 ends. If re-creation is necessary, the message determining unit 53 causes the message creating unit 48 to create the message 6 (S36). The re-created message 6 is transmitted to the communication line L by the message transmitter 44 via the protocol converter 43 (S37). Thereafter, the process of step S21 ends.

図9に戻って、ステップS21の処理が終了すると、電文作成部48は再起動完了通知を内容とする電文6を作成する(S22)。この再起動完了通知は、プロトコル変換部43および電文送信部44を経て、通信回線Lへ送信される。その後、動作は通常処理(S100)へ復帰する。   Returning to FIG. 9, when the processing of step S21 ends, the message creating unit 48 creates a message 6 containing the restart completion notification (S22). This restart completion notification is transmitted to the communication line L via the protocol conversion unit 43 and the message transmission unit 44. Thereafter, the operation returns to the normal processing (S100).

(実施の形態1の利点)
以上のように実施の形態1の機器制御装置101では、動作停止後に通信部103が受信する再起動信号8に応答して、電文記憶部3aに記憶される電文6が読み出され、処理フラグおよび判別データベース記憶部4aに記憶されるデータベースを参照することにより、未処理の電文6のうち処理期限内のものに限り送信等の処理が行われるので、通信部103の動作停止期間中に未処理であった電文6を処理することができるとともに、処理期限を経過した未処理の電文6について不必要な処理を行う無駄を省くことができる。さらに、プロトコル変換機能を有する部分であって多様な機器制御装置101の間で共通の機能を持つ通信部103が、制御部102から分離されているので、多様な機器(例えば冷却器105など)に対応した多様な機器制御装置101の全体的な設計コストの低減を図ることができる。
(Advantages of Embodiment 1)
As described above, in the device control apparatus 101 according to the first embodiment, the message 6 stored in the message storage unit 3a is read in response to the restart signal 8 received by the communication unit 103 after the operation is stopped, and the processing flag By referring to the database stored in the discrimination database storage unit 4a, processing such as transmission is performed only for the unprocessed messages 6 within the processing time limit. The message 6 that has been processed can be processed, and unnecessary processing of unnecessary processing for the unprocessed message 6 whose processing time limit has elapsed can be eliminated. Furthermore, since the communication unit 103, which has a protocol conversion function and has a common function among the various device control devices 101, is separated from the control unit 102, various devices (for example, the cooler 105) are provided. , It is possible to reduce the overall design cost of the various device control devices 101 corresponding to.

さらに機器制御装置101では、通信回線Lを通じて送られてきた電文6のうち、データ要求を内容とするものについては、制御部102が送信するレジスタ21bの内容によって更新されるレジスタ21aの内容にもとづいて、制御部102に代わって通信部103が、データ要求に対する応答としての電文6を作成し、さらに送信するので、比較的大きい制御部102の負担を通信部103が分担することにより軽減するとともに、データ要求への即答性を高めることができる。   Further, in the device control apparatus 101, of the messages 6 transmitted through the communication line L, those having the content of the data request are based on the content of the register 21a updated by the content of the register 21b transmitted by the control unit 102. Therefore, the communication unit 103 creates and transmits the message 6 as a response to the data request on behalf of the control unit 102, so that the burden on the control unit 102 can be reduced by sharing the relatively large burden on the control unit 102. Therefore, it is possible to improve the responsiveness to a data request.

また機器制御装置101では、通信部103の動作停止によって処理期限を経過した未処理の電文6について、データベースを参照することにより、新たに作成すべきものについてのみ電文作成部48により新たに作成されるので、処理期限を経過した電文6に代えて再起動後の新たな状況を反映した電文6を送信できるとともに、不必要な送信を行う無駄を省くことができる。   In the device control apparatus 101, for the unprocessed message 6 whose processing time limit has elapsed due to the stoppage of the operation of the communication unit 103, the message creation unit 48 newly creates only the newly created message 6 by referring to the database. Therefore, instead of the message 6 whose processing time limit has passed, the message 6 reflecting the new situation after the restart can be transmitted, and unnecessary waste of unnecessary transmission can be eliminated.

さらに機器制御装置101では、通信部103で作成された電文6だけでなく、制御部102から送られた通知を内容とする未処理の電文6についても、処理期限が経過しかつ新たに作成すべきものについては、電文作成部48により新たに作成され、電文送信部44を通じて通信回線Lへ送信されるので、処理期限を経過した制御部102からの未処理電文6に代えて、再起動後の新たな状況を反映した新たな電文6を送信できるとともに、不必要な送信を行う無駄を省くことができる。   Further, in the device control apparatus 101, not only the message 6 created by the communication unit 103 but also the unprocessed message 6 containing the notification sent from the control unit 102 has passed the processing time limit and should be newly created. Since the kimono is newly created by the message creating unit 48 and transmitted to the communication line L through the message sending unit 44, the unprocessed message 6 from the control unit 102 whose processing time has elapsed has been replaced with the unprocessed message 6 after the restart. A new message 6 reflecting the new situation can be transmitted, and unnecessary transmission of unnecessary data can be eliminated.

また機器制御装置101では、制御部102が、通信部103の動作を監視し通信部103が動作停止すると再起動信号8を通信部103へ送信するので、ユーザが動作停止を認識した上で手動により再起動を行う特許文献1に記載の従来技術とは異なり、動作停止期間を短くすることができる。このため機器制御装置101は、冷蔵庫にように長時間の冷却動作停止が許されない装置、さらにセキュリティ装置(不審者を感知する人体センサ、火災を感知するセンサなど)のように短時間の動作停止も許されないものへの利用にも好適である。さらに、制御部102が通信部103の動作を監視するので、動作を監視する装置を別途に設ける必要がなく、機器制御装置101を低廉に構成することができる。   Further, in the device control apparatus 101, the control unit 102 monitors the operation of the communication unit 103 and transmits a restart signal 8 to the communication unit 103 when the communication unit 103 stops operating. In contrast to the related art described in Patent Document 1 in which the restart is performed, the operation suspension period can be shortened. For this reason, the device control device 101 is a device in which cooling operation cannot be stopped for a long time, such as a refrigerator, and a short-time operation stop, such as a security device (a human body sensor for detecting a suspicious person, a sensor for detecting a fire, etc.). It is also suitable for use in things that are not allowed. Further, since the control unit 102 monitors the operation of the communication unit 103, there is no need to separately provide a device for monitoring the operation, and the device control device 101 can be configured at low cost.

[実施の形態2]
(機器制御装置の概略)
図12は、本発明の実施の形態2による機器制御装置のハードウェア構成を示すブロック図である。この機器制御装置107についても、冷蔵庫202に適用された例について説明する。機器制御装置107は、制御部108および通信部109を備えている。機器制御装置107は、制御部108に判別データベースメモリ4bが設けられ、制御部108について動作停止時の滞留電文の処理が行われる点、および制御部108の動作を通信部109が監視し、動作停止があれば再起動信号8が通信部109から制御部108へ送られる点において、実施の形態1による機器制御装置101とは特徴的に異なる。したがって、機器制御装置107では、制御部108が既述の電文処理装置100の一例に該当する。
[Embodiment 2]
(Outline of equipment control device)
FIG. 12 is a block diagram illustrating a hardware configuration of the device control device according to the second embodiment of the present invention. An example in which the device control device 107 is applied to the refrigerator 202 will be described. The device control device 107 includes a control unit 108 and a communication unit 109. In the device control device 107, the communication unit 109 monitors the point that the discrimination database memory 4 b is provided in the control unit 108, the processing of the stored message when the operation of the control unit 108 is stopped, and the operation of the control unit 108 are performed. It is characteristically different from the device control apparatus 101 according to the first embodiment in that the restart signal 8 is sent from the communication unit 109 to the control unit 108 if there is a stop. Therefore, in the device control device 107, the control unit 108 corresponds to an example of the above-described message processing device 100.

判別データベースメモリ4bは、CPU1bが動作停止することにより制御部109から送られる再起動信号8に応答してCPU1bが再起動したときに、電文メモリ3bに滞留している未処理の電文6の処理に関する判断基準を記述したデータベースを記憶する。判別データベースメモリ4bも電文メモリ3bと同様に、CPU1bの再起動にともなって記憶内容が消去されないアドレスが割り当てられている。   When the CPU 1b is restarted in response to the restart signal 8 sent from the control unit 109 due to the stoppage of the operation of the CPU 1b, the discrimination database memory 4b processes the unprocessed message 6 remaining in the message memory 3b. A database that describes the criteria for determination is stored. Similarly to the message memory 3b, the discrimination database memory 4b is assigned an address from which the stored content is not erased when the CPU 1b is restarted.

CPU1aは、CPU1bが動作停止したときにCPU1bを再起動させる役割をも果たす。例えばCPU1aは、CPU1bから定期的に(例えば100ms毎に)送られる停止監視信号9を受信し、ある期間(例えば1s)停止監視信号9を受信できなかったときに、CPU1bが動作停止したと判定し、再起動信号8を送信する。これにより制御部108は、動作停止した後に自動的に再起動する。   The CPU 1a also plays a role of restarting the CPU 1b when the operation of the CPU 1b is stopped. For example, the CPU 1a receives the stop monitoring signal 9 sent periodically (for example, every 100 ms) from the CPU 1b, and determines that the operation of the CPU 1b has stopped when the stop monitoring signal 9 cannot be received for a certain period (for example, 1 s). Then, a restart signal 8 is transmitted. Thus, the control unit 108 automatically restarts after the operation is stopped.

(機器制御装置の通常処理)
図13は機器制御装置107の機能にもとづくブロック図である。図4と同等部分には同一符号を付して、その詳細な説明を略する。CPU1aおよびプログラムメモリ2aは、電文メモリ3aと協働することにより、図13に描かれる通信部109を実現する。同様にCPU1bおよびプログラムメモリ2bは、電文メモリ3aおよび判別データベースメモリ4bと協働することにより、図13に描かれる制御部108を実現する。なお、図13のように構成される通信部109および制御部108は、プログラムを用いることなくハードウェアで構成しても良い。
(Normal processing of equipment control device)
FIG. 13 is a block diagram based on the functions of the device control device 107. 4 are given the same reference numerals, and detailed description thereof will be omitted. The CPU 1a and the program memory 2a realize the communication unit 109 illustrated in FIG. 13 in cooperation with the message memory 3a. Similarly, the CPU 1b and the program memory 2b realize the control unit 108 illustrated in FIG. 13 by cooperating with the message memory 3a and the discrimination database memory 4b. The communication unit 109 and the control unit 108 configured as shown in FIG. 13 may be configured by hardware without using a program.

機器制御装置107は、フラグ設定部60および61、電文判別部62および再起動受信部64が制御部108に備わり、再起動部63が通信部109に備わる点において、図4に描かれた機器制御装置101とは特徴的に異なっている。したがって通常処理に関しては、フラグ設定が電文メモリ3bに記憶される電文6に対して行われる点を除いて、機器制御装置107は機器制御装置101と同等である。すなわち制御部108の通常処理は図6で表される。   The device control device 107 is different from the device illustrated in FIG. 4 in that the flag setting units 60 and 61, the message determination unit 62, and the restart receiving unit 64 are provided in the control unit 108, and the restart unit 63 is provided in the communication unit 109. It is characteristically different from the control device 101. Therefore, regarding the normal processing, the device control device 107 is the same as the device control device 101 except that the flag setting is performed on the message 6 stored in the message memory 3b. That is, the normal processing of the control unit 108 is shown in FIG.

(再起動後の滞留電文の処理)
つぎに図13のブロック図および図14のフローチャートを参照しつつ、制御部108の再起動後に行われる滞留電文の処理について説明する。図14において図9の処理に対応する処理については、同一符号を付している。制御部108のCPU1bが通常処理(S100)を開始する前に、判別データベースメモリ4bにはデータベースが記録されている。CPU1bが通常処理(S100)を行っている間、通信部109はCPU1bと電文6を送受信するとともに、CPU1bの動作停止の有無を監視している(S12)。またCPU1bが通常処理(S100)を行っている間、電文メモリ3bには電文6が記録されるとともに、フラグが設定される(図6)。
(Processing of retained messages after restart)
Next, with reference to the block diagram of FIG. 13 and the flowchart of FIG. 14, the processing of the retained message performed after the restart of the control unit 108 will be described. In FIG. 14, the processes corresponding to the processes in FIG. 9 are denoted by the same reference numerals. Before the CPU 1b of the control unit 108 starts the normal processing (S100), a database is recorded in the discrimination database memory 4b. While the CPU 1b performs the normal processing (S100), the communication unit 109 transmits and receives the electronic message 6 to and from the CPU 1b and monitors whether the operation of the CPU 1b is stopped (S12). While the CPU 1b performs the normal process (S100), the message 6 is recorded in the message memory 3b and a flag is set (FIG. 6).

つぎにCPU1bがハードエラー等の原因により、その動作を停止すると(S13)、通信部109が備える再起動部63は動作停止を検出し(S14)、さらに再起動信号8を送信する。制御部108が備える再起動信号受信部64が再起動信号8を受信すると(S15)、CPU1bは再起動する(S16)。つづいてCPU1bは、レジスタ21bの内容を最新の内容へ更新する(S18)。つぎに電文判別部62は、電文メモリ3bに記憶される電文6を読み出し(S19)、判別データベースメモリ4bに記憶されるデータベースを参照しつつ、電文6の判別および処理を行う(S21)。   Next, when the CPU 1b stops its operation due to a hardware error or the like (S13), the restart unit 63 included in the communication unit 109 detects the stop of the operation (S14), and further transmits the restart signal 8. When the restart signal receiving unit 64 included in the control unit 108 receives the restart signal 8 (S15), the CPU 1b restarts (S16). Subsequently, the CPU 1b updates the contents of the register 21b to the latest contents (S18). Next, the message discrimination unit 62 reads the message 6 stored in the message memory 3b (S19), and performs the discrimination and processing of the message 6 with reference to the database stored in the discrimination database memory 4b (S21).

図15は、判別データベースメモリ4bに記憶されるデータベースの例を示す説明図である。判別データベースメモリ4aに記憶されるデータベース(図10)と同様に、データベースには、電文6の内容ごとに処理期限と再作成の必要性の有無が記述されている。ここで再作成とは、電文メモリ3bに記憶され未処理のまま処理期限を経過した電文6について、更新されたレジスタ21bの内容にもとづいて電文6を作成することを意味する。図15が示すように、図10のデータベースとは異なり、設定温度データ要求等のデータ要求を内容とするもの、設定温度データ要求への応答等のデータ要求への応答を内容とするものなど、制御部108における受信および送信の対象とされない電文6については記述の必要がない。   FIG. 15 is an explanatory diagram illustrating an example of a database stored in the determination database memory 4b. Similarly to the database (FIG. 10) stored in the discrimination database memory 4a, the database describes the processing time limit and necessity of re-creation for each content of the message 6. Here, the re-creation means that the message 6 is created based on the updated contents of the register 21b with respect to the message 6 stored in the message memory 3b and having passed the processing time limit without being processed. As shown in FIG. 15, unlike the database of FIG. 10, a content that includes a data request such as a set temperature data request, a content that includes a response to a data request such as a response to a set temperature data request, and the like. There is no need to describe the electronic message 6 not to be received and transmitted by the control unit 108.

図14に戻って、ステップS21の処理の流れは、図11のフローチャートで表される。電文判別部62は、電文メモリ3bから読み出した電文6ごとに、ステップS21の処理を行う。ある電文6についてステップS21の処理が開始されると、電文判別部62は電文6に付された処理フラグを判定する(S31)。処理フラグが処理済みを示しておれば、その電文6についてはステップS21の処理を終了する。処理フラグが処理済みを示していなければ、現在時刻と電文6に付されたタイムスタンプとの差が、データベースに記述される処理期限以内であるか否かが判定される(S32)。処理期限以内であれば、その電文6について電文送信部41による送信、および書込部35によるレジスタ21bへの書き込みの処理が行われる(S53)。処理期限を経過しておれば、その電文6は無用の電文であるため、電文判別部62によって電文メモリ3bから消去される(S34)。   Returning to FIG. 14, the flow of the process in step S21 is represented by the flowchart in FIG. The message determining unit 62 performs the process of step S21 for each message 6 read from the message memory 3b. When the process of step S21 is started for a certain message 6, the message discriminating unit 62 determines a processing flag attached to the message 6 (S31). If the processing flag indicates that processing has been completed, the processing of step S21 is ended for the message 6. If the processing flag does not indicate that the processing has been completed, it is determined whether the difference between the current time and the time stamp attached to the message 6 is within the processing time limit described in the database (S32). If it is within the processing time limit, processing of transmission of the message 6 by the message transmission unit 41 and writing of the message 6 to the register 21b by the writing unit 35 are performed (S53). If the processing time limit has passed, the message 6 is an unnecessary message, and is deleted from the message memory 3b by the message determination unit 62 (S34).

つづいて電文判別部62は、データベースを参照することにより、電文6の再作成が必要か否かを判定する(S35)。再作成が無用であれば、ステップS21の処理は終了する。再作成が必要であれば、電文判別部62は電文作成部40に電文6を作成させる(S36)。再作成された電文6は、電文送信部41を経て通信部109へ送信される(S37)。その後、ステップS21の処理は終了する。   Subsequently, the message determination unit 62 determines whether the message 6 needs to be recreated by referring to the database (S35). If the re-creation is unnecessary, the process in step S21 ends. If re-creation is necessary, the message determination unit 62 causes the message creation unit 40 to create the message 6 (S36). The re-created message 6 is transmitted to the communication unit 109 via the message transmission unit 41 (S37). Thereafter, the process of step S21 ends.

図14に戻って、ステップS21の処理が終了すると、電文作成部40は再起動完了通知を内容とする電文6を作成する(S22)。この再起動完了通知は、電文送信部41および通信部109を経て、通信回線Lへ送信される。その後、動作は通常処理(S100)へ復帰する。   Returning to FIG. 14, when the process of step S21 ends, the message creating unit 40 creates a message 6 containing the restart completion notification (S22). This restart completion notification is transmitted to the communication line L via the message transmission unit 41 and the communication unit 109. Thereafter, the operation returns to the normal processing (S100).

(実施の形態2の利点)
以上のように実施の形態2の機器制御装置107では、動作停止後に制御部108が受信する再起動信号8に応答して、電文記憶部3bに記憶される電文6が読み出され、処理フラグおよび判別データベース記憶部4bに記憶されるデータベースを参照することにより、未処理の電文6のうち処理期限内のものに限り送信等の処理が行われるので、制御部108の動作停止期間中に未処理であった電文6を処理することができるとともに、処理期限を経過した未処理の電文6について不必要な処理を行う無駄を省くことができる。さらに、プロトコル変換機能を有する部分であって多様な機器制御装置107の間で共通の機能を持つ通信部109が、制御部108から分離されているので、多様な機器(例えば冷却器105など)に対応した多様な機器制御装置107の全体的な設計コストの低減を図ることができる。
(Advantages of Embodiment 2)
As described above, in the device control device 107 according to the second embodiment, the message 6 stored in the message storage unit 3b is read in response to the restart signal 8 received by the control unit 108 after the operation is stopped, and the processing flag By referring to the database stored in the discrimination database storage unit 4b, processing such as transmission is performed only for the unprocessed messages 6 that are within the processing time limit. The message 6 that has been processed can be processed, and unnecessary processing of unnecessary processing for the unprocessed message 6 whose processing time limit has elapsed can be eliminated. Furthermore, since the communication unit 109, which has a protocol conversion function and has a common function among the various device control devices 107, is separated from the control unit 108, various devices (for example, the cooler 105) are provided. , It is possible to reduce the overall design cost of various device control devices 107 corresponding to.

また機器制御装置107では、制御部108の動作停止によって処理期限を経過した未処理の電文6について、データベースを参照することにより、新たに作成すべきものについてのみ電文作成部40により新たに作成されるので、処理期限を経過した電文6に代えて再起動後の新たな状況を反映した電文6を送信できるとともに、不必要な送信を行う無駄を省くことができる。   Further, in the device control device 107, for the unprocessed message 6 whose processing time limit has elapsed due to the stoppage of the operation of the control unit 108, the message creation unit 40 newly creates only the newly created message by referring to the database. Therefore, instead of the message 6 whose processing time limit has passed, the message 6 reflecting the new situation after the restart can be transmitted, and unnecessary waste of unnecessary transmission can be eliminated.

また機器制御装置107では、通信部109が、制御部108の動作を監視し制御部108が動作停止すると再起動信号8を制御部108へ送信するので、ユーザが動作停止を認識した上で手動により再起動を行う特許文献1に記載の従来技術とは異なり、動作停止期間を短くすることができる。このため機器制御装置107は、冷蔵庫にように長時間の冷却動作停止が許されない装置、さらにセキュリティ装置(不審者を感知する人体センサ、火災を感知するセンサなど)のように短時間の動作停止も許されないものへの利用にも好適である。さらに、通信部109が制御部108の動作を監視するので、動作を監視する装置を別途に設ける必要がなく、機器制御装置107を低廉に構成することができる。   Further, in the device control device 107, the communication unit 109 monitors the operation of the control unit 108 and transmits the restart signal 8 to the control unit 108 when the operation of the control unit 108 is stopped. In contrast to the related art described in Patent Document 1 in which the restart is performed, the operation suspension period can be shortened. For this reason, the device control device 107 stops the operation for a short time, such as a refrigerator, which does not allow the cooling operation to be stopped for a long time, and a security device (a human body sensor for detecting a suspicious person, a sensor for detecting a fire, etc.). It is also suitable for use in things that are not allowed. Furthermore, since the communication unit 109 monitors the operation of the control unit 108, there is no need to separately provide a device for monitoring the operation, and the device control device 107 can be configured at low cost.

[実施の形態3]
図16は、本発明の実施の形態3による機器制御装置のハードウェア構成を示すブロック図である。この機器制御装置115は、実施の形態1による通信部103と実施の形態2による制御部108とを備えている。したがって、通信部103および制御部108は、いずれも再起動後の滞留電文の処理を行う。また通信部103および制御部108は、互いに相手の動作を監視し、動作停止を検出すると再起動信号8を相手に送信する。したがって機器制御装置115は、実施の形態1による機器制御装置101と実施の形態2による機器制御装置107の双方の利点を併せて実現する。
[Embodiment 3]
FIG. 16 is a block diagram illustrating a hardware configuration of the device control device according to the third embodiment of the present invention. The device control device 115 includes the communication unit 103 according to the first embodiment and the control unit 108 according to the second embodiment. Therefore, both the communication unit 103 and the control unit 108 process the retained message after the restart. Further, the communication unit 103 and the control unit 108 mutually monitor the operation of each other, and when detecting the stop of the operation, transmit the restart signal 8 to the other. Therefore, the device control device 115 realizes both advantages of the device control device 101 according to the first embodiment and the device control device 107 according to the second embodiment.

[実施の形態1〜3の変形例]
図17のブロック図が示す機器制御装置120のように、制御部と通信部とが分離されずに、単一のCPU1c、プログラムメモリ2c、電文メモリ3cおよび判別データベースメモリ4cを、双方が共有する形態を実施することも可能である。機器制御装置120を再起動するために、再起動装置7が機器制御装置120に接続される。
[Modifications of First to Third Embodiments]
As in the device control device 120 shown in the block diagram of FIG. 17, the control unit and the communication unit are not separated, and both share a single CPU 1c, program memory 2c, electronic message memory 3c, and discrimination database memory 4c. Embodiments are also possible. In order to restart the device control device 120, the restart device 7 is connected to the device control device 120.

機器制御装置120の動作手順は図18のフローチャートで表される。機器制御装置120では、制御部と通信部との間で電文6のやり取りを行う必要がないので、その動作手順は図14に示した制御部108の動作手順と類似のものとなる。通常処理(S100)において、通信回線L以外に電文6を送受信する相手はなく、再起動装置7が機器制御装置120の動作停止を監視する点(S51)を除いて、図14の動作手順と同等である。ステップS21の処理は、図11に従って行われる。   The operation procedure of the device control device 120 is represented by a flowchart in FIG. In the device control device 120, since there is no need to exchange the electronic message 6 between the control unit and the communication unit, the operation procedure is similar to the operation procedure of the control unit 108 shown in FIG. In the normal processing (S100), there is no partner other than the communication line L to transmit and receive the message 6, and the restart procedure 7 monitors the operation stop of the device control apparatus 120 (S51) except for the operation procedure of FIG. Are equivalent. The process of step S21 is performed according to FIG.

このように構成された機器制御装置120においても、動作停止後に受信する再起動信号8に応答して、電文記憶部3cに記憶される電文6が読み出され、処理フラグおよび判別データベース記憶部4cに記憶されるデータベースを参照することにより、未処理の電文6のうち処理期限内のものに限り送信等の処理が行われるので、機器制御装置120の動作停止期間中に未処理であった電文6を処理することができるとともに、処理期限を経過した未処理の電文6について不必要な処理を行う無駄を省くことができる。   Also in the device control device 120 configured as described above, in response to the restart signal 8 received after the operation is stopped, the message 6 stored in the message storage unit 3c is read, and the processing flag and the determination database storage unit 4c are read. The processing such as transmission is performed only for the unprocessed messages 6 within the processing time limit by referring to the database stored in. 6 can be processed, and unnecessary processing of unnecessary processing for the unprocessed message 6 whose processing time limit has elapsed can be eliminated.

また機器制御装置120では、その動作停止によって処理期限を経過した未処理の電文6について、データベースを参照することにより、新たに作成すべきものについてのみ新たに電文6が作成されるので、処理期限を経過した電文6に代えて再起動後の新たな状況を反映した電文6を送信できるとともに、不必要な送信を行う無駄を省くことができる。   In addition, in the device control apparatus 120, for the unprocessed message 6 whose processing time limit has elapsed due to the stop of the operation, the message 6 is newly created only for a new message to be created by referring to the database. The message 6 reflecting the new situation after the restart can be transmitted instead of the message 6 that has passed, and the waste of unnecessary transmission can be eliminated.

[実施の形態4]
(全体構成)
図19は、本発明の実施の形態4によるマイクロコンピュータシステムの構成を示すブロック図である。このマイクロコンピュータシステム390は、家電機器の一例である冷蔵庫501に適用されており、親マイクロコンピュータ(以下において、適宜「親マイコン」と略称する)400、複数の子マイクロコンピュータ(以下において、適宜「子マイコン」と略称する)401,402,403,404、およびログメモリ420を備えている。
[Embodiment 4]
(overall structure)
FIG. 19 is a block diagram showing a configuration of a microcomputer system according to Embodiment 4 of the present invention. This microcomputer system 390 is applied to a refrigerator 501, which is an example of a home electric appliance, and includes a parent microcomputer (hereinafter, abbreviated as “parent microcomputer” as appropriate) 400, and a plurality of child microcomputers (hereinafter, appropriately referred to as “parent microcomputer”). Child microcomputers) 401, 402, 403, and 404, and a log memory 420.

子マイコン401,402,403,404は、冷蔵庫501の各装置部分の制御等の役割を個別に担っている。図19の例では、子マイコン401は庫内の温度を計測するセンサ421を制御しており、子マイコン402は温度等の表示をする液晶パネル等の表示器422を制御しており、子マイコン403は冷却器423を制御している。また、子マイコン404は、通信回線Lに接続されることにより、コントローラ410および他の家電機器411と、他のマイクロコンピュータ400,401,402,403との間の通信を中継する通信部としての役割を担っている。通信部は、マイクロコンピュータシステム内部と通信回線Lとに介在して、これら双方に整合するよう電文のプロトコル変換を行うことを主目的とする装置部分である。通信回線Lは、例えばECHONET(エコーネット)規格にもとづく設備系ネットワークである。通信回線Lの通信媒体は有線に限らず、例えば無線であってもよい。無線の例として、特小無線あるいはBluetoothを採用可能である。なお、通信回線Lが仮にECHONET規格にもとづくものであっても、マイクロコンピュータシステム390の内部の通信については、当該規格にしたがう必要はない。   The child microcomputers 401, 402, 403, and 404 individually play a role of controlling each unit of the refrigerator 501. In the example of FIG. 19, the child microcomputer 401 controls a sensor 421 that measures the temperature in the refrigerator, and the child microcomputer 402 controls a display 422 such as a liquid crystal panel that displays the temperature and the like. 403 controls the cooler 423. The child microcomputer 404 is connected to the communication line L, and serves as a communication unit that relays communication between the controller 410 and other home appliances 411 and the other microcomputers 400, 401, 402, and 403. Has a role. The communication section is an apparatus section interposed between the inside of the microcomputer system and the communication line L and mainly performing protocol conversion of a message so as to match both of them. The communication line L is a facility network based on, for example, the ECHONET (Echo Net) standard. The communication medium of the communication line L is not limited to a wire, and may be, for example, wireless. As an example of wireless communication, special wireless communication or Bluetooth can be adopted. Even if the communication line L is based on the ECHONET standard, the communication inside the microcomputer system 390 does not need to follow the standard.

親マイコン400は、子マイコン401,402,403,404を連携動作させるマイクロコンピュータであり、子マイコン401,402,403,404どうしの電文の通信は、親マイコン400を中継して行われる。一方、親マイコン400は、自身と子マイコン401,402,403,404との間で電文を直接にやり取りすることが可能である。また、親マイコン400は、複数のデータ入出力ポートを有しており、それらに個別に複数の子マイコン401,402,403,404のデータ入出力ポートが、データ線を通じて接続されている。したがって、親マイコン400と子マイコン401,402,403,404の各々とは、同時並列的に異なる電文をやり取りすることができ、しかも子マイコン401,402,403,404の各々は、親マイコン400からの指示(例えば、トリガ信号)を待つことなく、自身と親マイコン400との間での電文のやり取りをすることができる。なお、データ入出力ポートは、シリアルポートであってもパラレルポートであっても良い。このように子マイコン401,402,403,404と親マイコン400とが相互に電文を交換し合うことで、マイクロコンピュータシステム390は、冷蔵庫501全体の有機的な制御動作および通信回線Lを通じた外部との通信を実現している。   The parent microcomputer 400 is a microcomputer that causes the child microcomputers 401, 402, 403, and 404 to operate in cooperation with each other, and communication of messages between the child microcomputers 401, 402, 403, and 404 is performed via the parent microcomputer 400. On the other hand, the parent microcomputer 400 can directly exchange electronic messages between itself and the child microcomputers 401, 402, 403, and 404. The parent microcomputer 400 has a plurality of data input / output ports, and the data input / output ports of the plurality of child microcomputers 401, 402, 403, and 404 are individually connected to the parent microcomputer 400 through data lines. Therefore, the parent microcomputer 400 and each of the child microcomputers 401, 402, 403, and 404 can simultaneously exchange different messages in parallel, and each of the child microcomputers 401, 402, 403, and 404 can communicate with each other. Without exchanging a message (e.g., a trigger signal) from the host microcomputer 400 with itself. Note that the data input / output port may be a serial port or a parallel port. As described above, the child microcomputers 401, 402, 403, and 404 and the parent microcomputer 400 exchange messages with each other, so that the microcomputer system 390 performs an organic control operation of the entire refrigerator 501 and an external device through the communication line L. Communication with is realized.

ログメモリ420は、電文の通信等の履歴を記録するためのメモリである。ログメモリ420は、親マイコン400および子マイコン401,402,403,404の何れもが読み書き可能なように構成されている。   The log memory 420 is a memory for recording a history of communication of a message and the like. The log memory 420 is configured so that all of the parent microcomputer 400 and the child microcomputers 401, 402, 403, and 404 can read and write.

図20は、親マイコン400および子マイコン401,402,403,404の各々のハードウェア構成を示すブロック図である。親マイコン400および子マイコン401,402,403,404の各々は、CPU301、プログラムメモリ302およびデータベースメモリ303を備えている。CPU301は、プログラムメモリ302が記憶するプログラムにしたがって、センサ421、表示器422冷却器423等の制御、あるいは自身と他のマイクロコンピュータとの間での電文306を用いた通信を行う。   FIG. 20 is a block diagram showing a hardware configuration of each of the parent microcomputer 400 and the child microcomputers 401, 402, 403, and 404. Each of the parent microcomputer 400 and the child microcomputers 401, 402, 403, and 404 includes a CPU 301, a program memory 302, and a database memory 303. The CPU 301 controls the sensor 421, the display 422, the cooler 423, and the like, or performs communication using the electronic message 306 between itself and another microcomputer in accordance with the program stored in the program memory 302.

データベースメモリ303は、通信回線Lを通じて送られる電文306のエラーや、マイクロコンピュータシステム390内部の処理に由来するなどによりCPU301が動作停止した後に、外部から送られる再起動信号に応答してCPU301が再起動したときに、ログメモリ420(図19)に滞留している未処理の電文306について、処理すべきか否かについての判断基準を提供するデータベースを記憶する。データベースメモリ303およびログメモリ420は何れも、CPU301の再起動にともなって記憶内容が消去されないアドレスが割り当てられている。したがって、データベースメモリ303に記憶されるデータベースおよびログメモリ420に記憶される電文306は、CPU301の再起動にともなって消失しない。   After the CPU 301 stops operating due to an error in the message 306 sent through the communication line L or due to processing inside the microcomputer system 390, the database memory 303 restarts in response to a restart signal sent from the outside. At the time of activation, a database that provides a criterion for determining whether or not to process the unprocessed message 306 staying in the log memory 420 (FIG. 19) is stored. Both the database memory 303 and the log memory 420 are assigned addresses at which stored contents are not erased when the CPU 301 is restarted. Therefore, the database stored in the database memory 303 and the telegram 306 stored in the log memory 420 do not disappear when the CPU 301 is restarted.

図21は、マイクロコンピュータシステム390の機能にもとづくブロック図である。各マイクロコンピュータのCPU301およびプログラムメモリ302が、データベースメモリ303およびログメモリ420と協働することにより、図21に描かれるマイクロコンピュータシステム390を実現する。なお、図21のように構成されるマイクロコンピュータシステム390は、プログラムを用いることなくハードウェアで構成しても良い。この場合には、図21はハードウェア構成図となる。図21の例では、子マイコン401は電文を送信し、親マイコン400は受信した電文をその内容に応じて中継または処理し、子マイコン402は受信した電文を処理する役割を担っている。なお、電文の送信および受信に関して、各子マイコン401,402,403,404の間で役割が固定されている必要はなく、電文毎に各々の役割が異なってもよい。   FIG. 21 is a block diagram based on the functions of the microcomputer system 390. The microcomputer 301 and the program memory 302 of each microcomputer cooperate with the database memory 303 and the log memory 420 to realize the microcomputer system 390 illustrated in FIG. Note that the microcomputer system 390 configured as shown in FIG. 21 may be configured by hardware without using a program. In this case, FIG. 21 is a hardware configuration diagram. In the example of FIG. 21, the child microcomputer 401 transmits a message, the parent microcomputer 400 relays or processes the received message according to the content, and the child microcomputer 402 plays a role of processing the received message. It should be noted that, regarding transmission and reception of a message, the role does not need to be fixed among the child microcomputers 401, 402, 403, and 404, and each role may be different for each message.

なお、図19に戻って、親マイコン400、子マイコン401〜404が有するCPU301の動作を規定する上記プログラムは、図3について説明したと同様に、ROM、フレキシブルディスク、CD−ROM等の記録媒体631を通じて供給することも、電話回線、ネットワーク等の伝送媒体633(通信回線Lを含めても良い)を通じて供給することも可能である。図19には、記録媒体631としてCD−ROMが描かれており、伝送媒体633として電話回線が描かれている。通信回線Lが電話回線である場合も有り得る。   Returning to FIG. 19, the program that defines the operation of the CPU 301 included in the parent microcomputer 400 and the child microcomputers 401 to 404 is a recording medium such as a ROM, a flexible disk, or a CD-ROM, as described with reference to FIG. It is also possible to supply via the transmission medium 631 or via a transmission medium 633 (including the communication line L) such as a telephone line or a network. FIG. 19 illustrates a CD-ROM as the recording medium 631, and a telephone line as the transmission medium 633. The communication line L may be a telephone line.

CD−ROMに記録されたプログラムは、冷蔵庫501の外部装置としてのCD−ROM読取装置632を不図示のインタフェース等へ接続することにより、読み出すことができ、更にプログラムメモリ302に格納することができる。記録媒体631としてROMの形態でソフトウェア及びデータが供給される場合には、当該ROMをプログラムメモリ302として各マイコン400〜404に搭載することにより、マイコンシステム390はプログラムに従った処理を実行可能となる。伝送媒体633を通じて供給されるプログラムは、子マイコン404により受信され、各マイコン400〜404のプログラムメモリ302に格納される。伝送媒体633は、有線の伝送媒体に限らず無線の伝送媒体であっても良い。   The program recorded on the CD-ROM can be read out by connecting a CD-ROM reader 632 as an external device of the refrigerator 501 to an interface (not shown) or the like, and can be stored in the program memory 302. . When software and data are supplied in the form of a ROM as the recording medium 631, the microcomputer system 390 can execute processing according to the program by mounting the ROM as the program memory 302 in each of the microcomputers 400 to 404. Become. The program supplied through the transmission medium 633 is received by the child microcomputer 404 and stored in the program memory 302 of each of the microcomputers 400 to 404. The transmission medium 633 is not limited to a wired transmission medium but may be a wireless transmission medium.

(通常処理)
図22は、図21に例示した親マイコン400および子マイコン401,402の通常動作における処理の流れを示すフローチャートである。以下において、図21および図22を参照しつつ、親マイコン400および子マイコン401,402の通常動作について説明する。
(Normal processing)
FIG. 22 is a flowchart showing a flow of processing in a normal operation of the parent microcomputer 400 and the child microcomputers 401 and 402 illustrated in FIG. Hereinafter, the normal operation of the parent microcomputer 400 and the child microcomputers 401 and 402 will be described with reference to FIGS. 21 and 22.

通常動作が開始されると、子マイコン401の電文作成部311は電文306を作成する(S301)。電文作成部311は、例えばセンサ421が計測して得られた庫内温度データにもとづいて、庫内温度データを通知する電文を作成する。作成された電文306は、電文送信部312によって親マイコン400へ送信される(S302)。子マイコン401の電文書込部313は、電文送信部312が送信する電文306をログメモリ420に記録する(S303)。   When the normal operation is started, the message creating unit 311 of the child microcomputer 401 creates the message 306 (S301). The message creation unit 311 creates a message for notifying the inside temperature data, for example, based on the inside temperature data obtained by measurement by the sensor 421. The generated message 306 is transmitted to the parent microcomputer 400 by the message transmitting unit 312 (S302). The electronic document loading unit 313 of the child microcomputer 401 records the electronic message 306 transmitted by the electronic message transmitting unit 312 in the log memory 420 (S303).

一方、親マイコン400は、送信された電文306を電文受信部321によって受信する(S304)。電文処理部322は受信された電文306を、その内容に応じて処理する(S305)。例えば、電文306が子マイコン402を送信先とする電文であれば、電文処理部322は電文306の処理の一つとして、この電文306を子マイコン402へ送信する。また、電文306が親マイコン400を送信先とするものであれば、電文処理部322は電文306の内容にもとづいて送信以外の処理を行う。   On the other hand, the parent microcomputer 400 receives the transmitted message 306 by the message receiving unit 321 (S304). The message processing unit 322 processes the received message 306 according to the content (S305). For example, if the message 306 is a message destined for the slave microcomputer 402, the message processing unit 322 transmits the message 306 to the slave microcomputer 402 as one of the processes of the message 306. If the message 306 is to be transmitted to the parent microcomputer 400, the message processing unit 322 performs processing other than transmission based on the contents of the message 306.

親マイコン400のCPU301は様々な処理を行うものであるため、親マイコン400の電文受信部321が電文306を受信した後、電文処理部322による処理が行われるまでには、通常において待ち時間が発生する。したがって親マイコン400のCPU301が動作を停止すると、待ち時間未経過のため未処理のままの電文306が、ログメモリ420に滞留することとなる。なお、親マイコン400のCPU301が動作を停止すると、データベースメモリ324を含めて親マイコン400が動作停止する。   Since the CPU 301 of the parent microcomputer 400 performs various processes, after the message receiving unit 321 of the parent microcomputer 400 receives the message 306, a waiting time is generally required until the processing by the message processing unit 322 is performed. appear. Therefore, when the CPU 301 of the parent microcomputer 400 stops operating, the message 306 that has not been processed because the waiting time has not elapsed has stayed in the log memory 420. When the CPU 301 of the parent microcomputer 400 stops operating, the parent microcomputer 400 including the database memory 324 stops operating.

電文処理部322による処理が終了すると、フラグ設定部(識別符号付加部)323は、処理が終了した電文306に処理済みを示すフラグを設定して、ログメモリ420へ記録する(S307)。   When the processing by the message processing unit 322 ends, the flag setting unit (identification code adding unit) 323 sets a flag indicating that processing has been completed in the message 306 on which processing has been completed, and records the flag in the log memory 420 (S307).

図23は、ログメモリ420に記録される電文306のデータ構造の例を示す説明図である。この例では、電文306は処理フラグ、時刻情報、送信元、送信先、電文内容およびデータを含んでいる。処理フラグは、電文書込部313によって電文306がログメモリ420に記録される(S303)ときには、例えば「0」に設定されており、親マイコン400による処理が終了すると、フラグ設定部323により「1」に設定される。この場合、値「0」は電文306が未処理であることを表示し、値「1」は処理済みであることを表示する。時刻情報は、電文306が作成された時刻、あるいは電文書込部313によってログメモリ420に記録された時刻を、タイムスタンプとして記録するものである。送信元は、電文306を発信したものが親マイコン400または子マイコン401,402,403,404等のいずれであるかを表示する情報であり、送信先は、電文306の送り先が親マイコン400または子マイコン401,402,403,404等のいずれであるかを表示する情報である。電文内容には、例えばセンサ421が計測した庫内温度を通知するもの、扉開閉センサ(図示略)が扉の開閉状態を通知するもの、庫内の設定温度を通知するもの等があり、また、電文の内容によってはデータが付される。例えば、庫内温度通知を内容とする電文306には、庫内温度データ(例えば、2.1°C)が付され、扉開閉状態通知を内容とする電文306には、扉が「開」であるか「閉」であるかを示すデータが付される。   FIG. 23 is an explanatory diagram showing an example of the data structure of the message 306 recorded in the log memory 420. In this example, the message 306 includes a processing flag, time information, a transmission source, a transmission destination, message content, and data. The processing flag is set to, for example, “0” when the electronic message 306 is recorded in the log memory 420 by the electronic document loading unit 313 (S303), and when the processing by the parent microcomputer 400 ends, the flag setting unit 323 sets “0”. 1 ". In this case, the value “0” indicates that the message 306 has not been processed, and the value “1” indicates that the message 306 has been processed. The time information records the time at which the message 306 was created or the time recorded in the log memory 420 by the message inclusion unit 313 as a time stamp. The transmission source is information indicating whether the message 306 is transmitted from the parent microcomputer 400 or the child microcomputers 401, 402, 403, 404, and the like. This information indicates which of the child microcomputers 401, 402, 403, 404, etc. The contents of the message include, for example, a notification of the inside temperature measured by the sensor 421, a notification of a door open / close state by a door opening / closing sensor (not shown), a notification of a set temperature in the storage, and the like. Data is added depending on the contents of the message. For example, the message 306 containing the notification of the inside temperature is attached with inside temperature data (for example, 2.1 ° C.), and the message 306 containing the notice of the door open / close state has the door “open”. Or “closed”.

図21と図22とに戻って、既に述べたように電文306が子マイコン402を送信先とするものである場合には、親マイコン400の電文処理部322は電文306を子マイコン402へ送信する(S305)。電文処理部322による処理が終了すると、フラグ設定部(識別符号付加部)323は、処理が終了した電文306に処理済みを示すフラグを設定して、ログメモリ420へ記録する(S307)。子マイコン402は、送信された電文306を電文受信部331によって受信する(S306)。電文処理部332は受信された電文306を、その内容に応じて処理する(S308)。   Returning to FIGS. 21 and 22, when the electronic message 306 is to be sent to the child microcomputer 402 as described above, the electronic message processing unit 322 of the parent microcomputer 400 sends the electronic message 306 to the child microcomputer 402. (S305). When the processing by the message processing unit 322 ends, the flag setting unit (identification code adding unit) 323 sets a flag indicating that processing has been completed in the message 306 on which processing has been completed, and records the flag in the log memory 420 (S307). The child microcomputer 402 receives the transmitted message 306 by the message receiving unit 331 (S306). The message processing unit 332 processes the received message 306 according to the content (S308).

子マイコン402のCPU301も、親マイコン400のCPU301と同様に、様々な処理を行うものであるため、子マイコン402の電文受信部331が電文306を受信した後、電文処理部332による処理が行われるまでには、通常において待ち時間が発生する。したがって子マイコン402のCPU301が動作停止すると、待ち時間未経過のため未処理のままの電文306が、ログメモリ420に滞留することとなる。なお、子マイコン402のCPU301が動作を停止すると、データベースメモリ334を含めて子マイコン402が動作停止する。   The CPU 301 of the child microcomputer 402 also performs various processes similarly to the CPU 301 of the parent microcomputer 400. Therefore, after the message receiving unit 331 of the child microcomputer 402 receives the message 306, the process by the message processing unit 332 is executed. By the way, waiting time usually occurs. Therefore, when the CPU 301 of the child microcomputer 402 stops operating, the message 306 that has not been processed because the waiting time has not elapsed has stayed in the log memory 420. When the CPU 301 of the child microcomputer 402 stops operating, the child microcomputer 402 including the database memory 334 stops operating.

電文処理部332による処理が終了すると、フラグ設定部(識別符号付加部)333は、処理が終了した電文306に処理済みを示すフラグを設定して、ログメモリ420へ記録する(S309)。すなわち図21および図22の例では、子マイコン402が送信先である電文306については、電文306を中継する親マイコン400による送信処理が終了しているか否かを示すフラグの他に、送信先である子マイコン402による処理が終了しているか否かを示すフラグが用いられる。このようにしてログメモリ420には電文306の処理の履歴が記録される。   When the processing by the message processing unit 332 is completed, the flag setting unit (identification code adding unit) 333 sets a flag indicating that processing has been completed in the message 306 for which processing has been completed, and records the flag in the log memory 420 (S309). That is, in the examples of FIGS. 21 and 22, for the message 306 to which the child microcomputer 402 is the transmission destination, in addition to the flag indicating whether or not the transmission processing by the parent microcomputer 400 that relays the message 306 has been completed, A flag indicating whether or not the processing by the child microcomputer 402 has been completed is used. In this manner, the log of the processing of the electronic message 306 is recorded in the log memory 420.

ログメモリ420に蓄積される電文306の履歴は、後述するように親マイコン400あるいは子マイコン402の再起動後に、滞留している未処理電文の処理に用いられる。したがって、親マイコン400の再起動後の未処理電文の処理のためには、処理フラグは親マイコン400の電文処理部322による処理が終了したか否かを示すフラグのみで足りる。また、子マイコン402の再起動後の未処理電文の処理のためには、処理フラグは子マイコン402の電文処理部332による処理が終了したか否かを示すフラグのみで足りる。   The history of the electronic message 306 stored in the log memory 420 is used for processing of an unprocessed electronic message that has stayed after the parent microcomputer 400 or the child microcomputer 402 is restarted, as described later. Therefore, in order to process an unprocessed message after the restart of the parent microcomputer 400, only a flag indicating whether or not the processing by the message processing unit 322 of the parent microcomputer 400 has been completed is sufficient. Further, in order to process an unprocessed message after the restart of the child microcomputer 402, only a flag indicating whether or not the process by the message processing unit 332 of the child microcomputer 402 has been completed is sufficient.

(親マイコン再起動後の未処理電文の処理)
つぎに図21のブロック図および図24のフローチャートを参照しつつ、親マイコン400の再起動後に行われる未処理電文の処理について説明する。子マイコン401、親マイコン400および子マイコン402が、それぞれの通常動作における処理(S320,S321およびS322)を開始する前に、データベースメモリ314,324および334にはデータベースが記録されている。データベースの記録は、通常において製品出荷前に実行される。データベースの内容については後述する。
(Processing of unprocessed messages after restarting the parent microcomputer)
Next, with reference to the block diagram of FIG. 21 and the flowchart of FIG. 24, the processing of the unprocessed message performed after the restart of the parent microcomputer 400 will be described. Before the child microcomputer 401, the parent microcomputer 400, and the child microcomputer 402 start processing (S320, S321, and S322) in their normal operations, databases are recorded in the database memories 314, 324, and 334. The recording of the database is usually performed before the product is shipped. The contents of the database will be described later.

ステップS320,S321およびS322の通常処理のフローは、図22に示したとおりである。親マイコン400および子マイコン401,402が通常処理(S320,S321およびS322)を行っている間に、電文306による通信が行われ、それにともないログメモリ420には電文306の履歴が蓄積される。また、通常処理が行われている間に、親マイコン400の動作停止の有無が監視される。動作停止の監視は、図24の例では子マイコン401によって行われる。子マイコン401は、例えば親マイコン400が定期的に出力する停止監視信号309を受信し、停止監視信号309の受信がある期間にわたって行われなかったときに、親マイコン400が動作を停止したと判断する。
つぎに親マイコン400がハードエラー等の原因により、その動作を停止すると(S323)、子マイコン401は動作停止を検出し(S324)、さらに再起動信号308を送信する(S325)。親マイコン400が備える再起動信号受信部326が再起動信号308を受信すると(S326)、親マイコン400が再起動する(S327)。つぎに電文判別部325は、ログメモリ420に記録されている電文306(未処理の電文が含まれている)の判別および処理を行う(S328)。ステップS328の処理は、親マイコン400のデータベースメモリ324に記憶されるデータベースを参照することにより行われる。
The flow of the normal processing in steps S320, S321, and S322 is as shown in FIG. While the parent microcomputer 400 and the child microcomputers 401 and 402 are performing the normal processing (S320, S321 and S322), communication by the electronic message 306 is performed, and the log of the electronic message 306 is accumulated in the log memory 420 accordingly. In addition, while the normal processing is being performed, whether or not the operation of the parent microcomputer 400 has stopped is monitored. The monitoring of the operation stop is performed by the child microcomputer 401 in the example of FIG. The child microcomputer 401 receives, for example, the stop monitoring signal 309 periodically output from the parent microcomputer 400, and determines that the parent microcomputer 400 has stopped operating when the reception of the stop monitoring signal 309 has not been performed for a certain period. I do.
Next, when the parent microcomputer 400 stops its operation due to a hardware error or the like (S323), the child microcomputer 401 detects the operation stop (S324), and transmits a restart signal 308 (S325). When the restart signal receiving unit 326 included in the parent microcomputer 400 receives the restart signal 308 (S326), the parent microcomputer 400 restarts (S327). Next, the message determination unit 325 determines and processes the message 306 (including an unprocessed message) recorded in the log memory 420 (S328). The process of step S328 is performed by referring to a database stored in the database memory 324 of the parent microcomputer 400.

図25は、データベースメモリ324に記憶されるデータベースの例を示す説明図である。このデータベースには、電文の内容ごとに処理期限が記述されている。処理期限は、電文306が作成または送信された後に処理を行うことに意義のある期限、すなわち電文306の有効期限である。例えば庫内温度の通知を内容とする電文については、処理期限は比較的永い180secに設定される。これに対して、扉の開閉状態についての不定期の通知(ドアが開いたとき、あるいは閉じたときのように、開閉状態が変化したときに通知される)は、処理期限は比較的短く設定するのが望ましく、例えば100secに設定される。モータの不調についての不定期の通知(モータの不調が発生したときに異常を知らせる)については、いつまでも有効であり処理期限は無期限に設定される。   FIG. 25 is an explanatory diagram illustrating an example of a database stored in the database memory 324. In this database, a processing deadline is described for each message content. The processing time limit is a time limit that is meaningful to perform processing after the message 306 is created or transmitted, that is, a validity period of the message 306. For example, for a message containing the notification of the internal temperature, the processing time limit is set to 180 seconds, which is relatively long. On the other hand, an irregular notification about the open / closed state of the door (notified when the open / closed state changes, such as when the door is opened or closed) has a relatively short processing deadline. It is desirable to set it to 100 seconds, for example. The irregular notification of the motor malfunction (notifying the abnormality when the motor malfunction occurs) is valid forever, and the processing time limit is set to indefinite.

図26は、ステップS328の処理の流れを示すフローチャートである。電文判別部325は、ステップS328の処理を開始すると、ログメモリ420から電文306を読み出す(S341)。つぎに、電文判別部325は電文306に付された処理フラグを判定する(S342)。処理フラグが、電文処理部322による処理が終了していることを示しておれば、その電文306についてはステップS328の処理を終了する。処理フラグが処理済みを示していなければ、現在時刻と電文306に付されたタイムスタンプとの差が、データベースに記述される処理期限以内であるか否かが判定される(S343)。処理期限以内であれば、電文判別部325はその電文306について電文処理部322に処理を行わせる(S344)。電文判別部325は、ステップS341〜S344の処理を、ログメモリ420に記録される電文306ごとに行ってもよく、ステップS341の読み出し処理を一括して行い、その後、読み出した電文306ごとにステップS342〜S344の処理を行ってもよい。   FIG. 26 is a flowchart showing the flow of the process of step S328. Upon starting the process in step S328, the message determination unit 325 reads the message 306 from the log memory 420 (S341). Next, the message determination unit 325 determines the processing flag attached to the message 306 (S342). If the processing flag indicates that the processing by the message processing unit 322 has ended, the processing of step S328 ends for the message 306. If the processing flag does not indicate that the processing has been completed, it is determined whether the difference between the current time and the time stamp attached to the message 306 is within the processing time limit described in the database (S343). If it is within the processing time limit, the message determination unit 325 causes the message processing unit 322 to process the message 306 (S344). The message determination unit 325 may perform the processing of steps S341 to S344 for each message 306 recorded in the log memory 420, or collectively performs the reading process of step S341. The processing of S342 to S344 may be performed.

図21および図24に戻って、ステップS328の処理が終了すると、親マイコン400は、再起動の完了を通知する電文306を電文処理部322により他のマイクロコンピュータ、すなわち子マイコン401および402へ送信する(S329)。他のマイクロコンピュータは、再起動完了通知を受信することにより、親マイコン400が再起動を完了したことを知ることができる。子マイコン401は、親マイコン400からの再起動完了通知を、例えば図示しない電文受信部によって受信すると、電文判別部315によって、ログメモリ420に記録されている電文306の判別および処理を行う(S330)。ステップS330の処理は、子マイコン401のデータベースメモリ314を参照することにより行われる。   Returning to FIG. 21 and FIG. 24, when the processing of step S328 is completed, the parent microcomputer 400 transmits a message 306 notifying the completion of the restart to another microcomputer, that is, the child microcomputers 401 and 402, by the message processing unit 322. (S329). By receiving the restart completion notification, the other microcomputers can know that the parent microcomputer 400 has completed the restart. When the child microcomputer 401 receives the restart completion notification from the parent microcomputer 400 by, for example, a message receiving unit (not shown), the message determining unit 315 determines and processes the message 306 recorded in the log memory 420 (S330). ). The processing in step S330 is performed by referring to the database memory 314 of the child microcomputer 401.

データベースメモリ314に記憶されるデータベースにおいても、図25に例示したように、電文306の内容ごとに処理期限が記述されている。このデータベースには、さらに図27または図28に例示するように、電文306の再作成の必要性の有無が記述されている。ここで再作成とは、ログメモリ420に記録され未処理のまま処理期限を経過した電文306について、再起動後の新たな状態を反映した情報内容にもとづいて電文306を作成することを意味する。例えば庫内温度を通知する内容の電文については、すべての温度範囲について、再作成の必要ありと記述される(図27)。また扉の開閉状態についての通知については、ログメモリ420に未処理のまま残されている電文306の内容と、再起動後の新たな状態とが異なる場合には、新たな状態を通知すべく再作成の必要ありと記述され、同一である場合には、再作成の必要なしと記述される(図28)。   In the database stored in the database memory 314, as shown in FIG. 25, the processing time limit is described for each content of the electronic message 306. This database further describes whether or not it is necessary to re-create the electronic message 306, as illustrated in FIG. 27 or FIG. Here, the re-creation means that the message 306 is created based on the information content that reflects the new state after the restart of the message 306 that has been recorded in the log memory 420 and has not been processed and has passed the processing time limit. . For example, it is described that a message of the content notifying the internal temperature needs to be re-created in all temperature ranges (FIG. 27). Also, regarding the notification of the open / closed state of the door, if the content of the message 306 left unprocessed in the log memory 420 is different from the new state after the restart, the new state is notified. It is described that re-creation is necessary, and if they are the same, it is described that re-creation is not necessary (FIG. 28).

子マイコン401,402,403,404の各々は、個別の装置部分に対する制御等の役割を分担しており、取り扱う電文306の内容は必ずしも同一ではない。したがって、データベースメモリ314,334(図21)等に記憶されるデータベースの内容は、図27と図28とに分けて例示したように、一般には子マイコン毎に異なっていても良い。   Each of the child microcomputers 401, 402, 403, and 404 shares a role such as control of an individual device portion, and the contents of the electronic message 306 to be handled are not necessarily the same. Therefore, the contents of the database stored in the database memories 314 and 334 (FIG. 21) and the like may be generally different for each child microcomputer as illustrated separately in FIGS. 27 and 28.

図29は、ステップS330の処理の流れを示すフローチャートである。図26中の処理と同等の処理については、同一の符号を付している。電文判別部315は、ステップS330の処理を開始すると、ログメモリ420から電文306を読み出す(S341)。つぎに、電文判別部315は電文306に付された処理フラグを判定する(S342)。処理フラグが、親マイコン400の電文処理部322による処理が終了していることを示しておれば、その電文306についてはステップS330の処理を終了する。処理フラグが処理済みを示していなければ、現在時刻と電文306に付されたタイムスタンプとの差が、データベースに記述される処理期限以内であるか否かが判定される(S343)。処理期限以内であれば、電文判別部325はその電文306については、ステップS330の処理を終了する。   FIG. 29 is a flowchart showing the flow of the process of step S330. The same processes as those in FIG. 26 are denoted by the same reference numerals. Upon starting the process of step S330, the message determination unit 315 reads the message 306 from the log memory 420 (S341). Next, the message determining unit 315 determines a processing flag attached to the message 306 (S342). If the processing flag indicates that the processing by the message processing unit 322 of the parent microcomputer 400 has ended, the processing of step S330 ends for the message 306. If the processing flag does not indicate that the processing has been completed, it is determined whether the difference between the current time and the time stamp attached to the message 306 is within the processing time limit described in the database (S343). If it is within the processing time limit, the message determination unit 325 terminates the process of step S330 for the message 306.

つづいて電文判別部315は、データベースメモリ314に記憶されるデータベースを参照することにより、電文306の再作成が必要か否かを判定する(S352)。再作成が無用であれば、ステップS330の処理は終了する。再作成が必要であれば、電文判別部315は電文作成部311に電文306を作成させる(S353)。再作成された電文306は、電文送信部312により親マイコン400へ送信され(ステップS354)、電文処理部322によって処理されることとなる。その後、ステップS330の処理は終了する。電文判別部315は、ステップS341〜S354の処理を、ログメモリ420に記録される電文306ごとに行ってもよく、ステップS341の読み出し処理を一括して行い、その後、読み出した電文306ごとにステップS342〜S354の処理を行ってもよい。図24に戻って、ステップS330の処理が終了すると、マイクロコンピュータシステム390の動作は通常処理(S320,S321,S322)へ復帰する。なお、ステップS330の処理が終了した後に、子マイコン401は、親マイコン400の未処理電文の処理が完了したことを通知する電文306を、電文送信部312によって他のマイクロコンピュータ、すなわち親マイコン400および子マイコン402へ送信してもよい。   Subsequently, the message determination unit 315 determines whether the message 306 needs to be re-created by referring to the database stored in the database memory 314 (S352). If re-creation is unnecessary, the process of step S330 ends. If re-creation is necessary, the message determination unit 315 causes the message creation unit 311 to create the message 306 (S353). The re-created message 306 is transmitted to the parent microcomputer 400 by the message transmission unit 312 (step S354), and is processed by the message processing unit 322. Then, the process of step S330 ends. The message determination unit 315 may perform the processing of steps S341 to S354 for each message 306 recorded in the log memory 420, or collectively performs the reading process of step S341, and then performs step S341 for each of the read messages 306. The processing of S342 to S354 may be performed. Returning to FIG. 24, when the processing of step S330 ends, the operation of the microcomputer system 390 returns to the normal processing (S320, S321, S322). After the processing of step S330 is completed, the child microcomputer 401 sends a message 306 notifying that the processing of the unprocessed message of the parent microcomputer 400 has been completed to another microcomputer, that is, the parent microcomputer 400 by the message transmitting unit 312. And to the child microcomputer 402.

マイクロコンピュータシステム390は、以上のように動作するので、親マイコン400の動作停止期間中に未処理であった電文306のうち、そのまま処理しても支障のない新しいものについては、親マイコン400はそのまま処理することができ、古いものについては、再起動後の新たな状況を反映した新たな内容の電文306を処理することができる。また、データベースを参照することにより新たに電文を作成すべきものに限って新たに電文が作成されるので、処理期限を経過した未処理の電文について不必要な処理を行う無駄を省くことができる。   Since the microcomputer system 390 operates as described above, of the telegrams 306 which have not been processed during the period during which the operation of the parent microcomputer 400 is stopped, the parent microcomputer 400 determines that a new one which does not cause any trouble without any processing. The electronic mail 306 can be processed as it is, and for the old one, the electronic message 306 having new contents reflecting the new situation after the restart can be processed. In addition, since only a new message is to be created by referring to the database, a new message is created, so that unnecessary processing of unprocessed messages that have passed the processing time limit can be omitted.

電文判別部315は、ステップS330の処理として、図29に代えて図30の処理を行ってもよい。図30の処理は、ステップS352において再作成の必要なしと判断された電文306を、そのまま電文送信部312によって親マイコン400へ送信させる(S355)点において、図29の処理とは異なっている。電文判別部315は、未処理の電文306が例えば扉開閉状態を通知する内容のものであった場合に、図28に例示したデータベースを参照することにより、扉開閉の状態について未処理の電文の内容と再起動後の現在の状態とが異なる場合には、電文作成部311に新たな状態を反映した新たな電文306を作成させ(S353)、未処理の電文の内容と再起動後の現在の状態とが同一である場合には、電文送信部312に未処理の電文306を送信させる(S355)。これにより、不必要に新たな電文を作成する無駄を省くことができるとともに、親マイコン400の電文処理部322は、処理期限を経過した未処理の電文306について適切な処理を行うことができる。   The message determination unit 315 may perform the process in FIG. 30 instead of FIG. 29 as the process in step S330. The processing in FIG. 30 differs from the processing in FIG. 29 in that the message 306 determined to be unnecessary to be recreated in step S352 is transmitted to the parent microcomputer 400 by the message transmitting unit 312 as it is (S355). If the unprocessed message 306 has, for example, a content that notifies the door opening / closing state, the message determining unit 315 refers to the database illustrated in FIG. If the contents are different from the current state after the restart, the message creation unit 311 creates a new message 306 reflecting the new state (S353), and the contents of the unprocessed message and the current state after the restart. If the states are the same, the message transmission unit 312 is caused to transmit the unprocessed message 306 (S355). Accordingly, it is possible to avoid waste of creating a new message unnecessarily, and the message processing unit 322 of the parent microcomputer 400 can perform appropriate processing on the unprocessed message 306 whose processing time limit has elapsed.

(子マイコン再起動後の未処理電文の処理)
つぎに図21のブロック図および図31のフローチャートを参照しつつ、子マイコン402の再起動後に行われる未処理電文の処理について説明する。図31では、図24中の処理と同等の処理については同一の符号を付している。通常処理(S320,S321およびS322)が行われている間に、子マイコン402の動作停止の有無が監視される。動作停止の監視は、図31の例では親マイコン400によって行われる。
(Processing of unprocessed messages after restarting the child microcomputer)
Next, the processing of an unprocessed message performed after the restart of the child microcomputer 402 will be described with reference to the block diagram of FIG. 21 and the flowchart of FIG. In FIG. 31, processes that are the same as the processes in FIG. 24 are given the same reference numerals. While the normal processing (S320, S321, and S322) is being performed, whether or not the operation of the child microcomputer 402 has been stopped is monitored. The monitoring of the operation stop is performed by the parent microcomputer 400 in the example of FIG.

つぎに子マイコン402がハードエラー等の原因により、その動作を停止すると(S323)、親マイコン400は動作停止を検出し(S324)、さらに再起動信号308を送信する(S325)。子マイコン402が備える再起動信号受信部336が再起動信号308を受信すると(S326)、子マイコン402が再起動する(S327)。つぎに子マイコン402の電文判別部335は、ログメモリ420に記録されている電文306(未処理の電文が含まれている)の判別および処理を行う(S328)。ステップS328の処理は、子マイコン402のデータベースメモリ334に記憶されるデータベースを参照することにより行われる。データベースメモリ334に記憶されるデータベースは、図25と同一の内容で例示される。   Next, when the child microcomputer 402 stops its operation due to a hardware error or the like (S323), the parent microcomputer 400 detects the operation stop (S324), and further transmits a restart signal 308 (S325). When the restart signal receiving unit 336 included in the child microcomputer 402 receives the restart signal 308 (S326), the child microcomputer 402 restarts (S327). Next, the message determination unit 335 of the child microcomputer 402 determines and processes the message 306 (including an unprocessed message) recorded in the log memory 420 (S328). The process of step S328 is performed by referring to a database stored in the database memory 334 of the child microcomputer 402. The database stored in the database memory 334 is exemplified by the same contents as in FIG.

ステップS328の処理は、図26のフローチャートで例示される。すなわち、子マイコン402の電文判別部335は、ステップS328の処理を開始すると、ログメモリ420から電文306を読み出す(S341)。つぎに、電文判別部335は電文306に付された処理フラグを判定する(S342)。処理フラグが、子マイコン402の電文処理部332による処理が終了していることを示しておれば、その電文306についてはステップS328の処理を終了する。処理フラグが処理済みを示していなければ、現在時刻と電文306に付されたタイムスタンプとの差が、データベースに記述される処理期限以内であるか否かが判定される(S343)。処理期限以内であれば、電文判別部335はその電文306について電文処理部332に処理を行わせる(S344)。電文判別部335は、ステップS341〜S344の処理を、ログメモリ420に記録される電文306ごとに行ってもよく、ステップS341の読み出し処理を一括して行い、その後、読み出した電文306ごとにステップS342〜S344の処理を行ってもよい。   The processing in step S328 is exemplified by the flowchart in FIG. That is, upon starting the process of step S328, the message determination unit 335 of the child microcomputer 402 reads the message 306 from the log memory 420 (S341). Next, the message determination unit 335 determines the processing flag attached to the message 306 (S342). If the processing flag indicates that the processing by the message processing unit 332 of the child microcomputer 402 has ended, the processing of step S328 ends for the message 306. If the processing flag does not indicate that the processing has been completed, it is determined whether the difference between the current time and the time stamp attached to the message 306 is within the processing time limit described in the database (S343). If it is within the processing time limit, the message determination unit 335 causes the message processing unit 332 to perform processing on the message 306 (S344). The message determination unit 335 may perform the processes of steps S341 to S344 for each message 306 recorded in the log memory 420, or collectively performs the reading process of step S341, and then performs the steps for each message 306 read. The processing of S342 to S344 may be performed.

図21および図31に戻って、ステップS328の処理が終了すると、子マイコン402は、再起動の完了を通知する電文306を電文処理部332により他のマイクロコンピュータ、すなわち親マイコン400および子マイコン401へ送信する(S329)。他のマイクロコンピュータは、再起動完了通知を受信することにより、子マイコン402が再起動を完了したことを知ることができる。子マイコン401は、子マイコン402からの再起動完了通知を、例えば図示しない電文受信部によって受信すると、電文判別部315によって、ログメモリ420に記録されている電文306の判別および処理を行う(S330)。ステップS330の処理は、図29または図30で例示される。また、ステップS330で参照される子マイコン401のデータベースメモリ314の内容は、親マイコン400の再起動後の処理(図24)と同様に、図25、図27および図28で例示される。なお、ステップS330の処理が終了した後に、子マイコン401は、子マイコン402の未処理電文の処理が完了したことを通知する電文306を、電文送信部312によって他のマイクロコンピュータ、すなわち親マイコン400および子マイコン402へ送信してもよい。   Returning to FIG. 21 and FIG. 31, when the process of step S328 is completed, the child microcomputer 402 uses the message processing unit 332 to send a message 306 notifying the completion of the restart to another microcomputer, that is, the parent microcomputer 400 and the child microcomputer 401. (S329). By receiving the restart completion notification, the other microcomputer can know that the child microcomputer 402 has completed the restart. When the child microcomputer 401 receives the restart completion notification from the child microcomputer 402 by, for example, a message receiving unit (not shown), the message determining unit 315 determines and processes the message 306 recorded in the log memory 420 (S330). ). The processing in step S330 is exemplified in FIG. 29 or FIG. The contents of the database memory 314 of the child microcomputer 401 referred to in step S330 are exemplified in FIGS. 25, 27, and 28, similarly to the processing after the restart of the parent microcomputer 400 (FIG. 24). After the process of step S330 is completed, the child microcomputer 401 sends a message 306 notifying that the processing of the unprocessed message of the child microcomputer 402 has been completed to another microcomputer, that is, the parent microcomputer 400 by the message transmitting unit 312. And to the child microcomputer 402.

以上のように、子マイコン402の動作停止期間中に未処理であった電文306についても、子マイコン402の再起動後に、適切な処理を行うことが可能である。   As described above, even for the message 306 that has not been processed during the operation stop period of the child microcomputer 402, it is possible to perform appropriate processing after the child microcomputer 402 is restarted.

(停止監視の様々な形態)
親マイコン400および子マイコン401〜404の動作停止を監視し、動作停止したときに再起動させるための構成として様々な形態を採ることができる。図32に示す例では、子マイコン401〜404の各々が、停止監視信号309を通じて親マイコン400の動作停止を監視し、子マイコン401〜404の何れかが動作停止を検出すると、再起動信号308を親マイコン400へ送信する。再起動信号308は、親マイコン400のCPU301(図20)が備えるリセットレジスタ350へ入力されることにより、CPU301が再起動する。子マイコン401〜404の各々が親マイコン400を監視する代わりに、子マイコン401〜404の何れか1つが監視するように構成してもよい。
(Various forms of stop monitoring)
Various configurations can be adopted as a configuration for monitoring the operation stop of the parent microcomputer 400 and the child microcomputers 401 to 404 and restarting when the operation is stopped. In the example shown in FIG. 32, each of the child microcomputers 401 to 404 monitors the stop of the operation of the parent microcomputer 400 through the stop monitoring signal 309, and when any of the child microcomputers 401 to 404 detects the stop of the operation, the restart signal 308 is output. Is transmitted to the parent microcomputer 400. The restart signal 308 is input to a reset register 350 included in the CPU 301 (FIG. 20) of the parent microcomputer 400, so that the CPU 301 restarts. Instead of each of the child microcomputers 401 to 404 monitoring the parent microcomputer 400, any one of the child microcomputers 401 to 404 may be configured to monitor.

図33に示す例では、親マイコン400が停止監視信号309を通じて子マイコン401〜404の動作停止を監視し、子マイコン401〜404の何れかの動作が停止すると、動作停止した子マイコンへ再起動信号308を送信する。子マイコン401〜404へ送られる再起動信号308は、それらのCPU301が備えるリセットレジスタ351〜354へ入力されることによりCPU301が再起動する。   In the example shown in FIG. 33, the parent microcomputer 400 monitors the operation stop of the child microcomputers 401 to 404 through the stop monitor signal 309, and when any of the child microcomputers 401 to 404 stops operating, restarts the stopped child microcomputer. The signal 308 is transmitted. The restart signal 308 sent to the child microcomputers 401 to 404 is input to the reset registers 351 to 354 provided in the CPU 301 so that the CPU 301 restarts.

図34に示す例では、親マイコン400が停止監視信号309を通じて子マイコン401〜404の動作停止を監視し、子マイコン401〜404の何れかの動作が停止すると、動作停止した子マイコンを指定する識別番号380をデコーダ356へ送信する。デコーダ356は、識別番号380をデコードすることにより、識別番号380が指定する子マイコン401〜404の何れかへ再起動信号308を送信する。図34の形態では、親マイコン400は再起動信号308を送信するための出力ポートを少なくすることができ、また再起動信号308を伝達する配線も節減することができる。   In the example shown in FIG. 34, the parent microcomputer 400 monitors the stop of the operation of the child microcomputers 401 to 404 through the stop monitoring signal 309, and when any of the child microcomputers 401 to 404 stops operating, specifies the stopped child microcomputer. The identification number 380 is transmitted to the decoder 356. By decoding the identification number 380, the decoder 356 transmits the restart signal 308 to any of the child microcomputers 401 to 404 specified by the identification number 380. In the embodiment shown in FIG. 34, the parent microcomputer 400 can reduce the number of output ports for transmitting the restart signal 308, and can also reduce the number of wires for transmitting the restart signal 308.

図32〜図34の何れの例においても、マイクロコンピュータが互いに他のマイクロコンピュータの動作停止を監視し、動作停止が起こると再起動信号を送信するので、ユーザが動作停止を発見し手動で停止信号を入力する特許文献1の形態に比べて動作停止期間を短くすることができる。このためマイクロコンピュータシステム390は、冷蔵庫にように長時間の冷却動作停止が許されない装置、さらにセキュリティ装置(不審者を感知する人体センサ、火災を感知するセンサなど)のように短時間の動作停止も許されないものへの利用にも好適である。さらに、マイクロコンピュータが互いに他のマイクロコンピュータの動作停止を監視するので、動作を監視する装置を別途に設ける必要がなく、マイクロコンピュータシステム390を低廉に構成することができる。   In any of the examples of FIGS. 32 to 34, the microcomputer monitors the operation stop of the other microcomputers and transmits a restart signal when the operation stop occurs, so that the user detects the operation stop and stops manually. The operation stop period can be shortened as compared with the configuration of Patent Document 1 in which a signal is input. For this reason, the microcomputer system 390 can be stopped for a short period of time, such as a refrigerator, a device in which cooling operation cannot be stopped for a long time, or a security device (a human body sensor for detecting a suspicious person, a sensor for detecting a fire, etc.). It is also suitable for use in things that are not allowed. Further, since the microcomputers monitor the operation stop of each other microcomputer, it is not necessary to separately provide a device for monitoring the operation, and the microcomputer system 390 can be configured at low cost.

[実施の形態5]
図35は、本発明の実施の形態5によるマイクロコンピュータシステム(図19)の機能にもとづくブロック図である。子マイコン401のCPU301も、親マイコン400および子マイコン402のCPU301と同様に、様々な処理を行うものであるため、子マイコン401の電文作成部311が電文306を作成した後、電文送信部312による処理が行われるまでには、通常において待ち時間が発生する。したがって子マイコン401のCPU301が動作停止すると、待ち時間未経過のため未処理のままの電文306が、ログメモリ420に滞留することとなる。なお、子マイコン401のCPU301が動作停止すると、データベースメモリ314を含めて子マイコン401が動作停止する。
[Embodiment 5]
FIG. 35 is a block diagram based on the functions of the microcomputer system (FIG. 19) according to the fifth embodiment of the present invention. Similarly to the CPUs 301 of the parent microcomputer 400 and the child microcomputer 402, the CPU 301 of the child microcomputer 401 also performs various processes. Until the processing is performed, a waiting time usually occurs. Therefore, when the operation of the CPU 301 of the child microcomputer 401 is stopped, the message 306 that has not been processed because the waiting time has not elapsed has stayed in the log memory 420. When the CPU 301 of the child microcomputer 401 stops operating, the child microcomputer 401 including the database memory 314 stops operating.

図35に示すマイクロコンピュータシステム391は、子マイコン401の動作停止により滞留する未処理電文をも処理可能に構成されている。すなわちマイクロコンピュータシステム391は、子マイコン401が、電文書込部317と再起動信号受信部316とをさらに備える点において、図21に示したマイクロコンピュータシステム390とは特徴的に異なっている。   The microcomputer system 391 shown in FIG. 35 is configured to be able to process an unprocessed electronic message that remains due to the stoppage of the operation of the child microcomputer 401. That is, the microcomputer system 391 is characteristically different from the microcomputer system 390 shown in FIG. 21 in that the child microcomputer 401 further includes an electronic document loading unit 317 and a restart signal receiving unit 316.

図36は、マイクロコンピュータシステム391の親マイコン400および子マイコン401,402の通常動作における処理の流れを示すフローチャートである。図36において、図22中の処理と同等の処理については、同一の符号を付している。通常動作が開始されると、子マイコン401の電文作成部311は電文306を作成する(S301)。つぎに電文書込部317は、電文作成部311が作成した電文306をログメモリ420に記録する(S361)。このとき、処理フラグ(図23)は未処理を表示している。作成された電文306は、また電文送信部312によって親マイコン400へ送信される(S302)。電文306の送信が終了すると、子マイコン401の電文書込部313は、送信が終了した電文306を、処理フラグを処理済みを示す値に設定してログメモリ420に記録する(S362)。すなわち、マイクロコンピュータシステム391では、電文書込部313は、親マイコン400等のフラグ設定部323,333と同様に、ログメモリ420に記録されている電文306について、子マイコン401の電文送信部312による送信処理が終了したことを示す処理フラグを設定する装置部分として機能する。   FIG. 36 is a flowchart showing the flow of processing in the normal operation of the parent microcomputer 400 and the child microcomputers 401 and 402 of the microcomputer system 391. 36, the same processes as those in FIG. 22 are denoted by the same reference numerals. When the normal operation is started, the message creating unit 311 of the child microcomputer 401 creates the message 306 (S301). Next, the electronic document inclusion unit 317 records the electronic message 306 created by the electronic message creation unit 311 in the log memory 420 (S361). At this time, the processing flag (FIG. 23) indicates that no processing has been performed. The created message 306 is transmitted to the parent microcomputer 400 by the message transmitting unit 312 (S302). When the transmission of the electronic message 306 is completed, the electronic document inclusion unit 313 of the child microcomputer 401 sets the processing flag to a value indicating that processing has been completed, and records the electronic message 306 of which transmission has been completed in the log memory 420 (S362). That is, in the microcomputer system 391, the electronic document loading unit 313 transmits the electronic message transmission unit 312 of the child microcomputer 401 for the electronic message 306 recorded in the log memory 420, similarly to the flag setting units 323 and 333 of the parent microcomputer 400 and the like. Function as a device part for setting a processing flag indicating that the transmission processing by the.

一方、親マイコン400は、送信された電文306を電文受信部321によって受信する(S304)。電文処理部322は受信された電文306を、その内容に応じて処理する(S305)。電文処理部322による処理が終了すると、フラグ設定部323は、処理が終了した電文306に処理済みを示すフラグを設定して、ログメモリ420へ記録する(S307)。   On the other hand, the parent microcomputer 400 receives the transmitted message 306 by the message receiving unit 321 (S304). The message processing unit 322 processes the received message 306 according to the content (S305). When the processing by the message processing unit 322 ends, the flag setting unit 323 sets a flag indicating that processing has been completed in the message 306 that has been processed, and records the flag in the log memory 420 (S307).

電文306が子マイコン402を送信先とするものである場合には、親マイコン400の電文処理部322は電文306を子マイコン402へ送信する(S305)。子マイコン402は、送信された電文306を電文受信部331によって受信する(S306)。電文処理部332は受信された電文306を、その内容に応じて処理する(S308)。電文処理部332による処理が終了すると、フラグ設定部333は、処理が終了した電文306に処理済みを示すフラグを設定して、ログメモリ420へ記録する(S309)。すなわち図35および図36の例では、子マイコン402が送信先である電文306については、子マイコン401による送信処理が終了しているか否かを示すフラグ、電文306を中継する親マイコン400による送信処理が終了しているか否かを示すフラグ、および送信先である子マイコン402による処理が終了しているか否かを示すフラグの3種類のフラグが、処理フラグとして用いられる。このようにしてログメモリ420には電文306の処理の履歴が記録される。   If the message 306 is to be sent to the child microcomputer 402, the message processing unit 322 of the parent microcomputer 400 sends the message 306 to the child microcomputer 402 (S305). The child microcomputer 402 receives the transmitted message 306 by the message receiving unit 331 (S306). The message processing unit 332 processes the received message 306 according to the content (S308). When the processing by the message processing unit 332 is completed, the flag setting unit 333 sets a flag indicating that processing has been completed in the message 306 for which processing has been completed, and records the flag in the log memory 420 (S309). That is, in the example of FIGS. 35 and 36, for the message 306 to which the child microcomputer 402 is the transmission destination, a flag indicating whether or not the transmission processing by the child microcomputer 401 has been completed, and the transmission by the parent microcomputer 400 that relays the message 306. Three types of flags are used as the processing flag: a flag indicating whether the processing has ended, and a flag indicating whether the processing by the slave microcomputer 402 that is the transmission destination has ended. In this manner, the log of the processing of the electronic message 306 is recorded in the log memory 420.

つぎに図35のブロック図および図37のフローチャートを参照しつつ、子マイコン401の再起動後に行われる未処理電文の処理について説明する。図37では、図24中の処理と同等の処理については同一の符号を付している。通常処理(S320,S321およびS322)が行われている間に、子マイコン401の動作停止の有無が監視される。動作停止の監視は、図37の例では親マイコン400によって行われる。   Next, the processing of an unprocessed message performed after the restart of the child microcomputer 401 will be described with reference to the block diagram of FIG. 35 and the flowchart of FIG. In FIG. 37, the same processes as those in FIG. 24 are denoted by the same reference numerals. While the normal processing (S320, S321, and S322) is being performed, whether or not the operation of the child microcomputer 401 has been stopped is monitored. The monitoring of the operation stop is performed by the parent microcomputer 400 in the example of FIG.

つぎに子マイコン401がハードエラー等の原因により、その動作を停止すると(S323)、親マイコン400は動作停止を検出し(S324)、さらに再起動信号308を送信する(S325)。子マイコン401が備える再起動信号受信部316が再起動信号308を受信すると(S326)、子マイコン401が再起動する(S327)。つぎに子マイコン402の電文判別部315は、ログメモリ420に記録されている電文306の判別および処理を行う(S370)。ステップS370の処理は、子マイコン401のデータベースメモリ314に記憶されるデータベースを参照することにより行われる。データベースメモリ314に記憶されるデータベースは、図25、図27および図28と同一の内容で例示される。   Next, when the child microcomputer 401 stops its operation due to a hardware error or the like (S323), the parent microcomputer 400 detects the operation stop (S324), and further transmits a restart signal 308 (S325). When the restart signal receiving unit 316 included in the child microcomputer 401 receives the restart signal 308 (S326), the child microcomputer 401 restarts (S327). Next, the message determination unit 315 of the child microcomputer 402 determines and processes the message 306 recorded in the log memory 420 (S370). The process of step S370 is performed by referring to a database stored in the database memory 314 of the child microcomputer 401. The database stored in the database memory 314 is exemplified by the same contents as in FIGS. 25, 27, and 28.

ステップS370の処理は、図38のフローチャートで例示される。図38において図26および図30中の処理と同等の処理については、同一の符号を付している。子マイコン401の電文判別部315は、ステップS370の処理を開始すると、ログメモリ420から電文306を読み出す(S341)。つぎに、電文判別部315は電文306に付された処理フラグを判定する(S342)。処理フラグが、子マイコン401の電文送信部312による送信処理が終了していることを示しておれば、その電文306についてはステップS370の処理を終了する。処理フラグが処理済みを示していなければ、現在時刻と電文306に付されたタイムスタンプとの差が、データベースメモリ314が記憶するデータベースに記述される処理期限以内であるか否かが判定される(S343)。処理期限以内であれば、電文判別部315はその電文306について電文送信部312に送信処理を行わせる(S344)。   The processing in step S370 is exemplified by the flowchart in FIG. In FIG. 38, the same processes as those in FIGS. 26 and 30 are denoted by the same reference numerals. When starting the process of step S370, the message determination unit 315 of the child microcomputer 401 reads the message 306 from the log memory 420 (S341). Next, the message determining unit 315 determines a processing flag attached to the message 306 (S342). If the processing flag indicates that the transmission process by the message transmission unit 312 of the child microcomputer 401 has ended, the process of step S370 ends for the message 306. If the processing flag does not indicate that the processing has been completed, it is determined whether or not the difference between the current time and the time stamp attached to the message 306 is within the processing time limit described in the database stored in the database memory 314. (S343). If it is within the processing time limit, the message determination unit 315 causes the message transmission unit 312 to perform transmission processing on the message 306 (S344).

つづいて電文判別部315は、データベースメモリ314に記憶されるデータベースを参照することにより、電文306の再作成が必要か否かを判定する(S352)。再作成が無用であれば、その電文306を、そのまま電文送信部312によって親マイコン400へ送信させる(S355)。あるいは、図29が示したように、再作成が無用である場合には、ステップS370の処理を終了してもよい。   Subsequently, the message determination unit 315 determines whether the message 306 needs to be re-created by referring to the database stored in the database memory 314 (S352). If the re-creation is unnecessary, the message 306 is transmitted to the parent microcomputer 400 by the message transmitting unit 312 as it is (S355). Alternatively, as shown in FIG. 29, when re-creation is unnecessary, the process of step S370 may be ended.

再作成が必要であれば、電文判別部315は電文作成部311に電文306を作成させる(S353)。再作成された電文306は、電文送信部312により親マイコン400へ送信され(ステップS354)、電文処理部322によって処理されることとなる。その後、ステップS370の処理は終了する。電文判別部315は、ステップS341〜S355の処理を、ログメモリ420に記録される電文306ごとに行ってもよく、ステップS341の読み出し処理を一括して行い、その後、読み出した電文306ごとにステップS342〜S355の処理を行ってもよい。   If re-creation is necessary, the message determination unit 315 causes the message creation unit 311 to create the message 306 (S353). The re-created message 306 is transmitted to the parent microcomputer 400 by the message transmission unit 312 (step S354), and is processed by the message processing unit 322. Then, the process of step S370 ends. The message determination unit 315 may perform the processing of steps S341 to S355 for each message 306 recorded in the log memory 420, performs the reading process of step S341 in a lump, and then performs step S341 for each of the read messages 306. The processing of S342 to S355 may be performed.

図37に戻って、ステップS370の処理が終了すると、子マイコン401は、再起動の完了を通知する電文306を電文送信部312により他のマイクロコンピュータ、すなわち親マイコン400および402へ送信する(S371)。他のマイクロコンピュータは、再起動完了通知を受信することにより、子マイコン401が再起動を完了したことを知ることができる。ステップS371の処理が終了すると、マイクロコンピュータシステム391の動作は通常処理(S320,S321,S322)へ復帰する。   Returning to FIG. 37, when the process of step S370 is completed, the child microcomputer 401 transmits a message 306 notifying the completion of the restart to the other microcomputers, that is, the parent microcomputers 400 and 402, by the message transmission unit 312 (S371). ). By receiving the restart completion notification, the other microcomputer can know that the child microcomputer 401 has completed the restart. When the processing in step S371 ends, the operation of the microcomputer system 391 returns to the normal processing (S320, S321, S322).

マイクロコンピュータシステム391は、以上のように動作するので、子マイコン401の動作停止期間中に未処理であった電文について、受信側が適切な処理を行うことができる。なお、マイクロコンピュータシステム391は、親マイコン再起動後の未処理電文の処理、および子マイコン402再起動後の未処理電文の処理についても、マイクロコンピュータシステム390と同様に処理可能である。   Since the microcomputer system 391 operates as described above, the receiving side can perform appropriate processing on a message that has not been processed during the operation stop period of the child microcomputer 401. Note that the microcomputer system 391 can also process unprocessed messages after restarting the parent microcomputer and process unprocessed messages after restarting the child microcomputer 402 in the same manner as the microcomputer system 390.

[実施の形態6]
図39は、本発明の実施の形態6によるマイクロコンピュータシステム(図19)の機能にもとづくブロック図である。このマイクロコンピュータシステム392は、親マイコン400が電文書込部327をさらに備え、子マイコン402が電文書込部337をさらに備える点において、図35に示したマイクロコンピュータシステム391とは異なっている。図40は、マイクロコンピュータシステム392の親マイコン400および子マイコン401,402の通常動作における処理の流れを示すフローチャートである。図40において、図22および図36中の処理と同等の処理については、同一の符号を付している。
Embodiment 6
FIG. 39 is a block diagram based on functions of a microcomputer system (FIG. 19) according to the sixth embodiment of the present invention. This microcomputer system 392 is different from the microcomputer system 391 shown in FIG. 35 in that the parent microcomputer 400 further includes an electronic document inserting section 327 and the child microcomputer 402 further includes an electronic document inserting section 337. FIG. 40 is a flowchart showing a flow of processing in a normal operation of the parent microcomputer 400 and the child microcomputers 401 and 402 of the microcomputer system 392. In FIG. 40, the same processes as those in FIGS. 22 and 36 are denoted by the same reference numerals.

通常動作が開始されると、子マイコン401の電文作成部311は電文306を作成する(S301)。つぎに電文書込部317は、電文作成部311が作成した電文306をログメモリ420に記録する(S361)。このとき、処理フラグ(図23)は未処理を表示している。作成された電文306は、また電文送信部312によって親マイコン400へ送信される(S302)。電文306の送信が終了すると、子マイコン401の電文書込部313は、送信が終了した電文306を、処理フラグを処理済みを示す値に設定してログメモリ420に記録する(S362)。すなわち、マイクロコンピュータシステム392においてもマイクロコンピュータシステム391と同様に、電文書込部313は、ログメモリ420に記録されている電文306について、子マイコン401の電文送信部312による送信処理が終了したことを示す処理フラグを設定する装置部分として機能する。   When the normal operation is started, the message creating unit 311 of the child microcomputer 401 creates the message 306 (S301). Next, the electronic document inclusion unit 317 records the electronic message 306 created by the electronic message creation unit 311 in the log memory 420 (S361). At this time, the processing flag (FIG. 23) indicates that no processing has been performed. The created message 306 is transmitted to the parent microcomputer 400 by the message transmitting unit 312 (S302). When the transmission of the electronic message 306 is completed, the electronic document inclusion unit 313 of the child microcomputer 401 sets the processing flag to a value indicating that processing has been completed, and records the electronic message 306 of which transmission has been completed in the log memory 420 (S362). That is, in the microcomputer system 392, similarly to the microcomputer system 391, the electronic document loading unit 313 determines that the transmission processing of the electronic message 306 recorded in the log memory 420 by the electronic message transmission unit 312 of the child microcomputer 401 has been completed. Function as a device part for setting a processing flag indicating the following.

一方、親マイコン400は、送信された電文306を電文受信部321によって受信する(S304)。つぎに電文書込部327は、電文受信部321が受信した電文306をログメモリ420に記録する(S363)。すなわち、子マイコン401の電文書込部313によってフラグが設定された電文306とは別個に、新たに電文306がログメモリ420へ記録される。ステップS363では、新たに記録される電文306の処理フラグは未処理に設定されている。   On the other hand, the parent microcomputer 400 receives the transmitted message 306 by the message receiving unit 321 (S304). Next, the telegram reader 327 records the telegram 306 received by the telegram receiver 321 in the log memory 420 (S363). That is, a new electronic message 306 is recorded in the log memory 420 separately from the electronic message 306 for which the flag has been set by the electronic document inclusion unit 313 of the child microcomputer 401. In step S363, the processing flag of the newly recorded message 306 is set to unprocessed.

電文処理部322は受信された電文306を、その内容に応じて処理する(S305)。電文処理部322による処理が終了すると、フラグ設定部323は、処理が終了した電文306に処理済みを示すフラグを設定して、ログメモリ420へ記録する(S307)。すなわち、ステップS363で新たにログメモリ420へ記録された電文306の処理フラグが、ステップS307によって未処理から処理済みへと設定される。   The message processing unit 322 processes the received message 306 according to the content (S305). When the processing by the message processing unit 322 ends, the flag setting unit 323 sets a flag indicating that processing has been completed in the message 306 that has been processed, and records the flag in the log memory 420 (S307). That is, the processing flag of the message 306 newly recorded in the log memory 420 in step S363 is set from unprocessed to processed in step S307.

電文306が子マイコン402を送信先とするものである場合には、親マイコン400の電文処理部322は電文306を子マイコン402へ送信する(S305)。つぎに電文書込部337は、電文受信部331が受信した電文306をログメモリ420に記録する(S364)。すなわち、子マイコン401の電文書込部313によって処理済みを示すフラグが設定されている電文306および親マイコン400のフラグ設定部323によって処理済みを示すフラグが設定されている電文306とは別個に、新たに電文306がログメモリ420へ記録される。ステップS364では、新たに記録される電文306の処理フラグは未処理に設定されている。電文処理部332は受信された電文306を、その内容に応じて処理する(S308)。電文処理部332による処理が終了すると、フラグ設定部333は、処理が終了した電文306に処理済みを示すフラグを設定して、ログメモリ420へ記録する(S309)。   If the message 306 is to be sent to the child microcomputer 402, the message processing unit 322 of the parent microcomputer 400 sends the message 306 to the child microcomputer 402 (S305). Next, the telegram reader 337 records the telegram 306 received by the telegram receiver 331 in the log memory 420 (S364). That is, the message 306 in which the flag indicating that the processing is completed is set by the electronic document loading unit 313 of the child microcomputer 401 and the message 306 in which the flag indicating the processing is set by the flag setting unit 323 of the parent microcomputer 400 are separately provided. , A new message 306 is recorded in the log memory 420. In step S364, the processing flag of the newly recorded message 306 is set to unprocessed. The message processing unit 332 processes the received message 306 according to the content (S308). When the processing by the message processing unit 332 is completed, the flag setting unit 333 sets a flag indicating that processing has been completed in the message 306 for which processing has been completed, and records the flag in the log memory 420 (S309).

すなわち図39および図40の例では、子マイコン402が送信先である電文306については、子マイコン401による送信処理が終了しているか否かを示すフラグが付された電文306、電文306を中継する親マイコン400による送信処理が終了しているか否かを示すフラグが付された電文306、および送信先である子マイコン402による処理が終了しているか否かを示すフラグが付された電文306の3種類の電文306が、ログメモリ420へ記録される。このようにしてログメモリ420には電文306の処理の履歴が記録される。   In other words, in the example of FIGS. 39 and 40, the message 306 to which the child microcomputer 402 is the transmission destination relays the message 306 and the message 306 to which a flag indicating whether the transmission process by the child microcomputer 401 has been completed is added. Message 306 to which a flag indicating whether or not the transmission process by the parent microcomputer 400 is completed, and a message 306 to which a flag indicating whether the process by the child microcomputer 402 as the transmission destination has been completed. Are recorded in the log memory 420. In this manner, the log of the processing of the electronic message 306 is recorded in the log memory 420.

したがってマイクロコンピュータシステム392では、電文306の履歴情報としてマイクロコンピュータシステム390および391の何れよりも多くの情報がログメモリ420に蓄積されるので、ログメモリ420のメモリ容量として最も大きい容量を必要とするが、マイクロコンピュータシステム391と同様に、再起動後の未処理電文の処理として例示した図24、図26、図29、図30、図31、図37および図38の何れの処理も実行可能である。   Therefore, in the microcomputer system 392, more information than any of the microcomputer systems 390 and 391 is stored in the log memory 420 as the history information of the message 306, so that the log memory 420 requires the largest memory capacity. However, similarly to the microcomputer system 391, any of the processes of FIGS. 24, 26, 29, 30, 31, 31, and 38 illustrated as the processes of the unprocessed message after the restart can be executed. is there.

[実施の形態7]
既に述べたように、実施の形態2による機器制御装置107(図12及び図13)では、CPU1bは、再起動した後に(図14のS16)、レジスタ21bの内容を最新の内容へ更新する(図14のS18)。CPU1bが再起動した時には、レジスタ21bは初期化され、それによりレジスタ21bの内容は初期値(デフォルト値)に戻されるのが通例である。このために、CPU1bの再起動に伴ってレジスタ21bの内容は最新の内容へ更新することが必要となる。
Embodiment 7
As described above, in the device control device 107 (FIGS. 12 and 13) according to the second embodiment, the CPU 1b updates the contents of the register 21b to the latest contents after restarting (S16 in FIG. 14) ( S18 in FIG. 14). When the CPU 1b is restarted, the register 21b is initialized, so that the content of the register 21b is usually returned to an initial value (default value). Therefore, it is necessary to update the contents of the register 21b to the latest contents with the restart of the CPU 1b.

レジスタ21bの内容を最新の内容へ更新するには、検出部37は例えば温度センサ106が検出した庫内温度をレジスタ21bに書き込むとよい。また、設定温度等の設定条件については、通信部109が設定条件を制御部108へ送信すると良い。既に述べたように、レジスタ21bの内容は、内部通知としての第2電文6を通じてレジスタ21aへ反映される。この内部通知には、レジスタ21bに保持される設定条件の通知を含めることができる。それによって、CPU1bが再起動した時に、レジスタ21aに保持される設定条件をレジスタ21bへ返すことにより、レジスタ21bが保持する設定条件を最新の内容に更新することができる。   In order to update the content of the register 21b to the latest content, the detecting unit 37 may write the internal temperature detected by the temperature sensor 106 to the register 21b, for example. Also, regarding the setting conditions such as the setting temperature, the communication unit 109 may transmit the setting conditions to the control unit 108. As described above, the content of the register 21b is reflected on the register 21a through the second message 6 as an internal notification. This internal notification can include a notification of the setting condition held in the register 21b. Thus, when the CPU 1b is restarted, the setting conditions held in the register 21a are returned to the register 21b, so that the setting conditions held in the register 21b can be updated to the latest contents.

具体的には、電文作成部48は、レジスタ21aが保持するデータのうちの設定条件を読み出し、読み出したデータにもとづいて電文6を作成する。作成された電文6は電文メモリ3aを経て、電文送信部32によって制御部108へ送信される。送信された電文6は電文受信部34によって受信される。受信された電文6は電文メモリ3aを経て、書込部35によってレジスタ21bへ書き込まれる。   Specifically, the message creating unit 48 reads the setting conditions from the data held by the register 21a, and creates the message 6 based on the read data. The created message 6 is transmitted to the control unit 108 by the message transmission unit 32 via the message memory 3a. The transmitted message 6 is received by the message receiving unit 34. The received message 6 is written to the register 21b by the writing unit 35 via the message memory 3a.

設定条件の種類によっては、レジスタ21bの初期値を最新の内容へ更新することを要しないもの、或いはむしろ更新しない方がよいものも有り得る。そのために望ましくは、通信部109が図4の通信部103と同様に判別データベースメモリ4aを有し、この判別データベースメモリ4aが、図41に例示するデータベースを記憶するとよい。図41の例では、設定条件の種類毎に、設定条件を通知すべきか否かを定めた設定条件通知フラグが記述されている。電文送信部32は、判別データベースメモリ4aが記憶するデータベースを参照することにより、設定条件通知フラグが“1”である設定条件をレジスタ21aから選択して、制御部108へ送信すると良い。   Depending on the type of the setting condition, there may be a case where it is not necessary to update the initial value of the register 21b to the latest content, or a case where it is better not to update the initial value. Desirably, the communication unit 109 has the discrimination database memory 4a similarly to the communication unit 103 of FIG. 4, and the discrimination database memory 4a should store the database illustrated in FIG. In the example of FIG. 41, a setting condition notification flag that determines whether to notify the setting condition is described for each type of setting condition. It is preferable that the message transmission unit 32 refers to the database stored in the discrimination database memory 4a, selects a setting condition whose setting condition notification flag is "1" from the register 21a, and transmits the setting condition to the control unit 108.

既に述べたように、実施の形態1による機器制御装置101(図3及び図4)では、CPU1aが再起動した後に(図9のS16)、制御部102がレジスタ21bの内容を通信部103へ伝えることにより、レジスタ21aの内容が、レジスタ21bの最新の内容により更新される(図9のS18)。CPU1aが再起動した時には、レジスタ21aは初期化され、それによりレジスタ21aの内容は初期値(デフォルト値)に戻されるのが通例である。このために、CPU1aの再起動に伴ってレジスタ21aの内容は最新の内容へ更新することが必要となる。   As already described, in the device control apparatus 101 (FIGS. 3 and 4) according to the first embodiment, after the CPU 1a is restarted (S16 in FIG. 9), the control unit 102 transmits the contents of the register 21b to the communication unit 103. As a result, the contents of the register 21a are updated with the latest contents of the register 21b (S18 in FIG. 9). When the CPU 1a is restarted, the register 21a is initialized, so that the content of the register 21a is usually returned to an initial value (default value). For this reason, it is necessary to update the contents of the register 21a to the latest contents with the restart of the CPU 1a.

更新されたレジスタ21aの内容には、温度センサ106等の制御対象の状態(例えば、庫内温度)が含まれる。CPU1aが動作を停止した後に再起動した時には、コントローラ110が把握している制御対象の状態と、レジスタ21aが保持する最新の制御対象の状態とは、一致しない場合があり得る。このため通信部103は、CPU1aの再起動後に、レジスタ21aが保持する最新の制御対象の状態をコントローラ110へ通知することが望ましい。   The updated contents of the register 21a include the state of the control target such as the temperature sensor 106 (for example, the internal temperature). When the CPU 1a restarts after stopping its operation, the state of the control target grasped by the controller 110 may not coincide with the latest state of the control target held by the register 21a. Therefore, it is desirable that the communication unit 103 notifies the controller 110 of the latest state of the control target held in the register 21a after the restart of the CPU 1a.

具体的には、電文作成部48は、レジスタ21aの更新された最新の内容のうちの制御対象の状態を読み出し、読み出した状態にもとづいて電文6を作成する。作成された電文6は電文メモリ3a及びプロトコル変換部43を経て、電文送信部44によってコントローラ110へ送信される。   Specifically, the message creating unit 48 reads the state of the control target from the updated latest contents of the register 21a, and creates the message 6 based on the read state. The created message 6 is transmitted to the controller 110 by the message transmission unit 44 via the message memory 3a and the protocol conversion unit 43.

状態の種類によっては、レジスタ21aの初期値を最新の内容へ更新することを要しないもの、或いはむしろ更新しない方がよいものも有り得る。そのために望ましくは、判別データベースメモリ4aが、図42に例示するデータベースを記憶するとよい。図42の例では、制御対象の状態の種類毎に、状態を通知すべきか否かを定めた状態通知フラグが記述されている。電文作成部48は、判別データベースメモリ4aが記憶するデータベースを参照することにより、状態通知フラグが“1”である状態をレジスタ21aから選択するとよい。   Depending on the type of state, there may be a case where it is not necessary to update the initial value of the register 21a to the latest contents, or a case where it is better not to update. For this purpose, it is desirable that the discrimination database memory 4a should store a database illustrated in FIG. In the example of FIG. 42, a state notification flag that determines whether or not to notify a state is described for each type of state to be controlled. The message creation unit 48 may select the state in which the state notification flag is “1” from the register 21a by referring to the database stored in the discrimination database memory 4a.

実施の形態3として例示したように、実施の形態1と実施の形態2とは同時に実施することが可能である。この場合には、判別データベースメモリ4aは、図41に例示するデータベースと図42に例示するデータベースを記憶すると良い。   As exemplified in the third embodiment, the first embodiment and the second embodiment can be performed at the same time. In this case, the discrimination database memory 4a may store the database illustrated in FIG. 41 and the database illustrated in FIG.

設定条件通知フラグ及び状態通知フラグは、コントローラ110による設定を可能にするのが望ましい。そのためには、コントローラ110は、図43に例示するデータ構造を有する電文6を機器制御装置101、107、115又は120へ送信すると良い。図43において、ヘッダは送信元(即ち、コントローラ110)及び送信先(即ち、機器制御装置101等)を識別する符号を含んでいる。電文内容は、図41又は図42に例示した通知の種類を示す情報である。データには、設定条件通知フラグ又は状態通知フラグが含まれている。別の例として、電文内容は設定条件通知又は状態通知を示し、データは設定条件通知フラグを“1”に設定すべき通知内容(例えば、設定条件aについての通知)又は状態通知フラグを“1”に設定すべき通知内容(例えば、状態Aについての通知)を示すものであってもよい。また、データはフラグを“1”に設定すべき2以上の通知内容を同時に示してもよく、その場合には、予め定められた複数の通知内容のうちフラグを“1”に設定すべき通知内容をビットマップで表現しても良い。   It is desirable that the setting condition notification flag and the status notification flag can be set by the controller 110. For this purpose, the controller 110 may transmit the electronic message 6 having the data structure illustrated in FIG. 43 to the device control apparatus 101, 107, 115, or 120. In FIG. 43, the header includes codes for identifying the transmission source (that is, the controller 110) and the transmission destination (that is, the device control device 101 and the like). The message content is information indicating the type of notification illustrated in FIG. 41 or FIG. The data includes a setting condition notification flag or a status notification flag. As another example, the message content indicates a setting condition notification or a status notification, and the data indicates a notification content (for example, a notification about the setting condition a) or a status notification flag to set the setting condition notification flag to “1”. The notification content (for example, notification about the state A) to be set to "" may be displayed. Further, the data may simultaneously indicate two or more notification contents for which the flag should be set to "1". In this case, among the plurality of predetermined notification contents, the notification for which the flag should be set to "1" The contents may be represented by a bitmap.

図4に示す実施の形態1による機器制御装置101を例に挙げると、コントローラ110は、機器制御装置101が通信回線Lを通じてコントローラ110に接続された直後に、図43に例示する電文6を機器制御装置101へ送信すると良い。送信された電文6は、電文受信部30によって受信される。受信された電文6は、プロトコル変換部31及び電文メモリ3aを経て、書込部46によって判別データベースメモリ4aへデータベースとして格納される。   Taking the device control device 101 according to the first embodiment shown in FIG. 4 as an example, the controller 110 transmits the message 6 illustrated in FIG. 43 to the device immediately after the device control device 101 is connected to the controller 110 via the communication line L. It may be transmitted to the control device 101. The transmitted message 6 is received by the message receiving unit 30. The received message 6 is stored as a database in the discrimination database memory 4a by the writing unit 46 via the protocol conversion unit 31 and the message memory 3a.

[その他の実施の形態]
実施の形態1〜3及び7において、レジスタ21a及び21bは、それぞれCPU1a及び1bが有するレジスタとして構成されたが、CPU1a及び1bとは別体のRAM(Random Access Memory)等の記憶媒体として構成しても良い。
[Other embodiments]
In the first to third and seventh embodiments, the registers 21a and 21b are configured as registers included in the CPUs 1a and 1b, respectively. However, the registers 21a and 21b are configured as storage media such as a RAM (Random Access Memory) separate from the CPUs 1a and 1b. May be.

本発明の実施の形態による電文処理装置のハードウェア構成を示すブロック図である。FIG. 2 is a block diagram illustrating a hardware configuration of the message processing device according to the embodiment of the present invention. 本発明の実施の形態による電文処理装置の機能にもとづくブロック図である。It is a block diagram based on the function of the message processing apparatus by embodiment of this invention. 本発明の実施の形態1による機器制御装置のハードウェア構成を示すブロック図である。FIG. 2 is a block diagram illustrating a hardware configuration of the device control device according to the first embodiment of the present invention. 本発明の実施の形態1による機器制御装置の機能にもとづくブロック図である。FIG. 2 is a block diagram based on functions of the device control device according to the first embodiment of the present invention. 本発明の実施の形態1による機器制御装置が取り扱う電文の内容を示す説明図である。FIG. 4 is an explanatory diagram illustrating contents of a message handled by the device control device according to the first embodiment of the present invention. 本発明の実施の形態1による通信部の動作手順を示すフローチャートである。5 is a flowchart illustrating an operation procedure of the communication unit according to the first embodiment of the present invention. 本発明の実施の形態1による通信部が取り扱う電文の発生と処理との関係を示す説明図である。FIG. 4 is an explanatory diagram illustrating a relationship between generation and processing of a message handled by a communication unit according to the first embodiment of the present invention. 本発明の実施の形態1による電文のデータ構造を示す説明図である。FIG. 3 is an explanatory diagram illustrating a data structure of a message according to the first embodiment of the present invention. 本発明の実施の形態1による通信部の動作手順を示すフローチャートである。5 is a flowchart illustrating an operation procedure of the communication unit according to the first embodiment of the present invention. 本発明の実施の形態1によるデータベースメモリに記憶されるデータベースの一例を示す説明図である。FIG. 4 is an explanatory diagram illustrating an example of a database stored in a database memory according to the first embodiment of the present invention. 本発明の実施の形態1による滞留電文の判別および処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure for determining and processing a retained telegram according to the first embodiment of the present invention. 本発明の実施の形態2による機器制御装置のハードウェア構成を示すブロック図である。FIG. 7 is a block diagram illustrating a hardware configuration of a device control device according to a second embodiment of the present invention. 本発明の実施の形態2による機器制御装置の機能にもとづくブロック図である。It is a block diagram based on the function of the apparatus control apparatus by Embodiment 2 of this invention. 本発明の実施の形態2による制御部の動作手順を示すフローチャートである。9 is a flowchart illustrating an operation procedure of the control unit according to the second embodiment of the present invention. 本発明の実施の形態2によるデータベースメモリに記憶されるデータベースの一例を示す説明図である。FIG. 8 is an explanatory diagram illustrating an example of a database stored in a database memory according to Embodiment 2 of the present invention. 本発明の実施の形態3による機器制御装置のハードウェア構成を示すブロック図である。FIG. 13 is a block diagram illustrating a hardware configuration of a device control device according to a third embodiment of the present invention. 本発明の変形例による機器制御装置のハードウェア構成を示すブロック図である。FIG. 9 is a block diagram illustrating a hardware configuration of a device control device according to a modified example of the present invention. 本発明の変形例による機器制御装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the apparatus control apparatus by the modification of this invention. 本発明の実施の形態4によるマイクロコンピュータシステムのハードウェア構成図である。FIG. 13 is a hardware configuration diagram of a microcomputer system according to a fourth embodiment of the present invention. 本発明の実施の形態4による各マイクロコンピュータのハードウェア構成図である。FIG. 14 is a hardware configuration diagram of each microcomputer according to a fourth embodiment of the present invention. 本発明の実施の形態4によるマイクロコンピュータシステムの機能ブロック図である。FIG. 13 is a functional block diagram of a microcomputer system according to a fourth embodiment of the present invention. 本発明の実施の形態4によるマイクロコンピュータシステムの通常処理の流れを示すフローチャートである。13 is a flowchart illustrating a flow of a normal process of the microcomputer system according to the fourth embodiment of the present invention. 本発明の実施の形態4による電文のデータ構造図である。FIG. 11 is a data structure diagram of a telegram according to a fourth embodiment of the present invention. 本発明の実施の形態4による親マイコン再起動後のマイクロコンピュータシステムの処理を示すフローチャートである。14 is a flowchart showing processing of the microcomputer system after restarting the parent microcomputer according to the fourth embodiment of the present invention. 本発明の実施の形態4によるデータベースの内容例を示す説明図である。FIG. 14 is an explanatory diagram showing an example of the contents of a database according to a fourth embodiment of the present invention. 図24のステップS328の処理を示すフローチャートである。25 is a flowchart illustrating the process of step S328 in FIG. 本発明の実施の形態4によるデータベースの内容例を示す説明図である。FIG. 14 is an explanatory diagram showing an example of the contents of a database according to a fourth embodiment of the present invention. 本発明の実施の形態4によるデータベースの内容例を示す説明図である。FIG. 14 is an explanatory diagram showing an example of the contents of a database according to a fourth embodiment of the present invention. 図24のステップS330の処理を示すフローチャートである。25 is a flowchart showing the process of step S330 in FIG. 図24のステップS330の別の処理例を示すフローチャートである。25 is a flowchart illustrating another processing example of step S330 in FIG. 24. 本発明の実施の形態4による受信側の子マイコン再起動後のマイクロコンピュータシステムの処理を示すフローチャートである。13 is a flowchart illustrating processing of the microcomputer system after the child microcomputer on the receiving side is restarted according to the fourth embodiment of the present invention. 本発明の実施の形態4による動作停止監視のための一構成例を示すブロック図である。FIG. 14 is a block diagram showing an example of a configuration for monitoring operation stop according to a fourth embodiment of the present invention. 本発明の実施の形態4による動作停止監視のための別の構成例を示すブロック図である。FIG. 14 is a block diagram showing another configuration example for monitoring operation stop according to the fourth embodiment of the present invention. 本発明の実施の形態4による動作停止監視のための更に別の構成例を示すブロック図である。FIG. 15 is a block diagram showing still another configuration example for monitoring operation stop according to the fourth embodiment of the present invention. 本発明の実施の形態5によるマイクロコンピュータシステムの機能ブロック図である。FIG. 13 is a functional block diagram of a microcomputer system according to a fifth embodiment of the present invention. 本発明の実施の形態5によるマイクロコンピュータシステムの通常処理の流れを示すフローチャートである。15 is a flowchart showing a flow of a normal process of the microcomputer system according to the fifth embodiment of the present invention. 本発明の実施の形態5による送信の子マイコン再起動後のマイクロコンピュータシステムの処理を示すフローチャートである。15 is a flowchart showing processing of the microcomputer system after restarting a transmission child microcomputer according to the fifth embodiment of the present invention. 図37のステップS370の処理を示すフローチャートである。38 is a flowchart showing the process of step S370 in FIG. 本発明の実施の形態6によるマイクロコンピュータシステムの機能ブロック図である。FIG. 15 is a functional block diagram of a microcomputer system according to a sixth embodiment of the present invention. 本発明の実施の形態6によるマイクロコンピュータシステムの通常処理の流れを示すフローチャートである。16 is a flowchart showing a flow of a normal process of the microcomputer system according to the sixth embodiment of the present invention. 本発明の実施の形態7によるデータベースメモリに記憶されるデータベースの一例を示す説明図である。FIG. 15 is an explanatory diagram showing an example of a database stored in a database memory according to Embodiment 7 of the present invention. 本発明の実施の形態7によるデータベースメモリに記憶されるデータベースの別の一例を示す説明図である。FIG. 21 is an explanatory diagram showing another example of the database stored in the database memory according to Embodiment 7 of the present invention. 本発明の実施の形態7による電文のデータ構造を示す説明図である。FIG. 19 is an explanatory diagram showing a data structure of a message according to Embodiment 7 of the present invention.

符号の説明Explanation of reference numerals

3,3a、3b、3c・・・電文メモリ(電文記憶部)
4,4a、4b、4c・・・・判別データベースメモリ(判別データベース記憶部)
6・・・・電文 8・・・・再起動信号 10・・・・電文発生部
11,30,34,42・・・・電文受信部 12,40,46・・・・電文作成部
15・・・・電文処理部 16,32,41,44・・・・電文送信部
18・・・・識別符号付加部 20,33,62・・・・電文判別部
33,45,60,61・・・・フラグ設定部(識別符号付加部)
35・・・・書込部(電文処理部) 100・・・・電文処理装置
101,107,115,120・・・・機器制御装置
102,108・・・・制御部 103,109・・・・通信部
110・・・・コントローラ(外部装置) 111・・・・他の家電機器(外部装置)
L・・・・通信回線 306・・・・電文 308・・・・再起動信号
311・・・・電文作成部 312・・・・電文送信部
313、317,327,337・・・・電文書込部
314,324,334・・・・データベースメモリ
315,325,335・・・・電文判別部 322,332・・・・電文処理部
323,333・・・・フラグ設定部(識別符号付加部)
390,391,392・・・・マイクロコンピュータシステム
400,401,402、403,404・・・・マイクロコンピュータ
420・・・・ログメモリ 501・・・・冷蔵庫(家電機器)
3, 3a, 3b, 3c: Message memory (message storage unit)
4, 4a, 4b, 4c... Discrimination database memory (discrimination database storage unit)
6, a message 8, a restart signal 10, a message generator 11, 30, 34, 42, a message receiver 12, 40, 46, a message generator 15, ··· Message processing unit 16, 32, 41, 44 ··· Message transmission unit 18 ··· Identification code adding unit 20, 33, 62 ··· Message determination unit 33, 45, 60, 61 ··· ..Flag setting section (identification code adding section)
35 writing unit (message processing unit) 100 message processing device 101, 107, 115, 120 device controller 102, 108 control unit 103, 109 Communication unit 110 Controller (external device) 111 Home appliance (external device)
L: communication line 306: message 308: restart signal 311: message creation unit 312: message transmission unit 313, 317, 327, 337: message ... Database memory 315, 325, 335... Message discriminating unit 322, 332... Message processing unit 323, 333... Flag setting unit (identification code adding unit) )
390, 391, 392 microcomputer system 400, 401, 402, 403, 404 microcomputer 420 log memory 501 refrigerator (home appliance)

Claims (24)

外部と電文をやり取りすることにより処理を行う電文処理装置であって、
外部から電文を受信する電文受信手段と電文を作成する電文作成手段との少なくとも1を有する電文発生手段と、
前記電文発生手段が受信または作成した前記電文を記憶する電文記憶手段と、
前記電文記憶手段が記憶する前記電文を読み出し、前記電文にもとづく処理をする電文処理手段と、
前記処理が終了した電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、
前記電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、
前記電文処理装置が動作停止した後に受信する再起動信号に応答して前記電文を前記電文記憶手段から読み出し、読み出した前記電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記処理をさせる電文判別手段と、を備える電文処理装置。
An electronic message processing device that performs processing by exchanging electronic messages with the outside,
A message generating means having at least one of a message receiving means for receiving a message from outside and a message creating means for creating a message;
Message storage means for storing the message received or created by the message generation means,
A message processing unit that reads the message stored by the message storage unit and performs a process based on the message;
An identification code adding unit that adds the identification code indicating that the process has been completed to the message, and records the message in the message storage unit,
Discrimination database storage means for storing a database describing a processing time limit for each content of the message,
In response to the restart signal received after the operation of the message processing device is stopped, the message is read from the message storage unit, and for the read messages without the identification code, the database is referred to. And a message discriminating means for causing the message processing means to perform the process only for a message within the processing time limit.
前記電文発生手段は、前記電文作成手段を有しており、
前記データベースは、前記電文作成手段が作成する前記電文の内容ごとに、前記処理期限経過後において前記電文を新たに作成すべきか否かをさらに記述しており、
前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に新たに前記電文を作成させる請求項1に記載の電文処理装置。
The message generating means has the message creating means,
The database further describes, for each content of the message created by the message creating means, whether the message should be newly created after the processing time limit has elapsed,
The message determination means, in response to the restart signal, from among the messages read from the message storage means, the identification code is not attached, for those after the processing time limit, the database, The message processing device according to claim 1, further comprising causing the message creation unit to newly create the message only for items to be newly created by referring to the message.
通信回線を通じて外部装置と電文をやり取りすることにより機器の制御を行う制御部と、
前記制御部と前記通信回線との間に介在してこれら双方に整合するよう前記電文のプロトコル変換を行う通信部と、を備える機器制御装置であって、
前記通信部は、
前記通信回線から送られる第1電文と前記制御部から送られる第2電文とを受信する電文受信手段と、
前記電文受信手段が受信した前記第1電文および前記第2電文を記憶する電文記憶手段と、
前記電文記憶手段が記憶する前記第1電文および前記第2電文を読み出し、読み出した前記第1電文の前記制御部への送信をし、読み出した前記第2電文の前記通信回線への送信をする電文処理手段と、
前記電文処理手段による前記送信が終了した前記第1電文および前記第2電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、
前記第1電文および前記第2電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、
前記通信部が動作停止した後に受信する再起動信号に応答して前記第1電文および前記第2電文を前記電文記憶手段から読み出し、読み出した前記第1電文および前記第2電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記送信をさせる電文判別手段と、を備える機器制御装置。
A control unit that controls equipment by exchanging messages with an external device through a communication line;
A communication unit that performs protocol conversion of the message so as to match both the control unit and the communication line interposed between the control unit and the communication line,
The communication unit,
Message receiving means for receiving a first message sent from the communication line and a second message sent from the control unit;
Message storage means for storing the first message and the second message received by the message receiving means;
The first message and the second message stored in the message storage unit are read, the read first message is transmitted to the control unit, and the read second message is transmitted to the communication line. Message processing means;
An identification code adding unit that adds the identification code indicating that the transmission has been completed and records the first and second telegrams that have been transmitted by the telegram processing unit to the telegram storage unit;
Discrimination database storage means for storing a database describing a processing time limit for each content of the first message and the second message;
The first message and the second message are read from the message storage unit in response to a restart signal received after the communication unit stops operating, and the identification code is read out of the read first message and the second message. A message discriminating means for causing the message processing means to transmit the message only when the term is within the processing time limit by referring to the database for those not marked with.
前記通信部は、第3電文を作成する電文作成手段をさらに備え、
前記電文記憶手段は、前記電文作成手段が作成した前記第3電文をも記憶し、
前記電文処理手段は、前記電文記憶手段が記憶する前記第3電文をも読み出し、読み出した前記第3電文の前記通信回線への送信を行い、読み出した前記第1電文については前記制御部へのデータ要求を内容とするものを除いて前記制御部への送信をし、前記データ要求を内容とするものについては前記電文作成手段に前記第3電文を作成させ、
前記識別符号付加手段は、前記電文処理手段による前記送信が終了した前記第3電文をも、処理済みを示す前記識別符号を付して前記電文記憶手段に記録し、
前記データベースは、前記第3電文についてもその内容ごとに前記処理期限を記述しており、
前記電文判別手段は、前記再起動信号に応答して前記第3電文をも前記電文記憶手段から読み出し、読み出した前記第3電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記送信をさせ、
前記制御部は、前記電文作成部が前記データ要求に応じて前記第3電文を作成するのに必要なデータを、前記通信部へ送信する請求項3に記載の機器制御装置。
The communication unit further includes a message creating unit that creates a third message.
The message storage means also stores the third message created by the message creation means,
The message processing unit also reads the third message stored in the message storage unit, transmits the read third message to the communication line, and sends the read first message to the control unit. Send to the control unit except for the one that contains the data request, and for the one that contains the data request, let the message creation means create the third message,
The identification code adding unit also records the third electronic message for which the transmission by the electronic message processing unit has been completed in the electronic message storage unit with the identification code indicating that processing has been completed,
The database also describes the processing deadline for each content of the third message,
In response to the restart signal, the message determination unit also reads the third message from the message storage unit, and refers to the database for the read third message without the identification code. By doing so, only those within the processing time limit, the message processing means to send the,
The device control device according to claim 3, wherein the control unit transmits data necessary for the message creation unit to create the third message in response to the data request, to the communication unit.
前記データベースは、前記第3電文の内容ごとに、前記処理期限経過後において前記第3電文を新たに作成すべきか否かをさらに記述しており、
前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記第3電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に前記第3電文として新たに作成させ、
前記制御部は、前記再起動信号によって前記通信部が動作を再開した後に、前記電文作成部が前記第3電文を新たに作成するのに必要なデータを前記通信部へ送信する請求項4に記載の機器制御装置。
The database further describes, for each content of the third message, whether or not the third message should be newly created after the processing time limit has elapsed,
In the third message read from the message storage unit in response to the restart signal, the message determination unit may not be attached to the identification code, and the third message after the processing time limit has passed, By further referring to the database, only the message to be newly created is caused to be newly created by the message creating means as the third message,
5. The control unit according to claim 4, wherein after the communication unit resumes operation by the restart signal, the message creation unit transmits data necessary for newly creating the third message to the communication unit. The device control device according to the above.
前記データベースは、前記第2電文についてもその内容ごとに、前記処理期限経過後において前記第2電文を新たに作成すべきか否かをさらに記述しており、
前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記第2電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に前記第3電文として新たに作成させ、
前記制御部は、前記再起動信号によって前記通信部が動作を再開した後に、前記電文作成部が前記第3電文として電文を新たに作成するのに必要なデータをも前記通信部へ送信する請求項5に記載の機器制御装置。
The database further describes, for each content of the second message, whether or not the second message should be newly created after the processing time limit has elapsed,
The electronic message discriminating means, of the second electronic message read from the electronic message storage means in response to the restart signal, the identification code is not attached, and for the one after the processing time limit, the By further referring to the database, only the message to be newly created is caused to be newly created by the message creating means as the third message,
The control unit, after the communication unit resumes operation according to the restart signal, also transmits data necessary for the message creation unit to newly create a message as the third message to the communication unit. Item 6. The device control device according to Item 5.
前記制御部は、前記通信部の動作を監視し、前記通信部が動作停止すると前記再起動信号を前記通信部へ送信する請求項3ないし6のいずれかに記載の機器制御装置。   The device control device according to claim 3, wherein the control unit monitors an operation of the communication unit, and transmits the restart signal to the communication unit when the communication unit stops operating. 通信回線を通じて外部装置と電文をやり取りすることにより機器の制御を行う制御部と、
前記制御部と前記通信回線との間に介在して、これら双方に整合するよう前記電文のプロトコル変換を行う通信部と、を備える機器制御装置であって、
前記制御部は、
前記通信部から送られる第1電文を受信する電文受信手段と、
第2電文を作成する電文作成手段と、
前記電文受信手段が受信した前記第1電文および前記電文作成手段が作成した前記第2電文を記憶する電文記憶手段と、
前記電文記憶手段が記憶する前記第1電文および前記第2電文を読み出し、読み出した前記第1電文に基づく前記機器の制御を行い、読み出した前記第2電文の前記通信部への送信をする電文処理手段と、
前記電文処理手段による前記制御が終了した前記第1電文および前記送信が終了した前記第2電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、
前記第1電文および前記第2電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、
前記通信部が動作停止した後に受信する再起動信号に応答して前記第1電文および前記第2電文を前記電文記憶手段から読み出し、読み出した前記第1電文および前記第2電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記送信または制御をさせる電文判別手段と、を備える機器制御装置。
A control unit that controls equipment by exchanging messages with an external device through a communication line;
A communication unit that intervenes between the control unit and the communication line and performs a protocol conversion of the message so as to match both of them,
The control unit includes:
Message receiving means for receiving a first message sent from the communication unit;
Message creation means for creating a second message;
Message storage means for storing the first message received by the message reception means and the second message created by the message creation means;
A message for reading the first message and the second message stored in the message storage unit, controlling the device based on the read first message, and transmitting the read second message to the communication unit. Processing means;
Identification code adding means for recording, in the electronic message storage means, the first electronic message for which the control by the electronic message processing means has been completed and the second electronic message for which the transmission has been completed, with an identification code indicating that processing has been completed;
Discrimination database storage means for storing a database describing a processing time limit for each content of the first message and the second message;
The first message and the second message are read from the message storage unit in response to a restart signal received after the communication unit stops operating, and the identification code is read out of the read first message and the second message. An electronic device control device comprising: a device that does not have a tag attached thereto, and refers to the database and limits only the device within the processing time limit to the message processing device to perform the transmission or the control.
前記データベースは前記第2電文の内容ごとに、前記処理期限経過後において前記第2電文を新たに作成すべきか否かをさらに記述しており、
前記電文判別手段は、前記再起動信号に応答して前記電文記憶手段から読み出した前記第2電文のうち、前記識別符号が付されておらず、かつ前記処理期限経過後のものについては、前記データベースをさらに参照することにより、新たに作成すべきものについてのみ前記電文作成手段に前記第2電文を新たに作成させる請求項8に記載の機器制御装置。
The database further describes, for each content of the second message, whether the second message should be newly created after the processing time limit elapses,
The electronic message discriminating means, of the second electronic message read from the electronic message storage means in response to the restart signal, the identification code is not attached, and for the one after the processing time limit, the The device control device according to claim 8, further causing the message creation unit to newly create the second message by only referring to a database.
前記通信部は、前記制御部の動作を監視し、前記制御部が動作停止すると前記再起動信号を前記制御部へ送信する請求項8または9に記載の機器制御装置。   The device control device according to claim 8, wherein the communication unit monitors an operation of the control unit, and transmits the restart signal to the control unit when the control unit stops operating. 請求項1または2に記載の電文処理装置、または請求項3ないし10のいずれかに記載の機器制御装置を備える家電機器。   A home electric appliance comprising the electronic text processing device according to claim 1 or 2, or the appliance control device according to any one of claims 3 to 10. 外部と電文をやり取りすることにより処理を行う電文処理装置を、
外部から電文を受信する電文受信手段と電文を作成する電文作成手段との少なくとも1を有する電文発生手段と、
前記電文発生手段が受信または作成した前記電文を記憶する電文記憶手段と、
前記電文記憶手段が記憶する前記電文を読み出し、前記電文にもとづく処理をする電文処理手段と、
前記処理が終了した電文を、処理済みを示す識別符号を付して前記電文記憶手段に記録する識別符号付加手段と、
前記電文の内容ごとに処理期限を記述したデータベースを記憶する判別データベース記憶手段と、
前記電文処理装置が動作停止した後に受信する再起動信号に応答して前記電文を前記電文記憶手段から読み出し、読み出した前記電文のうち前記識別符号が付されていないものについて、前記データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に前記処理をさせる電文判別手段として機能させる電文処理装置用プログラム。
A message processing device that performs processing by exchanging messages with the outside,
A message generating means having at least one of a message receiving means for receiving a message from outside and a message creating means for creating a message;
Message storage means for storing the message received or created by the message generation means,
A message processing unit that reads the message stored by the message storage unit and performs a process based on the message;
An identification code adding unit that adds the identification code indicating that the process has been completed to the message, and records the message in the message storage unit,
Discrimination database storage means for storing a database describing a processing time limit for each content of the message,
In response to the restart signal received after the operation of the message processing device is stopped, the message is read from the message storage unit, and for the read messages without the identification code, the database is referred to. Thus, a program for a message processing device that functions as a message discriminating unit that causes the message processing unit to perform the process only for a message within the processing time limit.
互いの間で電文を通信する複数のマイクロコンピュータと、前記複数のマイクロコンピュータの何れもが読み書き可能なログメモリと、を備えるマイクロコンピュータシステムであって、
前記複数のマイクロコンピュータの一である第1マイクロコンピュータは、
前記電文を作成する電文作成手段と、
前記電文作成手段が作成した前記電文を、前記複数のマイクロコンピュータの別の一である第2マイクロコンピュータへ送信する電文送信手段と、
前記電文送信手段が送信する前記電文を前記ログメモリに記録する第1電文書込手段と、
前記電文の内容ごとに処理期限を記述した第1データベースを記憶する第1データベースメモリと、を備え、
前記第2マイクロコンピュータは、
前記電文送信手段が送信した前記電文を、その内容に応じて処理する電文処理手段と、
前記ログメモリに記録された前記電文のうち前記電文処理手段による処理が終了したものについて、処理済みを示す第1識別符号を付して前記ログメモリへ記録する識別符号付加手段と、
前記電文の内容ごとに処理期限を記述した第2データベースを記憶する第2データベースメモリと、
前記第2マイクロコンピュータが動作停止した後に受信する再起動信号に応答して、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第2データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に処理をさせる第1電文判別手段と、を備え、
前記第1マイクロコンピュータは、
前記第2マイクロコンピュータが前記再起動信号を受信した後に、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第1データベースを参照することにより、前記処理期限経過後のものに限り、前記電文作成手段に新たに電文を作成させる第2電文判別手段を、さらに備えるマイクロコンピュータシステム。
A microcomputer system including a plurality of microcomputers that communicate messages between each other, and a log memory in which any of the plurality of microcomputers can read and write,
A first microcomputer, which is one of the plurality of microcomputers,
Message creation means for creating the message,
A message transmitting unit that transmits the message created by the message creating unit to a second microcomputer that is another of the plurality of microcomputers;
First electronic document incorporation means for recording the electronic message transmitted by the electronic message transmitting means in the log memory;
A first database memory for storing a first database describing a processing time limit for each content of the message,
The second microcomputer comprises:
A message processing unit that processes the message transmitted by the message transmission unit according to the content thereof;
An identification code adding unit that adds a first identification code indicating that processing has been completed to the electronic mail recorded in the log memory and records the processed electronic mail in the log memory;
A second database memory for storing a second database describing a processing time limit for each content of the message;
In response to a restart signal received after the operation of the second microcomputer is stopped, the electronic device reads the electronic message from the log memory. A first message discriminating means for causing the message processing means to perform processing only for those within the processing time limit by referring to the second database;
The first microcomputer includes:
After the second microcomputer receives the restart signal, the electronic device reads the electronic message from the log memory, and refers to the first database for the electronic device that does not have the first identification code among the read electronic messages. Accordingly, the microcomputer system further includes a second message discriminating unit that causes the message creating unit to newly create a message only after the elapse of the processing time limit.
前記第1データベースは、前記電文の内容ごとに、前記処理期限後に前記電文を新たに作成すべきか否かをさらに記述しており、
前記第2電文判別手段は、前記ログメモリから読み出した前記電文のうち前記第1識別符号が付されておらず、かつ前記処理期限経過後のものについて、前記第1データベースをさらに参照することにより、新たに作成すべきものに限り、前記電文作成手段に新たに電文を作成させる請求項13に記載のマイクロコンピュータシステム。
The first database further describes, for each content of the message, whether the message should be newly created after the processing time limit,
The second message discrimination means further refers to the first database for the message read from the log memory, to which the first identification code is not attached and which has passed the processing time limit. 14. The microcomputer system according to claim 13, wherein said message creating means creates a new message only for a new message to be created.
前記第2電文判別手段は、前記ログメモリから読み出した前記電文のうち前記第1識別符号が付されておらず、前記処理期限経過後のものであって、かつ新たに作成すべきものでないものを、前記電文送信手段に送信させる請求項14に記載のマイクロコンピュータシステム。   The second message discriminating means may determine, among the messages read from the log memory, those that do not have the first identification code, that have passed the processing time limit, and that should not be newly created. 15. The microcomputer system according to claim 14, wherein said electronic mail transmission means transmits said electronic mail. 前記第1マイクロコンピュータは、
前記電文作成手段が作成した前記電文を前記ログメモリに記録する第2電文書込手段をさらに備え、
前記第1電文書込手段は、前記第2電文書込手段が記録した前記電文のうち、前記電文送信手段による送信が終了したものについて、処理済みを示す第2識別符号を付して前記ログメモリに記録し、
前記第1マイクロコンピュータは、
前記第1マイクロコンピュータが動作停止した後に受信する再起動信号に応答して、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第2識別符号が付されていないものについて、前記第1データベースを参照することにより、前記処理期限内のものに限り前記電文送信手段に送信させ、前記処理期限経過後のものについては、前記電文作成手段に新たに電文を作成させる第3電文判別手段をさらに備える請求項13に記載のマイクロコンピュータシステム。
The first microcomputer includes:
A second electronic document incorporation unit that records the electronic message created by the electronic message creation unit in the log memory;
The first electronic document embedding unit attaches a second identification code indicating that processing has been completed to the log of the messages recorded by the second electronic document embedding unit, the transmission of which has been completed by the electronic message sending unit. Record in memory,
The first microcomputer includes:
In response to a restart signal received after the first microcomputer has stopped operating, reading out the message from the log memory, and reading out the message not attached with the second identification code, A third message discriminating unit that causes the message transmitting unit to transmit only messages within the processing time limit by referring to the first database, and causes the message generating device to newly generate a message after the processing time limit has elapsed The microcomputer system according to claim 13, further comprising:
前記第1データベースは、前記電文の内容ごとに、前記処理期限後に前記電文を新たに作成すべきか否かをさらに記述しており、
前記第3電文判別手段は、前記ログメモリから読み出した前記電文のうち前記第2識別符号が付されておらず、かつ前記処理期限経過後のものについて、前記第1データベースをさらに参照することにより、新たに作成すべきものに限り、前記電文作成手段に新たに電文を作成させる請求項16に記載のマイクロコンピュータシステム。
The first database further describes, for each content of the message, whether the message should be newly created after the processing time limit,
The third message discriminating means further refers to the first database for the message read from the log memory, to which the second identification code is not attached and which has passed the processing time limit. 17. The microcomputer system according to claim 16, wherein said message creating means creates a new message only for a message to be newly created.
前記第3電文判別手段は、前記ログメモリから読み出した前記電文のうち前記第2識別符号が付されておらず、前記処理期限経過後のものであって、かつ新たに作成すべきものでないものを、前記電文送信手段に送信させる請求項17に記載のマイクロコンピュータシステム。   The third message discriminating means determines, among the messages read from the log memory, those not having the second identification code, those after the processing time limit, and which should not be newly created. 18. The microcomputer system according to claim 17, wherein said electronic mail transmission means transmits said electronic mail. 前記複数のマイクロコンピュータが、互いの間で電文を通信する親マイクロコンピュータと複数の子マイクロコンピュータとを含み、前記複数の子マイクロコンピュータの間での前記電文の通信は、前記親マイクロコンピュータを中継して行われ、
前記第1マイクロコンピュータは、前記複数の子マイクロコンピュータの一であり、
前記第2マイクロコンピュータは、前記親マイクロコンピュータである請求項13ないし18の何れかに記載のマイクロコンピュータシステム。
The plurality of microcomputers include a parent microcomputer and a plurality of child microcomputers that communicate messages between each other, and the communication of the message between the plurality of child microcomputers relays the parent microcomputer. Done
The first microcomputer is one of the plurality of child microcomputers,
19. The microcomputer system according to claim 13, wherein said second microcomputer is said parent microcomputer.
前記複数のマイクロコンピュータが、互いの間で電文を通信する親マイクロコンピュータと複数の子マイクロコンピュータとを含み、前記複数の子マイクロコンピュータの間での前記電文の通信は、前記親マイクロコンピュータを中継して行われ、
前記第1マイクロコンピュータは、前記複数の子マイクロコンピュータの一であり、
前記第2マイクロコンピュータは、前記複数の子マイクロコンピュータの別の一である請求項13ないし18の何れかに記載のマイクロコンピュータシステム。
The plurality of microcomputers include a parent microcomputer and a plurality of child microcomputers that communicate messages between each other, and the communication of the message between the plurality of child microcomputers relays the parent microcomputer. Done
The first microcomputer is one of the plurality of child microcomputers,
19. The microcomputer system according to claim 13, wherein said second microcomputer is another of said plurality of child microcomputers.
前記複数の子マイクロコンピュータのうちの少なくとも1は、
前記親マイクロコンピュータの動作を監視し、前記親マイクロコンピュータが動作を停止すると前記再起動信号を前記親マイクロコンピュータへ送信する請求項19または20に記載のマイクロコンピュータシステム。
At least one of the plurality of child microcomputers includes:
21. The microcomputer system according to claim 19, wherein the operation of the parent microcomputer is monitored, and the restart signal is transmitted to the parent microcomputer when the parent microcomputer stops operating.
前記親マイクロコンピュータは、
前記複数の子マイクロコンピュータの動作を監視し、前記複数の子マイクロコンピュータの何れかが動作を停止すると、動作を停止した前記子マイクロコンピュータへ前記再起動信号を送信する請求項19ないし21のいずれかに記載のマイクロコンピュータシステム。
The parent microcomputer,
22. The apparatus according to claim 19, wherein the operation of the plurality of child microcomputers is monitored, and when any one of the plurality of child microcomputers stops operating, the restart signal is transmitted to the child microcomputer that has stopped operating. The microcomputer system according to any one of the above.
請求項13ないし22のいずれかに記載のマイクロコンピュータシステムを備える家電機器。   An electric home appliance comprising the microcomputer system according to any one of claims 13 to 22. 互いの間で電文を通信する複数のマイクロコンピュータと、前記複数のマイクロコンピュータの何れもが読み書き可能なログメモリと、を備えるマイクロコンピュータシステムのためのマイクロコンピュータシステム用プログラムであって、
前記複数のマイクロコンピュータの一である第1マイクロコンピュータを、
前記電文を作成する電文作成手段と、
前記電文作成手段が作成した前記電文を、前記複数のマイクロコンピュータの別の一である第2マイクロコンピュータへ送信する電文送信手段と、
前記電文送信手段が送信する前記電文を前記ログメモリに記録する第1電文書込手段と、
前記電文の内容ごとに処理期限を記述した第1データベースを記憶する第1データベースメモリとして機能させ、
前記第2マイクロコンピュータを、
前記電文送信手段が送信した前記電文を、その内容に応じて処理する電文処理手段と、
前記ログメモリに記録された前記電文のうち前記電文処理手段による処理が終了したものについて、処理済みを示す第1識別符号を付して前記ログメモリへ記録する識別符号付加手段と、
前記電文の内容ごとに処理期限を記述した第2データベースを記憶する第2データベースメモリと、
前記第2マイクロコンピュータが動作停止した後に受信する再起動信号に応答して、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第2データベースを参照することにより前記処理期限内のものに限り、前記電文処理手段に処理をさせる第1電文判別手段として機能させ、
前記第1マイクロコンピュータを、
前記第2マイクロコンピュータが前記再起動信号を受信した後に、前記電文を前記ログメモリから読み出し、読み出した前記電文のうち前記第1識別符号が付されていないものについて、前記第1データベースを参照することにより、前記処理期限経過後のものに限り、前記電文作成手段に新たに電文を作成させる第2電文判別手段としてさらに機能させるマイクロコンピュータシステム用プログラム。
A microcomputer system program for a microcomputer system including a plurality of microcomputers that communicate messages between each other, and a log memory that can be read and written by any of the plurality of microcomputers,
A first microcomputer, which is one of the plurality of microcomputers,
Message creation means for creating the message,
A message transmitting unit that transmits the message created by the message creating unit to a second microcomputer that is another of the plurality of microcomputers;
First electronic document incorporation means for recording the electronic message transmitted by the electronic message transmitting means in the log memory;
Functioning as a first database memory for storing a first database describing a processing deadline for each content of the message;
The second microcomputer,
A message processing unit that processes the message transmitted by the message transmission unit according to the content thereof;
An identification code adding unit that adds a first identification code indicating that processing has been completed to the electronic mail recorded in the log memory and records the processed electronic mail in the log memory;
A second database memory for storing a second database describing a processing time limit for each content of the message;
In response to a restart signal received after the operation of the second microcomputer is stopped, the electronic device reads the electronic message from the log memory. 2 by referring to the database, only those within the processing time limit, functioning as the first message discriminating means for causing the message processing means to process,
The first microcomputer,
After the second microcomputer receives the restart signal, the electronic device reads the electronic message from the log memory, and refers to the first database for the electronic device that does not have the first identification code among the read electronic messages. A program for a microcomputer system which further functions as a second message discriminating means for causing the message creating means to newly create a message only after the processing time limit has passed.
JP2004138295A 2003-05-08 2004-05-07 Telegram processor, apparatus control device, household electrical appliance, program for telegram processor, microcomputer system, and program for microcomputer system Pending JP2004355618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004138295A JP2004355618A (en) 2003-05-08 2004-05-07 Telegram processor, apparatus control device, household electrical appliance, program for telegram processor, microcomputer system, and program for microcomputer system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2003130695 2003-05-08
JP2003130696 2003-05-08
JP2004138295A JP2004355618A (en) 2003-05-08 2004-05-07 Telegram processor, apparatus control device, household electrical appliance, program for telegram processor, microcomputer system, and program for microcomputer system

Publications (1)

Publication Number Publication Date
JP2004355618A true JP2004355618A (en) 2004-12-16

Family

ID=34068898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004138295A Pending JP2004355618A (en) 2003-05-08 2004-05-07 Telegram processor, apparatus control device, household electrical appliance, program for telegram processor, microcomputer system, and program for microcomputer system

Country Status (1)

Country Link
JP (1) JP2004355618A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011205795A (en) * 2010-03-25 2011-10-13 Panasonic Electric Works Co Ltd Energy saving diagnosis system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011205795A (en) * 2010-03-25 2011-10-13 Panasonic Electric Works Co Ltd Energy saving diagnosis system

Similar Documents

Publication Publication Date Title
US10429092B2 (en) Asynchronous reporting system
US11354179B2 (en) System, method and computer program product for sharing information in a distributed framework
CN112637318B (en) Intelligent gateway system and device for storage integrity and control method thereof
US9954968B2 (en) Remote access gateway configurable control system
JP4266962B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
US20050021714A1 (en) Home network apparatus and system for cooperative work service and method thereof
JP2005508049A5 (en)
JP2005182481A (en) Network device
JP2006099809A (en) Controller
JP2000137506A (en) Programmable controller
KR20060080018A (en) Management system using sdr of virtual and method thereof
US20070162583A1 (en) Information providing device, device discovering method, and computer product
JP2004355618A (en) Telegram processor, apparatus control device, household electrical appliance, program for telegram processor, microcomputer system, and program for microcomputer system
JP4955736B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
KR20040095741A (en) Message processor, apparatus controlling device, home appliance, program for message processor, microcomputer system, program for microcomputer system, and program product
Swan The language of bacnet-objects, properties and services
JP2005184551A (en) Communication apparatus, communication control method and communication control program
JP4544422B2 (en) Programmable controller
JP4851994B2 (en) Operation monitoring device, operation monitoring method, and operation monitoring program
JP2005065164A (en) Communication control processor and communication control processing method
KR20160024055A (en) Web of things plug-in system
JP2010026948A (en) Communication equipment
JPWO2006030697A1 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE COMMUNICATION CONTROL PROGRAM
JP2005217645A (en) Remote control terminal, server apparatus, and network compatible apparatus
JP2000216798A (en) Monitor logging device