隨著科技日新月異的發展以及網路的普及化,現在許多家庭都已經有兩台以上的電腦,人們對日常生活中的要求越來越高,不僅僅滿足於目前居家的生活模式,漸漸的希望電器能夠擁有自動化的功能,包括家庭電能管理、家電遠端控制等,如此的需求日漸上升,因此家庭自動化勢必成為未來的熱門的發展方向。ZigBee是最近新興的無線通訊協定,其特色是低成本、低功率、低傳輸率。而在許多的家庭自動化的應用當中,並不需要高速傳輸(例如:開關控制、溫溼度感測等),ZigBee就是根據此目的所制定出來的無線協定。UPnP(Universal Plug and Play)是UPnP Forum所提出的標準,目的是希望不需要任何設定,就可以與其他裝置相互通訊控制,其使用XML讓控制點學習命令,因為有隨插即用特性,故此技術適合於家庭自動化系統。 本論文設計與實現基於UPnP與ZigBee的家庭自動化系統,首先實作了多個ZigBee無線節點,再來了解ZigBee與UPnP的通訊協定並制定自定義的MSG傳送格式及XML檔,最後將系統實現在嵌入式系統當中,利用嵌入式系統做為ZigBee的管理伺服器,並連接上網路,使得整個系統不需要經由電腦就可以獨立運作。而在管理方面,不管使用者任何地方,只需要透過支援上網的IE瀏覽器的裝置(PC、PDA、手機等),便可以對家裡的此系統進行管理與監控。
With the rapid development of technologies and the popularization of the Internet, many families have two or more personal computers. In the daily living environment, people do not satisfy the functions provided by the current household appliances gradually. They hope that the household appliances have automation features, such as power management, remote control, etc. Thus, the home automation technology will become the next hot development direction. The wireless network protocol of ZigBee is emerging in recent years. Its characteristics include: low-cost, low-power and low transmission rate. In many home automation applications, such as switch control, temperature and humidity control, etc. do not require high speed data transmission. ZigBee is developed for these purposes. On the wired network, UPnP (Universal Plug and Play) is promulgated by the UPnP Forum. The main purpose of UPnP is that devices can communicate with other devices without any human intervene. Because of the features of Plug and Play, the UPnP is also suitable for home automation systems. In this thesis, the UPnP-ZigBee-based home automation systems is designed and developed. First, the UPnP and ZigBee protocols were studied. Custom ZigBee messge formsts and UPnP XML files are designed. Several ZigBee wireless nodes are then developed. Finally, the home automation systems developed in embedded system is realized. The embedded system is designed as a ZigBee network management server, and connects to the Internet. Users can manage this system anywhere with the devices which support IE browser (PC, PDA, phone, etc.).