本論文提出以Arduino控制器為核心並結合Android平台的智慧型手機為終端使用者設備的智慧家庭遠端監控系統,此系統的設計模式是以主從式架構模型(Client–Server Model)所設計,Arduino控制器為伺服端,Android平台的智慧型手機為用戶端,兩者的通訊是以Socket的方式透過網際網路來傳遞資料,而在資料傳輸部份,則是透過自行定義的通訊協定進行資料傳輸。在伺服端部份,主要包含Arduino控制器及其擴充板與智慧家庭遠端監控系統所需之各式感測與驅動元件。控制器主要負責接收來自用戶端的控制指令,指令經控制器程式解析後,則會執行收集感測元件的訊號或數據並傳回至用戶端或是驅動相對應的驅動元件。另外,在用戶端部份,則是使用Android平台的智慧型手機作為系統的終端使用者設備,其上執行一套自行開發的Android應用程式軟體,使用者透過此軟體,經由無線或行動網路可遠端監控家中的電器設備、大門及得知家中的即時溫溼度資訊等,另外系統亦提供防盜、防災及警報等功能,當有異常事件發生時,系統會透過網際網路發送簡訊和電子郵件並且驅動警報裝置來通知與警告使用者。
This paper proposes the development of the remote supervisory system for smart home based on the combination of Arduino controller and Android-based smartphone as the user terminal device. The design of this system is based on the Client-Server Model that Arduino controller is the server and Android-based smartphone is the client. The communication between the server and the client relies on the socket to transmit data through the Internet. As regard the data transmission, it functions via self-defined communication protocol. The server is consisted of the Arduino controller, its expansion shield, and various sensor and drive components required by the remote supervisory system for smart home. The controller mainly in charge of receiving the control commands from the client, when the command had been decoded by the controller process, who will execute collect the signals or data of sensor components. then it will feedback to the client or driving the corresponding drive device. In addition, the client of this system is the Android-based smartphone, which served as the user terminal device. With running a self-developed Android application on this system that enable the users to remote monitor the appliances and door, together with accessing to immediate temperature and humidity information of their residences through wireless and mobile network. Furthermore, the system also provides the functions such as burglar-proof, fire prevention, and alarm function. When the accident occurred that the system will send sms and e-mail through Internet, and activated the alarm to notify and warn the user.