JP7825467B2 - Switch device and switch system - Google Patents
Switch device and switch systemInfo
- Publication number
- JP7825467B2 JP7825467B2 JP2022038257A JP2022038257A JP7825467B2 JP 7825467 B2 JP7825467 B2 JP 7825467B2 JP 2022038257 A JP2022038257 A JP 2022038257A JP 2022038257 A JP2022038257 A JP 2022038257A JP 7825467 B2 JP7825467 B2 JP 7825467B2
- Authority
- JP
- Japan
- Prior art keywords
- operating state
- switch device
- control unit
- server
- switch
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
本開示は、スイッチ装置及びスイッチシステムに関する。 This disclosure relates to a switch device and a switch system.
機器の動作状態を切り替える技術が知られている。例えば、特許文献1は、既設の電気機器をそのまま利用して見通し外からの遠隔操作を可能とする電気機器の動作状態制御システムを開示している。具体的に、特許文献1に開示された動作状態制御システムは、機器の動作状態を遠隔操作して切り替えるための遠隔操作用スイッチを備え、端末機器をユーザが操作することで通信制御部を介して遠隔操作用スイッチを制御可能としている。 Technology for switching the operating state of equipment is known. For example, Patent Document 1 discloses an operating state control system for electrical equipment that enables remote operation from outside the line of sight using existing electrical equipment. Specifically, the operating state control system disclosed in Patent Document 1 is equipped with a remote control switch for remotely switching the operating state of the equipment, and allows the user to control the remote control switch via a communication control unit by operating the terminal device.
上記のような機器の動作状態を切り替える技術において、スイッチ装置が遠隔操作のための制御部を備える場合、制御部がリセットされる場合がある。制御部がリセットされた場合、スイッチ装置に接続された機器の動作状態が不定状態になる、初期値に設定される等により、機器を継続して動作させることができないことがある。 In the technology for switching the operating state of devices such as those described above, if the switch device is equipped with a control unit for remote operation, the control unit may be reset. If the control unit is reset, the operating state of the device connected to the switch device may become undefined or may be reset to its initial value, making it impossible to continue operating the device.
リセット時に機器を安定して動作させるための1つの方法として、機器の動作状態が更新される都度、動作状態を不揮発メモリに保存しておき、リセットからの再起動後に不揮発メモリから動作状態を読み出して、機器をリセット前の動作状態に復帰させる方法が考えられる。しかしながら、不揮発メモリの書き換えを頻繁に行うと、不揮発メモリの短寿命化につながる。このような事情に鑑み、スイッチ装置の長寿命化を図りつつ、スイッチ装置がリセットされた場合であってもスイッチ装置に接続された機器を継続して動作させることが求められている。 One method for ensuring stable device operation when resetting is to save the device's operating state to non-volatile memory each time it is updated, and then read the operating state from non-volatile memory after restarting from a reset, restoring the device to its pre-reset operating state. However, frequent rewriting of non-volatile memory shortens its lifespan. In light of these circumstances, there is a need for a method that extends the lifespan of switch devices while allowing devices connected to them to continue operating even when the switch device is reset.
本開示は、上記のような問題点を解決するためになされたものであり、スイッチ装置の長寿命化を図りつつ、スイッチ装置がリセットされた場合であってもスイッチ装置に接続された機器を継続して動作させることが可能なスイッチ装置等を提供することを目的とする。 This disclosure has been made to solve the above-mentioned problems, and aims to provide a switch device that extends the life of the switch device and allows devices connected to the switch device to continue operating even if the switch device is reset.
上記目的を達成するために、本開示の第1の態様に係るスイッチ装置は、
負荷機器に接続されたスイッチ装置であって、
ユーザの操作に応じて前記負荷機器の動作状態を切り替える切り替え部と、
不揮発メモリと、
自発的なリセットが実行される際に、前記負荷機器の動作状態を前記不揮発メモリに保存するメモリ制御部と、
前記スイッチ装置が前記自発的なリセットから再起動する際に、前記負荷機器の動作状態を、前記不揮発メモリに保存された前記動作状態に設定する動作状態設定部と、を備える。
In order to achieve the above object, a switch device according to a first aspect of the present disclosure includes:
A switch device connected to a load device,
a switching unit that switches the operation state of the load device in response to a user operation;
a non-volatile memory;
a memory control unit that stores an operating state of the load device in the nonvolatile memory when a voluntary reset is performed;
and an operating state setting unit that sets the operating state of the load device to the operating state stored in the nonvolatile memory when the switch device restarts from the voluntary reset.
上記目的を達成するために、本開示の第2の態様に係るスイッチ装置は、
負荷機器に接続されたスイッチ装置であって、
ユーザの操作に応じて前記負荷機器の動作状態を切り替える切り替え部と、
サーバと通信する通信部と、
前記切り替え部により前記負荷機器の動作状態が切り替えられると、前記切り替え部により切り替えられた後の動作状態を示す動作状態データを、前記通信部を介して前記サーバに送信する通信制御部と、
前記スイッチ装置がリセットから再起動する際に前記サーバから前記動作状態データが受信された場合、前記負荷機器の動作状態を、前記サーバから受信された前記動作状態データにより示される前記動作状態に設定する動作状態設定部と、を備える。
In order to achieve the above object, a switch device according to a second aspect of the present disclosure includes:
A switch device connected to a load device,
a switching unit that switches the operation state of the load device in response to a user operation;
a communication unit that communicates with the server;
a communication control unit that, when the switching unit switches the operation state of the load device, transmits operation state data indicating the operation state after switching by the switching unit to the server via the communication unit;
and an operating state setting unit that, when the operating state data is received from the server when the switch device restarts from a reset, sets the operating state of the load device to the operating state indicated by the operating state data received from the server.
本開示によれば、スイッチ装置の長寿命化を図りつつ、スイッチ装置がリセットされた場合であってもスイッチ装置に接続された機器を継続して動作させることができる。 This disclosure aims to extend the life of a switch device while allowing devices connected to the switch device to continue operating even if the switch device is reset.
以下、実施の形態について、図面を参照しながら詳細に説明する。なお、図中同一又は相当部分には同一符号を付す。 Embodiments will be described in detail below with reference to the drawings. Note that identical or equivalent parts in the drawings will be designated by the same reference numerals.
(実施の形態1)
図1に、実施の形態1に係るスイッチシステム1の全体構成を示す。スイッチシステム1は、建物Hの内部に設置されている換気機器50の動作状態を、建物Hの外部から遠隔的に切り替えることが可能なシステムである。
(Embodiment 1)
1 shows the overall configuration of a switch system 1 according to embodiment 1. The switch system 1 is a system that can remotely switch the operating state of a ventilation device 50 installed inside a building H from outside the building H.
図1に示すように、スイッチシステム1は、操作端末10と、サーバ20と、ルータ30と、換気機器50と、スイッチ装置100と、を備える。ルータ30とスイッチ装置100と換気機器50とは、建物Hの内部に設置されている。建物Hは、例えば、戸建て住宅、集合住宅、オフィスビル、商業施設、工場等の一室である。 As shown in FIG. 1, the switching system 1 includes an operation terminal 10, a server 20, a router 30, a ventilation device 50, and a switching device 100. The router 30, the switching device 100, and the ventilation device 50 are installed inside a building H. The building H is, for example, a room in a detached house, an apartment building, an office building, a commercial facility, a factory, etc.
操作端末10とサーバ20とは、通信ネットワークN1を介して通信可能に接続されている。また、サーバ20とルータ30とは、通信ネットワークN2を介して通信可能に接続されている。通信ネットワークN1,N2は、インターネット等の広域ネットワークである。 The operation terminal 10 and the server 20 are connected to each other so that they can communicate with each other via a communication network N1. The server 20 and the router 30 are connected to each other so that they can communicate with each other via a communication network N2. The communication networks N1 and N2 are wide-area networks such as the Internet.
操作端末10は、建物Hの外部であって、換気機器50の見通し外に居るユーザから操作可能な端末である。操作端末10は、例えば、スマートフォン、タブレット端末、パーソナルコンピュータ等である。 The operation terminal 10 is a terminal that can be operated by a user who is outside the building H and out of the line of sight of the ventilation equipment 50. The operation terminal 10 is, for example, a smartphone, tablet terminal, personal computer, etc.
操作端末10は、図示を省略するが、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)、通信インタフェース、及び、読み書き可能な不揮発性の半導体メモリを備える。操作端末10において、CPUがRAMをワークメモリとして用いながらROMに格納された制御プログラムを実行することにより、操作端末10の動作を制御する。 Although not shown, the operation terminal 10 includes a CPU (Central Processing Unit), ROM (Read Only Memory), RAM (Random Access Memory), a communications interface, and readable/writable non-volatile semiconductor memory. In the operation terminal 10, the CPU uses the RAM as work memory and executes control programs stored in the ROM, thereby controlling the operation of the operation terminal 10.
また、操作端末10は、押しボタン、タッチパネル等の入力デバイスと、有機EL(Electro-Luminescence)ディスプレイ、液晶ディスプレイ等の表示デバイスと、を備える。操作端末10は、ユーザからの操作を受け付け、受け付けた操作内容を示す情報を、通信ネットワークN1を介してサーバ20に送信する。また、操作端末10は、サーバ20から送信された情報を受信し、受信した情報を表示する。 The operation terminal 10 also includes input devices such as push buttons and a touch panel, and a display device such as an organic EL (Electro-Luminescence) display or a liquid crystal display. The operation terminal 10 accepts operations from the user and transmits information indicating the content of the accepted operation to the server 20 via the communication network N1. The operation terminal 10 also receives information transmitted from the server 20 and displays the received information.
サーバ20は、スイッチシステム1を管理する装置であって、具体的には、クラウドコンピューティングにおけるリソースを提供するサーバである。図2に示すように、サーバ20は、制御部21と、DB(データベース)22と、通信部23と、を備える。 The server 20 is a device that manages the switch system 1, and specifically, is a server that provides resources in cloud computing. As shown in FIG. 2, the server 20 includes a control unit 21, a database (DB) 22, and a communication unit 23.
制御部21は、CPU、ROM及びRAMを備える。制御部21において、CPUがROMに格納されているプログラム及びデータを読み出し、RAMをワークエリアとして用いることで、サーバ20の動作を制御する。 The control unit 21 includes a CPU, ROM, and RAM. In the control unit 21, the CPU reads programs and data stored in the ROM and uses the RAM as a work area to control the operation of the server 20.
DB22は、フラッシュメモリ、ハードディスク等の読み書き可能な不揮発性の記憶装置を備える。DB22は、換気機器50の動作状態を示すデータを含む様々なデータを格納する。 DB22 includes a readable/writable non-volatile storage device such as flash memory or a hard disk. DB22 stores various data, including data indicating the operating status of ventilation equipment 50.
通信部23は、通信ネットワークN1,N2を介してサーバ20の外部の機器と通信する。例えば、通信部23は、通信ネットワークN1を介して操作端末10との間で様々な情報を送受信し、通信ネットワークN2及びルータ30を介してスイッチ装置100との間で様々な情報を送受信する。なお、通信部23は、図示を省略するが、建物H以外にも様々な建物に設置されたスイッチ装置と通信ネットワークN2を介して通信可能に接続されており、様々な負荷機器を遠隔操作することができる。 The communication unit 23 communicates with devices external to the server 20 via communication networks N1 and N2. For example, the communication unit 23 transmits and receives various information to and from the operation terminal 10 via communication network N1, and transmits and receives various information to and from the switch device 100 via communication network N2 and router 30. Although not shown, the communication unit 23 is also communicatively connected via communication network N2 to switch devices installed in various buildings other than building H, enabling remote operation of various load devices.
ルータ30は、通信ネットワークN2を介してスイッチ装置100がサーバ20と通信するための装置であって、具体的にはブロードバンドルータである。ルータ30は、建物H内に構築された局所ネットワークを介して通信可能にスイッチ装置100に接続されている。ルータ30は、通信ネットワークN2を介してサーバ20と通信可能に接続されている。 The router 30 is a device that enables the switch device 100 to communicate with the server 20 via the communication network N2, and is specifically a broadband router. The router 30 is communicatively connected to the switch device 100 via a local network established within building H. The router 30 is communicatively connected to the server 20 via the communication network N2.
換気機器50は、建物Hの内部に設置されており、建物H内を換気する機器である。換気機器50は、換気用のファンと、ファンを駆動する駆動部と、を備える。換気機器50は、スイッチ装置100に接続された負荷機器の一例である。 The ventilation device 50 is installed inside the building H and is a device that ventilates the building H. The ventilation device 50 includes a ventilation fan and a drive unit that drives the fan. The ventilation device 50 is an example of a load device connected to the switch device 100.
スイッチ装置100は、換気機器50に電気的に接続されており、換気機器50の動作状態を切り替える切り替え装置として機能する。スイッチ装置100は、建物Hの壁に掛けられて使用されるものであっても良いし、ユーザに把持されて使用されるものであっても良い。 The switch device 100 is electrically connected to the ventilation equipment 50 and functions as a switching device that switches the operating state of the ventilation equipment 50. The switch device 100 may be hung on a wall of the building H, or may be held by a user.
図3に示すように、スイッチ装置100は、ON/OFFスイッチ101と、強/弱スイッチ102と、WPS(Wi-Fi Protected Setup)スイッチ103と、ON/OFFLED171と、強/弱LED172と、無線LED173と、を備える。 As shown in FIG. 3, the switch device 100 includes an ON/OFF switch 101, a strong/weak switch 102, a WPS (Wi-Fi Protected Setup) switch 103, an ON/OFF LED 171, a strong/weak LED 172, and a wireless LED 173.
ON/OFFスイッチ101は、換気機器50の動作のオンとオフとを切り替えるスイッチである。ユーザは、ON/OFFスイッチ101に接触して操作することにより、換気機器50を動作させるか停止させるかの指示を入力することができる。 The ON/OFF switch 101 is a switch that switches the operation of the ventilation device 50 on and off. By touching and operating the ON/OFF switch 101, the user can input an instruction to operate or stop the ventilation device 50.
強/弱スイッチ102は、換気機器50が動作している場合における動作の強弱を切り替えるスイッチである。ユーザは、強/弱スイッチ102に接触して操作することにより、換気機器50による風量を調整することができる。 The strong/weak switch 102 is a switch that changes the strength of operation when the ventilation device 50 is operating. The user can adjust the airflow volume of the ventilation device 50 by touching and operating the strong/weak switch 102.
WPSスイッチ103は、スイッチ装置100とルータ30とをペアリングにより無線で接続するスイッチである。ユーザは、WPSスイッチ103に接触して操作することにより、スイッチ装置100とルータ30とを無線で接続する指示を入力することができる。 The WPS switch 103 is a switch that wirelessly connects the switch device 100 and the router 30 through pairing. By touching and operating the WPS switch 103, the user can input an instruction to wirelessly connect the switch device 100 and the router 30.
ON/OFFLED171、強/弱LED172及び無線LED173は、現在のスイッチ装置100の状態を、点灯又は消灯により外部に報知するための手段である。 The ON/OFF LED 171, strong/weak LED 172, and wireless LED 173 are means for externally notifying the current state of the switch device 100 by turning them on or off.
更に図4に示すように、スイッチ装置100は、制御に関する構成として、制御部110と、不揮発メモリ120と、通信部130と、切り替え部140と、LED(Light Emitting Diode)駆動回路161~163と、を備える。各構成要素は、信号を伝送する内部バスを介して接続されている。 As shown in FIG. 4, the switch device 100 further includes, as control components, a control unit 110, a non-volatile memory 120, a communication unit 130, a switching unit 140, and LED (Light Emitting Diode) drive circuits 161-163. Each component is connected via an internal bus that transmits signals.
制御部110は、マイクロコンピュータ、CPU等の演算装置を備えており、スイッチ装置100の制御に係る処理及び演算を実行する。制御部110は、プロセッサ、処理装置等と呼ばれても良い。また、制御部110は、ROM及びRAMを備える。制御部110は、ROMに格納されているプログラム及びデータを読み出し、RAMをワークエリアとして用いて、スイッチ装置100を統括制御する。 The control unit 110 is equipped with a calculation device such as a microcomputer or CPU, and performs processing and calculations related to the control of the switch device 100. The control unit 110 may also be called a processor, processing device, etc. The control unit 110 also has ROM and RAM. The control unit 110 reads programs and data stored in ROM and uses RAM as a work area to perform overall control of the switch device 100.
不揮発メモリ120は、フラッシュメモリ、EPROM(Erasable Programmable ROM)、EEPROM(Electrically Erasable Programmable ROM)等の不揮発性の半導体メモリを備える。不揮発メモリ120は、制御部110が各種処理を行うために使用するプログラム及びデータを記憶する。また、不揮発メモリ120は、制御部110が各種処理を行うことにより生成又は取得するデータを記憶する。 The non-volatile memory 120 includes non-volatile semiconductor memory such as flash memory, EPROM (Erasable Programmable ROM), or EEPROM (Electrically Erasable Programmable ROM). The non-volatile memory 120 stores programs and data used by the control unit 110 to perform various processes. The non-volatile memory 120 also stores data generated or acquired by the control unit 110 as it performs various processes.
通信部130は、無線信号を送受信するRF(Radio Frequency)アンテナを備え、RFアンテナを介してルータ30と通信する。通信部130は、サーバ20からルータ30を介して送信された無線信号を受信する。また、通信部130は、スイッチ装置100において生成された無線信号を、ルータ30を介してサーバ20に送信する。 The communication unit 130 is equipped with an RF (Radio Frequency) antenna that transmits and receives wireless signals, and communicates with the router 30 via the RF antenna. The communication unit 130 receives wireless signals transmitted from the server 20 via the router 30. The communication unit 130 also transmits wireless signals generated in the switch device 100 to the server 20 via the router 30.
切り替え部140は、ユーザの操作に応じて、換気機器50の動作状態を切り替える。切り替え部140は、リレー駆動回路141,142と、ON/OFFリレー151と、強/弱リレー152と、を備える。リレー駆動回路141,142は、それぞれ、制御部110の制御のもとで、ON/OFFリレー151及び強/弱リレー152を駆動させる回路である。 The switching unit 140 switches the operating state of the ventilation device 50 in response to user operation. The switching unit 140 includes relay drive circuits 141, 142, an ON/OFF relay 151, and a strong/weak relay 152. The relay drive circuits 141, 142 are circuits that drive the ON/OFF relay 151 and the strong/weak relay 152, respectively, under the control of the control unit 110.
ON/OFFリレー151及び強/弱リレー152は、換気機器50に電流を流すか否かを切り替える部品である。ON/OFFリレー151は、リレー駆動回路141から入力された電気信号に従って接点の開閉を制御することで、換気機器50を動作させるか停止させるかを切り替える。強/弱リレー152は、リレー駆動回路142から入力された電気信号に従って接点の開閉を制御することで、換気機器50の動作の強弱を調整する。 The ON/OFF relay 151 and the strong/weak relay 152 are components that switch whether or not current flows through the ventilation equipment 50. The ON/OFF relay 151 controls the opening and closing of contacts in accordance with the electrical signal input from the relay drive circuit 141, thereby switching whether the ventilation equipment 50 is operating or stopped. The strong/weak relay 152 controls the opening and closing of contacts in accordance with the electrical signal input from the relay drive circuit 142, thereby adjusting the strength of the operation of the ventilation equipment 50.
LED駆動回路161~163は、それぞれ、制御部110の制御のもとで、ON/OFFLED171、強/弱LED172及び無線LED173を駆動して点灯又は消灯させる回路である。 The LED drive circuits 161-163 are circuits that drive the ON/OFF LED 171, strong/weak LED 172, and wireless LED 173 to turn them on or off under the control of the control unit 110.
次に、図5を参照して、制御部110の機能的な構成について説明する。図5に示すように、制御部110は、機能的に、動作状態設定部111と、スイッチ入力部112と、通信制御部113と、メモリ制御部115と、無線LED制御部114と、を備える。 Next, the functional configuration of the control unit 110 will be described with reference to Figure 5. As shown in Figure 5, the control unit 110 functionally comprises an operating state setting unit 111, a switch input unit 112, a communication control unit 113, a memory control unit 115, and a wireless LED control unit 114.
これらの各機能は、ソフトウェア、ファームウェア、又は、ソフトウェアとファームウェアとの組み合わせによって実現される。ソフトウェア及びファームウェアは、プログラムとして記述され、ROM又は不揮発メモリ120に格納される。そして、制御部110が、ROM又は不揮発メモリ120に記憶されたプログラムを実行することによって、各機能を実現する。 Each of these functions is realized by software, firmware, or a combination of software and firmware. The software and firmware are written as programs and stored in ROM or non-volatile memory 120. The control unit 110 then realizes each function by executing the programs stored in ROM or non-volatile memory 120.
動作状態設定部111は、ユーザの操作に応じて、換気機器50の動作状態を設定する。具体的に説明すると、動作状態設定部111は、切り替え部140を制御することで、換気機器50の動作状態を、ユーザにより指示された状態に切り替える。 The operating state setting unit 111 sets the operating state of the ventilation device 50 in response to a user operation. Specifically, the operating state setting unit 111 controls the switching unit 140 to switch the operating state of the ventilation device 50 to the state instructed by the user.
ここで、換気機器50の動作状態は、換気機器50が動作しているか又は停止しているかと、換気機器50が動作している場合には動作の強弱と、を示す情報である。換気機器50の動作の強弱は、具体的には換気機器50による風量により表される。動作状態設定部111は、換気機器50の動作と停止を、リレー駆動回路141及びON/OFFリレー151によって切り替える。また、動作状態設定部111は、換気機器50の動作の強弱を、リレー駆動回路142及び強/弱リレー152によって切り替える。 Here, the operating state of the ventilation device 50 is information indicating whether the ventilation device 50 is operating or stopped, and, if the ventilation device 50 is operating, the strength of the operation. Specifically, the strength of the operation of the ventilation device 50 is represented by the air volume produced by the ventilation device 50. The operating state setting unit 111 switches between operating and stopping the ventilation device 50 using the relay drive circuit 141 and the ON/OFF relay 151. The operating state setting unit 111 also switches between the strength of the operation of the ventilation device 50 using the relay drive circuit 142 and the strong/weak relay 152.
ユーザの操作は、ユーザがスイッチ装置100に直接的に触れて操作する手元操作と、無線通信を介して遠隔から操作する遠隔操作と、の2種類の操作に分けられる。より詳細には、手元操作は、ユーザがON/OFFスイッチ101又は強/弱スイッチ102を操作することにより入力される。これに対して、遠隔操作は、ユーザが操作端末10を操作することにより入力される。操作端末10において入力された遠隔操作の内容は、操作端末10からサーバ20を介してスイッチ装置100に送信される。 User operations can be divided into two types: manual operations, in which the user directly touches and operates the switch device 100, and remote operations, in which the user operates the switch device 100 remotely via wireless communication. More specifically, manual operations are input by the user operating the ON/OFF switch 101 or strong/weak switch 102. Remote operations, on the other hand, are input by the user operating the operation terminal 10. The remote operation details input at the operation terminal 10 are transmitted from the operation terminal 10 to the switch device 100 via the server 20.
スイッチ入力部112は、ON/OFFスイッチ101と強/弱スイッチ102とWPSスイッチ103とのそれぞれに対する操作である手元操作の入力を受け付ける。動作状態設定部111は、スイッチ入力部112によりON/OFFスイッチ101又は強/弱スイッチ102に対する操作入力が受け付けられた場合、受け付けられた操作入力に従ってリレー駆動回路141,142を制御し、換気機器50の動作状態を切り替える。 The switch input unit 112 accepts manual operation inputs for the ON/OFF switch 101, strong/weak switch 102, and WPS switch 103. When the switch input unit 112 accepts operation input for the ON/OFF switch 101 or strong/weak switch 102, the operation state setting unit 111 controls the relay drive circuits 141, 142 in accordance with the accepted operation input, and switches the operation state of the ventilation equipment 50.
通信制御部113は、通信部130を介した無線通信を制御する。具体的に説明すると、通信制御部113は、サーバ20と通信することで、ユーザが操作端末10に対して入力した操作である遠隔操作の内容を示す操作情報を受信する。動作状態設定部111は、通信制御部113により操作情報が受信された場合、受信された操作情報に従ってリレー駆動回路141,142を制御し、換気機器50の動作状態を切り替える。 The communication control unit 113 controls wireless communication via the communication unit 130. Specifically, the communication control unit 113 communicates with the server 20 to receive operation information indicating the content of remote operations, which are operations input by the user to the operation terminal 10. When the operation information is received by the communication control unit 113, the operation state setting unit 111 controls the relay drive circuits 141, 142 in accordance with the received operation information, and switches the operation state of the ventilation equipment 50.
無線LED制御部114は、LED駆動回路161~163を制御する。第1に、無線LED制御部114は、換気機器50が動作している場合にON/OFFLED171を点灯させ、換気機器50が停止している場合にON/OFFLED171を消灯させる。第2に、無線LED制御部114は、換気機器50の現在の動作の強弱を表す態様で、強/弱LED172の点灯の度合いを調整する。第3に、無線LED制御部114は、WPSスイッチ103をプッシュすることによりWPS動作が開始すると無線LED173を点灯させ、WPS動作が終了すると無線LED173を消灯させる。 The wireless LED control unit 114 controls the LED drive circuits 161-163. First, the wireless LED control unit 114 turns on the ON/OFF LED 171 when the ventilation device 50 is operating, and turns off the ON/OFF LED 171 when the ventilation device 50 is stopped. Second, the wireless LED control unit 114 adjusts the degree of illumination of the strong/weak LED 172 in a manner that indicates the strength of the current operation of the ventilation device 50. Third, the wireless LED control unit 114 turns on the wireless LED 173 when the WPS operation starts by pushing the WPS switch 103, and turns off the wireless LED 173 when the WPS operation ends.
メモリ制御部115は、不揮発メモリ120に対するデータの読み書きを制御する。具体的に説明すると、メモリ制御部115は、換気機器50の動作状態を不揮発メモリ120に保存する。この理由は、スイッチ装置100がリセットされた場合においても、再起動後に換気機器50をリセット前の動作状態で復帰させることができるようにするためである。 The memory control unit 115 controls the reading and writing of data from and to the non-volatile memory 120. Specifically, the memory control unit 115 stores the operating state of the ventilation equipment 50 in the non-volatile memory 120. The reason for this is to ensure that even if the switch device 100 is reset, the ventilation equipment 50 can be restored to the operating state it had before the reset after restarting.
ここで、スイッチ装置100がリセットされるとは、制御部110のRAMに記憶されたデータがクリアされて、スイッチ装置100及び制御部110の状態が初期状態に戻ることを意味する。スイッチ装置100がリセットされると、換気機器50の動作状態は、不定状態になる、又は初期値に設定される等により、リセット直前の動作状態は継続されない。そのため、リセット時に換気機器50の動作状態をリセット前の動作状態に復帰させることを目的として、メモリ制御部115は、リセット直前における換気機器50の動作状態を示す動作データを、不揮発メモリ120に保存する。 Here, resetting the switch device 100 means that the data stored in the RAM of the control unit 110 is cleared and the states of the switch device 100 and control unit 110 are returned to their initial states. When the switch device 100 is reset, the operating state of the ventilation device 50 becomes undefined or is set to an initial value, and the operating state immediately before the reset does not continue. Therefore, in order to restore the operating state of the ventilation device 50 to the operating state before the reset at the time of reset, the memory control unit 115 saves operating data indicating the operating state of the ventilation device 50 immediately before the reset in the non-volatile memory 120.
但し、不揮発メモリ120の書き換え保証回数は、例えば10万回程度のように、有限である。そのため、換気機器50の動作状態が更新される都度、動作状態を不揮発メモリ120に保存すると、不揮発メモリ120の短寿命化につながる懸念がある。このような懸念を回避するため、実施の形態1では、メモリ制御部115は、換気機器50の動作状態が更新される都度のタイミングではなく、自発的なリセットが実行される際に、換気機器50の動作状態を不揮発メモリ120に保存する。 However, the guaranteed number of times that the non-volatile memory 120 can be rewritten is limited, for example, approximately 100,000 times. Therefore, there is a concern that saving the operating status of the ventilation device 50 in the non-volatile memory 120 every time the operating status is updated may shorten the life of the non-volatile memory 120. To avoid such concerns, in embodiment 1, the memory control unit 115 saves the operating status of the ventilation device 50 in the non-volatile memory 120 when a voluntary reset is performed, rather than every time the operating status of the ventilation device 50 is updated.
ここで、自発的なリセットは、スイッチ装置100が自発的に実行するリセットを意味する。具体的には、自発的なリセットの例として、スイッチ装置100のファームウェアを更新した後に新しいファームウェアで起動するためのリセット、無線通信モードを切り替えるためのリセット、通信又は動作の異常を検出するためのリセット等が挙げられる。これに対して、停電、故障等の不慮の要因に起因するリセットは、自発的なリセットには該当しない。 Here, a voluntary reset refers to a reset that is performed voluntarily by the switch device 100. Specific examples of a voluntary reset include a reset to start up the switch device 100 with new firmware after updating the firmware, a reset to switch wireless communication modes, and a reset to detect an abnormality in communication or operation. In contrast, a reset caused by unforeseen factors such as a power outage or malfunction does not qualify as a voluntary reset.
メモリ制御部115は、このような自発的なリセットを行うべきリセットイベントが発生したか否かを判定する。そして、メモリ制御部115は、自発的なリセットイベントが発生した場合、リセットを実行する前に、リセットが実行される直前のタイミングにおける換気機器50の動作状態を不揮発メモリ120に保存する。 The memory control unit 115 determines whether a reset event has occurred that requires such a voluntary reset. If a voluntary reset event has occurred, the memory control unit 115 stores in the non-volatile memory 120 the operating state of the ventilation equipment 50 immediately before the reset is performed, before performing the reset.
具体的に図6を参照して、自発的なリセットが実行される場合における換気機器50の動作状態がどのように変化するかを説明する。図6は、切り替え部140がリセット前のユーザの最後の操作に従って動作を「ON」に、風量を「弱」に、遠隔操作を「許可」に、それぞれ切り替えた場合の例を示している。 Specifically, referring to Figure 6, we will explain how the operating state of the ventilation device 50 changes when a voluntary reset is performed. Figure 6 shows an example in which the switching unit 140 switches the operation to "ON," the airflow rate to "weak," and remote control to "allowed" in accordance with the user's last operation before the reset.
換気機器50の動作状態を示す動作状態データは、このような情報に加えて、最後の操作元が「手元」であり、スケジュール運転が「手動」に設定されているとの情報を有する。自発的なリセットイベントが発生した場合、メモリ制御部115は、このような動作状態データを不揮発メモリ120に保存する。 In addition to this information, the operating status data indicating the operating status of the ventilation device 50 also includes information that the last operation source was "local" and that scheduled operation is set to "manual." When a voluntary reset event occurs, the memory control unit 115 saves this operating status data in the non-volatile memory 120.
リセットの後、スイッチ装置100が再起動すると、換気機器50の動作状態は、まず予め定められた初期設定値に設定される。そして、メモリ制御部115は、不揮発メモリ120に保存された動作状態を読み出す。動作状態設定部111は、リレー駆動回路141,142を介してON/OFFリレー151及び強/弱リレー152を制御することで、換気機器50の動作状態を、不揮発メモリ120から読み出された動作状態に設定する。 When the switch device 100 restarts after being reset, the operating state of the ventilation equipment 50 is first set to a predetermined initial setting value. The memory control unit 115 then reads out the operating state stored in the non-volatile memory 120. The operating state setting unit 111 controls the ON/OFF relay 151 and strong/weak relay 152 via the relay drive circuits 141, 142 to set the operating state of the ventilation equipment 50 to the operating state read out from the non-volatile memory 120.
このようにして、動作状態設定部111は、自発的なリセットからスイッチ装置100が再起動する際に、換気機器50の動作状態を、不揮発メモリ120に保存された動作状態に設定する。これにより、動作状態設定部111は、自発的なリセットから再起動した場合に、換気機器50の動作状態をリセット直前の動作状態に復帰させる。 In this way, when the switch device 100 restarts after a voluntary reset, the operating state setting unit 111 sets the operating state of the ventilation device 50 to the operating state stored in the non-volatile memory 120. As a result, when the switch device 100 restarts after a voluntary reset, the operating state setting unit 111 restores the operating state of the ventilation device 50 to the operating state immediately before the reset.
メモリ制御部115は、動作状態設定部111により換気機器50の動作状態が不揮発メモリ120に保存された動作状態に設定された後、不揮発メモリ120に保存された動作状態を消去する。具体的に説明すると、メモリ制御部115は、自発的なリセットからスイッチ装置100が再起動した際、不揮発メモリ120から動作状態を読み出した後、不揮発メモリ120に保存された動作状態のデータを削除する、又は、動作状態のデータを無効化して上書き可能な状態とする。これにより、不揮発メモリ120から不要となったデータを消去することで、不揮発メモリ120における使用可能な記憶領域を増やす。 After the operating state setting unit 111 sets the operating state of the ventilation equipment 50 to the operating state stored in the non-volatile memory 120, the memory control unit 115 erases the operating state stored in the non-volatile memory 120. Specifically, when the switch device 100 restarts after a voluntary reset, the memory control unit 115 reads the operating state from the non-volatile memory 120 and then deletes the operating state data stored in the non-volatile memory 120, or invalidates the operating state data and makes it available for overwriting. In this way, by erasing data that is no longer needed from the non-volatile memory 120, the available storage area in the non-volatile memory 120 is increased.
なお、自発的なリセット以外のリセット、具体的には停電、故障等による不慮の要因に起因するリセットが実行された場合、メモリ制御部115は、換気機器50の動作状態を不揮発メモリ120に保存しない。そのため、自発的な要因以外の要因に起因するリセットからスイッチ装置100が再起動する際には、リセット直前の動作状態は不揮発メモリ120に保存されていない。この場合、動作状態設定部111は、換気機器50の動作状態を、予め定められた初期状態に設定する。 Note that if a reset other than a voluntary reset is performed, specifically a reset caused by an unexpected factor such as a power outage or malfunction, the memory control unit 115 does not save the operating state of the ventilation equipment 50 in the non-volatile memory 120. Therefore, when the switch device 100 restarts after a reset caused by a factor other than a voluntary reset, the operating state immediately before the reset is not saved in the non-volatile memory 120. In this case, the operating state setting unit 111 sets the operating state of the ventilation equipment 50 to a predetermined initial state.
具体的に説明すると、スイッチ装置100が起動する際、言い換えると自発的なリセット後の再起動処理を含む全ての起動処理において、メモリ制御部115は、不揮発メモリ120に動作状態が保存されているか否かを判定する。判定の結果、不揮発メモリ120に動作状態が保存されている場合、メモリ制御部115は、動作状態を読み出す。この場合、動作状態設定部111は、換気機器50の動作状態を、不揮発メモリ120に保存された動作状態に設定する。 Specifically, when the switch device 100 starts up, in other words, during all startup processes including restart processes after a voluntary reset, the memory control unit 115 determines whether the operating state is stored in the non-volatile memory 120. If the determination result shows that the operating state is stored in the non-volatile memory 120, the memory control unit 115 reads out the operating state. In this case, the operating state setting unit 111 sets the operating state of the ventilation equipment 50 to the operating state stored in the non-volatile memory 120.
これに対して、不揮発メモリ120に動作状態が保存されていない場合、動作状態設定部111は、換気機器50の動作状態を、予め定められた初期設定値に設定する。この場合は、不慮の要因によるリセットから再起動した場合に相当する。そのため、動作状態を初期設定値に設定することで、ユーザが安全確認をした後で、手元操作又は遠隔操作により換気機器50の動作状態を設定することができる。 In contrast, if the operating state is not stored in the non-volatile memory 120, the operating state setting unit 111 sets the operating state of the ventilation device 50 to a predetermined initial setting value. This corresponds to a case where the device is restarted after being reset due to an unexpected factor. Therefore, by setting the operating state to the initial setting value, the user can set the operating state of the ventilation device 50 by manual or remote operation after confirming safety.
次に、図7及び図8を参照して、実施の形態1に係るスイッチ装置100により実行される処理の流れを説明する。 Next, the flow of processing executed by the switch device 100 according to embodiment 1 will be described with reference to Figures 7 and 8.
まず、図7を参照して、スイッチ装置100により実行される自発的リセット処理について説明する。図7に示す自発的リセット処理は、スイッチ装置100において自発的なリセットイベントが発生した場合に、制御部110によって実行される。 First, the voluntary reset process executed by the switch device 100 will be described with reference to Figure 7. The voluntary reset process shown in Figure 7 is executed by the control unit 110 when a voluntary reset event occurs in the switch device 100.
自発的リセット処理を開始すると、制御部110は、発生したリセットイベントが、工場出荷値へのリセットに該当するか否かを判定する(ステップS11)。 When the voluntary reset process begins, the control unit 110 determines whether the reset event that occurred corresponds to a reset to factory default values (step S11).
発生したリセットイベントが工場出荷値へのリセットに該当しない場合(ステップS11;NO)、制御部110は、メモリ制御部115として機能し、スイッチ装置100の現在の動作状態を不揮発メモリ120に保存する(ステップS12)。動作状態を不揮発メモリ120に保存すると、制御部110は、リセットを実行する(ステップS13)。 If the reset event that occurred does not correspond to a reset to factory defaults (step S11; NO), the control unit 110 functions as the memory control unit 115 and saves the current operating state of the switch device 100 in the non-volatile memory 120 (step S12). After saving the operating state in the non-volatile memory 120, the control unit 110 executes a reset (step S13).
これに対して、発生したリセットイベントが工場出荷値へのリセットに該当する場合(ステップS11;YES)、制御部110は、ステップS12をスキップする。この場合、再起動後に換気機器50の動作状態は初期設定値に設定される。そのため、制御部110は、スイッチ装置100の動作状態を不揮発メモリ120に保存せずに、ステップS13でリセットを実行する。以上により、図7に示した自発的リセット処理は終了する。 On the other hand, if the reset event that occurred corresponds to a reset to the factory default settings (step S11; YES), the control unit 110 skips step S12. In this case, the operating state of the ventilation equipment 50 is set to the initial setting value after restart. Therefore, the control unit 110 executes a reset in step S13 without saving the operating state of the switch device 100 in the non-volatile memory 120. This completes the voluntary reset process shown in Figure 7.
次に、図8を参照して、スイッチ装置100により実行される起動処理について説明する。図8に示す起動処理は、リセット後に再起動することを含めて、スイッチ装置100が停止状態から起動する際に、制御部110によって実行される。 Next, the startup process executed by the switch device 100 will be described with reference to Figure 8. The startup process shown in Figure 8 is executed by the control unit 110 when the switch device 100 starts up from a stopped state, including restarting after a reset.
起動処理を開始すると、制御部110は、メモリ制御部115として機能し、不揮発メモリ120を読み出す(ステップS21)。そして、制御部110は、不揮発メモリ120に有効な動作状態が保存されているか否かを判定する(ステップS22)。 When the startup process begins, the control unit 110 functions as the memory control unit 115 and reads the non-volatile memory 120 (step S21). The control unit 110 then determines whether a valid operating state is stored in the non-volatile memory 120 (step S22).
不揮発メモリ120に有効な動作状態が保存されている場合(ステップS22;YES)、制御部110は、動作状態設定部111として機能し、不揮発メモリ120から読み出した動作状態でスイッチ装置100の動作状態を更新する(ステップS23)。 If a valid operating state is stored in the non-volatile memory 120 (step S22; YES), the control unit 110 functions as the operating state setting unit 111 and updates the operating state of the switch device 100 with the operating state read from the non-volatile memory 120 (step S23).
動作状態を更新すると、制御部110は、メモリ制御部115として機能し、不揮発メモリ120に保存されているデータを消去する(ステップS24)。言い換えると、制御部110は、ステップS23で読み出した動作状態のデータを消去する。 After updating the operating status, the control unit 110 functions as the memory control unit 115 and erases the data stored in the non-volatile memory 120 (step S24). In other words, the control unit 110 erases the operating status data read in step S23.
これに対して、不揮発メモリ120に有効な動作状態データが存在しない場合(ステップS22;NO)、制御部110は、動作状態設定部111として機能し、初期設定値でスイッチ装置100の動作状態を更新する(ステップS25)。以上により、図8に示した起動処理は終了する。 On the other hand, if there is no valid operating state data in the non-volatile memory 120 (step S22; NO), the control unit 110 functions as the operating state setting unit 111 and updates the operating state of the switch device 100 with the initial setting value (step S25). This completes the startup process shown in Figure 8.
以上説明したように、実施の形態1に係るスイッチ装置100は、自発的なリセットが実行される際に、換気機器50の動作状態を不揮発メモリ120に保存し、自発的なリセットから再起動する際に、換気機器50の動作状態を、不揮発メモリ120に保存された動作状態に設定する。これにより、スイッチ装置100が自発的なリセットにより再起動した場合であっても、換気機器50を、リセット前の動作状態に復帰させることができるため、換気機器50の動作を継続させることができる。 As described above, the switch device 100 according to embodiment 1 saves the operating state of the ventilation device 50 in the non-volatile memory 120 when a voluntary reset is performed, and when restarting from the voluntary reset, sets the operating state of the ventilation device 50 to the operating state saved in the non-volatile memory 120. As a result, even if the switch device 100 restarts due to a voluntary reset, the ventilation device 50 can be restored to the operating state before the reset, allowing the ventilation device 50 to continue operating.
その際、実施の形態1に係るスイッチ装置100は、動作状態を不揮発メモリ120に保存するタイミングを、動作状態が更新される毎ではなく、自発的なリセットのタイミングに限定している。そのため、不揮発メモリ120への書き込み回数を抑制することができる。その結果として、スイッチ装置100の長寿命化を図りつつ、スイッチ装置100が自発的なリセットを実行した場合であっても換気機器50を継続して動作させることができる。 In this case, the switch device 100 according to embodiment 1 limits the timing for saving the operating state in the non-volatile memory 120 to the timing of a voluntary reset, rather than every time the operating state is updated. This reduces the number of times data is written to the non-volatile memory 120. As a result, the lifespan of the switch device 100 is extended, and the ventilation equipment 50 can continue to operate even if the switch device 100 performs a voluntary reset.
(実施の形態2)
次に、実施の形態2について説明する。実施の形態1と同様の構成及び機能については、適宜説明を省略する。
(Embodiment 2)
Next, a description will be given of a second embodiment. Descriptions of the same configurations and functions as those of the first embodiment will be omitted where appropriate.
上記実施の形態1に係るスイッチ装置100は、自発的なリセットが実行される際に、換気機器50の動作状態を不揮発メモリ120に保存した。これに対して、実施の形態2に係るスイッチ装置100は、換気機器50の動作状態をサーバ20に保存する。 The switch device 100 according to the first embodiment stores the operating state of the ventilation equipment 50 in the non-volatile memory 120 when a voluntary reset is performed. In contrast, the switch device 100 according to the second embodiment stores the operating state of the ventilation equipment 50 in the server 20.
図9を参照して、実施の形態2における換気機器50の動作状態がどのように変化するかを説明する。動作状態設定部111は、実施の形態1と同様に、ユーザの手元操作又は遠隔操作が受け付けられた場合、受け付けられた手元操作又は遠隔操作に従って切り替え部140を制御して、換気機器50の動作状態を切り替える。 With reference to Figure 9, we will explain how the operating state of the ventilation equipment 50 changes in embodiment 2. As in embodiment 1, when a manual operation or remote operation from the user is accepted, the operating state setting unit 111 controls the switching unit 140 in accordance with the accepted manual operation or remote operation to switch the operating state of the ventilation equipment 50.
実施の形態2において、通信制御部113は、切り替え部140により換気機器50の動作状態が切り替えられると、切り替え部140により切り替えられた後の換気機器50の動作状態を示す動作状態データを、通信部130を介してサーバ20に送信する。言い換えると、通信制御部113は、換気機器50の動作状態が切り替えられる毎に、切り替え部140により切り替えられた後の換気機器50の動作状態を示す動作状態データをサーバ20に送信する。これにより、通信制御部113は、動作状態データを、スイッチ装置100内の不揮発メモリ120ではなく、サーバ20のDB22に保存する。 In embodiment 2, when the switching unit 140 switches the operating state of the ventilation device 50, the communication control unit 113 transmits operating state data indicating the operating state of the ventilation device 50 after switching by the switching unit 140 to the server 20 via the communication unit 130. In other words, each time the operating state of the ventilation device 50 is switched, the communication control unit 113 transmits operating state data indicating the operating state of the ventilation device 50 after switching by the switching unit 140 to the server 20. As a result, the communication control unit 113 stores the operating state data in the DB 22 of the server 20, rather than in the non-volatile memory 120 in the switch device 100.
一方で、スイッチ装置100とサーバ20との間で通信途絶が発生した場合のように、サーバ20に動作状態データを送信できない状況も発生し得る。図9の例は、手元操作により動作状態が切り替えられた後、通信途絶が発生してサーバ20と通信できない場合を示している。 On the other hand, situations may arise in which it is not possible to send operating status data to the server 20, such as when a communication interruption occurs between the switch device 100 and the server 20. The example in Figure 9 shows a case in which a communication interruption occurs after the operating status is switched by manual operation, making it impossible to communicate with the server 20.
通信制御部113は、動作状態データをサーバ20に送信した場合、その送信に対する応答をサーバ20から受信したか否かを判定する。そして、通信制御部113は、動作状態データをサーバ20に送信してから予め定められた時間内にサーバ20から応答を受信しなかった場合、サーバ20との通信に失敗したと判定する。 When the communication control unit 113 transmits operation status data to the server 20, it determines whether a response to the transmission has been received from the server 20. If the communication control unit 113 does not receive a response from the server 20 within a predetermined time after transmitting the operation status data to the server 20, it determines that communication with the server 20 has failed.
このようにサーバ20との通信に失敗した場合、動作状態データをサーバ20に保存することができない。そのため、メモリ制御部115は、動作状態をスイッチ装置100内の不揮発メモリ120に保存する。言い換えると、メモリ制御部115は、切り替え部140により換気機器50の動作状態が切り替えられ、且つ、通信部130を介したサーバ20との通信に失敗した場合、換気機器50の動作状態を不揮発メモリ120に保存する。 If communication with the server 20 fails in this way, the operating status data cannot be saved to the server 20. Therefore, the memory control unit 115 saves the operating status in the non-volatile memory 120 within the switch device 100. In other words, if the operating status of the ventilation device 50 is switched by the switching unit 140 and communication with the server 20 via the communication unit 130 fails, the memory control unit 115 saves the operating status of the ventilation device 50 in the non-volatile memory 120.
次に、スイッチ装置100がリセットから再起動する場合の処理について説明する。ここで、リセットは、実施の形態1で説明した自発的なリセットであっても良いし、停電、故障等のような不慮の要因によるリセットであっても良い。 Next, we will explain the process when the switch device 100 restarts from a reset. Here, the reset may be a spontaneous reset as described in embodiment 1, or a reset due to an unexpected factor such as a power outage or malfunction.
スイッチ装置100がリセット再起動すると、換気機器50の動作状態は、図9に示すように、まず予め定められた初期設定値に設定される。このとき、通信制御部113は、サーバ20に対して初期通信を行う。具体的に説明すると、通信制御部113は、スイッチ装置100が再起動すると、その旨をサーバ20に通知すると共に、サーバ20のDB22に保存されている動作状態データを要求する。 When the switch device 100 is reset and restarted, the operating status of the ventilation equipment 50 is first set to a predetermined initial setting value, as shown in FIG. 9. At this time, the communication control unit 113 performs initial communication with the server 20. Specifically, when the switch device 100 is restarted, the communication control unit 113 notifies the server 20 of this and requests the operating status data stored in the DB 22 of the server 20.
サーバ20は、スイッチ装置100から初期通信を受けると、スイッチ装置100から過去に受信された動作状態データをDB22から読み出して、スイッチ装置100に送信する。サーバ20から動作状態データが送信されると、通信制御部113は、動作状態データを受信する。 When the server 20 receives initial communication from the switch device 100, it reads from the DB 22 the operating status data previously received from the switch device 100 and transmits it to the switch device 100. When the operating status data is transmitted from the server 20, the communication control unit 113 receives the operating status data.
スイッチ装置100がリセットから再起動する際、動作状態設定部111は、換気機器50の動作状態を、サーバ20から受信された動作状態データにより示される動作状態と、不揮発メモリ120に保存された動作状態と、のうちのいずれかに設定する。より詳細には、動作状態設定部111は、スイッチ装置100がリセットから再起動する際、換気機器50の動作状態を、サーバ20から受信された動作状態データにより示される動作状態と、不揮発メモリ120に保存された動作状態と、のうちの新しい方に設定する。 When the switch device 100 restarts from a reset, the operating state setting unit 111 sets the operating state of the ventilation device 50 to either the operating state indicated by the operating state data received from the server 20 or the operating state stored in the non-volatile memory 120. More specifically, when the switch device 100 restarts from a reset, the operating state setting unit 111 sets the operating state of the ventilation device 50 to the newer of the operating state indicated by the operating state data received from the server 20 or the operating state stored in the non-volatile memory 120.
具体的に説明すると、メモリ制御部115は、動作状態を不揮発メモリ120に保存する際に、現在の日時を示す日時データに関連付けて動作状態を保存する。また、サーバ20が動作状態データをDB22に保存する際に、現在の日時を示す日時データに関連付けて動作状態データを保存する。そして、サーバ20は、動作状態データをスイッチ装置100に送信する際に、その動作状態データに関連付けられて保存された日時データを送信する。 Specifically, when the memory control unit 115 saves the operating status in the non-volatile memory 120, it saves the operating status in association with date and time data indicating the current date and time. Furthermore, when the server 20 saves the operating status data in the DB 22, it saves the operating status data in association with date and time data indicating the current date and time. Then, when the server 20 transmits the operating status data to the switch device 100, it transmits the date and time data stored in association with the operating status data.
サーバ20から動作状態データが受信された場合、動作状態設定部111は、不揮発メモリ120から読み出された動作状態に関連付けられた日時データと、サーバ20から受信された動作状態データに関連付けられた日時データと、を比較する。そして、動作状態設定部111は、換気機器50の動作状態を、日時が新しい方の動作状態に設定する。なお、図9の例は、動作状態設定部111は、換気機器50の動作状態を、不揮発メモリ120から読み出された動作状態に設定した場合を示している。 When operating status data is received from the server 20, the operating status setting unit 111 compares the date and time data associated with the operating status read from the non-volatile memory 120 with the date and time data associated with the operating status data received from the server 20. The operating status setting unit 111 then sets the operating status of the ventilation equipment 50 to the operating status with the newer date and time. Note that the example in Figure 9 shows a case where the operating status setting unit 111 sets the operating status of the ventilation equipment 50 to the operating status read from the non-volatile memory 120.
このように、サーバ20と不揮発メモリ120とのそれぞれに動作状態が保存された日時を比較することにより、換気機器50の動作状態をリセット前の動作状態により確実に復帰させることができる。なお、サーバ20との通信が可能な場合には、動作状態はサーバ20に保存されるため、サーバ20に保存された動作状態の方が新しくなる。そのため、サーバ20に保存された動作状態が優先される。 In this way, by comparing the dates and times when the operating status was saved in the server 20 and the non-volatile memory 120, the operating status of the ventilation equipment 50 can be more reliably restored to the operating status before reset. Note that when communication with the server 20 is possible, the operating status is saved in the server 20, so the operating status saved in the server 20 will be newer. Therefore, the operating status saved in the server 20 takes priority.
より詳細には、換気機器50に対して継続的に動作する動作モードが設定されている場合、スイッチ装置100は、上述した動作状態をサーバ20のDB22又は不揮発メモリ120に保存する処理を実行する。ここで、継続的に動作する動作モードは、換気機器50が停止せずに動作する用途で使用される場合に設定される動作モードである。例えば、動作時間を定めて一時的に換気機器50を動作させる動作モードは、継続的に動作する動作モードには該当しない。 More specifically, when a continuous operation mode is set for the ventilation device 50, the switch device 100 executes a process of saving the above-mentioned operation state in the DB 22 or non-volatile memory 120 of the server 20. Here, the continuous operation mode is an operation mode that is set when the ventilation device 50 is used for an application in which it operates without stopping. For example, an operation mode in which the ventilation device 50 operates temporarily for a set operating time does not fall under the category of a continuous operation mode.
以下では、継続的に動作する動作モードとして、換気機器50が建物H内を常に換気する「24時間換気」の動作モードを例にとって説明する。このような動作モードは、ユーザが操作端末10を操作することによって設定することができる。 The following describes an example of a continuous operation mode, namely, "24-hour ventilation," in which the ventilation equipment 50 constantly ventilates the interior of the building H. Such an operation mode can be set by the user operating the operation terminal 10.
スイッチ装置100がリセットから再起動する際において、動作状態設定部111は、換気機器50に対して「24時間換気」の動作モードが設定されているか否かを判定する。換気機器50に対して「24時間換気」の動作モードが設定されている場合、動作状態設定部111は、上述したように、換気機器50の動作状態を、換気機器50の動作状態を、サーバ20から受信された動作状態データにより示される動作状態と、不揮発メモリ120に保存された動作状態と、のうちの新しい方に設定する。 When the switch device 100 restarts after being reset, the operating state setting unit 111 determines whether the "24-hour ventilation" operating mode is set for the ventilation device 50. If the "24-hour ventilation" operating mode is set for the ventilation device 50, the operating state setting unit 111 sets the operating state of the ventilation device 50 to the newer of the operating state indicated by the operating state data received from the server 20 and the operating state stored in the non-volatile memory 120, as described above.
これに対して、換気機器50に対して「24時間換気」の動作モードが設定されていない場合、換気機器50の動作状態をリセット前の動作状態に復帰させる必要性が小さい。そのため、動作状態設定部111は、換気機器50の動作状態を、予め定められた初期状態に設定する。 In contrast, if the "24-hour ventilation" operating mode is not set for the ventilation device 50, there is little need to restore the operating state of the ventilation device 50 to the operating state before reset. Therefore, the operating state setting unit 111 sets the operating state of the ventilation device 50 to a predetermined initial state.
次に、図10~図13を参照して、実施の形態2に係るスイッチシステム1
により実行される処理の流れを説明する。
Next, referring to FIGS. 10 to 13, the switch system 1 according to the second embodiment will be described.
The flow of the process executed by the following will be explained.
まず、図10を参照して、実施の形態2に係る操作端末10により実行される処理について説明する。図10に示す処理は、操作端末10が正常に動作可能な状態において、操作端末10のCPUによって随時実行される。 First, referring to Figure 10, we will explain the processing executed by the operation terminal 10 according to embodiment 2. The processing shown in Figure 10 is executed by the CPU of the operation terminal 10 as needed when the operation terminal 10 is in a state where it can operate normally.
処理を開始すると、操作端末10は、換気機器50に対する操作及び動作モードを設定可能な入力画面を表示する(ステップS101)。例えば、ユーザは、入力画面に対して、換気機器50の動作状態を変更する操作、換気機器50の動作モードを「24時間換気」に設定する操作等を入力することができる。 When processing begins, the operation terminal 10 displays an input screen on which operations and operation modes for the ventilation device 50 can be set (step S101). For example, the user can input operations on the input screen to change the operation state of the ventilation device 50, set the operation mode of the ventilation device 50 to "24-hour ventilation," etc.
入力画面を表示すると、操作端末10は、ユーザから何らかの操作を受け付けたか否かを判定する(ステップS102)。ユーザから操作を受け付けていない場合(ステップS102;NO)、操作端末10は、処理をステップS102に留めて、ユーザから操作を受け付けるまで待機する。 When the input screen is displayed, the operation terminal 10 determines whether any operation has been received from the user (step S102). If no operation has been received from the user (step S102; NO), the operation terminal 10 retains the processing at step S102 and waits until an operation is received from the user.
これに対して、ユーザから操作を受け付けた場合(ステップS102;YES)、操作端末10は、操作情報をサーバ20に送信する(ステップS103)。操作情報は、ユーザから受け付けた操作の内容である動作状態、動作モード等を示す情報である。 On the other hand, if an operation is received from the user (step S102; YES), the operation terminal 10 transmits operation information to the server 20 (step S103). The operation information is information indicating the operation status, operation mode, etc., which are the contents of the operation received from the user.
その後、操作端末10は、処理をステップS102に戻す。そして、操作端末10は、再びユーザから操作を受け付けるまで待機し、ユーザから操作を受け付ける毎に、受け付けた操作の内容を示す操作情報をサーバ20に送信する。 The operation terminal 10 then returns the process to step S102. The operation terminal 10 then waits until it receives another operation from the user, and each time it receives an operation from the user, it transmits operation information indicating the content of the received operation to the server 20.
次に、図11を参照して、実施の形態2に係るサーバ20により実行される処理の流れを説明する。図11に示す処理は、サーバ20が正常に動作可能な状態において、サーバ20の制御部21によって随時実行される。 Next, the flow of processing executed by the server 20 according to embodiment 2 will be described with reference to Figure 11. The processing shown in Figure 11 is executed by the control unit 21 of the server 20 as needed when the server 20 is in a state where it can operate normally.
処理を開始すると、制御部21は、操作端末10又はスイッチ装置100から何らかのデータを受信したか否かを判定する(ステップS201)。 When processing begins, the control unit 21 determines whether any data has been received from the operation terminal 10 or the switch device 100 (step S201).
操作端末10から操作情報を受信した場合(ステップS201;操作情報)、制御部21は、受信した操作情報をDB22に保存する(ステップS202)。そして、制御部21は、受信した操作情報をスイッチ装置100に転送する(ステップS203)。 When operation information is received from the operation terminal 10 (step S201; operation information), the control unit 21 stores the received operation information in the DB 22 (step S202). Then, the control unit 21 transfers the received operation information to the switch device 100 (step S203).
操作端末10から動作状態データを受信した場合(ステップS201;動作状態データ)、制御部21は、受信した動作状態データをDB22に保存する(ステップS204)。そして、制御部21は、スイッチ装置100に応答を送信する(ステップS205)。 When operation status data is received from the operation terminal 10 (step S201; operation status data), the control unit 21 stores the received operation status data in the DB 22 (step S204). Then, the control unit 21 transmits a response to the switch device 100 (step S205).
操作端末10から初期通信を受けた場合(ステップS201;初期通信)、制御部21は、DB22から動作状態データを読み出す(ステップS206)。そして、制御部21は、スイッチ装置100にDB22から読み出した動作状態データを送信する(ステップS207)。 When initial communication is received from the operation terminal 10 (step S201; initial communication), the control unit 21 reads operation status data from the DB 22 (step S206). Then, the control unit 21 transmits the operation status data read from the DB 22 to the switch device 100 (step S207).
ステップS203,S205,S207の後、サーバ20は、処理をステップS201に戻し、再び何らかのデータを受信するまで待機する。そして、サーバ20は、何らかのデータを受信すると、受信したデータに応じて、ステップS202~S203とステップS204~S205とステップS206~S207とのいずれかの処理を実行する。 After steps S203, S205, and S207, server 20 returns to step S201 and waits until it receives some data again. When server 20 receives some data, it executes one of steps S202-S203, steps S204-S205, or steps S206-S207, depending on the received data.
次に、図12を参照して、実施の形態2に係るスイッチ装置100により実行される動作状態更新処理について説明する。図12に示す動作状態更新処理は、スイッチ装置100が正常に動作可能な状態において、スイッチ装置100の制御部110によって随時実行される。 Next, with reference to Figure 12, the operating status update process executed by the switch device 100 according to embodiment 2 will be described. The operating status update process shown in Figure 12 is executed by the control unit 110 of the switch device 100 whenever the switch device 100 is in a state where it can operate normally.
動作状態更新処理を開始すると、制御部110は、ユーザから手元操作又は遠隔操作のどちらかの操作を受け付けたか否かを判定する(ステップS301)。手元操作も遠隔操作も受け付けていない場合(ステップS301;NO)、制御部110は、ステップS301に留まり、手元操作又は遠隔操作を受け付けるまで待機する。 When the operation status update process starts, the control unit 110 determines whether a local operation or a remote operation has been received from the user (step S301). If neither a local operation nor a remote operation has been received (step S301; NO), the control unit 110 remains in step S301 and waits until a local operation or a remote operation is received.
これに対して、ユーザから手元操作又は遠隔操作のどちらかの操作を受け付けた場合(ステップS301;YES)、制御部110は、動作状態設定部111として機能し、換気機器50の動作状態を更新する(ステップS302)。具体的に説明すると、制御部110は、切り替え部140を制御して、換気機器50の動作状態を、受け付けた操作において指示された動作状態に更新する。 In contrast, if either a manual operation or a remote operation is received from the user (step S301; YES), the control unit 110 functions as the operation state setting unit 111 and updates the operation state of the ventilation device 50 (step S302). Specifically, the control unit 110 controls the switching unit 140 to update the operation state of the ventilation device 50 to the operation state instructed in the received operation.
動作状態を更新すると、制御部110は、通信制御部113として機能し、更新後の動作状態を示す動作状態データをサーバ20に送信する(ステップS303)。これにより、制御部110は、更新後の動作状態データをDB22に保存する。 Once the operating status is updated, the control unit 110 functions as the communication control unit 113 and transmits operating status data indicating the updated operating status to the server 20 (step S303). As a result, the control unit 110 stores the updated operating status data in the DB 22.
動作状態データをサーバ20に送信すると、制御部110は、換気機器50の動作モードが「24時間換気」であるか否かを判定する(ステップS304)。動作モードが「24時間換気」である場合(ステップS304;YES)、制御部110は、次に、通信制御部113として機能し、動作状態データをサーバ20に送信してから予め定められた時間以内にサーバ20から応答を受信したか否かを判定する(ステップS305)。 After transmitting the operating status data to the server 20, the control unit 110 determines whether the operating mode of the ventilation device 50 is "24-hour ventilation" (step S304). If the operating mode is "24-hour ventilation" (step S304; YES), the control unit 110 then functions as the communication control unit 113 and determines whether a response has been received from the server 20 within a predetermined time after transmitting the operating status data to the server 20 (step S305).
サーバ20から応答を受信していない場合(ステップS305;NO)、制御部110は、サーバ20との通信に失敗したと判定する。この場合、制御部110は、メモリ制御部115として機能し、更新後の動作状態を不揮発メモリ120に保存する(ステップS306)。更新後の動作状態を不揮発メモリ120に保存すると、制御部110は、処理をステップS301に戻す。 If no response is received from server 20 (step S305; NO), control unit 110 determines that communication with server 20 has failed. In this case, control unit 110 functions as memory control unit 115 and saves the updated operating state in non-volatile memory 120 (step S306). After saving the updated operating state in non-volatile memory 120, control unit 110 returns the process to step S301.
一方で、動作モードが「24時間換気」でない場合(ステップS304;NO)、又は、動作モードが「24時間換気」であってもサーバ20から応答を受信した場合(ステップS305;YES)、制御部110は、ステップS306をスキップして、処理をステップS301に戻す。 On the other hand, if the operating mode is not "24-hour ventilation" (step S304; NO), or if a response is received from the server 20 even when the operating mode is "24-hour ventilation" (step S305; YES), the control unit 110 skips step S306 and returns the process to step S301.
このように、制御部110は、ユーザから手元操作又は遠隔操作を受け付けるごとにステップS302以降の処理を実行する。そして、制御部110は、受け付けた操作に応じて換気機器50の動作状態を更新し、更新後の動作状態を、サーバ20のDB22とスイッチ装置100の不揮発メモリ120とのうちのどちらかに保存する。 In this way, the control unit 110 executes the processes from step S302 onwards each time it receives a manual or remote operation from the user. The control unit 110 then updates the operating status of the ventilation equipment 50 in accordance with the received operation, and stores the updated operating status in either the DB 22 of the server 20 or the non-volatile memory 120 of the switch device 100.
次に、図13を参照して、実施の形態2に係るスイッチ装置100により実行される起動処理について説明する。図13に示す起動処理は、リセット後に再起動することを含めて、スイッチ装置100が停止状態から起動する際に、制御部110によって実行される。 Next, the startup process executed by the switch device 100 according to embodiment 2 will be described with reference to FIG. 13. The startup process shown in FIG. 13 is executed by the control unit 110 when the switch device 100 starts up from a stopped state, including restarting after a reset.
起動処理を開始すると、制御部110は、通信制御部113として機能し、サーバ20に初期通信を実行する(ステップS401)。これにより、制御部110は、スイッチ装置100が起動したことをサーバ20に通知すると共に、サーバ20のDB22に保存されている動作状態データを要求する。 When the startup process begins, the control unit 110 functions as the communication control unit 113 and performs initial communication with the server 20 (step S401). This causes the control unit 110 to notify the server 20 that the switch device 100 has started up, and to request the operating status data stored in the server 20's DB 22.
初期通信を実行すると、制御部110は、換気機器50の動作モードが「24時間換気」であるか否かを判定する(ステップS402)。動作モードが「24時間換気」である場合(ステップS402;YES)、制御部110は、メモリ制御部115として機能し、不揮発メモリ120に保存されている動作状態を読み出す(ステップS403)。 When initial communication is performed, the control unit 110 determines whether the operating mode of the ventilation device 50 is "24-hour ventilation" (step S402). If the operating mode is "24-hour ventilation" (step S402; YES), the control unit 110 functions as the memory control unit 115 and reads the operating status stored in the non-volatile memory 120 (step S403).
不揮発メモリ120を読み出すと、制御部110は、通信制御部113として機能し、サーバ20から動作状態データを受信したか否かを判定する(ステップS404)。サーバ20から動作状態データを受信した場合(ステップS404;YES)、制御部110は、不揮発メモリ120から読み出した動作状態データとサーバ20から受信した動作状態データとの間で日時データを比較する(ステップS405)。 After reading the non-volatile memory 120, the control unit 110 functions as the communication control unit 113 and determines whether or not operating status data has been received from the server 20 (step S404). If operating status data has been received from the server 20 (step S404; YES), the control unit 110 compares the date and time data between the operating status data read from the non-volatile memory 120 and the operating status data received from the server 20 (step S405).
比較の結果、制御部110は、不揮発メモリ120から読み出した動作状態データとサーバ20から受信した動作状態データとのうちの日時が新しい方の動作状態データで、スイッチ装置100の動作状態を更新する(ステップS406)。 As a result of the comparison, the control unit 110 updates the operating status of the switch device 100 with the operating status data with the newer date and time between the operating status data read from the non-volatile memory 120 and the operating status data received from the server 20 (step S406).
一方で、ステップS404でサーバ20から動作状態データを受信しない場合(ステップS404;NO)、制御部110は、不揮発メモリ120から読み出した動作状態データで、スイッチ装置100の動作状態を更新する(ステップS407)。 On the other hand, if no operating status data is received from the server 20 in step S404 (step S404; NO), the control unit 110 updates the operating status of the switch device 100 with the operating status data read from the non-volatile memory 120 (step S407).
また、ステップS402で動作モードが「24時間換気」でない場合(ステップS402;NO)、制御部110は、初期設定値でスイッチ装置100の動作状態を更新する(ステップS408)。 Also, if the operating mode is not "24-hour ventilation" in step S402 (step S402; NO), the control unit 110 updates the operating state of the switch device 100 with the initial setting value (step S408).
なお、ステップS406~408において、制御部110は、動作状態設定部111として機能する。以上により、図13に示した起動処理は終了する。 In steps S406 to S408, the control unit 110 functions as the operating state setting unit 111. This completes the startup process shown in Figure 13.
以上説明したように、実施の形態2に係るスイッチ装置100は、換気機器50の動作状態が切り替えられると、切り替え後の動作状態を示す動作状態データを、通信部130を介してサーバ20に送信する。そして、実施の形態2に係るスイッチ装置100は、リセットから再起動する際に、換気機器50の動作状態を、サーバ20から受信された動作状態データにより示される動作状態と、不揮発メモリ120に保存された動作状態と、のうちのいずれか一方に設定する。このように、動作状態をサーバ20に保存するため、不揮発メモリ120への書き込み回数を抑制することができる。その結果として、スイッチ装置100の長寿命化を図りつつ、スイッチ装置100がリセットを実行した場合であっても換気機器50を継続して動作させることができる。 As described above, when the operating state of the ventilation device 50 is switched, the switch device 100 according to the second embodiment transmits operating state data indicating the operating state after the switch to the server 20 via the communication unit 130. Then, when restarting from a reset, the switch device 100 according to the second embodiment sets the operating state of the ventilation device 50 to either the operating state indicated by the operating state data received from the server 20 or the operating state stored in the non-volatile memory 120. In this way, because the operating state is stored in the server 20, the number of times data is written to the non-volatile memory 120 can be reduced. As a result, the lifespan of the switch device 100 can be extended, and the ventilation device 50 can continue to operate even when the switch device 100 executes a reset.
特に、サーバ20との通信が可能な場合には動作状態をサーバ20に保存し、サーバ20との通信に失敗した場合に動作状態を不揮発メモリ120に保存するため、多くの場合は不揮発メモリ120よりもサーバ20への保存が優先される。そのため、不揮発メモリ120への書き込み回数をより抑制することができ、スイッチ装置100の長寿命化につながる。 In particular, when communication with server 20 is possible, the operating state is saved to server 20, and when communication with server 20 fails, the operating state is saved to non-volatile memory 120. Therefore, in most cases, saving to server 20 takes priority over saving to non-volatile memory 120. This further reduces the number of writes to non-volatile memory 120, leading to a longer lifespan for the switch device 100.
また、実施の形態2に係るスイッチ装置100は、換気機器50の動作状態が切り替えられる毎に、切り替え後の動作状態を示す動作状態データを、サーバ20又は不揮発メモリ120に保存する。そのため、自発的なリセットだけでなく、不慮の要因によるリセットからの再起動時にも、換気機器50をリセット前の動作状態に復帰させることができる。 Furthermore, each time the operating state of the ventilation equipment 50 is switched, the switch device 100 according to embodiment 2 stores operating state data indicating the operating state after the switch in the server 20 or non-volatile memory 120. Therefore, not only in the case of a voluntary reset, but also when restarting after a reset due to an unforeseen factor, the ventilation equipment 50 can be restored to the operating state before the reset.
(変形例)
以上、実施の形態を説明したが、各実施の形態を組み合わせたり、各実施の形態を適宜、変形、省略したりすることが可能である。
(Modification)
Although the embodiments have been described above, it is possible to combine the embodiments, or to modify or omit the embodiments as appropriate.
例えば、上記実施の形態2では、スイッチ装置100は、換気機器50の動作状態を保存する保存先として、サーバ20のDB22とスイッチ装置100内の不揮発メモリ120とを併用した。しかしながら、スイッチ装置100は、よりシンプルな構成として、動作状態の保存先として、サーバ20のDB22のみを使用し、スイッチ装置100内の不揮発メモリ120を使用しなくても良い。 For example, in the above-described second embodiment, the switch device 100 uses both the DB 22 of the server 20 and the non-volatile memory 120 within the switch device 100 as a storage destination for saving the operating status of the ventilation equipment 50. However, as a simpler configuration, the switch device 100 may use only the DB 22 of the server 20 as a storage destination for the operating status, and not use the non-volatile memory 120 within the switch device 100.
この場合、スイッチ装置100がリセットから再起動する際に、不揮発メモリ120から動作状態から読み出す処理は実行されず、通信制御部113は、サーバ20から動作状態データが受信されたか否かを判定する。サーバ20から動作状態データが受信された場合、動作状態設定部111は、換気機器50の動作状態を、サーバ20から受信された動作状態データにより示される動作状態に設定する。一方で、サーバ20から動作状態データが受信されなかった場合には、動作状態設定部111は、換気機器50の動作状態を初期設定値に設定する。 In this case, when the switch device 100 restarts from a reset, the process of reading the operating state from the non-volatile memory 120 is not executed, and the communication control unit 113 determines whether operating state data has been received from the server 20. If operating state data has been received from the server 20, the operating state setting unit 111 sets the operating state of the ventilation device 50 to the operating state indicated by the operating state data received from the server 20. On the other hand, if operating state data has not been received from the server 20, the operating state setting unit 111 sets the operating state of the ventilation device 50 to the initial setting value.
実施の形態2で説明したスイッチ装置100に、実施の形態1で説明した機能を組み合わせても良い。具体的に説明すると、実施の形態2では、スイッチ装置100は、換気機器50の動作状態が更新された場合に、動作状態をサーバ20のDB22又は不揮発メモリ120に保存した。これに加えて、メモリ制御部115が、自発的なリセットが実行される際に、換気機器50の動作状態を不揮発メモリ120に保存しても良い。 The switch device 100 described in embodiment 2 may be combined with the functions described in embodiment 1. Specifically, in embodiment 2, when the operating status of the ventilation equipment 50 is updated, the switch device 100 saves the operating status in the DB 22 of the server 20 or in the non-volatile memory 120. In addition, the memory control unit 115 may save the operating status of the ventilation equipment 50 in the non-volatile memory 120 when a voluntary reset is performed.
実施の形態2で説明した換気機器50に対して継続的に動作する動作モードに設定されている場合の処理を、実施の形態1に適用しても良い。具体的に説明すると、動作状態設定部111は、再起動時において、換気機器50に対して継続的に動作する動作モードに設定されており、且つ、不揮発メモリ120に動作状態が保存されている場合に、換気機器50の動作状態を、不揮発メモリ120から読み出された動作状態に設定する。それ以外の場合は、動作状態設定部111は、換気機器50の動作状態を初期設定値に設定する。 The processing performed when the ventilation device 50 is set to a continuous operation mode as described in embodiment 2 may also be applied to embodiment 1. Specifically, when the ventilation device 50 is set to a continuous operation mode at the time of restart and the operation state is stored in the non-volatile memory 120, the operation state setting unit 111 sets the operation state of the ventilation device 50 to the operation state read from the non-volatile memory 120. In all other cases, the operation state setting unit 111 sets the operation state of the ventilation device 50 to the initial setting value.
なお、再起動時に換気機器50がリセット前の動作状態で復帰するか初期設定値で復帰するかをユーザが操作端末10において選択することができるようにしても良い。 In addition, the user may be able to select on the operation terminal 10 whether the ventilation equipment 50 will return to the operating state before reset or to the initial setting values upon restart.
上記実施の形態では、スイッチ装置100は、ユーザの手元操作と遠隔操作とをどちらも受け付け可能な構成を備えていた。しかしながら、スイッチ装置100は、よりシンプルな構成として、手元操作を受け付けるためのON/OFFスイッチ101、強/弱スイッチ102及びWPSスイッチ103の構成を備えなくても良い。この場合、スイッチ装置100は、通信部130による無線通信を介した遠隔操作のみによって、換気機器50の動作状態を切り替える。 In the above embodiment, the switch device 100 has a configuration that can accept both manual and remote user operation. However, for a simpler configuration, the switch device 100 may not have the ON/OFF switch 101, strong/weak switch 102, and WPS switch 103 for accepting manual operation. In this case, the switch device 100 switches the operating state of the ventilation equipment 50 solely by remote operation via wireless communication using the communication unit 130.
上記実施の形態では、スイッチ装置100に接続された負荷機器として、換気機器50を例にとって説明した。しかしながら、負荷機器は、換気機器50以外の機器であっても良い。例えば、負荷機器は、換気機能以外の機能を備えた空調機器、すなわち暖房機器、冷房機器、除湿機器、送風機器等であっても良い。更には、負荷機器は、空調機器以外の他の種類の機器であっても良い。 In the above embodiment, a ventilation device 50 has been described as an example of a load device connected to the switch device 100. However, the load device may be a device other than the ventilation device 50. For example, the load device may be an air conditioning device with a function other than ventilation, such as a heating device, a cooling device, a dehumidifying device, or a blower. Furthermore, the load device may be a type of device other than an air conditioning device.
上記実施の形態では、スイッチ装置100の制御部110において、マイクロコンピュータ、CPU等がROM又は不揮発メモリ120に記憶されたプログラムを実行することによって、図5に示した各部として機能した。しかしながら、制御部110は、専用のハードウェアであってもよい。専用のハードウェアとは、例えば単一回路、複合回路、プログラム化されたプロセッサ、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)、又は、これらの組み合わせ等である。制御部110が専用のハードウェアである場合、各部の機能それぞれを個別のハードウェアで実現してもよいし、各部の機能をまとめて単一のハードウェアで実現してもよい。 In the above embodiment, the control unit 110 of the switch device 100 functions as each unit shown in FIG. 5 by having a microcomputer, CPU, or the like execute a program stored in ROM or non-volatile memory 120. However, the control unit 110 may also be dedicated hardware. Dedicated hardware is, for example, a single circuit, a composite circuit, a programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination of these. When the control unit 110 is dedicated hardware, the functions of each unit may be realized by individual hardware, or the functions of each unit may be realized together by a single piece of hardware.
また、各部の機能のうち、一部を専用のハードウェアによって実現し、他の一部をソフトウェア又はファームウェアによって実現してもよい。このように、制御部110は、ハードウェア、ソフトウェア、ファームウェア、又は、これらの組み合わせによって、上述の各機能を実現することができる。 Furthermore, some of the functions of each unit may be realized by dedicated hardware, and other functions may be realized by software or firmware. In this way, the control unit 110 can realize each of the above-mentioned functions by hardware, software, firmware, or a combination of these.
制御部110の動作を規定するプログラムを、パーソナルコンピュータ、情報端末装置等の既存のコンピュータに適用することで、当該コンピュータを、スイッチ装置100として機能させることも可能である。 By applying the program that defines the operation of the control unit 110 to an existing computer such as a personal computer or information terminal device, it is possible to make the computer function as the switch device 100.
また、このようなプログラムの配布方法は任意であり、例えば、CD-ROM(Compact Disk ROM)、DVD(Digital Versatile Disk)、MO(Magneto Optical Disk)、メモリカード等のコンピュータ読み取り可能な記録媒体に格納して配布してもよいし、インターネット等の通信ネットワークを介して配布してもよい。 Furthermore, such programs may be distributed in any manner; for example, they may be stored on a computer-readable recording medium such as a CD-ROM (Compact Disk ROM), DVD (Digital Versatile Disk), MO (Magneto Optical Disk), or memory card, or they may be distributed via a communications network such as the Internet.
本開示は、本開示の広義の精神と範囲を逸脱することなく、様々な実施の形態及び変形が可能とされるものである。また、上述した実施の形態は、この開示を説明するためのものであり、本開示の範囲を限定するものではない。すなわち、本開示の範囲は、実施の形態ではなく、特許請求の範囲によって示される。そして特許請求の範囲内及びそれと同等の開示の意義の範囲内で施される様々な変形が、この開示の範囲内とみなされる。 This disclosure allows for various embodiments and modifications without departing from the broad spirit and scope of the disclosure. Furthermore, the above-described embodiments are intended to illustrate the disclosure and do not limit the scope of the disclosure. In other words, the scope of the disclosure is defined by the claims, not the embodiments. Various modifications made within the scope of the claims and the meaning of equivalent disclosures are deemed to be within the scope of this disclosure.
1 スイッチシステム、10 操作端末、20 サーバ、21 制御部、22 DB、23 通信部、30 ルータ、50 換気機器、100 スイッチ装置、101 ON/OFFスイッチ、102 強/弱スイッチ、103 WPSスイッチ、110 制御部、111 動作状態設定部、112 スイッチ入力部、113 通信制御部、114 無線LED制御部、115 メモリ制御部、120 不揮発メモリ、130 通信部、140 切り替え部、141,142 リレー駆動回路、151 ON/OFFリレー、152 強/弱リレー、161~163 LED駆動回路、171 ON/OFFLED、172 強/弱LED、173 無線LED、H 建物、N1,N2 通信ネットワーク 1 Switching system, 10 Operation terminal, 20 Server, 21 Control unit, 22 Database, 23 Communication unit, 30 Router, 50 Ventilation equipment, 100 Switching device, 101 ON/OFF switch, 102 Strong/Weak switch, 103 WPS switch, 110 Control unit, 111 Operation status setting unit, 112 Switch input unit, 113 Communication control unit, 114 Wireless LED control unit, 115 Memory control unit, 120 Non-volatile memory, 130 Communication unit, 140 Switching unit, 141, 142 Relay driving circuit, 151 ON/OFF relay, 152 Strong/Weak relay, 161-163 LED driving circuit, 171 ON/OFF LED, 172 Strong/Weak LED, 173 Wireless LED, H Building, N1, N2 Communication network
Claims (11)
ユーザの操作に応じて前記負荷機器の動作状態を切り替える切り替え部と、
不揮発メモリと、
自発的なリセットが実行される際に、前記負荷機器の動作状態を前記不揮発メモリに保存するメモリ制御部と、
前記スイッチ装置が前記自発的なリセットから再起動する際に、前記負荷機器の動作状態を、前記不揮発メモリに保存された前記動作状態に設定する動作状態設定部と、を備える、
スイッチ装置。 A switch device connected to a load device,
a switching unit that switches the operation state of the load device in response to a user operation;
a non-volatile memory;
a memory control unit that stores an operating state of the load device in the nonvolatile memory when a voluntary reset is performed;
an operating state setting unit that sets the operating state of the load device to the operating state stored in the non-volatile memory when the switch device restarts from the voluntary reset,
Switch device.
請求項1に記載のスイッチ装置。 the memory control unit erases the operating state stored in the nonvolatile memory after the operating state of the load device is set to the operating state stored in the nonvolatile memory;
The switch device according to claim 1 .
前記不揮発メモリに前記動作状態が保存されている場合、前記負荷機器の動作状態を、前記不揮発メモリに保存された前記動作状態に設定し、
前記不揮発メモリに前記動作状態が保存されていない場合、前記負荷機器の動作状態を、予め定められた初期状態に設定する、
請求項1又は2に記載のスイッチ装置。 When the switch device is started, the operation state setting unit
If the operating state is stored in the nonvolatile memory, setting the operating state of the load device to the operating state stored in the nonvolatile memory;
If the operating state is not stored in the nonvolatile memory, the operating state of the load device is set to a predetermined initial state.
The switch device according to claim 1 or 2.
ユーザの操作に応じて前記負荷機器の動作状態を切り替える切り替え部と、
サーバと通信する通信部と、
前記切り替え部により前記負荷機器の動作状態が切り替えられると、前記切り替え部により切り替えられた後の動作状態を示す動作状態データを、前記通信部を介して前記サーバに送信する通信制御部と、
前記スイッチ装置がリセットから再起動する際に前記サーバから前記動作状態データが受信された場合、前記負荷機器の動作状態を、前記サーバから受信された前記動作状態データにより示される前記動作状態に設定する動作状態設定部と、を備える、
スイッチ装置。 A switch device connected to a load device,
a switching unit that switches the operation state of the load device in response to a user operation;
a communication unit that communicates with the server;
a communication control unit that, when the switching unit switches the operation state of the load device, transmits operation state data indicating the operation state after switching by the switching unit to the server via the communication unit;
an operating state setting unit that, when the operating state data is received from the server when the switch device is restarted from a reset state, sets the operating state of the load device to the operating state indicated by the operating state data received from the server,
Switch device.
前記動作状態を前記不揮発メモリに保存するメモリ制御部と、を更に備え、
前記動作状態設定部は、前記スイッチ装置が前記リセットから再起動する際、前記負荷機器の動作状態を、前記サーバから受信された前記動作状態データにより示される動作状態と、前記不揮発メモリに保存された前記動作状態と、のうちのいずれかに設定する、
請求項4に記載のスイッチ装置。 a non-volatile memory;
a memory control unit that stores the operating state in the nonvolatile memory,
When the switch device restarts from the reset state, the operation state setting unit sets the operation state of the load device to either the operation state indicated by the operation state data received from the server or the operation state stored in the non-volatile memory.
The switch device according to claim 4.
請求項5に記載のスイッチ装置。 the memory control unit stores the operation state in the non-volatile memory when the switching unit switches the operation state of the load device and communication with the server via the communication unit fails.
The switch device according to claim 5 .
請求項5又は6に記載のスイッチ装置。 When the switch device restarts from the reset state, the operation state setting unit sets the operation state of the load device to the newer of the operation state indicated by the operation state data received from the server and the operation state stored in the non-volatile memory.
The switch device according to claim 5 or 6.
請求項5から7のいずれか1項に記載のスイッチ装置。 the memory control unit stores the operating state in the non-volatile memory when a voluntary reset is performed;
The switch device according to any one of claims 5 to 7.
前記負荷機器に対して継続的に動作する動作モードが設定されている場合、前記負荷機器の動作状態を、前記サーバから受信された前記動作状態データにより示される前記動作状態に設定し、
前記負荷機器に対して前記継続的に動作する動作モードが設定されていない場合、前記負荷機器の動作状態を、予め定められた初期状態に設定する、
請求項4から8のいずれか1項に記載のスイッチ装置。 When the switch device is restarted from the reset state, the operation state setting unit
If an operation mode in which the load device operates continuously is set, the operation state of the load device is set to the operation state indicated by the operation state data received from the server;
If the continuous operation mode is not set for the load device, the operation state of the load device is set to a predetermined initial state.
The switch device according to any one of claims 4 to 8.
スイッチシステム。 A system comprising: the switch device according to any one of claims 4 to 9; and the server.
Switch system.
スイッチシステム。 A power supply comprising: the switch device according to any one of claims 1 to 9; and the load device.
Switch system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022038257A JP7825467B2 (en) | 2022-03-11 | 2022-03-11 | Switch device and switch system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022038257A JP7825467B2 (en) | 2022-03-11 | 2022-03-11 | Switch device and switch system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023132747A JP2023132747A (en) | 2023-09-22 |
| JP7825467B2 true JP7825467B2 (en) | 2026-03-06 |
Family
ID=88065248
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022038257A Active JP7825467B2 (en) | 2022-03-11 | 2022-03-11 | Switch device and switch system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7825467B2 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004147065A (en) | 2002-10-24 | 2004-05-20 | Toshiba Corp | Operating state control system for electrical equipment |
| JP2006214639A (en) | 2005-02-03 | 2006-08-17 | Matsushita Electric Ind Co Ltd | Hot water utilization device system and program thereof |
| WO2009118877A1 (en) | 2008-03-28 | 2009-10-01 | 三菱電機株式会社 | Air-conditioning management apparatus, air-conditioning management system |
| JP2011069544A (en) | 2009-09-25 | 2011-04-07 | Toshiba Carrier Corp | Control method of ventilation fan and the ventilation fan |
| JP2011257110A (en) | 2010-06-11 | 2011-12-22 | Toto Ltd | Bathroom air conditioner |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01256749A (en) * | 1988-04-06 | 1989-10-13 | Daikin Ind Ltd | Method and device of controlling air-conditioning device |
| JPH08272635A (en) * | 1995-03-28 | 1996-10-18 | Kyushu Henatsuki Kk | Electrical equipment controller with remote controller |
-
2022
- 2022-03-11 JP JP2022038257A patent/JP7825467B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004147065A (en) | 2002-10-24 | 2004-05-20 | Toshiba Corp | Operating state control system for electrical equipment |
| JP2006214639A (en) | 2005-02-03 | 2006-08-17 | Matsushita Electric Ind Co Ltd | Hot water utilization device system and program thereof |
| WO2009118877A1 (en) | 2008-03-28 | 2009-10-01 | 三菱電機株式会社 | Air-conditioning management apparatus, air-conditioning management system |
| JP2011069544A (en) | 2009-09-25 | 2011-04-07 | Toshiba Carrier Corp | Control method of ventilation fan and the ventilation fan |
| JP2011257110A (en) | 2010-06-11 | 2011-12-22 | Toto Ltd | Bathroom air conditioner |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023132747A (en) | 2023-09-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7499892B2 (en) | FIRMWARE UPDATING SYSTEM, FIRMWARE TRANSMISSION DEVICE, FIRMWARE UPDATING METHOD, AND PROGRAM | |
| JP7112052B2 (en) | Air conditioning system and program update method for air conditioning system | |
| WO2020044447A1 (en) | Air conditioning system and air conditioning system program update method | |
| US10237131B2 (en) | Communication adapter and program update method for communication adapter | |
| JP7825467B2 (en) | Switch device and switch system | |
| TWI726502B (en) | Server without the need to shut down during firmware update and motherboard module | |
| CN113411212A (en) | BIOS control system of intelligent network card and BIOS control method of intelligent network card | |
| JPWO2019030896A1 (en) | Program update method, outdoor unit and management device | |
| CN210118825U (en) | Air conditioning system and indoor unit | |
| JP2022123426A (en) | Setting change system and setting change method for bios of computer system | |
| KR20090065904A (en) | Air Conditioner and Control Method | |
| JP2021149289A (en) | Air conditioner | |
| JP7577527B2 (en) | Program Update System | |
| KR20050094246A (en) | Home network system and its operating method | |
| JP2008171100A (en) | Device management apparatus and remote monitoring system using the same | |
| JP2002135860A (en) | Remote controller for house facility equipment | |
| CN108595193B (en) | Firmware updating method of baseboard management controller for fan rotating speed control | |
| JP5721755B2 (en) | Equipment control device, equipment control system, equipment control method and program | |
| JP7505240B2 (en) | Control Systems and Equipment | |
| JP7166019B2 (en) | Air conditioner, program and method | |
| JP2006017529A (en) | Testing apparatus | |
| JP7538661B2 (en) | Home Appliance Systems | |
| JP2024106752A (en) | Air conditioner, update method thereof, computer program, and storage medium | |
| JP2014194286A (en) | Air conditioner remote controller | |
| JP2020091081A (en) | Air conditioner, wired remote controller for air conditioner, and indoor unit of air conditioner |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20250123 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20251205 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20260127 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20260224 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7825467 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |