JP6536705B1 - Water supply equipment - Google Patents

Water supply equipment Download PDF

Info

Publication number
JP6536705B1
JP6536705B1 JP2018028883A JP2018028883A JP6536705B1 JP 6536705 B1 JP6536705 B1 JP 6536705B1 JP 2018028883 A JP2018028883 A JP 2018028883A JP 2018028883 A JP2018028883 A JP 2018028883A JP 6536705 B1 JP6536705 B1 JP 6536705B1
Authority
JP
Japan
Prior art keywords
slave
master
slaves
signal
address
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
Application number
JP2018028883A
Other languages
Japanese (ja)
Other versions
JP2019146034A (en
Inventor
英典 角田
英典 角田
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.)
Toto Ltd
Original Assignee
Toto 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 Toto Ltd filed Critical Toto Ltd
Priority to JP2018028883A priority Critical patent/JP6536705B1/en
Application granted granted Critical
Publication of JP6536705B1 publication Critical patent/JP6536705B1/en
Publication of JP2019146034A publication Critical patent/JP2019146034A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Domestic Plumbing Installations (AREA)
  • Selective Calling Equipment (AREA)

Abstract

【課題】複数のスレーブを有する水回り機器の管理、製造、または施工におけるコストの増加を抑制することができる水回り機器を提供する。
【解決手段】複数のスレーブと、前記複数のスレーブと通信し、前記複数のスレーブを制御するマスタと、を備えた水回り機器であって、前記マスタは、前記複数のスレーブのそれぞれに探査信号を送信し、前記複数のスレーブのうち、前記探査信号に対して返信した前記スレーブのスレーブアドレスを決定する自動スレーブアドレス決定モードを有し、前記自動スレーブアドレス決定モードにおいて、前記マスタは、前記探査信号を複数回送信して、前記複数のスレーブのすべてが前記探査信号に対して返信したと判断すると前記自動スレーブアドレス決定モードを終了することを特徴とする水回り機器が提供される。
【選択図】図5
An object of the present invention is to provide an apparatus capable of suppressing an increase in cost in management, manufacture, or construction of an apparatus having a plurality of slaves.
A watercraft apparatus comprising: a plurality of slaves; and a master that communicates with the plurality of slaves and controls the plurality of slaves, wherein the master transmits a search signal to each of the plurality of slaves. And, among the plurality of slaves, there is an automatic slave address determination mode for determining a slave address of the slave that has returned a reply to the search signal, and in the automatic slave address determination mode, the master A watercraft device is provided, comprising transmitting the signal a plurality of times and terminating the automatic slave address determination mode when it is determined that all of the plurality of slaves have returned in response to the search signal.
[Selected figure] Figure 5

Description

本発明の態様は、一般に、水回り機器に関する。   Aspects of the present invention generally relate to plumbing devices.

例えば、水回り機器の一種である水栓装置には、使用者の手などの物体を検出するセンサと、センサからの出力に基づいて吐水を制御する電磁バルブとが設けられる場合がある。またさらに、近年においては、センサからの出力に基づいて石鹸水の吐出を制御したり、乾燥用エアの噴出を制御したりすることも行われている。   For example, a water faucet device, which is a type of a plumbing device, may be provided with a sensor that detects an object such as a user's hand, and an electromagnetic valve that controls water discharge based on an output from the sensor. Furthermore, in recent years, it is also performed to control the discharge of soap water or to control the ejection of drying air based on the output from the sensor.

この様な水栓装置においては、例えば、マスタ/スレーブ方式と呼ばれる制御方式が採用されている。マスタ/スレーブ方式においては、複数のセンサのそれぞれがスレーブとなり、複数のセンサへ指令を出したり複数のセンサからの検出処理の結果に基づいて電磁バルブなどの機器を制御したりする制御部がマスタとなる。そして、マスタと複数のスレーブとの間で相互に通信を行いながら、マスタが所望の機器を制御するようにしている。   In such a water faucet apparatus, for example, a control system called a master / slave system is adopted. In the master / slave method, each of a plurality of sensors serves as a slave, and a control unit that issues commands to the plurality of sensors or controls devices such as electromagnetic valves based on results of detection processing from the plurality of sensors is a master It becomes. Then, the master controls the desired device while communicating with the master and the plurality of slaves.

マスタ/スレーブ方式における通信には、I2C(Inter-Integrated Circuit:アイスクウェアードシー)方式が採用される場合が多い(例えば、特許文献1を参照)。I2C方式においては、複数のスレーブが1本のクロック供給ラインと1本のデータ送信ラインとに接続される。また、複数のスレーブのそれぞれに関するライト(Write)信号とリード(Read)信号とが、順次送信される。   In communication in the master / slave system, an I2C (Inter-Integrated Circuit) system is often employed (see, for example, Patent Document 1). In the I2C system, a plurality of slaves are connected to one clock supply line and one data transmission line. Further, a write (Write) signal and a read (Read) signal regarding each of the plurality of slaves are sequentially transmitted.

複数のスレーブのそれぞれには、個別のスレーブアドレスが付与されており、ライト信号やリード信号には、いずれかのスレーブアドレスが含まれている。スレーブアドレスにより、複数のスレーブのうちのいずれかが特定される。各スレーブは、自身に付与されたスレーブアドレスを含む信号(ライト信号、リード信号)の指示に従って動作する。スレーブアドレスによって、スレーブが識別され、マスタは、所望のスレーブを制御することができる。   Individual slave addresses are assigned to each of the plurality of slaves, and any one of the slave addresses is included in the write signal and the read signal. The slave address identifies one of the plurality of slaves. Each slave operates in accordance with an instruction of a signal (write signal, read signal) including a slave address assigned to itself. The slave address identifies the slave and allows the master to control the desired slave.

特開2009−88657号公報JP, 2009-88657, A

水回り機器が、同じ動作を行う複数のスレーブ(例えば同じ仕様のセンサ)を有する場合においても、複数のスレーブのそれぞれに、個別のスレーブアドレスが付与される。すなわち、付与されるスレーブアドレスのみが互いに異なる複数のスレーブ(センサ)が用いられる。   Even in the case where the water supply apparatus has a plurality of slaves (for example, sensors of the same specification) performing the same operation, individual slave addresses are assigned to each of the plurality of slaves. That is, a plurality of slaves (sensors) which are different only in the slave address to be assigned are used.

例えば、1つのセンサが故障し、故障したセンサを新たなセンサに交換する場合には、故障したセンサのスレーブアドレスと同じスレーブアドレスのセンサが用いられることとなる。そのため、この場合には、スレーブアドレスのみが異なるセンサを、区別して管理することになる。例えば、同じ仕様のセンサを用いる場合であっても、スレーブアドレスごとに異なる品番が付されたセンサを管理することになる。このため、水回り機器の補修を考慮すると、管理コストが増加するおそれがある。
また、異なる仕様のセンサを用いる場合であっても、スレーブアドレスに対応した管理は負担となる恐れがある。
For example, when one sensor fails and a failed sensor is replaced with a new sensor, a sensor with the same slave address as the slave address of the failed sensor will be used. Therefore, in this case, sensors that differ only in the slave address will be managed separately. For example, even in the case of using sensors of the same specification, sensors with different part numbers for each slave address are managed. For this reason, there is a possibility that the management cost may increase when the repair of the plumbing equipment is taken into consideration.
Further, even when using sensors of different specifications, management corresponding to the slave address may be burdensome.

これに対して、マスタとスレーブとの通信ラインを適宜に切り替える通信ライン切替回路を設けることにより、複数のスレーブに、同一のスレーブアドレスを付与する方法も考えられる。通信ライン切替回路は、マスタがいずれか1つのスレーブと通信する場合、同じスレーブアドレスのスレーブとマスタとの通信を遮断する。これにより、同じスレーブアドレスを有するスレーブが複数存在していても、いずれか1つのスレーブを特定することができる。しかしながら、この場合には、通信ライン切替回路を設けるための製造コストや施工コストが増加する。また、水回り機器が大型化してしまう恐れもある。   On the other hand, a method may be considered in which the same slave address is given to a plurality of slaves by providing a communication line switching circuit which appropriately switches the communication line between the master and the slave. When the master communicates with any one slave, the communication line switching circuit shuts off communication between the slave of the same slave address and the master. Thus, even if there are a plurality of slaves having the same slave address, any one slave can be identified. However, in this case, the manufacturing cost and the construction cost for providing the communication line switching circuit increase. In addition, there is a risk that the size of the water-supplying device may be increased.

本発明は、かかる課題の認識に基づいてなされたものであり、複数のスレーブを有する水回り機器の管理、製造、または施工におけるコストの増加を抑制することができる水回り機器を提供することを目的とする。   The present invention has been made based on the recognition of such problems, and it is an object of the present invention to provide a watercraft apparatus capable of suppressing an increase in cost in management, manufacture, or construction of a watercraft apparatus having a plurality of slaves. To aim.

第1の発明は、複数のスレーブと、前記複数のスレーブと通信し、前記複数のスレーブを制御するマスタと、を備えた水回り機器であって、前記マスタは、前記複数のスレーブのそれぞれに探査信号を送信し、前記複数のスレーブのうち、前記探査信号に対して返信した前記スレーブのスレーブアドレスを決定する自動スレーブアドレス決定モードを有し、前記自動スレーブアドレス決定モードにおいて、前記マスタは、前記探査信号を複数回送信し、前記複数のスレーブのそれぞれは、前記複数回の前記探査信号のそれぞれに対して返信するか否かをその都度ランダムに決定し、前記複数のスレーブのすべてが前記探査信号に対して返信したと前記マスタが判断すると前記自動スレーブアドレス決定モードを終了することを特徴とする水回り機器である。 A first invention is a watercraft apparatus including a plurality of slaves, and a master that communicates with the plurality of slaves and controls the plurality of slaves, wherein the master corresponds to each of the plurality of slaves. The slave has an automatic slave address determination mode for transmitting a search signal and determining a slave address of the slave which has returned a reply to the search signal among the plurality of slaves, and in the automatic slave address determination mode, the master The search signal is transmitted a plurality of times , and each of the plurality of slaves randomly determines in each case whether to reply to each of the plurality of search signals, and all of the plurality of slaves Mizukai, characterized in that the reply to probe signal and the master determines to end the automatic slave address determination mode It is a device.

この水回り機器によれば、マスタのスレーブアドレス自動決定モードによって、各スレーブにスレーブアドレスが自動で付与されるため、スレーブアドレスに対応したスレーブの品番管理や、通信ライン切替回路が不要となる。これにより、水回り機器の製造や施工におけるコストの増加を抑制することができる。   According to this plumbing apparatus, the slave address is automatically assigned to each slave according to the slave address automatic determination mode of the master, so that it is not necessary to manage the part number of the slave corresponding to the slave address and the communication line switching circuit. Thereby, the increase in the cost in manufacture and construction of plumbing equipment can be suppressed.

第2の発明は、第1の発明において、前記複数のスレーブのそれぞれは、前記探査信号に対して、誤り検出符号を付与した信号を返信することを特徴とする水回り機器である。 The second invention according to the first invention, each of the plurality of slaves, to the front Symbol search signal is a plumbing device, characterized in that return a signal imparted with the error detection code.

この水回り機器によれば、複数のスレーブが探査信号に対してランダムに返信することで、同時に2以上のスレーブが返信することを抑制できる。また、同時に2以上のスレーブが探査信号に対して返信した場合であっても、誤り検出符号によって、マスタは、2以上のスレーブが返信したことを検出できる。これにより、スレーブアドレスが正しく実行されないことを防止することができる。   According to this plumbing apparatus, it is possible to suppress that two or more slaves reply at the same time by the plurality of slaves replying randomly to the search signal. Also, even if two or more slaves reply to the search signal at the same time, the master can detect that two or more slaves reply by the error detection code. This can prevent the slave address from being executed correctly.

第3の発明は、第1の発明において、前記複数のスレーブのそれぞれは、物体の検出処理を行い、前記探査信号に対して返信するか否かを前記検出処理の結果に基づいて決定し、物体が検出されているときは、前記探査信号に対して、誤り検出符号を付与した信号を返信することを特徴とする水回り機器である。 In a third invention according to the first invention, each of the plurality of slaves performs an object detection process, and determines whether or not to reply to the search signal based on the result of the detection process. In the case of an object being detected, the watercraft apparatus is characterized in that a signal provided with an error detection code is returned to the search signal.

この水回り機器によれば、複数のスレーブが検出処理の結果に基づいて探査信号に対して返信することで、同時に2以上のスレーブが返信することを抑制できる。例えば、使用者は、探査信号に返信させたいスレーブのみに物体を検出させることなどによって、探査信号に対して返信するスレーブを選択することができる。また、同時に2以上のスレーブが探査信号に対して返信した場合であっても、誤り検出符号によって、マスタは、2以上のスレーブが返信したことを検出できる。これにより、スレーブアドレスが正しく実行されないことを防止することができる。   According to this plumbing apparatus, it is possible to suppress that two or more slaves reply at the same time by a plurality of slaves replying to the search signal based on the result of the detection processing. For example, the user can select a slave that replies to the search signal, by having only the slaves that want to send the search signal back to detect an object. Also, even if two or more slaves reply to the search signal at the same time, the master can detect that two or more slaves reply by the error detection code. This can prevent the slave address from being executed correctly.

の発明は、第1〜第のいずれか1つの発明において、前記マスタは、前記スレーブに付与された前記スレーブアドレスをリセットするリセットモードを有することを特徴とする水回り機器である。 A fourth aspect of the invention is the watercraft apparatus according to any one of the first to third aspects, wherein the master has a reset mode for resetting the slave address assigned to the slave.

この水回り機器によれば、スレーブに対して誤ったスレーブアドレスが付与された場合であっても、リセットモードによってスレーブアドレスをリセットすることで、スレーブに再度、スレーブアドレスを付与することができる。   According to this watercraft device, even if an incorrect slave address is assigned to the slave, the slave address can be assigned to the slave again by resetting the slave address in the reset mode.

本発明の態様によれば、複数のスレーブを有する水回り機器の管理、製造、または施工におけるコストの増加を抑制することができる水回り機器を提供できる。   According to an aspect of the present invention, it is possible to provide a plumbing apparatus capable of suppressing an increase in cost in management, manufacture, or construction of a plumbing apparatus having a plurality of slaves.

実施形態に係る水回り機器を例示する構成図である。It is a block diagram which illustrates the plumbing device concerning an embodiment. 実施形態に係る水回り機器を例示するブロック図である。It is a block diagram which illustrates a plumbing device concerning an embodiment. 実施形態に係る水回り機器のマスタの動作を例示するフローチャートである。It is a flow chart which illustrates operation of a master of a plumbing device concerning an embodiment. 実施形態に係る水回り機器のスレーブの動作を例示するフローチャートである。It is a flow chart which illustrates operation of a slave of a plumbing device concerning an embodiment. 図5(a)〜図5(c)は、実施形態に係る水回り機器の動作を例示するタイミングチャートである。Drawing 5 (a)-Drawing 5 (c) are timing charts which illustrate operation of a plumbing device concerning an embodiment. 実施形態に係る水回り機器の自動スレーブアドレス決定モードを例示するフローチャートである。It is a flow chart which illustrates automatic slave address determination mode of a bowling machine concerning an embodiment. 実施形態に係る水回り機器のスレーブアドレス付与モードを例示するフローチャートである。It is a flowchart which illustrates the slave address assignment mode of the watercraft apparatus which concerns on embodiment. 図8(a)及び図8(b)は、フラッシュメモリを例示する概念図である。FIGS. 8A and 8B are conceptual diagrams illustrating a flash memory. 図9(a)〜図9(d)は、実施形態に係る水回り機器の動作を例示するタイミングチャートである。Fig.9 (a)-FIG.9 (d) are the timing charts which illustrate operation | movement of the water-surroundings apparatus which concerns on embodiment. 図10(a)〜図10(c)は、実施形態に係る水回り機器の動作を例示するタイミングチャートである。Drawing 10 (a)-Drawing 10 (c) are timing charts which illustrate operation of a plumbing device concerning an embodiment. 実施形態に係る水回り機器のマスタの通常モードを例示するフローチャートである。It is a flow chart which illustrates a normal mode of a master of a plumbing device concerning an embodiment. 実施形態に係る水回り機器のスレーブアドレス消去モードを例示するフローチャートである。It is a flowchart which illustrates the slave address erase | elimination mode of the watercraft apparatus which concerns on embodiment. 実施形態に係る水回り機器のスレーブの通常モードを例示するフローチャートである。It is a flow chart which illustrates a slave's normal mode of a plumbing device concerning an embodiment. 実施形態に係る水回り機器のスレーブアドレス付与モードを例示するフローチャートである。It is a flowchart which illustrates the slave address assignment mode of the watercraft apparatus which concerns on embodiment. 実施形態に係る水回り機器を例示するブロック図である。It is a block diagram which illustrates a plumbing device concerning an embodiment. 実施形態に係る水回り機器を例示するブロック図である。It is a block diagram which illustrates a plumbing device concerning an embodiment.

以下、図面を参照しつつ、本発明の実施の形態について例示をする。尚、各図面中、同様の構成要素には同一の符号を付して詳細な説明は適宜省略する。
本実施の形態に係る水回り機器は、例えば、浴室、洗面所、キッチン、トイレなどに設けられるものとすることができる。水回り機器は、例えば、水栓装置、浴槽、シャワー装置、大便器、衛生洗浄装置、小便器、ハンドドライヤーなどを例示することができる。また、水回り機器は、例えば、吐水、洗浄、温水や温風の供給、温水や温風の温度制御や流量制御、石鹸水の吐出、浄水や清水の吐出、イオン水や殺菌水などの機能水の生成と吐出、便蓋や便座の開閉などの機能を有するものとすることができる。また、水回り機器は、例えば、家庭、業務、公共施設などにおいて用いられるものとすることができる。ただし、本実施の形態に係る水回り機器は、例示をした機器、機能、用途などに限定されるわけではない。
以下においては、一例として、本実施の形態に係る水回り機器が水栓装置であり、吐水部、石鹸水吐出部、および乾燥部が水栓装置に設けられる場合を例に挙げて説明する。
Hereinafter, embodiments of the present invention will be illustrated with reference to the drawings. In the drawings, the same components are denoted by the same reference numerals and the detailed description will be appropriately omitted.
The apparatus for carrying around water according to the present embodiment can be provided, for example, in a bathroom, a washroom, a kitchen, a toilet, and the like. As the plumbing apparatus, for example, a faucet device, a bathtub, a shower device, a toilet bowl, a sanitary washing device, a urinal, a hand dryer and the like can be exemplified. In addition, the equipment for water circulation includes, for example, functions such as water discharge, washing, supply of warm water or warm air, temperature control or flow control of warm water or warm air, discharge of soap water, discharge of clean water or fresh water, ionic water or sterilizing water It can have functions such as generation and discharge of water, opening and closing of a toilet lid and a toilet seat. In addition, the water supply apparatus can be used in, for example, home, business, public facilities, and the like. However, the watercraft apparatus according to the present embodiment is not limited to the illustrated apparatus, functions, applications, and the like.
In the following, as an example, a case where the water circulation apparatus according to the present embodiment is a faucet device, and a water discharger, a soap water discharger, and a dryer are provided in the faucet device will be described as an example.

図1は、実施形態に係る水回り機器を例示する構成図である。
実施形態に係る水回り機器1(水栓装置)は、例えば、洗面台100に設けることができる。
図1に示すように、水回り機器1には、吐水部2、石鹸水吐出部3、乾燥部4、および制御装置5が設けられている。
FIG. 1 is a configuration diagram illustrating a watercraft apparatus according to the embodiment.
The plumbing apparatus 1 (faucet apparatus) which concerns on embodiment can be provided in the washbasin 100, for example.
As shown in FIG. 1, the water circulation device 1 is provided with a water discharger 2, a soapy water discharger 3, a dryer 4, and a controller 5.

吐水部2は、水栓20、給水路21、電磁バルブ22、定流量弁23、止水弁24、および入力装置25を有する。
水栓20は、例えば、洗面台100の上面に設けることができる。給水路21、電磁バルブ22、定流量弁23、および止水弁24は、例えば、洗面台100の内部に設けることができる。水栓20の内部には、通水路20aが設けられている。通水路20aの一端は水栓20の先端に開口し、吐水口20bとなっている。通水路20aの他端は、給水路21を介して電磁バルブ22と接続されている。電磁バルブ22は、吐水口20bからの吐水の開始と吐水の停止を行う。また、電磁バルブ22の水源側の給水路には、定流量弁23と止水弁24を設けることができる。定流量弁23は、一定の流量の水を給水路21に供給する。定流量弁23を設ければ、水源からの水の圧力が変動した場合であっても一定の流量の水を給水路21に供給することができる。止水弁24は、定流量弁23の水源側に設けられ、給水路21への水の流入と、水の流入の停止とを切り替える。止水弁24は、手動操作弁とすることができる。
入力装置25は、例えば、水栓20の内部に設けることができる。入力装置25は、例えば、吐水口20bの近傍に設けることができる。入力装置25は、例えば、使用者の手101などの物体を検出する。
The water discharger 2 includes a water faucet 20, a water supply passage 21, a solenoid valve 22, a constant flow valve 23, a water shutoff valve 24, and an input device 25.
The faucet 20 can be provided, for example, on the upper surface of the wash basin 100. The water supply passage 21, the solenoid valve 22, the constant flow valve 23, and the stop valve 24 can be provided, for example, inside the wash basin 100. A water passage 20 a is provided in the faucet 20. One end of the water flow passage 20a opens at the tip of the faucet 20, and serves as a water discharge port 20b. The other end of the water flow passage 20 a is connected to the solenoid valve 22 via the water supply passage 21. The electromagnetic valve 22 performs the start of water discharge from the water discharge port 20b and the stop of water discharge. Further, a constant flow valve 23 and a water shutoff valve 24 can be provided in the water supply path on the water source side of the solenoid valve 22. The constant flow valve 23 supplies water at a constant flow rate to the water supply passage 21. If the constant flow rate valve 23 is provided, even when the pressure of water from the water source fluctuates, water having a constant flow rate can be supplied to the water supply passage 21. The water stop valve 24 is provided on the water source side of the constant flow rate valve 23, and switches between the inflow of water into the water supply passage 21 and the stop of the inflow of water. The shutoff valve 24 can be a manually operated valve.
The input device 25 can be provided, for example, inside the water faucet 20. The input device 25 can be provided, for example, in the vicinity of the water outlet 20b. The input device 25 detects an object such as the user's hand 101, for example.

石鹸水吐出部3は、吐出栓30、供給路31、ポンプ32、石鹸水タンク33、および入力装置34を有する。
吐出栓30は、例えば、洗面台100のボウル部100aの壁面に設けることができる。吐出栓30は、例えば、ボウル部100aの開口近傍に設けることができる。供給路31、ポンプ32、および石鹸水タンク33は、例えば、洗面台100の内部に設けることができる。吐出栓30の内部には、ノズル30aが設けられている。ノズル30aの一端は吐出栓30の端面に開口している。ノズル30aの他端は、供給路31を介してポンプ32と接続されている。ポンプ32は、石鹸水タンク33の内部に収納されている石鹸水のノズル30aへの供給と、供給の停止を行う。石鹸水タンク33は、内部に設けられた空間に石鹸水を収納する。
入力装置34は、例えば、吐出栓30の内部に設けることができる。入力装置34は、例えば、ノズル30aの開口の近傍に設けることができる。入力装置34は、例えば、使用者の手101などの物体を検出する。
The soap water discharge unit 3 has a discharge plug 30, a supply path 31, a pump 32, a soap water tank 33, and an input device 34.
The discharge plug 30 can be provided, for example, on the wall surface of the bowl portion 100 a of the wash basin 100. The discharge plug 30 can be provided, for example, in the vicinity of the opening of the bowl portion 100a. The supply path 31, the pump 32, and the soap water tank 33 can be provided, for example, inside the wash basin 100. Inside the discharge plug 30, a nozzle 30a is provided. One end of the nozzle 30 a is open at the end face of the discharge plug 30. The other end of the nozzle 30 a is connected to the pump 32 via the supply passage 31. The pump 32 supplies soap water contained in the soap water tank 33 to the nozzle 30 a and stops the supply. The soap water tank 33 stores soap water in a space provided inside.
The input device 34 can be provided, for example, inside the discharge plug 30. The input device 34 can be provided, for example, in the vicinity of the opening of the nozzle 30a. The input device 34 detects an object such as the user's hand 101, for example.

乾燥部4は、本体部40、通風管41、ファン・ヒータユニット42、および入力装置43を有する。
本体部40は、例えば、洗面台100のボウル部100aの壁面に埋め込むことができる。本体部40は、例えば、ボウル部100aの開口近傍に設けることができる。通風管41およびファン・ヒータユニット42は、例えば、洗面台100の内部に設けることができる。本体部40の内部には、エアダクト40aが設けられている。エアダクト40aの一端は本体部40の端面に開口している。エアダクト40aの他端は、通風管41を介してファン・ヒータユニット42と接続されている。ファン・ヒータユニット42は、所望の温度の温風のエアダクト40aへの供給と、供給の停止を行う。ファン・ヒータユニット42は、ファン42aおよびヒータ42bを有する。ファン42aは、外気を吸引し、エアダクト40aに供給する。ヒータ42bは、ファン42aから供給された空気を加熱する。
入力装置43は、例えば、本体部40の内部に設けることができる。入力装置43は、例えば、エアダクト40aの開口の近傍に設けることができる。入力装置43は、例えば、使用者の手101などの物体を検出する。
The drying unit 4 has a main body 40, an air duct 41, a fan and heater unit 42, and an input device 43.
The main body 40 can be embedded, for example, on the wall surface of the bowl 100 a of the wash basin 100. The main body portion 40 can be provided, for example, in the vicinity of the opening of the bowl portion 100 a. The air duct 41 and the fan and heater unit 42 can be provided, for example, inside the wash basin 100. Inside the main body 40, an air duct 40a is provided. One end of the air duct 40 a is open at the end face of the main body 40. The other end of the air duct 40 a is connected to the fan and heater unit 42 via the air duct 41. The fan and heater unit 42 supplies hot air of a desired temperature to the air duct 40 a and stops the supply. The fan and heater unit 42 has a fan 42 a and a heater 42 b. The fan 42a sucks the outside air and supplies it to the air duct 40a. The heater 42 b heats the air supplied from the fan 42 a.
The input device 43 can be provided inside the main body 40, for example. The input device 43 can be provided, for example, in the vicinity of the opening of the air duct 40a. The input device 43 detects an object such as the user's hand 101, for example.

入力装置25、34、43は、例えば、光電センサ、静電センサ、超音波センサ、近接センサなどのセンサを備えたものとすることができる。ただし、センサは、例示をしたものに限定されるわけではなく、使用者の手101などの物体を検出できるものであればよい。また、入力装置25、34、43は、マイクロコンピュータなどの制御部を備え、後述するライト信号に基づいて検出処理を行い、検出処理の結果を保存し、後述するリード信号に基づいて保存されている検出処理の結果を制御装置5に送信する。   The input devices 25, 34, 43 may include, for example, sensors such as photoelectric sensors, electrostatic sensors, ultrasonic sensors, and proximity sensors. However, the sensor is not limited to the illustrated one as long as it can detect an object such as the hand 101 of the user. The input devices 25, 34 and 43 each include a control unit such as a microcomputer, perform detection processing based on a write signal described later, save the result of the detection processing, and save based on a read signal described later. The result of the detection process is sent to the control device 5.

制御装置5は、マイクロコンピュータなどを備え、入力装置25からの検出処理の結果に基づいて電磁バルブ22の動作を制御する。制御装置5は、入力装置34からの検出処理の結果に基づいてポンプ32の動作を制御する。制御装置5は、入力装置43からの検出処理の結果に基づいてファン42aおよびヒータ42bの動作を制御する。本実施の形態においては、電磁バルブ22、ポンプ32、ファン42a、およびヒータ42bが、入力装置25、34、43からの検出処理の結果に基づいて制御装置5により制御される機器となる。   The control device 5 includes a microcomputer and the like, and controls the operation of the solenoid valve 22 based on the result of the detection process from the input device 25. The control device 5 controls the operation of the pump 32 based on the result of the detection process from the input device 34. The control device 5 controls the operation of the fan 42 a and the heater 42 b based on the result of the detection process from the input device 43. In the present embodiment, the solenoid valve 22, the pump 32, the fan 42a, and the heater 42b are devices controlled by the control device 5 based on the result of the detection process from the input devices 25, 34, 43.

次に、制御装置5による制御についてさらに説明する。
図2は、実施形態に係る水回り機器を例示するブロック図である。
なお、図2においては、煩雑となるのを避けるために、電源供給ラインとグランドラインを省いて描いている。
図2に示すように、水回り機器1の制御方式はマスタ/スレーブ方式とすることができる。
制御装置5は、システムの制御を司るマスタ15となる。
Next, control by the control device 5 will be further described.
FIG. 2 is a block diagram illustrating a watercraft apparatus according to the embodiment.
In FIG. 2, the power supply line and the ground line are omitted in order to avoid complication.
As shown in FIG. 2, the control system of the water circulation apparatus 1 can be a master / slave system.
The control device 5 is a master 15 which controls the system.

入力装置25、34、43は、マスタ15によって制御されるスレーブ12、13、14となる。この場合、スレーブ12、13、14は、使用者の手101などの物体の検出処理を行う。マスタ/スレーブ方式とすれば、1つのマスタと、少なくとも1つのスレーブとの間をクロック供給ラインSCLおよびデータ送信ラインSDAの2本のラインでパーティーライン状に接続することができる。例えば、図2に例示をしたものの場合には、1つのマスタ15と、3つのスレーブ12、13、14との間を1本のクロック供給ラインSCLと1本のデータ送信ラインSDAとで接続することができる。マスタ/スレーブ方式とすれば、制御装置5と入力装置25、34、43との間を個別に配線する場合に比べて配線数を大幅に削減することができる。そのため、配線工数の低減が図れるとともに、外乱ノイズに関する耐性を向上させることができる。また、通信のポート数が少ない規模の小さなマスタ15を用いることが可能となる。   The input devices 25, 34, 43 become slaves 12, 13, 14 controlled by the master 15. In this case, the slaves 12, 13, 14 perform detection processing of an object such as the hand 101 of the user. In the master / slave system, one master and at least one slave can be connected in the form of a party line by two lines of a clock supply line SCL and a data transmission line SDA. For example, in the case illustrated in FIG. 2, one master 15 and three slaves 12, 13 and 14 are connected by one clock supply line SCL and one data transmission line SDA. be able to. If the master / slave system is used, the number of wires can be significantly reduced as compared to the case where the control device 5 and the input devices 25, 34, 43 are wired individually. Therefore, the number of wiring steps can be reduced, and the resistance to disturbance noise can be improved. In addition, it is possible to use a small master 15 with a small number of communication ports.

マスタ/スレーブ方式の場合には、マスタと複数のスレーブとの間で相互に通信を行いながら、マスタが所望の機器を制御する。例えば、図2に例示をしたものの場合には、マスタ15とスレーブ12、13、14との間で相互に通信を行いながら、マスタ15が電磁バルブ22、ポンプ32、ファン42a、およびヒータ42bの動作を制御する。   In the case of the master / slave system, the master controls a desired device while communicating with the master and the plurality of slaves. For example, in the case illustrated in FIG. 2, while the master 15 and the slaves 12, 13, 14 communicate with each other, the master 15 includes the solenoid valve 22, the pump 32, the fan 42a, and the heater 42b. Control the operation.

マスタ/スレーブ方式における通信は、クロック同期式の通信とすることもできるし、クロック非同期式の通信とすることもできる。ただし、クロック非同期式の通信とすると、スレーブの発振子のばらつきが大きい場合などに誤ったデータを取得するおそれがある。そのため、マスタ15とスレーブ12、13、14との間の通信は、クロック同期式の通信とすることが好ましい。   Communication in the master / slave system may be clock synchronous communication or clock asynchronous communication. However, in the case of clock asynchronous communication, erroneous data may be acquired when the variation of the slave oscillator is large. Therefore, it is preferable that communication between the master 15 and the slaves 12, 13 and 14 be clock synchronous communication.

クロック同期式の通信の一例に、I2C方式がある。そのため、以下においては一例として、マスタ15とスレーブ12、13、14との間の通信が、I2C方式により行われる場合を例示する。   An example of clock synchronous communication is I2C. Therefore, in the following, as an example, the case where communication between the master 15 and the slaves 12, 13, 14 is performed by the I2C method is exemplified.

複数のスレーブ12、13、14のそれぞれには、個別のスレーブアドレスが付与されている。すなわち、スレーブ12には、スレーブ12を特定するためのスレーブアドレスが付与されており、スレーブ13には、スレーブ13を特定するためのスレーブアドレスが付与されており、スレーブ14には、スレーブ14を特定するためのスレーブアドレスが付与されている。各スレーブは、メモリ(フラッシュメモリなど)を有し、自身に付与されたスレーブアドレスの情報を記憶している。また、マスタ15は、メモリ(フラッシュメモリなど)を有し、各スレーブに付与されたスレーブアドレスを記憶している。   An individual slave address is assigned to each of the plurality of slaves 12, 13, 14. That is, a slave address for identifying the slave 12 is assigned to the slave 12, a slave address for identifying the slave 13 is assigned to the slave 13, and the slave 14 is assigned to the slave 14. A slave address for identification is given. Each slave has a memory (such as a flash memory), and stores information on the slave address assigned to it. The master 15 also has a memory (flash memory or the like) and stores slave addresses assigned to the slaves.

ここで、スレーブ12、13、14は、1本のクロック供給ラインSCLと1本のデータ送信ラインSDAとに接続される。また、マスタ15は、スレーブ12、13、14のそれぞれに関するライト信号W1〜W3とリード信号R1〜R3とを、順次送信する。   Here, the slaves 12, 13, 14 are connected to one clock supply line SCL and one data transmission line SDA. Further, the master 15 sequentially transmits the write signals W1 to W3 and the read signals R1 to R3 related to the slaves 12, 13 and 14, respectively.

ライト信号W1には、スレーブ12を特定するためのスレーブアドレスと、スレーブ12に検出処理を実行させる指令が含まれている。ライト信号W2には、スレーブ13を特定するためのスレーブアドレスと、スレーブ13に検出処理を実行させる指令が含まれている。ライト信号W3には、スレーブ14を特定するためのスレーブアドレスと、スレーブ14に検出処理を実行させる指令が含まれている。例えば、各スレーブが光電センサを有する場合、検出処理は、投光の実行と、検出結果(例えば、手101などの物体の有無)の一時的な保存などである。   The write signal W1 includes a slave address for identifying the slave 12 and an instruction for causing the slave 12 to execute detection processing. The write signal W2 includes a slave address for identifying the slave 13 and an instruction for causing the slave 13 to execute detection processing. The write signal W3 includes a slave address for identifying the slave 14 and an instruction for causing the slave 14 to execute detection processing. For example, when each slave has a photoelectric sensor, the detection process is the execution of light projection and the temporary storage of the detection result (for example, the presence or absence of an object such as the hand 101).

リード信号R1には、スレーブ12を特定するためのスレーブアドレスと、スレーブ12に保存されている検出処理の結果の送信を要求する指令が含まれている。リード信号R2には、スレーブ13を特定するためのスレーブアドレスと、スレーブ13に保存されている検出処理の結果の送信を要求する指令が含まれている。リード信号R3には、スレーブ14を特定するためのスレーブアドレスと、スレーブ14に保存されている検出処理の結果の送信を要求する指令が含まれている。   The read signal R1 includes a slave address for identifying the slave 12 and a command for requesting transmission of the result of the detection processing stored in the slave 12. The read signal R2 includes a slave address for specifying the slave 13 and a command for requesting transmission of the result of the detection processing stored in the slave 13. The read signal R3 includes a slave address for identifying the slave 14 and a command for requesting transmission of the result of the detection processing stored in the slave 14.

スレーブ12は、ライト信号W1を受信すると検出処理を開始し、検出処理の終了後にリード信号R1を受信した場合には、保存されている検出結果をマスタ15に送信する。スレーブ13は、ライト信号W2を受信すると検出処理を開始し、検出処理の終了後にリード信号R2を受信した場合には、保存されている検出結果をマスタ15に送信する。スレーブ14は、ライト信号W3を受信すると検出処理を開始し、検出処理の終了後にリード信号R3を受信した場合には、保存されている検出結果をマスタ15に送信する。   The slave 12 starts the detection process when the write signal W1 is received, and transmits the stored detection result to the master 15 when the read signal R1 is received after the end of the detection process. The slave 13 starts the detection process when the write signal W2 is received, and transmits the stored detection result to the master 15 when the read signal R2 is received after the end of the detection process. The slave 14 starts the detection process when the write signal W3 is received, and transmits the stored detection result to the master 15 when the read signal R3 is received after the end of the detection process.

マスタ15は、スレーブ12によって物体が検出された場合(すなわち検出結果が「物体有り」だった場合)、電磁バルブ22を開く。これにより、吐水口20bからの吐水が開始する。マスタ15は、スレーブ12によって物体が検出されなかった場合(すなわち検出結果が「物体無し」だった場合)、電磁バルブ22を閉じる。これにより、吐水口20bからの吐水が停止する。   The master 15 opens the electromagnetic valve 22 when an object is detected by the slave 12 (that is, when the detection result is “object present”). Thus, water discharge from the water discharge port 20b is started. The master 15 closes the solenoid valve 22 when an object is not detected by the slave 12 (ie, when the detection result is “no object”). Thereby, the water discharge from the water discharge port 20b stops.

マスタ15は、スレーブ13によって物体が検出された場合、ポンプ32を作動させる。これにより、石鹸水がノズル30aへ供給される。マスタ15は、スレーブ13によって物体が検出されなかった場合、ポンプ32を停止させる。これにより、石鹸水のノズル30aへの供給が停止する。   The master 15 operates the pump 32 when an object is detected by the slave 13. Thereby, soap water is supplied to the nozzle 30a. The master 15 stops the pump 32 when an object is not detected by the slave 13. Thereby, the supply of soap water to the nozzle 30a is stopped.

マスタ15は、スレーブ14によって物体が検出された場合、ファン42a、ヒータ42bを作動させる。これにより、エアダクト40aへ温風が供給される。マスタ15は、スレーブ14によって物体が検出されなった場合、ファン42a、ヒータ42bを停止させる。これにより、温風のエアダクト40aへの供給が停止する。   The master 15 operates the fan 42 a and the heater 42 b when an object is detected by the slave 14. Thus, the warm air is supplied to the air duct 40a. The master 15 stops the fan 42 a and the heater 42 b when the slave 14 detects no object. Thereby, the supply of the warm air to the air duct 40a is stopped.

図3は、実施形態に係る水回り機器のマスタの動作を例示するフローチャートである。 図3に示すように、マスタ15は、スレーブアドレス消去モード(SA消去モード)と、自動スレーブアドレス決定モード(自動SA決定モード)と、通常モードと、を有する。なお、本願明細書及び図面において、スレーブアドレスを「SA」と表記する場合がある。   FIG. 3 is a flowchart illustrating the operation of the master of the watercraft device according to the embodiment. As shown in FIG. 3, the master 15 has a slave address erase mode (SA erase mode), an automatic slave address determination mode (automatic SA determination mode), and a normal mode. In the specification and drawings of the present application, the slave address may be described as "SA".

例えば、図3のSTARTは、マスタ15への電源投入である。マスタ15は、電源が投入されると、SA消去モードを実行する(ステップS1)。SA消去モードは、複数のスレーブのそれぞれに付与されたスレーブアドレスをリセットするリセットモードである。このリセットによって、マスタ15及び各スレーブに記憶されたスレーブアドレスの情報が消去される。   For example, START in FIG. 3 is power on to the master 15. When the power is turned on, the master 15 executes the SA erase mode (step S1). The SA erase mode is a reset mode for resetting a slave address assigned to each of a plurality of slaves. By this reset, the information of the slave address stored in the master 15 and each slave is erased.

その後、マスタ15は、自動SA決定モードを実行する(ステップS2)。自動SA決定モードは、自動で各スレーブのスレーブアドレスを決定する。これにより、各スレーブにスレーブアドレスが付与される。   Thereafter, the master 15 executes the automatic SA determination mode (step S2). The automatic SA determination mode automatically determines the slave address of each slave. Thus, the slave address is assigned to each slave.

その後、マスタ15は、通常モードを繰り返し実行する(ステップS3)。通常モードでは、マスタ15は、例えば、上述したリード信号やライト信号を送信することで複数のスレーブと相互通信を行いながら、所望の機器を制御する。   Thereafter, the master 15 repeatedly executes the normal mode (step S3). In the normal mode, for example, the master 15 controls a desired device while communicating with a plurality of slaves by transmitting the read signal and the write signal described above.

図4は、実施形態に係る水回り機器のスレーブの動作を例示するフローチャートである。
図4は、マスタ15と相互に通信を行う複数のスレーブ12、13、14の1つの動作を表している。図4に示すように、スレーブは、スレーブアドレス付与モード(SA付与モード)と、通常モードと、を有する。
FIG. 4 is a flowchart illustrating the operation of the slave of the watercraft device according to the embodiment.
FIG. 4 shows the operation of one of the plurality of slaves 12, 13, 14 communicating with the master 15. As shown in FIG. 4, the slave has a slave address assignment mode (SA assignment mode) and a normal mode.

例えば、図4のSTARTは、スレーブへの電源投入である。スレーブは、電源が投入されると、SA付与モードを実行する(ステップS4)。SA付与モードは、マスタ15が自動SA決定モードを実行するときの、スレーブの動作モードである。   For example, START in FIG. 4 is power on to the slave. When the power is turned on, the slave executes the SA provision mode (step S4). The SA application mode is an operation mode of the slave when the master 15 executes the automatic SA determination mode.

その後、スレーブは、通常モードを繰り返し実行する(ステップS5)。この通常モードは、マスタ15が通常モードを実行するときの、スレーブの動作モードである。   Thereafter, the slave repeatedly executes the normal mode (step S5). The normal mode is an operation mode of the slave when the master 15 executes the normal mode.

図5(a)〜図5(c)は、実施形態に係る水回り機器の動作を例示するタイミングチャートである。
図5(a)は、マスタ15の自動SA決定モードにおける動作を例示している。図5(b)及び図5(c)は、マスタ15の自動SA決定モードに対応した、スレーブの動作を例示している。具体的には、図5(b)は、スレーブ12のSA付与モードにおける動作を例示し、図5(c)は、スレーブ13のSA付与モードにおける動作を例示する。なお、簡単のため、スレーブ14は便宜上省略している。また、自動SA決定モード及びSA付与モードが開始する時刻T0においては、スレーブ12、13にはスレーブアドレスが付与されていない(スレーブアドレスは初期値である)ものとする。
Drawing 5 (a)-Drawing 5 (c) are timing charts which illustrate operation of a plumbing device concerning an embodiment.
FIG. 5A exemplifies the operation of the master 15 in the automatic SA determination mode. FIGS. 5B and 5C illustrate the operation of the slave corresponding to the automatic SA determination mode of the master 15. Specifically, FIG. 5 (b) illustrates the operation of the slave 12 in the SA application mode, and FIG. 5 (c) illustrates the operation of the slave 13 in the SA application mode. Note that the slave 14 is omitted for the sake of simplicity. Further, at time T0 when the automatic SA determination mode and the SA application mode start, the slave address is not assigned to the slaves 12 and 13 (the slave address has an initial value).

図5(a)に示すように、自動SA決定モードにおいて、マスタ15は、複数のスレーブに探査信号を複数回送信する。図5(a)の例では、マスタ15は、時刻T1、T2、T5において、探査信号を送信している。探査信号は、スレーブアドレスが決定されていない(付与されていない)スレーブを探査する信号である。具体的には、探査信号は、スレーブアドレスが付与されていないスレーブに、返信することを指示する信号である。   As shown in FIG. 5A, in the automatic SA determination mode, the master 15 transmits a search signal to a plurality of slaves a plurality of times. In the example of FIG. 5A, the master 15 transmits the search signal at times T1, T2, and T5. The search signal is a signal for searching for a slave whose slave address has not been determined (is not assigned). Specifically, the search signal is a signal for instructing a slave to which a slave address is not assigned to return.

この例では、各スレーブは、探査信号に対して返信するか否かをランダムに決定する。例えば、図5(b)及び図5(c)に示すように、時刻T1に送信された探査信号に対して、スレーブ12、13は、返信しない。時刻T3において、スレーブ12は、時刻T2に送信された探査信号に対して、マスタ15に返信する。一方、スレーブ13は、時刻T2に送信された探査信号に対して返信しない。   In this example, each slave randomly determines whether to reply to the probe signal. For example, as shown in FIG. 5B and FIG. 5C, the slaves 12 and 13 do not reply to the search signal transmitted at time T1. At time T3, the slave 12 sends a reply to the master 15 in response to the search signal transmitted at time T2. On the other hand, the slave 13 does not reply to the search signal transmitted at time T2.

マスタ15は、探査信号に対する返信をスレーブから受信すると、返信したスレーブのスレーブアドレスを決定し、返信したスレーブに決定信号を送信する。例えば、図5(a)に示すように時刻T4において、マスタ15は、スレーブ12に決定信号を送信し、スレーブ12は、その決定信号を受信する。これにより、探査信号に対して返信したスレーブ12にスレーブアドレスが付与される。   When the master 15 receives a reply to the search signal from the slave, it determines the slave address of the slave that has sent the reply, and transmits a decision signal to the slave that has sent the reply. For example, as shown in FIG. 5A, at time T4, the master 15 transmits a determination signal to the slave 12, and the slave 12 receives the determination signal. As a result, the slave address is assigned to the slave 12 that has replied in response to the search signal.

その後、マスタ15は、時刻T5において再び探査信号を送信する。図5(b)に示すように、既にスレーブアドレスが決定しているスレーブ12は、探査信号が送信されても、探査信号に返信しない。図5(c)に示すように、時刻T6において、スレーブ13は、時刻T5に送信された探査信号に対して、マスタ15に返信する。その後、時刻T7において、マスタ15は、スレーブ13に決定信号を送信し、スレーブ13は、その決定信号を受信する。これにより、探査信号に対して返信したスレーブ13にスレーブアドレスが付与される。   Thereafter, the master 15 transmits the search signal again at time T5. As shown in FIG. 5B, the slave 12 whose slave address has already been determined does not reply to the search signal even if the search signal is transmitted. As shown in FIG. 5C, at time T6, the slave 13 sends back to the master 15 the search signal transmitted at time T5. Thereafter, at time T7, the master 15 transmits a determination signal to the slave 13, and the slave 13 receives the determination signal. As a result, the slave address is assigned to the slave 13 that has replied in response to the search signal.

このように、マスタ15は、探査信号を複数回送信し、複数のスレーブのすべてにスレーブアドレスが付与されると、自動SA決定モードを終了する。言い換えれば、マスタ15は、複数のスレーブのすべてが探査信号に対して返信したと判断すると、自動SA決定モードを終了する。   Thus, the master 15 transmits the search signal a plurality of times, and ends the automatic SA determination mode when the slave addresses are assigned to all of the plurality of slaves. In other words, when the master 15 determines that all of the plurality of slaves have returned in response to the search signal, it ends the automatic SA determination mode.

例えば、マスタ15は、所定数の決定信号を送信し、所定数のスレーブアドレスを付与した場合に、複数のスレーブのすべてが探査信号に対して返信したと判断する。なお、この場合には、例えば、マスタ15が付与するスレーブアドレスの数、すなわち、水回り機器1に接続されるスレーブの数は、あらかじめ設定されている。マスタ15は、後述するフラッシュメモリのデータを参照することで、複数のスレーブのすべてにスレーブアドレスが付与されたか否かを判断することができる。
または、後述するように、マスタ15は、探査信号の送信回数に基づいて、複数のスレーブのすべてが探査信号に対して返信したと判断してもよい。すなわち、マスタ15は、探査信号の送信回数が所定回数になると、複数のスレーブのすべてが探査信号に対して返信したとみなしてもよい。この所定回数は、水回り機器1に接続されるスレーブの数や、各スレーブが探査信号に対して返信する頻度(確率)に基づいて、適宜定められる。
For example, when the master 15 transmits a predetermined number of determination signals and assigns a predetermined number of slave addresses, it determines that all of the plurality of slaves have returned in response to the search signal. In this case, for example, the number of slave addresses assigned by the master 15, that is, the number of slaves connected to the water circulation apparatus 1 is set in advance. The master 15 can determine whether a slave address has been assigned to all of the plurality of slaves by referring to data in a flash memory described later.
Alternatively, as will be described later, the master 15 may determine that all of the plurality of slaves have replied to the search signal based on the number of transmissions of the search signal. That is, the master 15 may consider that all of the plurality of slaves have sent back the search signal when the number of transmissions of the search signal reaches a predetermined number. The predetermined number of times is appropriately determined based on the number of slaves connected to the laundering device 1 and the frequency (probability) that each slave responds to the search signal.

その後、マスタ15及び各スレーブは、通常モードを実行する。例えば、マスタ15は、時刻T8、T9において、通常信号(上述したリード信号又はライト信号)を送信し、各スレーブと相互通信を行う。   Thereafter, the master 15 and each slave execute the normal mode. For example, the master 15 transmits a normal signal (the above-described read signal or write signal) at times T8 and T9 to perform mutual communication with each slave.

水回り機器において、複数のスレーブ(センサ)が用いられる場合、各スレーブに、あらかじめ個別のスレーブアドレスを付与する比較例の方法も考えられる。しかし、この場合には、スレーブアドレスごとにスレーブを管理することとなるため、管理コストが増大する恐れがある。例えば、スレーブアドレスのみが異なる、同じ仕様のセンサを区別するために品番を設ける必要が生じる。
一方、マスタとスレーブとの通信ラインを適宜に切り替える通信ライン切替回路を設ける別の比較例の方法も考えられる。この場合には、通信ライン切替回路が、マスタと通信するスレーブを適宜に切り替えるため、複数のスレーブに、共通のスレーブアドレスを付与することができる。したがって、スレーブアドレスに対応したスレーブの品番管理を不要とすることができる。しかしながら、通信ライン切替回路を設けるための製造コストや施工コストが増加する。また、水回り機器が大型化してしまう恐れもある。
When a plurality of slaves (sensors) are used in a water bath apparatus, a method of a comparative example is also conceivable in which each slave is given an individual slave address in advance. However, in this case, since the slaves are managed for each slave address, the management cost may increase. For example, it is necessary to provide a product number to distinguish between sensors of the same specification, which differ only in slave address.
On the other hand, a method of another comparative example in which a communication line switching circuit for switching the communication line between the master and the slave as appropriate is also conceivable. In this case, since the communication line switching circuit appropriately switches the slaves communicating with the master, a common slave address can be assigned to a plurality of slaves. Therefore, the part number management of the slave corresponding to the slave address can be eliminated. However, the manufacturing cost and the construction cost for providing the communication line switching circuit increase. In addition, there is a risk that the size of the water-supplying device may be increased.

これに対して、実施形態においては、マスタ15は、複数のスレーブのそれぞれに探査信号を送信し、複数のスレーブのうち探査信号に対して返信したスレーブのスレーブアドレスを決定する自動SA決定モードを有する。自動SA決定モードによって、各スレーブにスレーブアドレスが自動で付与されるため、スレーブアドレスに対応したスレーブの品番管理や、通信ライン切替回路が不要となる。これにより、水回り機器の管理、製造、または施工におけるコストの増加を抑制することができる。
例えば、実施形態においては、各スレーブには、あらかじめ共通の初期値としてのスレーブアドレスが付されていてもよい。その後、自動SA決定モードによって、各スレーブに自動で、個別のスレーブアドレスを付与することができる。
On the other hand, in the embodiment, the master 15 transmits the search signal to each of the plurality of slaves, and determines an automatic SA determination mode for determining the slave address of the slave that has sent back the search signal among the plurality of slaves. Have. Since the slave address is automatically assigned to each slave in the automatic SA determination mode, the part number management of the slave corresponding to the slave address and the communication line switching circuit become unnecessary. Thereby, the increase in the cost in management, manufacture, or construction of plumbing equipment can be suppressed.
For example, in the embodiment, each slave may be previously assigned a slave address as a common initial value. Thereafter, each slave can be automatically assigned an individual slave address by the automatic SA determination mode.

また、マスタ15の探査信号に対して、2以上のスレーブが同時に返信すると、返信したスレーブのうちのいずれのスレーブに、スレーブアドレスを付与すべきかマスタ15が判断できない場合など、スレーブアドレスの付与が正しく実行されない恐れがある。これに対して、上述したとおり、複数のスレーブのそれぞれは、マスタ15からの探査信号に対してランダムに返信する。言い換えれば、スレーブアドレスが付与されていないスレーブは、探査信号を受信した時に、返信する場合と、返信しない場合がある。これにより、同時に2以上のスレーブが返信することを抑制できる。なお、スレーブが探査信号に対して返信する頻度(確率)は、任意であるが、水回り機器1に接続されるスレーブの数を考慮して、適宜定めることができる。   Also, when two or more slaves simultaneously reply to the search signal of the master 15, the slave address can be assigned, for example, when the master 15 can not determine to which slave among the returned slaves the slave address should be assigned. There is a risk that it will not run correctly. On the other hand, as described above, each of the plurality of slaves randomly responds to the search signal from the master 15. In other words, a slave to which a slave address is not assigned may or may not reply when it receives a search signal. This can suppress two or more slaves from replying at the same time. Although the frequency (probability) that the slaves reply to the search signal is arbitrary, it can be determined as appropriate in consideration of the number of slaves connected to the watercraft device 1.

また、例えば、各スレーブは、探査信号に対して、誤り検出符号を付与した信号を返信する。誤り検出符号は、マスタ15が同時に2以上の返信を受信した場合にエラー(NG)が検出されるように構成されている。例えば、誤り検出符号には、チェックサムが用いられる。すなわち、例えば、各スレーブからの返信には、和が所定値となるランダムな冗長ビットが付される。マスタ15が受信した冗長ビットの和が所定値でなかった場合、エラーが検出される。したがって、同時に2以上のスレーブが探査信号に対して返信した場合であっても、誤り検出符号によって、マスタ15は、2以上のスレーブが返信したことを検出できる。これにより、スレーブアドレスの付与が正しく実行されないことを防止することができる。なお、誤り検出符号は、チェックサムに限らず、2以上のスレーブが返信したことをマスタ15が検出可能な任意の方式を用いることができる。   Also, for example, each slave returns a signal to which an error detection code is added to the search signal. The error detection code is configured such that an error (NG) is detected when the master 15 simultaneously receives two or more replies. For example, a checksum is used for the error detection code. That is, for example, a random redundant bit whose sum is a predetermined value is added to the reply from each slave. If the sum of redundant bits received by the master 15 is not a predetermined value, an error is detected. Therefore, even if two or more slaves reply to the search signal at the same time, the master 15 can detect that two or more slaves reply by the error detection code. This can prevent the assignment of the slave address from being performed correctly. The error detection code is not limited to the checksum, and any method that allows the master 15 to detect that two or more slaves have sent back may be used.

また、マスタ15は、複数のスレーブのすべてが探査信号に対して返信しなくなったと判断するまで自動SA決定モードを実行する。言い換えれば、マスタ15は、複数のスレーブのすべてが探査信号に対して返信しなくなったと判断するまで、繰り返し探査信号を送信する。例えば、マスタ15は、探査信号に対するスレーブからの返信が所定回数連続で無かった場合に、複数のスレーブのすべてが探査信号に対して返信しなくなったと判断することができる。あるいは、上述したように、マスタ15は、付与したスレーブアドレスの数や、送信した探査信号の数に基づいて、複数のスレーブのすべてが探査信号に対して返信しなくなったことを判断してもよい。
スレーブが探査信号に対してランダムに返信する場合であっても、マスタ15が、すべてのスレーブから探査信号に対する返信がなくなったと判断するまで自動SA決定モードを実行することにより、より確実にすべてのスレーブのスレーブアドレスを決定することができる。
Also, the master 15 executes the automatic SA determination mode until it is determined that all of the plurality of slaves have not returned in response to the search signal. In other words, the master 15 repeatedly transmits the search signal until it determines that all the plurality of slaves have not returned in response to the search signal. For example, the master 15 can determine that all of the plurality of slaves have not returned a response to the search signal if the response from the slave to the search signal is not continuous for a predetermined number of times. Alternatively, as described above, even if the master 15 determines that all of the plurality of slaves have not returned to the search signal based on the number of assigned slave addresses or the number of transmitted search signals. Good.
Even if the slaves respond randomly to the search signal, all the slaves can be determined more reliably by executing the automatic SA determination mode until the master 15 determines that all the slaves have not returned a response to the search signal. The slave address of the slave can be determined.

自動SA決定モード及びSA付与モードについて、さらに説明する。
図6は、実施形態に係る水回り機器の自動スレーブアドレス決定モードを例示するフローチャートである。
自動SA決定モードにおいて、マスタ15は、タイマTM2による時間の計測を開始する(ステップS101)。タイマTM2によって、水回り機器1に接続されるスレーブが、接続されていないことを検出することができる。具体的には、後述するように、タイマTM2による時間の計測は、スレーブからマスタ15に返信があった場合に再スタートされる。スレーブからの返信がなくタイマTM2が所定の時間をカウントした場合、スレーブが未接続であると判断することができる。例えば、水回り機器1に接続されていたスレーブが、故障による交換等のために、取り外されたことを検出することも可能である。
The automatic SA determination mode and the SA application mode will be further described.
FIG. 6 is a flowchart illustrating an automatic slave address determination mode of the watercraft device according to the embodiment.
In the automatic SA determination mode, the master 15 starts measurement of time by the timer TM2 (step S101). The timer TM2 can detect that the slave connected to the watercraft device 1 is not connected. Specifically, as described later, the measurement of the time by the timer TM2 is restarted when there is a reply from the slave to the master 15. If there is no reply from the slave and the timer TM2 counts a predetermined time, it can be determined that the slave is not connected. For example, it is also possible to detect that a slave connected to the water supply device 1 has been removed for replacement due to a failure or the like.

ステップS101の後、マスタ15は、複数のスレーブへのスレーブアドレスの付与が完了しているかどうかを判断する(ステップS102)。例えば、マスタ15は、マスタ15の有するフラッシュメモリを参照する。
図8(a)及び図8(b)は、フラッシュメモリを例示する概念図である。
図8(a)は、マスタ15のフラッシュメモリを例示している。例えば、フラッシュメモリの0101h番地、0102h番地、0103h番地に、スレーブアドレスの付与が完了したことを示すデータが書き込まれるようになっている。
例えば、スレーブ12にスレーブアドレスが付与されていない場合、0101h番地は、初期値00hであり、スレーブ12にスレーブアドレスが付与されると、0101h番地にFFhが書き込まれ、スレーブ12に付与されたスレーブアドレスのデータ(SA1付与済みデータ)が記憶される。
同様に、スレーブ13にスレーブアドレスが付与されていない場合、0102h番地は、初期値00hであり、スレーブ13にスレーブアドレスが付与されると、0102h番地にFFhが書き込まれ、スレーブ13に付与されたスレーブアドレスのデータ(SA2付与済みデータ)が記憶される。
スレーブ14にスレーブアドレスが付与されていない場合、0103h番地は、初期値00hであり、スレーブ14にスレーブアドレスが付与されると、0103h番地にFFhが書き込まれ、スレーブ14に付与されたスレーブアドレスのデータ(SA3付与済みデータ)が記憶される。
このようなメモリのデータを参照することにより、スレーブアドレスが付与されていないスレーブの有無を判断することができる。なお、接続されるスレーブの数は、例えば、あらかじめ設定されている。
After step S101, the master 15 determines whether assignment of slave addresses to a plurality of slaves has been completed (step S102). For example, the master 15 refers to a flash memory that the master 15 has.
FIGS. 8A and 8B are conceptual diagrams illustrating a flash memory.
FIG. 8A exemplifies the flash memory of the master 15. For example, data indicating that the assignment of the slave address is completed is written to the addresses 0101 h, 0102 h, and 0103 h of the flash memory.
For example, when the slave address is not assigned to the slave 12, the address 0101h has the initial value 00h, and when the slave address is assigned to the slave 12, the FFh is written to the address 0101h and the slave assigned to the slave 12 Address data (SA1 assigned data) is stored.
Similarly, when the slave address is not assigned to the slave 13, the address 0102h has the initial value 00h, and when the slave address is assigned to the slave 13, FFh is written to the address 0102h and assigned to the slave 13. The data of the slave address (SA2 assigned data) is stored.
When the slave address is not assigned to the slave 14, the address 0103h has an initial value 00h, and when the slave address is assigned to the slave 14, FFh is written to the address 0103h, and the slave address of the slave address is assigned. Data (SA3 assigned data) is stored.
By referring to data in such a memory, it is possible to determine the presence or absence of a slave to which a slave address is not assigned. The number of slaves connected is, for example, preset.

図6に戻って説明を続ける。複数のスレーブへのスレーブアドレスの付与が完了している場合(ステップS102:Yes)、すなわちスレーブアドレスが付与されていないスレーブが無いと判断された場合、自動SA決定モードは終了する。   Returning to FIG. 6, the description will be continued. If assignment of slave addresses to a plurality of slaves has been completed (step S102: Yes), that is, if it is determined that there is no slave to which no slave address has been assigned, the automatic SA determination mode ends.

複数のスレーブへのスレーブアドレスの付与が完了していない場合(ステップS102:No)、すなわちスレーブアドレスが付与されていないスレーブが有ると判断された場合、マスタ15は、タイマTM1による時間の計測を開始する(ステップS103)。タイマTM1は、自動SA決定モードが実行された時間を計測するタイマである。タイマTM1が所定の時間をカウントした場合(ステップS104:Yes)、自動SA決定モードは終了する。   If assignment of slave addresses to a plurality of slaves has not been completed (step S102: No), that is, if it is determined that there is a slave to which no slave address has been assigned, the master 15 measures time by the timer TM1. It starts (step S103). The timer TM1 is a timer that measures the time when the automatic SA determination mode is executed. If the timer TM1 has counted a predetermined time (step S104: Yes), the automatic SA determination mode ends.

タイマTM1のカウントが所定の時間に達しておらず(ステップS104:No)、タイマTM2が所定の時間をカウントした場合(ステップS105:Yes)、水回り機器1に未接続のスレーブがあると推定される。この場合、マスタ15は、SA消去モードの実行が確定したことを示すデータをフラッシュメモリに記憶し(ステップS106)、待機状態となる。その後、例えば施工者が、電源を切った後に水回り機器1にスレーブを接続し、電源を再投入すると、フラッシュメモリのデータが参照され、SA消去モードが実行される。図3に関して説明したように、SA消去モードによって一旦スレーブアドレスがリセットされた後、再び自動SA決定モードが実行され、各スレーブにスレーブアドレスを付与することができる。なお、ステップS106の後に、マスタ15は、待機状態とならずに、電源再投入を待つことなく、SA消去モードを実行してもよい。   If the count of the timer TM1 does not reach the predetermined time (step S104: No) and the timer TM2 counts the predetermined time (step S105: Yes), it is estimated that there is an unconnected slave in the water routing device 1 Be done. In this case, the master 15 stores data indicating that the execution of the SA erase mode is determined in the flash memory (step S106), and enters the standby state. Thereafter, for example, when the installer turns off the power and connects the slave to the water circulation apparatus 1 and then turns on the power again, the data in the flash memory is referred to and the SA erase mode is executed. As described with reference to FIG. 3, after the slave address is once reset by the SA erase mode, the automatic SA determination mode is executed again, and the slave address can be assigned to each slave. Note that after step S106, the master 15 may execute the SA erasing mode without waiting for the power to be turned on without entering the standby state.

タイマTM2のカウントが所定の時間に達していない場合(ステップS105:No)、マスタ15は、各スレーブに探査信号を送信する(ステップS107)。この探査信号には、例えば、スレーブアドレスの初期値SA0が含まれている。探査信号を受信したスレーブは、受信確認信号ACKをマスタ15に送信する。   If the count of the timer TM2 has not reached the predetermined time (step S105: No), the master 15 transmits a search signal to each slave (step S107). The search signal includes, for example, an initial value SA0 of the slave address. The slave that has received the search signal transmits an acknowledgment signal ACK to the master 15.

マスタ15は、スレーブからの受信確認信号ACKが無かった場合(ステップS108:No)、後述するステップS109〜S114を実行せずに、ステップS115、S116へ進む。マスタ15が、受信確認信号ACKを受信すると(ステップS108:Yes)、タイマTM2による時間の計測が再スタートされる(ステップS109)。   If there is no reception confirmation signal ACK from the slave (step S108: No), the master 15 proceeds to steps S115 and S116 without executing steps S109 to S114 described later. When the master 15 receives the reception confirmation signal ACK (step S108: Yes), measurement of time by the timer TM2 is restarted (step S109).

また、スレーブアドレスが付与されていないスレーブ、すなわちスレーブアドレスが初期値SA0のスレーブは、探査信号に対して返信する。マスタ15は、その返信を受信する(ステップS110)。   Also, a slave to which a slave address is not assigned, that is, a slave whose slave address has an initial value SA0 returns a reply to the search signal. The master 15 receives the reply (step S110).

スレーブからの探査信号に対する返信において、誤り検出符号(チェックサム)のエラーが検出されなかった場合(ステップS111:OK)、マスタ15は、返信したスレーブに決定信号を送信する(ステップS112)。これにより、探査信号に対して返信したスレーブにスレーブアドレスが付与される。また、マスタ15は、図8(a)に関して説明したように、付与したスレーブアドレスのデータをフラッシュメモリに記録する(ステップS113)。その後、マスタ15は、スレーブアドレスを付与したスレーブに、スレーブアドレスを送信させ、スレーブアドレスが付与されたことを確認する(ステップS114)。   When an error in the error detection code (checksum) is not detected in response to the search signal from the slave (step S111: OK), the master 15 transmits a determination signal to the slave that has sent the response (step S112). Thereby, a slave address is assigned to the slave that has returned in response to the search signal. Further, as described with reference to FIG. 8A, the master 15 records data of the assigned slave address in the flash memory (step S113). After that, the master 15 causes the slave to which the slave address is assigned to transmit the slave address, and confirms that the slave address is assigned (step S114).

その後、マスタ15は、探査信号を送信した回数(積算回数)をカウントし(ステップS115)、探査信号を送信した回数が所定回数未満の場合(ステップS116:No)、ステップS104〜S115を再び繰り返す。探査信号を送信した回数が所定回数の場合(ステップS116:Yes)、自動SA決定モードは終了する。
また、ステップS111において誤り検出符号のエラーが検出された場合(ステップS111:NG)においても、ステップS115、S116が実行される。
Thereafter, the master 15 counts the number of times the search signal is transmitted (the number of integrations) (step S115), and when the number of times the search signal is transmitted is less than the predetermined number (step S116: No), repeats steps S104 to S115 again. . If the number of times of transmission of the search signal is a predetermined number (step S116: Yes), the automatic SA determination mode ends.
Further, even when an error of the error detection code is detected in step S111 (step S111: NG), steps S115 and S116 are executed.

また、マスタ15が決定信号を送信し、スレーブアドレスが決定した際に、スレーブアドレスが決定したことを音や光によって報知してもよい。例えば、水回り機器1には、発光部(LED等)やスピーカなどの報知手段が設けられ、マスタ15は、スレーブアドレスが決定すると、報知手段を制御して施工者にスレーブアドレスが決定したことを報知する。   In addition, when the master 15 transmits a determination signal and the slave address is determined, it may be notified by sound or light that the slave address has been determined. For example, the water supply device 1 is provided with notification means such as a light emitting unit (such as an LED) or a speaker, and the master 15 controls the notification means when the slave address is determined, and the slave address is determined for the builder To inform

図7は、実施形態に係る水回り機器のスレーブアドレス付与モードを例示するフローチャートである。
図7は、マスタ15と相互に通信を行う複数のスレーブ12、13、14の1つの動作を表している。SA付与モードにおいて、スレーブは、自身が有するフラッシュメモリを参照し、スレーブアドレスが記憶済みか否か、すなわちスレーブアドレスが付与済みか否かを判断する(ステップS201)。
FIG. 7 is a flowchart illustrating the slave address assignment mode of the watercraft device according to the embodiment.
FIG. 7 shows an operation of one of the plurality of slaves 12, 13, 14 communicating with the master 15. In the SA application mode, the slave refers to its own flash memory and determines whether or not the slave address has been stored, that is, whether the slave address has been allocated (step S201).

図8(b)は、スレーブが有するフラッシュメモリを例示している。例えば、スレーブアドレスが付与されていない場合、0200h番地は初期値00hであり、スレーブアドレスが付与されると、0200h番地に付与されたスレーブアドレスのデータ(付与済みSA)が記憶される。   FIG. 8B illustrates a flash memory that the slave has. For example, when a slave address is not assigned, the initial value 00h is the address 0200h, and when the slave address is assigned, data (assigned SA) of the slave address assigned to the address 0200h is stored.

図7に戻って説明を続ける。スレーブにスレーブアドレスが付与されていた場合(ステップS201:Yes)、SA付与モードは終了する。スレーブにスレーブアドレスが付与されていない場合(ステップS201:No)、スレーブは、マスタ15からの探査信号を受信すると(ステップS202:Yes)、返信するか否かをランダムに決定する(ステップS203)。   Returning to FIG. 7, the description will be continued. If the slave address is assigned to the slave (step S201: Yes), the SA assignment mode ends. When the slave address is not assigned to the slave (step S201: No), when the slave receives the search signal from the master 15 (step S202: Yes), the slave randomly determines whether to reply (step S203). .

スレーブは、探査信号に対して返信しない場合(ステップS203:No)、ステップS202、S203を繰り返す。スレーブは、探査信号に対して返信する場合(ステップS203:Yes)、誤り検出符号を付与した信号を返信する(ステップS204)。   When the slave does not reply to the search signal (step S203: No), steps S202 and S203 are repeated. When the slave returns a response to the search signal (step S203: Yes), the slave returns a signal to which an error detection code is added (step S204).

その後、スレーブは、マスタ15が返信を受信して、決定信号を送信するのを待つ(ステップS205)。スレーブは、マスタ15から決定信号を受信すると(ステップS206:Yes)、図8(b)に関して説明したように、付与されたスレーブアドレスをフラッシュメモリに記憶する(ステップS207)。スレーブは、マスタ15から決定信号を受信しなかった場合(ステップS206:No)、ステップS202〜S206を繰り返す。   Thereafter, the slave waits for the master 15 to receive a reply and transmit a decision signal (step S205). When the slave receives the determination signal from the master 15 (step S206: Yes), the slave address assigned is stored in the flash memory as described with reference to FIG. 8B (step S207). When the slave has not received the determination signal from the master 15 (step S206: No), it repeats steps S202 to S206.

図9(a)〜図9(d)は、実施形態に係る水回り機器の動作を例示するタイミングチャートである。
図9(a)は、マスタ15の自動SA決定モード及び通常モードにおける動作を例示している。図9(b)〜図9(d)は、それぞれ、スレーブ12、13、14のSA付与モード及び通常モードにおける動作を例示している。自動SA決定モード及びSA付与モードに関しては、図5における説明と同様である。
Fig.9 (a)-FIG.9 (d) are the timing charts which illustrate operation | movement of the water-surroundings apparatus which concerns on embodiment.
FIG. 9A illustrates the operation of the master 15 in the automatic SA determination mode and the normal mode. FIGS. 9B to 9D illustrate the operation in the SA application mode and the normal mode of the slaves 12, 13 and 14, respectively. The automatic SA determination mode and the SA application mode are the same as those described in FIG.

マスタ15は、所定回数の探査信号を送信すると自動SA決定モードを終了し、通常モードに移行する。例えば、図9(a)に示すように、マスタ15は、自動SA決定モードの終了後の時刻T8、T9、T14において、通常信号を送信し、各スレーブと相互通信を行う。   After transmitting the search signal a predetermined number of times, the master 15 ends the automatic SA determination mode and shifts to the normal mode. For example, as shown in FIG. 9A, the master 15 transmits a normal signal at times T8, T9, and T14 after the end of the automatic SA determination mode, and performs mutual communication with each slave.

例えば、スレーブが探査信号に対してランダムに返信し、マスタ15が探査信号の送信回数に基づいて自動SA決定モードを終了する場合、低い確率で、全てのスレーブにスレーブアドレスが付与される前に自動SA決定モードが終了することがある。   For example, when the slaves return a random response to the search signal and the master 15 ends the automatic SA determination mode based on the number of transmissions of the search signal, before all slaves are assigned slave addresses with low probability. The automatic SA determination mode may end.

また、例えば、一度、自動SA決定モードが終了した後に、水回り機器1に新たなスレーブが接続される可能性もある。この場合、新たに接続されたスレーブには、スレーブアドレスが付与されていない、すなわちスレーブアドレスは初期値である。   In addition, for example, once the automatic SA determination mode ends, there is also a possibility that a new slave is connected to the plumbing device 1. In this case, a slave address is not assigned to the newly connected slave, that is, the slave address is an initial value.

そこで、図9に示す例では、自動SA決定モードによって、スレーブ12、13には、スレーブアドレスが付与され、スレーブ14には、スレーブアドレスが付与されなかったとしている。すなわち、自動SA決定モードの後の通常モードの開始時において、スレーブ14にはスレーブアドレスが付与されていない。   Therefore, in the example shown in FIG. 9, it is assumed that the slave address is assigned to the slaves 12 and 13 and the slave address is not assigned to the slave 14 in the automatic SA determination mode. That is, at the start of the normal mode after the automatic SA determination mode, the slave address is not assigned to the slave 14.

この例では、マスタ15は、複数のスレーブのすべてが探査信号に対して返信しなくなったと判断し自動スレーブアドレス決定モードを終了した後においても、複数のスレーブに探査信号を送信する。例えば、図9(a)に示すように、マスタ15は、時刻T8の後の時刻T10や、時刻T9の後の時刻T11においても、探査信号を送信する。この探査信号に対して、既にスレーブアドレスが付与されているスレーブ12、13は返信しない。一方、スレーブアドレスが付与されていないスレーブ14は、探査信号に対して返信するか否かをランダムに決定する。図9(d)に示すように、スレーブ14は、時刻T10に送信された探査信号に対して返信せず、時刻T11に送信された探査信号に対して時刻T12に返信する。   In this example, the master 15 transmits the probe signal to the plurality of slaves even after determining that all the plurality of slaves have not returned in response to the probe signal and ending the automatic slave address determination mode. For example, as shown in FIG. 9A, the master 15 transmits a search signal also at time T10 after time T8 and at time T11 after time T9. The slaves 12 and 13 to which slave addresses have already been assigned do not respond to this search signal. On the other hand, the slave 14 to which the slave address is not assigned randomly determines whether or not to reply to the search signal. As shown in FIG. 9D, the slave 14 does not reply to the probe signal transmitted at time T10, but replies at time T12 to the probe signal transmitted at time T11.

マスタ15は、スレーブ14からの返信を受信すると、時刻T13においてスレーブ14に決定信号を送信し、スレーブ14は、その決定信号を受信する。これにより、スレーブ14にスレーブアドレスが付与される。   When the master 15 receives the reply from the slave 14, the master 15 transmits a determination signal to the slave 14 at time T13, and the slave 14 receives the determination signal. Thus, the slave address is assigned to the slave 14.

このように、自動スレーブアドレス決定モードの終了後においても、マスタが探査信号を継続して送信することにより、より確実にすべてのスレーブのスレーブアドレスを決定することができる。例えば、自動SA決定モードの終了後に新たに接続されたスレーブにもスレーブアドレスを付与することができる。   As described above, even after the end of the automatic slave address determination mode, the master can continuously determine the slave addresses of all slaves by transmitting the search signal continuously. For example, a slave address can be assigned to a newly connected slave after the end of the automatic SA determination mode.

図10(a)〜図10(c)は、実施形態に係る水回り機器の動作を例示するタイミングチャートである。
図10(a)は、マスタ15の自動SA決定モード及び通常モードにおける動作を例示している。図10(b)及び図10(c)は、それぞれ、スレーブ13、14のSA付与モード及び通常モードにおける動作を例示している。自動SA決定モード及びSA付与モードに関しては、図9における説明と同様である。
マスタ15は、所定回数の探査信号を送信すると自動SA決定モードを終了し、通常モードに移行する。例えば、図10(a)に示すように、マスタ15は、自動SA決定モードの終了後の時刻T8、T9、T14、T15、T16、T17において、通常信号を送信し、各スレーブと相互通信を行う。
Drawing 10 (a)-Drawing 10 (c) are timing charts which illustrate operation of a plumbing device concerning an embodiment.
FIG. 10A illustrates the operation of the master 15 in the automatic SA determination mode and the normal mode. FIGS. 10B and 10C illustrate the operation of the slaves 13 and 14 in the SA application mode and the normal mode, respectively. The automatic SA determination mode and the SA application mode are the same as those described in FIG.
After transmitting the search signal a predetermined number of times, the master 15 ends the automatic SA determination mode and shifts to the normal mode. For example, as shown in FIG. 10A, the master 15 transmits a normal signal at times T8, T9, T14, T15, T16, and T17 after the end of the automatic SA determination mode, and performs mutual communication with each slave. Do.

この例においても、図9の例と同様に、マスタ15は、自動SA決定モードの後の通常モードにおいて、探査信号を送信する。例えば、図10(a)に示すように、マスタ15は、時刻T15の後の時刻T18において探査信号を送信する。スレーブ14は、時刻T18に送信された探査信号に対して時刻T19に返信する。マスタ15は、スレーブ14からの返信を受信すると、時刻T20においてスレーブ14に決定信号を送信し、スレーブ14は、その決定信号を受信する。これにより、スレーブ14にスレーブアドレスが付与される。   Also in this example, as in the example of FIG. 9, the master 15 transmits the search signal in the normal mode after the automatic SA determination mode. For example, as shown in FIG. 10A, the master 15 transmits a search signal at time T18 after time T15. The slave 14 responds to the search signal transmitted at time T18 at time T19. When the master 15 receives the reply from the slave 14, the master 15 transmits a determination signal to the slave 14 at time T20, and the slave 14 receives the determination signal. Thus, the slave address is assigned to the slave 14.

例えば、図9の例では、マスタ15が自動SA決定モードの終了後に探査信号を送信する頻度(単位時間当たりの送信回数)は、マスタ15が自動SA決定モードの実行中に探査信号を送信する頻度と同じである。例えば、図9の例では、マスタ15は、通常モードにおいて通常信号を送信する度に、探査信号を送信する。しかし、自動スレーブアドレス決定モードの終了後においても、マスタ15が探査信号を高い頻度で送信し続けると、マスタ15の処理負荷が大きい。   For example, in the example of FIG. 9, the frequency at which the master 15 transmits a search signal after the end of the automatic SA determination mode (the number of transmissions per unit time) transmits the search signal during execution of the automatic SA determination mode. It is the same as the frequency. For example, in the example of FIG. 9, the master 15 transmits the search signal each time it transmits a normal signal in the normal mode. However, even after the end of the automatic slave address determination mode, if the master 15 continues to transmit the search signal frequently, the processing load on the master 15 is large.

これに対して、図10の例では、マスタ15が自動SA決定モードの終了後に探査信号を送信する頻度は、マスタ15が自動SA決定モードの実行中に探査信号を送信する頻度よりも低い。例えば、図10の例では、マスタ15は、通常モードにおいて通常信号を複数回送信すると、探査信号を1回送信する。   On the other hand, in the example of FIG. 10, the frequency at which the master 15 transmits the search signal after the termination of the automatic SA determination mode is lower than the frequency at which the master 15 transmits the search signal during execution of the automatic SA determination mode. For example, in the example of FIG. 10, when the master 15 transmits the normal signal a plurality of times in the normal mode, the master 15 transmits the search signal once.

このように、自動スレーブアドレス決定モードの終了後において、探査信号の送信頻度を低くすることにより、新たに水回り機器1に接続されたスレーブを含むすべてのスレーブにスレーブアドレスを付与することができるとともに、マスタ15の処理負荷を小さくすることができる。   Thus, after the end of the automatic slave address determination mode, the slave address can be assigned to all the slaves including the slave newly connected to the watercraft 1 by reducing the transmission frequency of the search signal. In addition, the processing load of the master 15 can be reduced.

マスタ15の通常モードについて、さらに説明する。
図11は、実施形態に係る水回り機器のマスタの通常モードを例示するフローチャートである。
通常モードにおいて、マスタ15は、タイマTM2による時間の計測を行う。このタイマTM2は、図6に関して説明したタイマTM2と同様であり、スレーブの未接続の時間を計測するものである。タイマTM2が所定の時間をカウントした場合(ステップS301:Yes)、マスタ15は、SA消去モードの実行が確定したことを示すデータをフラッシュメモリに記憶し(ステップS302)、待機状態となる。その後、マスタ15は、電源が再投入されると、SA消去モードを実行する。または、マスタ15は、電源再投入を待つことなく、SA消去モードを実行してもよい。
The normal mode of the master 15 will be further described.
FIG. 11 is a flowchart illustrating the normal mode of the master of the watercraft according to the embodiment.
In the normal mode, the master 15 measures time by the timer TM2. The timer TM2 is similar to the timer TM2 described with reference to FIG. 6, and measures the time when the slave is not connected. If the timer TM2 has counted a predetermined time (step S301: Yes), the master 15 stores data indicating that the execution of the SA erase mode is determined in the flash memory (step S302), and enters the standby state. Thereafter, when the power is turned on again, the master 15 executes the SA erasing mode. Alternatively, the master 15 may execute the SA erase mode without waiting for power on again.

タイマTM2のカウントが所定の時間に達していない場合(ステップS301:No)、マスタ15は、各スレーブに通常信号(上述したリード信号又はライト信号)を、送信する(ステップS303)。この通常信号には、自動SA決定モードによって決定された個別のスレーブアドレスが含まれている。各スレーブは、自身に付与されたスレーブアドレスを含む通常信号を受信すると、受信確認信号ACKをマスタ15に送信する。   If the count of the timer TM2 has not reached the predetermined time (step S301: No), the master 15 transmits a normal signal (the above-described read signal or write signal) to each slave (step S303). This normal signal includes the individual slave address determined by the automatic SA determination mode. Each slave transmits an acknowledgment signal ACK to the master 15 when it receives a normal signal including the slave address assigned to itself.

スレーブアドレスを含む通常信号に対する受信確認信号ACKが無い場合は、そのスレーブアドレスが付与されたスレーブに、故障等の異常が発生したと判断することができる。そこで、マスタ15は、通常信号に対する受信確認信号ACKが無かった場合(ステップS304:No)、その通常信号に含まれていたスレーブアドレスを、フラッシュメモリから消去する(ステップS305)。なお、複数回連続しての受信確認信号が得られなかった場合に、ステップS305を実行してもよい。これにより、ノイズの影響を抑制できる。   If there is no reception confirmation signal ACK for the normal signal including the slave address, it can be determined that an abnormality such as a failure has occurred in the slave to which the slave address is assigned. Therefore, when there is no reception confirmation signal ACK for the normal signal (step S304: No), the master 15 erases the slave address included in the normal signal from the flash memory (step S305). Note that step S305 may be executed when a plurality of consecutive reception confirmation signals are not obtained. Thereby, the influence of noise can be suppressed.

マスタ15が、受信確認信号ACKを受信すると(ステップS304:Yes)、タイマTM2による時間の計測が再スタートされる(ステップS306)。そして、マスタ15は、各スレーブからの検出処理の結果に基づいて、電磁バルブ22、ポンプ32、ファン42a、およびヒータ42bなどを適宜、制御する(ステップS307)。   When the master 15 receives the reception confirmation signal ACK (step S304: Yes), measurement of time by the timer TM2 is restarted (step S306). Then, the master 15 appropriately controls the solenoid valve 22, the pump 32, the fan 42a, the heater 42b, and the like based on the result of the detection process from each slave (step S307).

その後、マスタ15は、通常信号を送信した回数(積算回数)をカウントする(ステップS308)。通常信号を送信した回数が所定値未満であった場合(ステップS309:No)、通常モードが終了する。通常信号を送信した回数が所定値に達した場合(ステップS309:Yes)、通常信号のカウントをクリア、すなわちゼロにリセットし(ステップS310)、ステップS311〜ステップS318を実行する。ステップS311〜ステップS318は、それぞれ、図6に関して説明したステップS107〜ステップS114と同様である。   Thereafter, the master 15 counts the number of times the normal signal has been transmitted (the number of integrations) (step S308). If the number of times the normal signal has been transmitted is less than the predetermined value (step S309: No), the normal mode ends. If the number of times the normal signal has been transmitted reaches a predetermined value (step S309: Yes), the count of the normal signal is cleared, that is, reset to zero (step S310), and steps S311 to S318 are performed. Steps S311 to S318 are similar to steps S107 to S114 described with reference to FIG.

ステップS309における所定値によって、ステップS311〜ステップS319が実施される頻度が調整される。言い換えれば、この所定値によって、通常モードにおいて探査信号が送信される頻度が調整される。例えば、所定値が1の場合は、通常信号を送信する度に、探査信号が送信される。所定値が2の場合は、マスタ15は、通常信号を2回送信すると、探査信号を1回送信する。   The frequency at which steps S311 to S319 are performed is adjusted by the predetermined value in step S309. In other words, the predetermined value adjusts the frequency at which the search signal is transmitted in the normal mode. For example, when the predetermined value is 1, a search signal is transmitted each time a normal signal is transmitted. When the predetermined value is 2, the master 15 transmits the search signal once when the normal signal is transmitted twice.

また、ステップS316において、マスタ15は、スレーブに付与するスレーブアドレスのうち、若い番号のスレーブアドレスから順番に、スレーブアドレスを付与する。   Also, in step S316, the master 15 assigns slave addresses in order from the slave address having the smallest number among the slave addresses assigned to the slaves.

また、以上の例では、ステップS311〜S318において、自動SA決定モードの一部と同様の処理が実行されるが、マスタ15は、自動SA決定モードを実行してもよい。言い換えれば、マスタ15は、自動スレーブアドレス決定モードを複数回実行してもよい。スレーブが探査信号に対してランダムに返信する場合であっても、自動スレーブアドレス決定モードを複数回実行することにより、より確実にすべてのスレーブのスレーブアドレスを決定することができる。   Further, in the above example, the same processing as a part of the automatic SA determination mode is executed in steps S311 to S318, but the master 15 may execute the automatic SA determination mode. In other words, the master 15 may execute the automatic slave address determination mode multiple times. Even when the slaves randomly reply to the search signal, the slave addresses of all slaves can be determined more reliably by executing the automatic slave address determination mode multiple times.

図12は、実施形態に係る水回り機器のスレーブアドレス消去モードを例示するフローチャートである。
SA消去モードにおいて、マスタ15は、SA消去モードの実行が確定したことを示すデータがフラッシュメモリに記憶されていない場合(ステップS401:No)、SA消去モードを終了する。
FIG. 12 is a flowchart illustrating a slave address erase mode of the watercraft device according to the embodiment.
In the SA erase mode, the master 15 ends the SA erase mode when data indicating that the execution of the SA erase mode has been decided is not stored in the flash memory (step S401: No).

マスタ15は、SA消去モードの実行が確定したことを示すデータがフラッシュメモリに記憶されている場合(ステップS401:Yes)、マスタ15への電源投入の度にスレーブアドレスが消去されることを避けるため、まず、SA消去モードの実行が確定したことを示すデータを消去する(ステップS402)。   When data indicating that execution of the SA erase mode has been determined is stored in the flash memory (step S401: Yes), the master 15 prevents the slave address from being erased each time the master 15 is powered on. Therefore, first, data indicating that the execution of the SA deletion mode has been determined is deleted (step S402).

その後、マスタ15は、スレーブに、スレーブアドレス消去信号(SA消去信号)を送信する(ステップS403)。SA消去信号は、マスタ15が付与した1つのスレーブアドレスの情報を、スレーブが有するフラッシュメモリから消去するようにスレーブに指示する信号である。   After that, the master 15 transmits a slave address erase signal (SA erase signal) to the slave (step S403). The SA erase signal is a signal instructing the slave to erase the information of one slave address assigned by the master 15 from the flash memory of the slave.

その後、マスタ15は、SA消去信号が消去を指示するスレーブアドレスを切り替え(ステップS404)、SA消去信号を送信した回数(積算回数)をカウントする(ステップS405)。   Thereafter, the master 15 switches the slave address at which the SA erase signal instructs the erase (step S404), and counts the number of times the SA erase signal is transmitted (the number of integrations) (step S405).

SA消去信号を送信した回数が所定回数未満であった場合(ステップS406:No)、ステップS404〜S405が繰り返される。SA消去信号を送信した回数が所定回数に達した場合、SA消去モードは終了する。この所定回数は、マスタ15が自動SA決定モードにおいて付与したスレーブアドレスの数である。すなわち、マスタ15は、ステップS404〜S405を所定回数繰り返すことで、スレーブアドレスを順次切り替えて、付与したスレーブアドレスのすべてに関するSA消去信号を送信する。これにより、自動SA決定モードによって付与されたすべてのスレーブアドレスが消去され、複数のスレーブは、スレーブアドレスが付与されていない状態(スレーブアドレスが初期値の状態)にリセットされる。   When the number of times the SA cancellation signal has been transmitted is less than the predetermined number (step S406: No), steps S404 to S405 are repeated. When the number of times of transmission of the SA cancellation signal reaches a predetermined number, the SA cancellation mode ends. The predetermined number of times is the number of slave addresses assigned by the master 15 in the automatic SA determination mode. That is, the master 15 sequentially switches the slave address by repeating steps S404 to S405 a predetermined number of times, and transmits the SA erase signal regarding all of the assigned slave addresses. As a result, all slave addresses assigned by the automatic SA determination mode are erased, and the plurality of slaves are reset to the state where no slave address is assigned (the slave address is in the initial value state).

スレーブに対して誤ったスレーブアドレスが付与された場合であっても、SA消去モード(リセットモード)によってスレーブアドレスをリセットする。その後、自動SA決定モードを実行することで、スレーブに再度、スレーブアドレスを付与することができる。   Even if an incorrect slave address is assigned to the slave, the slave address is reset by the SA erase mode (reset mode). Thereafter, by executing the automatic SA determination mode, it is possible to give the slave a slave address again.

なお、この例では、1つのスレーブアドレスに関するSA消去信号が1回ずつ送信されているが、1つのスレーブアドレスに関するSA消去信号が2回以上送信されてもよい。これにより、より確実にスレーブアドレスを消去することができる。
また、使用者がSA消去モードをマスタ15に実行させるためのスイッチ(ボタン)などが設けられてもよい。この場合、ステップS401の代わりに、そのスイッチが押されたか否かが判定される。スイッチが押された場合に、ステップS402〜S406が実行される。
In this example, the SA erase signal for one slave address is transmitted once, but the SA erase signal for one slave address may be transmitted twice or more. This makes it possible to erase the slave address more reliably.
In addition, a switch (button) or the like may be provided for the user to cause the master 15 to execute the SA deletion mode. In this case, instead of step S401, it is determined whether the switch is pressed. When the switch is pressed, steps S402 to S406 are performed.

図13は、実施形態に係る水回り機器のスレーブの通常モードを例示するフローチャートである。
図13は、マスタ15と相互に通信を行う複数のスレーブ12、13、14の1つの動作を表している。
通常モードにおいて、スレーブは、マスタ15からの通常信号を受信すると(ステップS501:Yes)、通常信号に基づいた処理を実行する(ステップS502)。例えば、スレーブは、ライト信号に基づいて検出処理を実行し、リード信号に基づいて検出処理の結果をマスタ15に送信する。
FIG. 13 is a flowchart illustrating the normal mode of the watercraft equipment slave according to the embodiment.
FIG. 13 shows an operation of one of the plurality of slaves 12, 13, 14 which communicate with the master 15.
In the normal mode, when the slave receives a normal signal from the master 15 (step S501: Yes), the slave executes processing based on the normal signal (step S502). For example, the slave executes detection processing based on the write signal, and transmits the result of the detection processing to the master 15 based on the read signal.

スレーブは、マスタ15からの通常信号を受信せず(ステップS501:No)、マスタ15からSA消去信号を受信した場合(ステップS503:Yes)、付与されたスレーブアドレスの情報をフラッシュメモリから消去する(ステップS504)。その後、スレーブは、リセットされ、SA付与モードに移行する(ステップS505)。
スレーブが、マスタ15からの通常信号を受信せず(ステップS501:No)、SA消去信号も受信しなかった場合(ステップS503:No)、スレーブは、検出処理やSA付与モードへ移行することなく、通常モードが終了する。
When the slave does not receive the normal signal from the master 15 (step S501: No) and receives the SA erase signal from the master 15 (step S503: Yes), it erases the information of the assigned slave address from the flash memory. (Step S504). After that, the slave is reset and shifts to the SA provision mode (step S505).
When the slave does not receive the normal signal from the master 15 (step S501: No) and also does not receive the SA erase signal (step S503: No), the slave does not shift to the detection process or the SA provision mode. , Normal mode ends.

以上では、スレーブが、探査信号に対してランダムに返信する場合に関して説明した。ただし、スレーブは、探査信号に対してランダムに返信しなくてもよい。スレーブが探査信号に対してランダムに返信しない場合の、スレーブのSA付与モードの一例について、図14を参照して説明する。   The above has described the case where the slave returns a random response to the search signal. However, the slave does not have to respond randomly to the search signal. An example of the slave SA provision mode in the case where the slave does not randomly reply to the search signal will be described with reference to FIG.

図14は、実施形態に係る水回り機器のスレーブアドレス付与モードを例示するフローチャートである。
図14は、マスタ15と相互に通信を行う複数のスレーブ12、13、14の1つの動作を表している。SA付与モードにおいて、スレーブは、自身が有するフラッシュメモリを参照し、スレーブアドレスが記憶済みか否か、すなわちスレーブアドレスが付与済みか否かを判断する(ステップS601)。
FIG. 14 is a flowchart illustrating a slave addressing mode of the watercraft apparatus according to the embodiment.
FIG. 14 shows one operation of the plurality of slaves 12, 13, 14 communicating with the master 15. In the SA application mode, the slave refers to its own flash memory and determines whether the slave address has already been stored, that is, whether the slave address has been allocated (step S601).

スレーブにスレーブアドレスが付与されていた場合(ステップS601:Yes)、SA付与モードは終了する。スレーブにスレーブアドレスが付与されていない場合(ステップS601:No)、スレーブは、基本処理を実行する(ステップS602)。この基本処理は、スレーブが通常モードのステップS502において実行する処理と同様の処理であり、この例では、センサによる物体の検出処理である。   If the slave address is assigned to the slave (step S601: Yes), the SA assignment mode ends. If the slave address is not assigned to the slave (step S601: No), the slave executes basic processing (step S602). This basic process is the same process as the process executed by the slave in step S502 in the normal mode, and in this example, is an object detection process by the sensor.

その後、スレーブは、マスタ15からの探査信号を受信すると(ステップS603:Yes)、ステップS602の基本処理がアクティブであるか否かを判断する(ステップS604)。この例では、基本処理がアクティブとは、物体が検出されていることである。スレーブは、基本処理がアクティブでない場合(ステップS604:No)、すなわち物体が検出されていない場合(物体無しの場合)、ステップS602、S603を繰り返す。スレーブは、基本処理がアクティブな場合(ステップS604:Yes)、すなわち物体が検出されている場合(物体有りの場合)、誤り検出符号を付与した信号を返信する(ステップS605)。その後、スレーブは、ステップS606〜S608を実行する。なお、ステップS605〜S608は、それぞれ、図7に関して説明したステップS204〜S207と同様である。   Thereafter, when the slave receives the search signal from the master 15 (step S603: Yes), the slave determines whether the basic process of step S602 is active (step S604). In this example, active basic processing means that an object is detected. The slave repeats steps S602 and S603 when the basic process is not active (step S604: No), that is, when an object is not detected (when there is no object). When the basic process is active (step S604: Yes), that is, when an object is detected (when there is an object), the slave returns a signal to which an error detection code is added (step S605). Thereafter, the slave executes steps S606 to S608. Steps S605 to S608 are the same as steps S204 to S207 described with reference to FIG. 7, respectively.

このように、水回り機器1に接続される複数のスレーブのそれぞれは、探査信号に対して返信するか否かを、検出処理の結果に基づいて決定してもよい。これにより、同時に2以上のスレーブが返信することを抑制できる。例えば、使用者は、探査信号を返信させたいスレーブのみに手をかざして物体を検出させることなどによって、探査信号に対して返信するスレーブを選択することができる。   As described above, each of the plurality of slaves connected to the plumbing device 1 may determine whether to reply to the search signal based on the result of the detection process. This can suppress two or more slaves from replying at the same time. For example, the user can select a slave to reply to the search signal by, for example, holding the hand only on the slave to which the search signal is to be sent back and causing the object to be detected.

図15は、実施形態に係る水回り機器を例示するブロック図である。
図15に示す実施形態に係る水回り機器1aは、入力装置25a、入力装置25b、制御装置5a、及び出力デバイス22aを有する。
例えば、入力装置25a、入力装置25bは、それぞれ、使用者Mの手などの物体を検出できるセンサである。出力デバイス22aは、例えば、水栓装置の吐水口からの吐水の開始と吐水の停止とを行う電磁バルブである。出力デバイスは、ポンプ、ファン、ヒータなどの、その他の機器であってもよい。
FIG. 15 is a block diagram illustrating a watercraft apparatus according to an embodiment.
The water circulation apparatus 1a according to the embodiment shown in FIG. 15 has an input device 25a, an input device 25b, a control device 5a, and an output device 22a.
For example, each of the input device 25a and the input device 25b is a sensor capable of detecting an object such as the hand of the user M. The output device 22a is, for example, an electromagnetic valve that performs start of spouting from the spout of the faucet device and stop of spouting. The output device may be another device such as a pump, a fan, a heater or the like.

水回り機器1aの制御方式は、マスタ/スレーブ方式であり、制御装置5aがシステムの制御をつかさどるマスタ15aとなる。入力装置25a、入力装置25bは、マスタ15aによって制御されるスレーブ12a、スレーブ12bとなる。マスタ15aは、スレーブ12a及びスレーブ12bからの検出処理の結果に基づいて、出力デバイス22aの動作を制御する。   The control system of the laundering equipment 1a is a master / slave system, and the control device 5a becomes a master 15a that controls the control of the system. The input device 25a and the input device 25b are the slave 12a and the slave 12b controlled by the master 15a. The master 15a controls the operation of the output device 22a based on the results of detection processing from the slave 12a and the slave 12b.

例えば、2つのセンサ(スレーブ12a及びスレーブ12b)の少なくとも一方が、物体を検出すると、マスタ15aは、電磁バルブ(出力デバイス22a)を開く。このように、実施形態においては、複数のスレーブの処理結果に基づいて、1つの出力デバイスの動作が制御されてもよい。   For example, when at least one of the two sensors (slave 12a and slave 12b) detects an object, the master 15a opens the solenoid valve (output device 22a). Thus, in the embodiment, the operation of one output device may be controlled based on the processing results of a plurality of slaves.

この場合には、スレーブ12aに付与されるスレーブアドレスとスレーブ12bに付与されるスレーブアドレスとが、互いに入れ替わってもよい。   In this case, the slave address given to the slave 12a and the slave address given to the slave 12b may be interchanged.

図16は、実施形態に係る水回り機器を例示するブロック図である。
図16に示す実施形態に係る水回り機器1bは、入力装置25c、入力装置25d、制御装置5b、出力デバイス22c、及び出力デバイス22dを有する。
例えば、入力装置25c、入力装置25dは、それぞれ、使用者Mの手などの物体を検出できるセンサである。例えば、出力デバイス22c、出力デバイス22dは、それぞれ、水栓装置の吐水口からの吐水の開始と吐水の停止とを行う電磁バルブである。
FIG. 16 is a block diagram illustrating a watercraft apparatus according to an embodiment.
The water circulation apparatus 1b according to the embodiment illustrated in FIG. 16 includes an input device 25c, an input device 25d, a control device 5b, an output device 22c, and an output device 22d.
For example, each of the input device 25c and the input device 25d is a sensor capable of detecting an object such as the hand of the user M. For example, the output device 22c and the output device 22d are electromagnetic valves that perform the start of water discharge from the water discharge port of the water faucet device and the stop of water discharge, respectively.

水回り機器1bの制御方式は、マスタ/スレーブ方式であり、制御装置5bがシステムの制御をつかさどるマスタ15bとなる。入力装置25c、入力装置25dは、マスタ15bによって制御されるスレーブ12c、スレーブ12dとなる。   The control system of the water supply apparatus 1b is a master / slave system, and the control device 5b becomes a master 15b in charge of controlling the system. The input device 25c and the input device 25d are the slave 12c and the slave 12d controlled by the master 15b.

水回り機器1bの構成は、例えば、連立して設けられた複数の水栓装置が1つのマスタ15bによって制御される構成に相当する。すなわち、例えば、水回り機器1bは、水栓装置201と、水栓装置202と、を有する。水栓装置201は、スレーブ12cと出力デバイス22cとを有する。水栓装置202は、水栓装置201に隣接して設けられており、スレーブ12dと出力デバイス22dとを有する水栓装置202と、を有する。出力デバイス22cは、水栓装置201における吐水/止水を制御する電磁バルブであり、出力デバイス22bは、水栓装置202における吐水/止水を制御する電磁バルブである。   The configuration of the water circulation apparatus 1b corresponds to, for example, a configuration in which a plurality of faucet devices provided in series are controlled by one master 15b. That is, for example, the plumbing device 1 b includes the water faucet device 201 and the water faucet device 202. The faucet device 201 has a slave 12c and an output device 22c. The faucet device 202 is provided adjacent to the faucet device 201, and includes a faucet device 202 having a slave 12d and an output device 22d. The output device 22 c is an electromagnetic valve that controls water discharge / water stop in the faucet device 201, and the output device 22 b is an electromagnetic valve that controls water discharge / water stop in the water faucet device 202.

マスタ15aは、スレーブ12cからの検出処理の結果に基づいて、出力デバイス22cの動作を制御し、スレーブ12dからの検出処理の結果に基づいて、出力デバイス22dの動作を制御する。言い換えれば、スレーブ12cと出力デバイス22cとが連動し、スレーブ12dと出力デバイス22dとが連動する。   The master 15a controls the operation of the output device 22c based on the result of the detection process from the slave 12c, and controls the operation of the output device 22d based on the result of the detection process from the slave 12d. In other words, the slave 12c and the output device 22c interlock with each other, and the slave 12d and the output device 22d interlock with each other.

スレーブ12cと出力デバイス22cとを連動させるために、スレーブ12cには、出力デバイス22cに対応したスレーブアドレスが付与される。また、スレーブ12dと出力デバイス22dとを連動させるために、スレーブ12dには、出力デバイス22dに対応したスレーブアドレスが付与される。   In order to interlock the slave 12c and the output device 22c, a slave address corresponding to the output device 22c is assigned to the slave 12c. Further, in order to interlock the slave 12d with the output device 22d, a slave address corresponding to the output device 22d is assigned to the slave 12d.

マスタ15bが、自動SA決定モードにおいて付与するスレーブアドレスの順番は予め定められている。例えば、マスタ15bは、若い番号のスレーブアドレスから順番にスレーブアドレスを付与する。   The order of slave addresses to be assigned by the master 15b in the automatic SA determination mode is predetermined. For example, the master 15b assigns slave addresses in order from the slave address with the lowest number.

例えば、マスタ15bが、出力デバイス22cに対応したスレーブアドレス、出力デバイス22dに対応したスレーブアドレス、の順にスレーブアドレスを付与する場合を考える。この場合、施工者は、スレーブ12cにマスタ15bからの探査信号に対して返信させ、その後に、スレーブ12dにマスタ15bからの探査信号に対して返信させる。例えば、スレーブ12cを水回り機器1bに接続し、スレーブ12cが探査信号に対して返信した後に、スレーブ12dを水回り機器1bに接続する。あるいは、図14に関して説明した例においては、スレーブ12cの基本処理をアクティブにし、スレーブ12cが探査信号に対して返信した後に、スレーブ12dの基本処理をアクティブにする。このように、マスタ15bが付与するスレーブアドレスの順番と、複数のスレーブがマスタ15bからの探査信号に対して返信する順番と、を対応させる。これにより、出力デバイス22cに対応したスレーブアドレスをスレーブ12cに付与し、出力デバイス22dに対応したスレーブアドレスをスレーブ12dに付与することができる。   For example, consider a case where the master 15b assigns slave addresses in the order of the slave address corresponding to the output device 22c and the slave address corresponding to the output device 22d. In this case, the builder causes the slave 12c to reply to the search signal from the master 15b, and then causes the slave 12d to reply to the search signal from the master 15b. For example, the slave 12c is connected to the water circulation apparatus 1b, and after the slave 12c returns a response to the search signal, the slave 12d is connected to the water circulation apparatus 1b. Alternatively, in the example described with reference to FIG. 14, the basic process of the slave 12c is activated, and after the slave 12c responds to the search signal, the basic process of the slave 12d is activated. As described above, the order of the slave addresses assigned by the master 15 b corresponds to the order in which the plurality of slaves respond to the search signal from the master 15 b. Thus, the slave address corresponding to the output device 22c can be assigned to the slave 12c, and the slave address corresponding to the output device 22d can be assigned to the slave 12d.

以上、実施の形態について例示をした。しかし、本発明はこれらの記述に限定されるものではない。
前述の実施の形態に関して、当業者が適宜、構成要素の追加、削除若しくは設計変更を行ったもの、または、工程の追加、省略若しくは条件変更を行ったものも、本発明の特徴を備えている限り、本発明の範囲に包含される。
また、前述した各実施の形態が備える各要素は、可能な限りにおいて組み合わせることができ、これらを組み合わせたものも本発明の特徴を含む限り本発明の範囲に包含される。
The embodiments have been illustrated above. However, the present invention is not limited to these descriptions.
Those skilled in the art can appropriately add, delete, or change design elements of the above-described embodiment, or can add, omit, or change the process of the components, to which the features of the present invention are also provided. As long as it is included in the scope of the present invention.
Moreover, each element with which each embodiment mentioned above is provided can be combined as much as possible, and what combined these is also included in the scope of the present invention as long as the feature of the present invention is included.

1、1a、1b 水回り機器、 2 吐水部、 3 石鹸水吐出部、 4 乾燥部、 5、5a、5b 制御装置、 12、12a〜12d、13、14 スレーブ、 15、15a、15b マスタ、 20 水栓、 20a 通水路、 20b 吐水口、 21 給水路、 22 電磁バルブ、 22a〜22d 出力デバイス、 23 定流量弁、 24 止水弁、 25、25a〜25d 入力装置、 30 吐出栓、 30a ノズル、 31 供給路、 32 ポンプ、 33 石鹸水タンク、 34 入力装置、 40 本体部、 40a エアダクト、 41 通風管、 42 ファン・ヒータユニット、 42a ファン、 42b ヒータ、 43 入力装置、 100 洗面台、 100a ボウル部、 101 手、 201 水栓装置、 202 水栓装置、 SDA データ送信ライン、 R1−R3 リード信号、 SCL クロック供給ライン、 W1−W3 ライト信号、   DESCRIPTION OF SYMBOLS 1, 1a, 1b Water supply apparatus, 2 Water discharge part, 3 Soap water discharge part, 4 Drying part, 5, 5a, 5b Control apparatus, 12, 12a-12d, 13, 14 slave, 15, 15a, 15b Master, 20 Water faucet, 20a water flow passage, 20b spout, 21 water supply passage, 22 solenoid valve, 22a-22d output device, 23 constant flow valve, 24 water shutoff valve, 25, 25a-25d input device, 30 discharge plug, 30a nozzle, Reference Signs List 31 supply path, 32 pumps, 33 soapy water tanks, 34 input devices, 40 main units, 40a air ducts, 41 air ducts, 42 fans and heater units, 42a fans, 42b heaters, 43 input devices, 100 washbasins, 100a bowl portions , 101 hands, 201 water faucet device, 202 water faucet device, SDA data transmission line, R1-R3 read signal, SCL clock supply line, W1-W3 write signal,

Claims (4)

複数のスレーブと、
前記複数のスレーブと通信し、前記複数のスレーブを制御するマスタと、
を備えた水回り機器であって、
前記マスタは、前記複数のスレーブのそれぞれに探査信号を送信し、前記複数のスレーブのうち、前記探査信号に対して返信した前記スレーブのスレーブアドレスを決定する自動スレーブアドレス決定モードを有し、
前記自動スレーブアドレス決定モードにおいて、前記マスタは、前記探査信号を複数回送信し、前記複数のスレーブのそれぞれは、前記複数回の前記探査信号のそれぞれに対して返信するか否かをその都度ランダムに決定し、前記複数のスレーブのすべてが前記探査信号に対して返信したと前記マスタが判断すると前記自動スレーブアドレス決定モードを終了することを特徴とする水回り機器。
With multiple slaves,
A master that communicates with the plurality of slaves and controls the plurality of slaves;
A water rig equipped with
The master has an automatic slave address determination mode for transmitting a probe signal to each of the plurality of slaves and determining a slave address of the slave which has returned a reply to the probe signal among the plurality of slaves,
In the automatic slave address determination mode, the master transmits the search signal a plurality of times, and each of the plurality of slaves randomly determines whether or not to reply to each of the plurality of the search signals. And the automatic slave address determination mode is ended when the master determines that all of the plurality of slaves have returned in response to the search signal.
前記複数のスレーブのそれぞれは、前記探査信号に対して、誤り検出符号を付与した信号を返信することを特徴とする請求項1記載の水回り機器。   The watercraft device according to claim 1, wherein each of the plurality of slaves returns a signal to which an error detection code is added to the search signal. 前記複数のスレーブのそれぞれは、物体の検出処理を行い、前記探査信号に対して返信するか否かを前記検出処理の結果に基づいて決定し、物体が検出されているときは、前記探査信号に対して、誤り検出符号を付与した信号を返信することを特徴とする請求項1記載の水回り機器。   Each of the plurality of slaves performs an object detection process, determines whether or not to reply to the search signal based on the result of the detection process, and when an object is detected, the search signal 2. A watercraft apparatus according to claim 1, wherein a signal to which an error detection code is added is returned. 前記マスタは、前記スレーブに付与された前記スレーブアドレスをリセットするリセットモードを有することを特徴とする請求項1〜のいずれか1つに記載の水回り機器。 The watercraft device according to any one of claims 1 to 3 , wherein the master has a reset mode for resetting the slave address assigned to the slave.
JP2018028883A 2018-02-21 2018-02-21 Water supply equipment Active JP6536705B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018028883A JP6536705B1 (en) 2018-02-21 2018-02-21 Water supply equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018028883A JP6536705B1 (en) 2018-02-21 2018-02-21 Water supply equipment

Publications (2)

Publication Number Publication Date
JP6536705B1 true JP6536705B1 (en) 2019-07-03
JP2019146034A JP2019146034A (en) 2019-08-29

Family

ID=67144656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018028883A Active JP6536705B1 (en) 2018-02-21 2018-02-21 Water supply equipment

Country Status (1)

Country Link
JP (1) JP6536705B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021078829A (en) * 2019-11-20 2021-05-27 コイト電工株式会社 Automatic washing device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7482674B2 (en) 2020-04-17 2024-05-14 株式会社Lixil Wash basin

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021078829A (en) * 2019-11-20 2021-05-27 コイト電工株式会社 Automatic washing device
JP7386677B2 (en) 2019-11-20 2023-11-27 コイト電工株式会社 automatic washing device

Also Published As

Publication number Publication date
JP2019146034A (en) 2019-08-29

Similar Documents

Publication Publication Date Title
JP6536705B1 (en) Water supply equipment
US10233621B2 (en) Smart water supply valve system and method for controlling same
JP2009161901A (en) Facility apparatus
JP2017133243A (en) Hand wash device
JP6819873B2 (en) Water supply equipment
KR101418508B1 (en) controller of toilet bowl
JP2013072261A (en) Toilet bowl washing apparatus
JP6654449B2 (en) Toilet bowl equipment
JP5704499B2 (en) Toilet bowl cleaning device
KR102011712B1 (en) Water saving type auto faucet
JP7135891B2 (en) TOILET SEAT DEVICE AND TOILET SEAT DEVICE REMOTE OPERATION PROGRAM
CN113616121A (en) Cleaning robot control method, cleaning robot, and computer-readable storage medium
JP6119163B2 (en) Toilet bowl cleaning device
JP7427164B2 (en) Bathroom vanity
JP2020136812A (en) Water handling apparatus
JP2020007845A (en) Water discharge device
JP2018159199A (en) Sanitary washing device
JP6819021B2 (en) Toilet device
JP6124198B2 (en) Water discharge system
JP2018135650A (en) Automatic faucet system
JP2022082148A (en) Bathtub washing device
JP2021069051A (en) Water area apparatus management system
JP2023100395A (en) water heater system
JPH01244034A (en) Stool cleaner
JP2022042018A (en) Bathroom cleaning system and bathroom cleaning method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180910

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20180910

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20180920

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181024

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190305

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190416

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: 20190507

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190520

R150 Certificate of patent or registration of utility model

Ref document number: 6536705

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150