TWI516887B - Flexible network building method for remote-programmable monitoring and controlling system applied to smart home - Google Patents

Flexible network building method for remote-programmable monitoring and controlling system applied to smart home Download PDF

Info

Publication number
TWI516887B
TWI516887B TW103108743A TW103108743A TWI516887B TW I516887 B TWI516887 B TW I516887B TW 103108743 A TW103108743 A TW 103108743A TW 103108743 A TW103108743 A TW 103108743A TW I516887 B TWI516887 B TW I516887B
Authority
TW
Taiwan
Prior art keywords
host
node
master
smart
control command
Prior art date
Application number
TW103108743A
Other languages
Chinese (zh)
Other versions
TW201535077A (en
Inventor
楊庭瑋
Original Assignee
和英創技有限公司
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 和英創技有限公司 filed Critical 和英創技有限公司
Priority to TW103108743A priority Critical patent/TWI516887B/en
Publication of TW201535077A publication Critical patent/TW201535077A/en
Application granted granted Critical
Publication of TWI516887B publication Critical patent/TWI516887B/en
Priority to US15/263,269 priority patent/US10079751B2/en

Links

Description

用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法 Flexible network construction method for remote programmable touch control system of smart home

本發明是關於一種彈性網路建置方法,尤其是關於一種用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法。 The present invention relates to a flexible network construction method, and more particularly to an elastic network construction method for a remote programmable touch control system of a smart home.

在習知智能家居(Smart Home)系統中,所有聯網電器必須透過特定、專用之中央伺服主機的控制才能運作,且這些聯網電器與此中央伺服主機在軟(韌)、硬體上通常會有所差異。例如,在此中央伺服主機中必須事先儲存預先設定好的控制程序、此中央伺服主機本身不屬於聯網電器、這些聯網電器必須事先儲存與此中央伺服主機之控制程序相對應的處理程序等等。因此,這些聯網電器與此中央伺服主機的運用彈性極低,其無法立即因應使用者的需求而做出不同的控制變化。舉例來說,若此中央伺服主機最初被設定為用以分別控制聯網電器A與聯網電器B的作動,但之後使用者欲透過此中央伺服主機來同時控制聯網電器A與聯網電器B兩者時,使用者必須先請此智能家居系統的供應商重新設定好此中央伺服主機的控制程序以及這些聯網電器的處理程序,之後才可透過此中央伺服主機同時控制聯網電器A與聯網電器B。此外,對於聯網裝置的新增或變更,也必須先藉助此智能家居系統的供應商執行、或需特殊輔助裝置及特別技能以進行設置的變更。由於此中央伺服主機之設定程序的修改通常必須藉助此專業領域人士(例如此智能家居系統的供應商)、或需額外以專門輔助裝置來進行, 所以此對於一般使用者(尤其是年長者與孩童)來說極為不便,且對於此中央伺服主機的維護亦是如此。此外,這些聯網電器必須配合特定、專用的中央伺服主機一起使用,亦即,這些聯網電器在跨到其他網域的情況下是無法與其他中央伺服主機相容,因此難以融入日漸多元的智能家居系統應用。 In the Smart Home system, all connected appliances must be operated through the control of a specific, dedicated central servo host, and these networked appliances and the central servo host usually have soft (hard) and hardware. The difference. For example, in the central servo host, a preset control program must be stored in advance, and the central servo host itself is not a networked electrical appliance. These networked electrical appliances must store a processing program corresponding to the control program of the central servo host in advance. Therefore, the flexibility of these networked appliances and the central servo host is extremely low, and it is not possible to immediately make different control changes in response to the needs of the user. For example, if the central servo host is initially set to separately control the operation of the networked electrical appliance A and the networked electrical appliance B, then the user wants to simultaneously control both the networked electrical appliance A and the networked electrical appliance B through the central servo host. The user must first ask the supplier of the smart home system to reset the control program of the central servo host and the processing procedures of the networked electrical appliances, and then the networked electrical appliance A and the networked electrical appliance B can be simultaneously controlled through the central servo host. In addition, new or changed networked devices must first be implemented by the vendor of the smart home system, or require special auxiliary devices and special skills to make settings changes. Since the modification of the setting procedure of the central servo host usually has to be performed by a person in the professional field (for example, a supplier of the smart home system), or an additional auxiliary device is required. Therefore, this is extremely inconvenient for the average user (especially the elderly and children), and the maintenance of the central servo host is also the same. In addition, these connected appliances must be used in conjunction with a specific, dedicated central servo host. That is, these connected appliances cannot be compatible with other central servo hosts when they cross other domains, making it difficult to integrate into increasingly diverse smart homes. system applications.

因此,亟需一種用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其可讓使用者以更為便利且更具彈性的方式來建置自己專屬的智能家居環境,並且可讓使用者透過此遠端可程式化監視控制系統而對與此遠端可程式化監視控制系統連結的一或多個家用電器及/或一或多個偵測裝置進行遠端的控制與監視及建立前述控制與監視可程式連結互動的智慧化環境。 Therefore, there is a need for an elastic network construction method for a remote programmable touch control system of a smart home, which allows users to build their own smart home environment in a more convenient and flexible manner. And allowing the user to remotely access one or more home appliances and/or one or more detection devices coupled to the remote programmable control system via the remote programmable control system Control and monitor and establish the intelligent environment in which the aforementioned control and monitoring can be programmed to interact.

為解決上述問題,依照本發明之一實施例,提供一種用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,該遠端可程式化監視控制系統包含一智網裝置、一區網路由器、以及與該區網路由器通訊的一主控主機,該方法包含下列步驟:透過該主控主機發送主控主機信標,其中該主控主機信標包含該區網路由器的路由連線資料;該智網裝置接收從該主控主機所發送的該主控主機信標,以藉由該路由連線資料登入該區網路由器;將該主控主機登入該智網裝置;透過該主控主機將一控制命令發送給該智網裝置;該智網裝置接收該控制命令並執行該控制命令的內容;以及該智網裝置在執行該控制命令的內容之後,將執行狀態訊息回覆給該主控主機。 In order to solve the above problems, according to an embodiment of the present invention, a flexible network construction method for a remote programmable touch control system of a smart home is provided, and the remote programmable control system includes a smart network device. a one-area network router and a master host communicating with the area network router, the method comprising the steps of: sending a master host beacon through the master host, wherein the master host beacon comprises the network router Routing the connection data; the smart network device receives the master host beacon sent from the master host to log in to the network router by using the route connection data; and logging the master host to the smart network device; Sending, by the master host, a control command to the smart network device; the smart network device receiving the control command and executing the content of the control command; and the smart network device executing the status message after executing the content of the control command Reply to the master host.

依照本發明之另一實施例,提供一種用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,該遠端可程式化監視控制系統包含複數個智網裝置、一區網路由器、以及與該區網路由器通訊的一主控主機,該方法包含下列步驟:透過該主控主機發送主控主機信標,其中該主控主機信標包含該區網路由器的路由連線資料;所有該智網裝置接收從該主控主機所發送的該主控主機信標,以藉由該路由連線資料登入該區網路由器,其中所有該智網裝置各自具有主控通訊通道與節點通訊通道;任意指定該複數個智網裝置的其中一者作為區域主機,而其餘的該智網裝置作為節點 從機,其中該區域主機的主控通訊通道與節點通訊通道設定為開啟,該節點從機的節點通訊通道設定為開啟,該節點從機的主控通訊通道設定為關閉,以及其中在該區域主機與該節點從機之間是透過該節點通訊通道,使用輪詢方式或廣播方式以呼號進行通訊解析;將該主控主機登入該區域主機,以使該主控主機標定該區域主機的位址並將節點從機身分回應命令發送給該區域主機,其中該區域主機透過該主控通訊通道與該主控主機進行通訊;該區域主機接收從該主控主機所發送的該節點從機身分回應命令,繼而將該節點從機身分回應命令發布給所有該節點從機;以及該節點從機在接收該節點從機身分回應命令之後,透過該區域主機將節點從機狀態訊息回覆給該主控主機。 According to another embodiment of the present invention, an elastic network construction method for a remote programmable touch control system for a smart home is provided. The remote programmable control system includes a plurality of smart network devices and a region. a network router and a master host communicating with the network router, the method comprising the steps of: sending a master host beacon through the master host, wherein the master host beacon includes a route connection of the network router Data; all the smart network devices receive the master host beacon sent from the master host to log in to the network router by using the route connection data, wherein each of the smart network devices has a master communication channel and a node communication channel; arbitrarily designating one of the plurality of smart network devices as a regional host, and the remaining ones as the node The slave device, wherein the master communication channel and the node communication channel of the host in the area are set to be on, the node communication channel of the node slave is set to be on, the master communication channel of the node slave is set to be off, and wherein the area is in the area The host and the slave communicate with each other through the communication channel of the node, and use the polling mode or the broadcast mode to perform communication analysis by using a call sign; the master host is logged into the area host, so that the master host calibrates the bit of the area host. And sending a node from the body part response command to the area host, wherein the area host communicates with the master host through the master communication channel; the area host receives the node slave sent by the master host The identity responds to the command, and then the node is issued from the fuselage split response command to all the slaves of the node; and the slave slave receives the node from the fuselage to respond to the command, and then passes the slave state message through the regional host Reply to the master host.

依照本發明之方法,可讓一般家庭在不具相關技術能力的情況下也能以低成本且很容易的方式,自己動手(DIY)將自己的家改造為自己想要的智慧型居家環境。本發明之智網裝置就如同隨手可在大賣場買到的多頭插座一般,容易負擔,也容易使用,具備高度的自訂空間,將使「家」因為更符合「家人」的需要而融合。此可讓所謂智慧型住宅不再只與高價系統或是豪宅畫上等號,以破除普羅(prole)家庭期望跨入智慧家居時經常在技術或負擔成本上所遭遇的障礙。此亦使居家智慧化的實現得以自金字塔頂端向下擴展,從可以進入一般家庭後開始生根蔓延,創造新的居家需求,進而激發出更多智慧居家創意,讓更多的家庭都能往更安全、更舒適、更聰明的方向持續進化。承上述精神,本發明之智網裝置乃屬於泛用型裝置,其容易嵌入第三方控制器。當結合家電製造商所生產的家電產品時,可進一步讓本發明之智網裝置與其家電產品之控制器嵌合,即能使其家電產品升級為真正的智慧型家電。此外,因為本發明之智網裝置是屬於泛用型裝置,所以其製造成本可隨其產量規模的增加而驟降,進而降低當前智慧型家電與傳統家電的售價藩籬,此有助於智慧型家居的普及化。 According to the method of the present invention, the general family can transform their home into the smart home environment they want in a low-cost and easy way without the relevant technical ability. The smart network device of the present invention is like a multi-head socket that can be purchased at a hypermarket. It is easy to bear and easy to use, and has a high degree of custom space, which will make the "home" more suitable for the "family" needs. This allows so-called smart homes to no longer be equated with high-priced systems or luxury homes, in order to break the barriers that the prole family often encounters in technology or affordment costs when they enter smart homes. This also enables the realization of home smartness to expand from the top of the pyramid. After entering the general family, it will start to spread and create new home needs, which will inspire more wisdom and home creativity, so that more families can go further. Safe, more comfortable, and smarter directions continue to evolve. In view of the above, the smart network device of the present invention is a general-purpose device that is easily embedded in a third-party controller. When combined with the home appliance product produced by the home appliance manufacturer, the smart network device of the present invention can be further integrated with the controller of the home appliance product, that is, the home appliance product can be upgraded to a true smart home appliance. In addition, since the smart network device of the present invention is a general-purpose device, the manufacturing cost thereof may drop sharply as the output scale increases, thereby reducing the price barrier of current smart home appliances and traditional home appliances, which contributes to wisdom. The popularity of homes.

本發明之其他實施樣態以及優點可從以下與用以例示本發明原理範例之隨附圖式相結合的詳細說明而更顯明白。此外,為了不對本發明造成不必要的混淆,在本說明書中將不再贅述為人所熟知的元件與原理。 Other embodiments and advantages of the present invention will become more apparent from the detailed description of the accompanying drawings. In addition, elements and principles that are well known will not be described in the present specification in order to avoid obscuring the present invention.

圖1顯示依照本發明之一實施例之用於智能家居之遠端可程式化監視控制系統的示意圖。 1 shows a schematic diagram of a remote programmable control system for a smart home in accordance with an embodiment of the present invention.

圖2顯示依照本發明之一實施例之智網裝置的結構示意圖。 2 is a block diagram showing the structure of a smart network device in accordance with an embodiment of the present invention.

圖3顯示依照本發明之一實施例的區域主機設置流程。 3 shows a regional host setup flow in accordance with an embodiment of the present invention.

圖4顯示依照本發明之一實施例的智網自動佈建流程。 FIG. 4 shows a smart network automatic deployment process according to an embodiment of the present invention.

圖5顯示依照本發明之一實施例的智網可程式控制、監視流程A。 FIG. 5 shows a smart network programmable control and monitoring flow A according to an embodiment of the present invention.

圖6顯示依照本發明之一實施例的智網可程式控制、監視流程B。 FIG. 6 shows a smart network programmable control and monitoring process B according to an embodiment of the present invention.

圖1顯示依照本發明之一實施例之用於智能家居(Smart Home)之遠端可程式化監視控制系統的示意圖。如圖1所示,此遠端可程式化監視控制系統可包含架設在家中的一或多個智網裝置,使用者可任意指定這些智網裝置的其中一者來作為區域主機,其餘的智網裝置則作為節點從機,其中,區域主機可作為備位節點從機,反之,節點從機則可作為備位區域主機,因此這些智網裝置並無固定的主從關係,其可由使用者依實際需求來任意指定。 1 shows a schematic diagram of a remote programmable control system for a Smart Home in accordance with an embodiment of the present invention. As shown in FIG. 1, the remote programmable control system may include one or more smart network devices installed in the home, and the user may arbitrarily designate one of the smart network devices as the regional host, and the rest of the smart The network device acts as a node slave, wherein the regional host can act as a backup node slave, and the node slave can serve as a backup area host. Therefore, the smart network devices have no fixed master-slave relationship, and the user can be a user. Arbitrarily specified according to actual needs.

此遠端可程式化監視控制系統更包含架設在家中的區網路由器以及與此區網路由器通訊的主控主機。在本發明之實施例中,此主控主機可為可移動式主控主機,例如智慧型手機、智慧型手錶、筆記型電腦(notebook computer)、個人數位助理(PDA,personal digital assistant)、平板電腦等等,或者可為固定式主控主機,例如個人電腦(PC,personal computer)等等,但不限於此。這些智網裝置可連接一或多個家用電器(例如微波爐、冰箱、空調系統、計時器、錄影監視器等等,但不限於此)及/或一或多個偵測裝置(例如煙霧感測器、光線感測器、溫度計、濕度計等等,但不限於此)。 The remote programmable control system further includes a local area network router that is set up at home and a master host that communicates with the area network router. In the embodiment of the present invention, the master host can be a mobile master host, such as a smart phone, a smart watch, a notebook computer, a personal digital assistant (PDA), a tablet. The computer or the like may be a fixed master host, such as a personal computer (PC), etc., but is not limited thereto. These smart network devices can be connected to one or more household appliances (such as microwave ovens, refrigerators, air conditioning systems, timers, video monitors, etc., but not limited thereto) and/or one or more detection devices (eg, smoke sensing) , light sensors, thermometers, hygrometers, etc., but not limited to this).

藉由本發明之遠端可程式化監視控制系統,使用者可透過此主控主機遠端控制與監視這些家用電器及/或偵測裝置。此外,使用者可透過此主控主機,以可程式化方式設定這些家用電器及/或偵測裝置的連動執行關係。舉例來說,使用者可透過此主控主機,以可程式化方式設定微波爐、音響、煙霧感測器之間的連動執行關係,因此當使用者透過此主控主機發送控制命令時,可執行微波爐、音響、煙霧感測器的連動操作。 With the remote programmable control system of the present invention, the user can remotely control and monitor these home appliances and/or detection devices through the master host. In addition, the user can programmatically set the linked execution relationship of the home appliances and/or the detecting device through the master host. For example, the user can programmatically set the linkage execution relationship between the microwave oven, the sound, and the smoke sensor through the master host, so that when the user sends a control command through the master host, the executable Microcomputer, audio, smoke sensor linkage operation.

圖2顯示依照本發明之一實施例之智網裝置的結構示意圖。如圖2所示,此智網裝置可包含網路收發模組、微處理器、智網裝置狀態及設定接口、控制輸出端口、開關模組、下位控制器輸出埠、監視輸入端口、以及下位控制器輸入埠。下位控制器輸出埠可包含與數位控制電器設備(例如採用數位控制方式的微波爐等等,但不限於此)訊號連接的A/D處理器、以及與類比控制電器設備(例如採用類比控制方式的電燈等等,但不限於此)訊號連接的D/A處理器。下位控制器輸入埠可包含與類比輸出感測設備(例如類比溫度感測器等等,但不限於此)訊號連接的A/D處理器、以及與數位輸出感測設備(例如數位溫度感測器等等,但不限於此)訊號連接的數位接收口。智網裝置狀態及設定接口可與智網裝置狀態顯示器訊號連接,藉以顯示智網裝置的狀態。智網裝置狀態及設定接口可與主/從模式手動切換鍵訊號連接,以藉由主/從模式手動切換鍵的切換,將智網裝置指定作為區域主機或節點從機。開關模組可與數位控制電器設備的電器設備總電源以及類比控制電器設備的電器設備總電源訊號連接。此處的「訊號連接」是指由設備之間的訊號傳遞所形成連接關係,其不限於設備硬體之間的實體或非實體連接。 2 is a block diagram showing the structure of a smart network device in accordance with an embodiment of the present invention. As shown in FIG. 2, the smart network device may include a network transceiver module, a microprocessor, a smart network device status and setting interface, a control output port, a switch module, a lower controller output port, a monitor input port, and a lower position. The controller inputs 埠. The lower controller output 埠 may include an A/D processor connected to a digitally controlled electrical device (for example, a microwave oven using a digital control method, etc.), and an analog control electrical device (for example, an analog control method) Lights, etc., but not limited to this) D/A processor with signal connection. The lower controller input port may include an A/D processor connected to the analog output sensing device (eg, analog temperature sensor, etc., but not limited thereto), and a digital output sensing device (eg, digital temperature sensing) And so on, but not limited to the digital receiving port of the signal connection. The smart device status and setting interface can be connected to the smart device status display signal to display the status of the smart network device. The smart network device status and setting interface can be manually switched to the master/slave mode to switch the key signal to designate the smart network device as the regional host or the node slave by the master/slave mode manual switching key switching. The switch module can be connected with the total power supply of the electrical equipment of the digital control electrical equipment and the total power supply signal of the electrical equipment of the analog control electrical equipment. The "signal connection" herein refers to a connection relationship formed by signal transmission between devices, which is not limited to an entity or a non-physical connection between device hardware.

此網路收發模組可用以接收及發送訊號、資料等等。在本發明中,此網路收發模組可提供主控通訊通道與節點通訊通道。此主控通訊通道可為使用資訊鏈結嚴謹優先之傳輸協定,例如傳輸控制協定(TCP,transmission control protocol)通訊協定通道,但不限於此。此節點通訊通道可為使用資訊鏈結效率優先之傳輸協定,例如用戶數據報協定(UDP,user datagram protocol)通訊協定通道,但不限於此。在本發明中,作為區域主機之智網裝置的主控通訊通道與節點通訊通道皆被設定為開啟;以及作為節點從機之智網裝置的節點通訊通道被設定為開啟,而其主控通訊通道則被設定為關閉。區域主機是透過主控通訊通道而與主控主機進行通訊;而在區域主機與節點從機之間則是透過節點通訊通道,使用輪詢方式或廣播方式以呼號進行通訊解析。因此,節點從機不直接與主控主機進行通訊,即節點從機與主控主機之間的所有資料傳輸都必須透過區域主機。節點從機是透過節點通訊通道回應其身分與控制現況。此外,每一個智網裝置在這些通訊通道上所傳送的資料封包,均具備一致的協議格式,以利所有智 網裝置都能使用相同的資料解析程序。 The network transceiver module can be used to receive and transmit signals, data, and the like. In the present invention, the network transceiver module can provide a communication channel between the master communication channel and the node. The master communication channel may be a transmission protocol using a strict priority of the information link, such as a transmission control protocol (TCP) communication protocol channel, but is not limited thereto. The communication channel of the node may be a transmission protocol using information link efficiency priority, such as a user datagram protocol (UDP) communication protocol channel, but is not limited thereto. In the present invention, the master communication channel and the node communication channel of the smart network device as the regional host are all set to be turned on; and the node communication channel as the node slave smart network device is set to be turned on, and the master communication is set. The channel is set to off. The regional host communicates with the master host through the master communication channel; while the regional host and the node slave communicate with each other through the node communication channel, using the polling method or the broadcast method. Therefore, the node slave does not directly communicate with the master host, that is, all data transmission between the node slave and the master host must pass through the regional host. The node slave responds to its identity and control status through the node communication channel. In addition, the data packets transmitted by each of the smart network devices on these communication channels have a consistent protocol format for all wisdom. Both web devices can use the same data parsing program.

在圖2中,當智網裝置作為區域主機時,其網路收發模組可接收由主控主機以及節點從機發出的網路資料(即通訊資料),並且將其微處理器所產生的資料以及由節點從機發出的網路資料傳送至主控主機。相反地,當智網裝置作為節點從機時,其網路收發模組可接收由主控主機發出然後透過區域主機傳送的網路資料,並且將其微處理器所產生的資料傳送至區域主機,之後再由區域主機將此資料傳送至主控主機。 In FIG. 2, when the smart network device is used as a regional host, the network transceiver module can receive the network data (ie, communication data) sent by the master host and the node slave, and generate the data generated by the microprocessor. The data and the network data sent by the node slave are transmitted to the master host. Conversely, when the smart network device acts as a node slave, its network transceiver module can receive the network data sent by the master host and then transmitted through the regional host, and transmit the data generated by the microprocessor to the regional host. Then, the data is transmitted by the regional host to the master host.

微處理器可用以控制網路收發模組的收發運作。此外,微處理器可用以解析來自主控主機的網路資料,以判定此網路資料是否為有效(例如解析此網路資料中所含的檢查碼是否符合預設格式、此網路資料中所含的裝置授權碼是否正確等等),若判定為無效,則不理會此網路資料;若判定為有效,則進一步判定此網路資料是否與本身裝置有關(例如解析此網路資料中所含之目的IP位址字串是否與本身裝置被區網路由器分配到的IP一致等等);若判定與自身裝置無關,則不理會此網路資料,若判定與自身裝置有關,則執行此網路資料的內容。舉例來說,主控主機將控制命令發送給區域主機A,然後區域主機A進一步將來自主控主機的控制命令發布給節點從機B、C、D,此時,區域主機A與所有節點從機B、C、D的微處理器可解析來自主控主機的控制命令,以判定此控制命令是否為有效(例如比對此控制命令中所含的檢查碼、裝置授權碼等等),假設區域主機A與節點從機B、C判定此控制命令為無效,而節點從機D判定此控制命令為有效,則區域主機A與節點從機B、C將不理會此控制命令,節點從機D則進一步判定此控制命令是否與本身裝置有關(例如比對此控制命令中所含的目的IP位址字串等等),若判定與自身裝置無關,則不理會此控制命令,若判定與自身裝置有關,則執行此控制命令的內容,即,節點從機D的微處理器可透過控制輸出端口將控制命令傳輸至開關模組,藉以控制數位控制電器設備的電器設備總電源或類比控制電器設備的電器設備總電源的開啟與關閉,或者可透過控制輸出端口將控制命令傳輸至下位控制器輸出埠,然後將控制命令發送至數位控制電器設備或類比控制電器設備,藉以控制數位控制電器設備或類比控制電器設備的運作條件(例如執行微波爐功率或啟動時間的數位控制調整、電燈亮度的類比控制調整等等)。此外,當此控制命 令為身分回應命令時,節點從機D可將節點從機狀態訊息傳送至區域主機A,然後再透過區域主機A將來自節點從機D的節點從機狀態訊息回覆給主控主機。 The microprocessor can be used to control the transceiver operation of the network transceiver module. In addition, the microprocessor can be used to parse the network data from the master host to determine whether the network data is valid (for example, whether the check code included in the network data conforms to a preset format, and the network data is If the device authorization code is correct, etc., if it is determined to be invalid, the network data is ignored; if it is determined to be valid, it is further determined whether the network data is related to the device itself (for example, parsing the network data) Whether the included IP address string is consistent with the IP assigned by the local router to the local device, etc.); if it is determined that it is not related to its own device, the network data is ignored, and if it is determined to be related to its own device, execution is performed. The content of this network material. For example, the master host sends a control command to the regional host A, and then the regional host A further issues control commands of the self-control host to the node slaves B, C, and D. At this time, the regional host A and all the slaves The microprocessors of B, C, and D can parse the control commands from the master host to determine whether the control command is valid (eg, than the check code, device authorization code, etc. included in the control command), assuming the region Host A and node slaves B, C determine that the control command is invalid, and node slave D determines that the control command is valid, then regional host A and node slaves B, C will ignore this control command, node slave D Further determining whether the control command is related to the device itself (for example, than the destination IP address string included in the control command, etc.), if the determination is not related to the own device, the control command is ignored, and if the determination is made with itself Related to the device, the content of the control command is executed, that is, the microprocessor of the node slave D can transmit the control command to the switch module through the control output port, thereby controlling the electrical device of the digital control electrical device. The total power supply or analogy controls the opening and closing of the total power of the electrical equipment of the electrical equipment, or the control command can be transmitted to the output of the lower controller through the control output port, and then the control command is sent to the digital control electrical device or the analog control electrical device. By controlling the digital control of electrical equipment or analog control of the operating conditions of the electrical equipment (such as digital control adjustment of the microwave power or start-up time, analog control adjustment of the brightness of the light, etc.). In addition, when this control When the command is responded to the identity, the node slave D can transmit the node slave status message to the area host A, and then reply the node slave status message from the node slave D to the master host through the area host A.

所有智網裝置皆儲存有檢查碼表(table),此檢查碼表載有各種預設的檢查碼。網路資料中所含的檢查碼是登載於此網路資料封包內的固定位址處,檢查碼可例如用以代表整個封包的大意,例如0xFA12代表這個封包是屬於控制命令封包,0xFB14代表這個封包是屬於回應資料封包,0xFC66代表此為交握(handshake)封包,0xFDFF代表此為要求全域回應封包,0xFD65代表此為要求指定從機回應封包等等,但不限於此。智網裝置在判定此網路資料所載的檢查碼是否有效時,會解析此網路資料中所含的檢查碼是否登載於此網路資料封包內的固定位址處,並且核對此網路資料中所含的檢查碼是否符合其檢查碼表中的檢查碼。若同時滿足上述兩者,則判定此網路資料所載的檢查碼為有效;若無法同時滿足上述兩者,則判定為無效,並且不理會此網路資料。檢查碼的目的在於預防整個網路傳輸可能偶發的相似封包誤判。此外,在個別智網裝置的控制程序中,可先以檢查碼得知接下來要調用的程序,若檢查碼無效,裝置程序就沒有調用依據,智網裝置將不予理會載有此無效檢查碼的網路資料。 All smart network devices store a check code table (table) containing various preset check codes. The check code contained in the network data is posted at a fixed address in the data packet of the network. The check code can be used, for example, to represent the meaning of the entire packet. For example, 0xFA12 means that the packet belongs to the control command packet, and 0xFB14 represents this. The packet belongs to the response data packet, 0xFC66 represents the handshake packet, 0xFDFF represents the global response packet, and 0xFD65 represents the request to specify the slave response packet, etc., but is not limited thereto. When determining whether the check code contained in the network data is valid, the smart network device will analyze whether the check code contained in the network data is posted at a fixed address in the network data packet, and check the network. Whether the check code contained in the data meets the check code in the check code table. If both of the above are satisfied, it is determined that the check code contained in the network data is valid; if the two are not satisfied at the same time, it is determined to be invalid, and the network data is ignored. The purpose of the check code is to prevent similar packet misjudgments that may occur sporadicly throughout the network transmission. In addition, in the control program of the individual smart network device, the program to be called next may be known by the check code. If the check code is invalid, the device program does not call the basis, and the smart network device will ignore the invalid check. Code network information.

所有智網裝置皆儲存有屬於自己的裝置授權碼。智網裝置的裝置授權碼可預先儲存於主控主機內。當主控主機將控制命令發送給智網裝置時,在此控制命令封包中的特定位址處會登載此智網裝置的裝置授權碼。此智網裝置在接收此控制命令之後會解析此控制命令中所含的裝置授權碼是否符合自身裝置的裝置授權碼,若符合,則判定此控制命令為有效,若不符合,則判定為無效並且不理會此控制命令。 All smart network devices store their own device authorization code. The device authorization code of the smart network device can be pre-stored in the main control host. When the master host sends a control command to the smart network device, the device authorization code of the smart network device is posted at a specific address in the control command packet. After receiving the control command, the smart network device parses whether the device authorization code included in the control command conforms to the device authorization code of the own device, and if yes, determines that the control command is valid, and if not, the determination is invalid. And ignore this control command.

智網裝置除了具有「控制」的功能以外亦可具有「監視」的功能。例如,智網裝置之下位控制器輸入埠的A/D處理器可接收來自類比輸出感測設備的類比監視訊號,智網裝置之下位控制器輸入埠的數位接收口可接收來自數位輸出感測設備的數位監視訊號。接著,透過監視輸入端口,將所接收的監視訊號回授給微處理器,然後藉由網路收發模組(透過區域主機)傳送至主控主機。舉例而言,數位溫度感測器可將溫度監視訊號傳送至下位控制器輸入埠,接著透過監視輸入端口,將此溫度監視訊號回授給微處 理器,然後藉由網路收發模組(透過區域主機)傳送至主控主機。 The smart network device can also have a "monitor" function in addition to the "control" function. For example, the A/D processor of the lower controller input port of the smart network device can receive the analog monitoring signal from the analog output sensing device, and the digital receiving port of the lower controller input port of the smart network device can receive the digital output sensing from the digital output. Digital monitoring signal of the device. Then, through the monitoring input port, the received monitoring signal is sent back to the microprocessor, and then transmitted to the main control host through the network transceiver module (via the regional host). For example, the digital temperature sensor can transmit the temperature monitoring signal to the lower controller input port, and then feedback the temperature monitoring signal to the micro device through the monitoring input port. The processor is then transmitted to the master host via the network transceiver module (via the regional host).

本發明之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法可包含但不限於:區域主機設置流程、智網自動佈建流程、以及智網可程式控制與監視流程。以下將參照圖3到圖6所示之實施例來詳細說明這些流程。吾人可明白圖3到圖6所示之流程圖是為了說明本發明之方法而提出,其不應視為對本發明之限制。 The flexible network construction method for the remote programmable touch control system of the smart home of the present invention may include, but is not limited to, a regional host setting process, a smart network automatic deployment process, and a smart network programmable control and monitoring process. . These flows will be described in detail below with reference to the embodiments shown in FIGS. 3 to 6. It is to be understood that the flowcharts shown in Figures 3 through 6 are presented to illustrate the method of the present invention and should not be construed as limiting the invention.

圖3顯示依照本發明之一實施例的區域主機設置流程。依照本實施例之區域主機設置流程,與區網路由器連線通訊的主控主機會進入搜尋區域主機程序並發送主控主機信標(beacon),此主控主機信標包含此區網路由器的路由連線資料。一或多個智網裝置接收從主控主機所發送的主控主機信標,以藉由主控主機信標所含的路由連線資料登入區網路由器。在智網裝置登入區網路由器時,區網路由器可藉由例如動態主機配置協定(DHCP,dynamic host configuration protocol)機制來對智網裝置分配網際網路協定位址(IP address,internet protocol address)。當僅設置單一個智網裝置時,可透過主控主機,將指定命令發送給此智網裝置,以指定此智網裝置作為區域主機;或者可藉由手動切換此智網裝置的主/從模式手動切換鍵(圖2)來指定此智網裝置作為區域主機,即圖3中所示的「觸發實體設置裝置」。在僅設置單一個智網裝置的情況下,此智網裝置可同時為區域主機以及節點從機。當設置複數個智網裝置時,可透過主控主機,將指定命令發送給這些智網裝置的其中一者,以完成區域主機的指定;或者可藉由手動切換這些智網裝置的主/從模式手動切換鍵,以對這些智網裝置的其中一者進行區域主機的指定。如上所述,區域主機的主控通訊通道與節點通訊通道皆設定為開啟;節點從機的主控通訊通道設定為關閉,而其節點通訊通道則設定為開啟。 3 shows a regional host setup flow in accordance with an embodiment of the present invention. According to the regional host setting process of the embodiment, the master host that communicates with the regional network router enters the search area host program and sends a master host beacon, and the master host beacon includes the network router. Routing connection data. The one or more smart network devices receive the master host beacon sent from the master host to log in to the area network router by using the route connection information included in the master host beacon. When the smart network device logs in to the local area network router, the local area network router can allocate an internet protocol address (IP address) to the smart network device by, for example, a dynamic host configuration protocol (DHCP) mechanism. . When only a single smart network device is set, the designated command may be sent to the smart network device through the master host to designate the smart network device as the regional host; or the master/slave of the smart network device may be manually switched. The mode manual switching key (Fig. 2) designates the smart network device as the regional host, that is, the "trigger entity setting device" shown in Fig. 3. In the case where only a single smart network device is set, the smart network device can be both a regional host and a node slave. When a plurality of smart network devices are set, the designated command may be sent to one of the smart network devices through the master host to complete the designation of the regional host; or the master/slave of the smart network devices may be manually switched. The mode manual switch key is used to designate a regional host for one of these smart network devices. As described above, the master communication channel and the node communication channel of the regional host are all set to be on; the master communication channel of the node slave is set to be off, and the node communication channel is set to be on.

依照本發明之一實施例,在主控主機為可移動式主控主機(例如智慧型手機、智慧型手錶、筆記型電腦、個人數位助理、平板電腦等等)的情況下,主控主機進入到架設在家中的區網路由器的網路連線範圍並且透過例如無線保真(WiFi,Wireless Fidelity)通訊協定登入此區網路由器以取得此區網路由器的路由連線資料,此時主控主機即處於進場狀態,此表示攜帶主控主機的使用者已返回家中;反之,若主控主機脫離架設在家中的區網路由器 的網路連線範圍進而登入另一區域網路(例如其他社區區域網路、廣域的3G、4G網路等等),此時主控主機即處於離場狀態,此表示攜帶主控主機的使用者已離開家。若主控主機未登入架設在家中的區網路由器而無法取得此區網路由器的路由連線資料,則主控主機所發出的主控主機信標將不包含此區網路由器的路由連線資料,因此智網裝置無法登入此區網路由器。 According to an embodiment of the present invention, in a case where the master host is a portable master host (for example, a smart phone, a smart watch, a notebook computer, a personal digital assistant, a tablet computer, etc.), the master host enters To set up the network connection range of the home network router in the home and log in to the local area network router through the wireless fidelity (WiFi, Wireless Fidelity) protocol to obtain the routing connection data of the local area network router. That is, in the approach state, this means that the user carrying the master host has returned home; otherwise, if the master host is disconnected from the home network router The network connection range is then logged into another area network (such as other community area networks, wide-area 3G, 4G networks, etc.), at which time the master host is in the off-site state, which means that the host host is carried. The user has left home. If the master host fails to log in to the home network router and cannot obtain the route connection data of the network router, the master host beacon sent by the master host will not include the route connection data of the network router. Therefore, the smart network device cannot log in to the local area network router.

在完成圖3之區域主機設置流程之後,即可定義出區域主機以及節點從機。接著進入智網自動佈建流程。 After completing the regional host setup process of Figure 3, the zone master and node slaves can be defined. Then enter the intelligent network automatic deployment process.

圖4顯示依照本發明之一實施例的智網自動佈建流程。依照本實施例之智網自動佈建流程,區域主機發送區域主機識別信標,此區域主機識別信標包含目前區域主機的IP位址、區域主機本身的裝置功能屬性等等。接著,主控主機接收此區域主機識別信標,並進一步將所接收到的區域主機IP位址作為區域主機登入位址而登入此區域主機。在本發明之一實施例中,可事先將所指定之區域主機的IP位址、裝置功能屬性等資料儲存於主控主機中,之後主控主機進一步將此IP位址作為區域主機登入位址而登入此區域主機。在主控主機登入區域主機時,主控主機會發送包含區域主機之裝置授權碼的資料給區域主機,以作為登入之認證。若區域主機登入程序失敗,主控主機會再次進入搜尋區域主機程序,而執行圖3所示之區域主機設置流程。若區域主機登入程序成功,主控主機將會標定區域主機的位址,並將節點從機身分回應命令發送給區域主機。此時,若存在節點從機,區域主機在接收從主控主機所發送的節點從機身分回應命令之後,會將節點從機身分回應命令發布給所有節點從機。接著,節點從機在接收節點從機身分回應命令之後,會將節點從機狀態訊息傳送給區域主機,之後再透過區域主機將節點從機狀態訊息回覆給主控主機,如此即可完成自動佈網機制。自動佈網機制的目的在於調查到底有多少、有哪些身分的節點從機存在於區域主機所處的網域。主控主機一旦登入區域主機之後,即可透過區網路由器而與區域主機保持連線。從主控主機所發出的節點從機身分回應命令可包含節點從機的裝置授權碼等等。接著進入智網可程式控制、監視流程(圖5與圖6)。 FIG. 4 shows a smart network automatic deployment process according to an embodiment of the present invention. According to the automatic network deployment process of the embodiment, the regional host sends the regional host identification beacon, and the host identification beacon of the area includes the IP address of the current regional host, the device function attribute of the regional host itself, and the like. Then, the master host receives the host identification beacon of the area, and further logs the received area host IP address as the area host login address to log in to the area host. In an embodiment of the present invention, the IP address of the specified regional host, the device function attribute, and the like may be stored in the main control host in advance, and then the main control host further uses the IP address as the regional host login address. Log in to this zone host. When the master host logs in to the regional host, the master host sends the device containing the device authorization code of the regional host to the regional host for authentication as the login. If the regional host login procedure fails, the master host will enter the search area host program again, and the regional host setup process shown in FIG. 3 is executed. If the regional host login procedure is successful, the master host will calibrate the address of the regional host and send the node from the fuselage split response command to the regional host. At this time, if there is a node slave, the regional host will release the node from the fuselage sub-response command to all the node slaves after receiving the response from the node sent by the master host. Then, the node slave transmits the node slave status message to the area host after the receiving node responds to the command from the body, and then returns the node slave status message to the master host through the area host, thus completing the automatic Distribution mechanism. The purpose of the automatic network deployment mechanism is to investigate how many node slaves exist in the domain where the regional host is located. Once the master host logs in to the zone host, it can connect to the zone host through the zone router. The node-sending response command from the master host may include the device authorization code of the node slave and the like. Then enter the smart network programmable control and monitoring process (Figure 5 and Figure 6).

圖5顯示依照本發明之一實施例的智網可程式控制、監視流程A。依照本實施例之智網可程式控制、監視流程A,可透過主控主機將通訊資料(即 網路資料)發送給區域主機,然後區域主機將此通訊資料發布給所有節點從機。若此通訊資料內含控制命令,當區域主機及/或節點從機判定此通訊資料為有效、有關時,則執行此控制命令。在由節點從機執行此控制命令的情況下,節點從機在執行此控制命令之後,會發出執行狀態訊息給區域主機,之後區域主機再將節點從機的執行狀態訊息回覆給主控主機;另一方面,在由區域主機執行此控制命令的情況下,區域主機在執行此控制命令之後,亦會發出執行狀態訊息給主控主機。此控制命令可為一般即時控制命令或連動邏輯命令。在此控制命令為連動邏輯命令的情況下,若使用者已透過主控主機設定好與區域主機或節點從機連接之家用電器及/或偵測裝置的連動執行關係,當區域主機或節點從機執行此連動邏輯命令時,可以連動方式控制與其連接之家用電器及/或偵測裝置。因此,可使實體不相關的家用電器及/或偵測裝置產生連動,例如執行電燈、微波爐、煙霧感測器的連動操作、錄影監視器與電控門鎖的連動操作、溫度計與空調系統的連動操作等等,但不限於此。 FIG. 5 shows a smart network programmable control and monitoring flow A according to an embodiment of the present invention. According to the smart network programmable control and monitoring process A according to the embodiment, the communication data can be transmitted through the main control host (ie, The network data is sent to the regional host, and then the regional host issues this communication data to all node slaves. If the communication data contains a control command, when the regional host and/or the node slave determines that the communication data is valid and relevant, the control command is executed. In the case that the node slave executes the control command, the node slave sends an execution status message to the area host after executing the control command, and then the area host replies the node slave execution status message to the master host; On the other hand, in the case where the control command is executed by the regional host, the regional host also issues an execution status message to the master host after executing the control command. This control command can be a general immediate control command or a linked logical command. In the case where the control command is a linked logical command, if the user has set a linked execution relationship with the home appliance and/or the detecting device connected to the regional host or the node slave through the master host, when the regional host or node When the machine executes this interlocking logic command, the home appliance and/or the detecting device connected thereto can be controlled in a linked manner. Therefore, the unrelated household appliances and/or the detecting device can be linked, for example, the interlocking operation of the electric lamp, the microwave oven, the smoke sensor, the interlocking operation of the video monitor and the electronically controlled door lock, the thermometer and the air conditioning system Linked operation, etc., but not limited to this.

若此通訊資料屬於節點從機身分回應命令而不含控制命令,當節點從機判定此通訊資料為有效、有關時,則會透過區域主機將節點從機狀態訊息回覆給主控主機。 If the communication data belongs to the node from the fuselage response command without the control command, when the node slave determines that the communication data is valid and relevant, the node slave status message is sent back to the master host through the regional host.

此外,本發明之彈性網路的特點為,除了可彈性指定區域主機外,節點從機在任何時間的增減、出現或消失都不妨礙整個網路系統運作,因為主控主機可透過區域主機持續發出要求節點從機回覆身分與現況的命令,當區域主機收到節點從機對此命令的回應為無效(或沒有收到回應)時,則視為此節點從機消失了。 In addition, the flexible network of the present invention is characterized in that, except for the elastically designated area host, the increase, decrease, occurrence or disappearance of the node slave at any time does not hinder the operation of the entire network system, because the master host can pass through the area host. The command that requests the node to reply to the identity and status is continuously issued. When the regional host receives the response from the node slave to this command as invalid (or does not receive a response), it is considered that the slave has disappeared.

依照本發明之一實施例,在主控主機為可移動式主控主機(例如智慧型手機)的情況下,當攜帶主控主機的使用者從外面(即,另一個區域網路,例如其他社區區域網路、廣域的3G、4G網路等等)回到家中(即,進入到架設在家中的區網路由器的網路連線範圍)時,主控主機會切換所處的區域網路,反之亦然。因此,主控主機可依據其所處之區域網路的切換來判斷使用者的進場(返家)、離場(離家)。以此方式,當主控主機切換所處之區域網路時,主控主機可自動將控制命令發送給區域主機。 According to an embodiment of the present invention, when the master host is a portable master host (for example, a smart phone), when the user carrying the master host is from the outside (ie, another area network, for example, other When the community area network, wide-area 3G, 4G network, etc.) return home (ie, enter the network connection range of the routers that set up the home network), the master host will switch the local area network. Road and vice versa. Therefore, the master host can judge the user's entry (return to home) and departure (away from home) according to the switching of the regional network in which it is located. In this way, when the master host switches the local area network, the master host can automatically send control commands to the regional host.

圖6顯示依照本發明之一實施例的智網可程式控制、監視流程B。依 照本實施例之智網可程式控制、監視流程B,區域主機在接收來自節點從機的回應資料(例如節點從機狀態訊息、執行狀態訊息等等)時,會對此回應資料進行解析,以判定此回應資料是否有效。例如,區域主機可藉由此回應資料中所含的檢查碼、來源IP等等資料來判定此回應資料是否有效。在自動佈網機制的情況下,區域主機發布節點從機身分回應命令的目的是要所有節點從機回應其身分,此時區域主機不對來自節點從機的回應封包來源的對象IP作辨識,而只做檢查碼的判定。若判定此回應資料無效,則向主控主機回報節點從機消失(即,連線失敗)。若判定此回應資料有效,則向主控主機回報節點從機控制現況以及區域主機自身控制現況。 FIG. 6 shows a smart network programmable control and monitoring process B according to an embodiment of the present invention. according to According to the smart network of the embodiment, the process B can be controlled and monitored. When the regional host receives the response data from the node slave (for example, the node slave status message, the execution status message, etc.), the response data is parsed. To determine if this response is valid. For example, the regional host can determine whether the response data is valid by using the check code, source IP, and the like included in the response data. In the case of the automatic deployment mechanism, the purpose of the regional host issuing node to respond to the command from the fuselage is to have all the slaves respond to their identity. At this time, the regional host does not recognize the IP of the source of the response packet from the slave. Only the check code is judged. If it is determined that the response data is invalid, the slave node is reported to the master host to disappear (ie, the connection fails). If it is determined that the response data is valid, the status of the slave slave control and the status of the regional host itself are reported to the master host.

在本發明之一實施例中,區域主機在向對象節點從機發布來自主控主機的特定節點從機身分回應命令或控制命令之後,會處於等待該對象節點從機回覆的狀態。若區域主機超過一預定時間而未收到對象節點從機的回應資料時,區域主機將會向主控主機回報此對象節點從機連線失敗。 In an embodiment of the present invention, after the regional host issues a specific node from the master host to the target node to respond to a command or control command from the body, it is in a state of waiting for the slave of the target node to reply. If the regional host does not receive the response data of the target node slave after a predetermined time, the regional host will report the failure of the slave node connection to the master host.

主控主機在接收來自區域主機的回應資料之後,會解析此回應資料是否為有效,例如藉由此回應資料中所含的來源IP、檢查碼等等來判定此回應資料是否為有效。若判定為無效,則將區域主機視為斷線,此時主控主機可觸發警告(例如聲響、文字訊息等等)以提醒使用者;若判定為有效,則回報區域主機自身控制現況,並於主控主機的人機介面上顯示。圖5與圖6所顯示的兩個流程圖可連接在一起而形成一個無限的循環。 After receiving the response data from the regional host, the master host will analyze whether the response data is valid, for example, by using the source IP, check code, and the like contained in the response data to determine whether the response data is valid. If the determination is invalid, the regional host is regarded as disconnected. At this time, the main control host can trigger a warning (such as sound, text message, etc.) to remind the user; if it is determined to be valid, the reporting area host itself controls the current situation, and Displayed on the man-machine interface of the master host. The two flow charts shown in Figures 5 and 6 can be joined together to form an infinite loop.

有別於習知必須藉由特定、專用的中央伺服主機來處理整個裝置辨識及傳輸指令的智慧家居系統,本發明的特徵在於:不需設置特定、專用的中央伺服主機,即本發明的智網裝置在其軟(韌)、硬體方面不存在先天固定的主從差異,因此每一智網裝置皆可依照使用者需求而被任意指定為區域主機或節點從機。就本發明而言,當作為區域主機的智網裝置失效時,使用者可指定另一智網裝置來作為新的區域主機,以解決習知智慧家居系統因為失去特定、專用的中央伺服主機而導致整個系統癱瘓的問題。此外,習知智慧家居系統的中央伺服主機維護不易,且其設定修改程序必須藉助此專業領域人士、或特殊專用裝置輔助才得以進行。 Different from the smart home system which has to be processed by a specific, dedicated central servo host to process the entire device identification and transmission instructions, the present invention is characterized in that it is not necessary to provide a specific, dedicated central servo host, that is, the wisdom of the present invention. The network device does not have a congenitally fixed master-slave difference in terms of its soft (hard) and hardware. Therefore, each smart network device can be arbitrarily designated as a regional host or a node slave according to user requirements. For the purpose of the present invention, when the smart network device as the regional host fails, the user can designate another smart network device as the new regional host to solve the problem that the smart home system loses the specific and dedicated central servo host. The problem that caused the entire system to collapse. In addition, the central servo host of the smart home system is not easy to maintain, and its setting modification procedure must be assisted by people in this field or by special special equipment.

此外,當本發明的智網裝置跨網域移動時,因為其不依賴特定、專用的中央伺服主機,所以可完全相容於新的網域運作,故可藉由載入相同主 控程式軟體並位於智網裝置當下所處之網域的不同主控主機加以控制,因此本發明之智網裝置具有良好的相容性與可移動性。依照本發明,只要使用載入相同主控程式軟體的主控主機,即可讓完全沒有相關技能背景的使用者輕鬆建置自己想要的智慧家居形式。 In addition, when the smart network device of the present invention moves across the domain, since it does not depend on a specific, dedicated central server, it is completely compatible with the new domain operation, so it can be loaded by the same master. The control software is controlled by different master hosts of the domain in which the smart network device is located, so the smart network device of the present invention has good compatibility and mobility. According to the present invention, as long as the main control host loaded with the same main control software is used, the user who has no relevant skill background can easily build the smart home form that he wants.

本發明的另一特徵在於:不同於習知必須事先透過特定、專用之中央伺服主機執行註冊動作的智慧家居系統(因此具有各種註冊輔助裝置或手段),本發明是利用「全域雙向協議解析」,亦即,在智網裝置彼此之間(即,節點從機與節點從機之間,或區域主機與節點從機之間)以及與主控主機之間的所有通訊資料皆可被所有智網裝置(區域主機與節點從機)收到,此即稱為「全域」。因此,智網裝置才會收到可能跟自己無關但檢查碼及授權碼都合法的無效命令,彈性的應用著力點就在此。又,因為區域主機的命令發出,並不管節點從機存在與否,所以節點從機的增減、出現或消失不會對整個網路系統運作造成任何影響。 Another feature of the present invention is that unlike the smart home system (which thus has various registration aids or means) that must perform registration operations in advance through a specific, dedicated central servo host, the present invention utilizes "global two-way protocol analysis". That is, all communication materials between the smart network devices (ie, between the node slave and the node slave, or between the regional host and the node slave) and the master host can be all wisdom. The network device (regional host and node slave) receives this, which is called "global". Therefore, the smart network device will receive an invalid command that may not be related to itself but the check code and the authorization code are legal. The flexible application focus is here. Moreover, because the command of the regional host is issued, regardless of the presence or absence of the node slave, the increase, decrease, occurrence or disappearance of the node slave does not have any impact on the operation of the entire network system.

此外,在本發明中,在同一區域網路內的所有智網裝置皆具備節點通訊通道,任何智網裝置若判定在此節點通訊通道上所傳送的資料為有效、有關,則執行此資料的內容,並且在與此內容相關的對應程序處理完畢之後,均可主動向主控主機回應其處理結果,以形成「雙向通訊」。 In addition, in the present invention, all the smart network devices in the same regional network have a node communication channel, and any smart network device performs this data if it determines that the data transmitted on the communication channel of the node is valid and relevant. The content, and after the corresponding program related to the content is processed, can actively respond to the processing host with the processing result to form "two-way communication".

此外,在本發明中,在同一區域網路內的所有智網裝置皆具備節點通訊通道,任何智網裝置在此節點通訊通道上所傳送的資料封包均具備一致的協議格式,以利所有智網裝置都使用相同的資料解析程序,此即稱為「協議解析」。因此,任何智網裝置均可對在自身節點通訊通道上出現的資料進行發信來源、發信對象之解析(判斷是否與自身有關)、控制碼與檢查碼是否符合預設格式、授權碼是否正確(判斷資料是否有效)之解析、控制命令內容(判斷後續應採取的處理程序)之解析等等。 In addition, in the present invention, all the smart network devices in the same regional network have a node communication channel, and any data packet transmitted by the smart network device on the communication channel of the node has a consistent protocol format for all wisdom. The network device uses the same data parsing program, which is called "protocol parsing". Therefore, any smart network device can analyze the source of the data appearing on the communication channel of its own node, the object of the sending object (determine whether it is related to itself), whether the control code and the check code conform to the preset format, and whether the authorization code is Correction (determination of whether the data is valid), analysis of the contents of the control command (determination of the subsequent processing procedures to be taken), and so on.

本發明的另一特徵在於:透過隨身行動主控主機(例如時下的智慧型手機、智慧型手錶等等)的進離場辨識機制來觸發控制命令。在一般情況下,當主控主機成功自動切換不同網域時,通常也與使用者有作出變換其所處地理位置的動作直接相關。舉例而言,使用者離家的動作將使隨身攜帶的主控主機脫離自家區網通訊範圍而自動加入其他遠端網路(例如其他社區區網、廣域的3G、4G網路等等),此時主控主機可依據其登入位址的網域資 訊變化而判定使用者已離家外出(即離場)。反之,使用者回家的動作將使隨身攜帶的主控主機進入自家區網通訊範圍而自動從其他遠端網路(例如其他社區區網、廣域的3G、4G網路等等)加入自家區域網路,此時主控主機可依據其登入位址的網域資訊變化而判定使用者已返回家中(即進場)。因此,本發明利用對主控主機進、離場的判定轉換(登入網域成功轉換)作為觸發信號,繼而觸發主控主機分別在進、離場狀況發生時,要求須自動執行的智慧家居網路反應。例如,離家時自動關閉所有電燈、上鎖、啟動室內監視系統,返家時自動開啟電燈、解鎖、關閉室內監視系統、啟動空調設備等。 Another feature of the present invention is that the control command is triggered by the entry and exit identification mechanism of the mobile main control host (for example, a current smart phone, a smart watch, etc.). In general, when the master host successfully switches between different domains automatically, it is usually directly related to the user's action to change the geographic location. For example, the action of the user leaving the home will automatically move the host host that is carried away from the home network to the other remote network (such as other community networks, wide-area 3G, 4G networks, etc.) At this time, the master host can use the domain address of its login address. The change in the message determines that the user has left home (ie, left the field). On the contrary, the action of the user going home will enable the hosted host to enter the communication range of the home network and automatically join the home from other remote networks (such as other community networks, wide-area 3G, 4G networks, etc.). In the local area network, the master host can determine that the user has returned home (ie, entering the venue) according to the change of the domain information of the login address. Therefore, the present invention utilizes the decision transition of the master host to enter and leave the field (the successful conversion of the login domain) as a trigger signal, and then triggers the smart host network to be automatically executed when the master host enters and leaves the field respectively. Road reaction. For example, when you are away from home, all lights are automatically turned off, locked, and the indoor monitoring system is activated. When you return home, the lights are automatically turned on, unlocked, the indoor monitoring system is turned off, and the air conditioning equipment is turned on.

本發明不需要特定、專用的中央伺服主機來預先儲存任何自動反應程序,本發明的所有智網裝置先天上也完全一樣(可由使用者隨意定義為區域主機或節點從機)。因此,有別於其他需要特定、專用之中央伺服主機的系統,本發明的智網裝置不需要預先儲存進離場智慧型反應程序;使用者可依照本發明,將所需的進離場智慧型反應機制隨意設置於隨身行動主控主機內,然後藉由主控主機來控制智網裝置。 The present invention does not require a specific, dedicated central servo host to pre-store any automatic reaction procedures. All of the smart network devices of the present invention are identical in nature (which can be arbitrarily defined by the user as a regional host or a node slave). Therefore, unlike other systems that require a specific, dedicated central servo host, the smart network device of the present invention does not need to be pre-stored in the departure intelligent process; the user can use the required departure and departure wisdom according to the present invention. The type reaction mechanism is randomly set in the mobile action master host, and then the smart host device is controlled by the master control host.

本發明的另一特徵在於:不需要特定、專用的中央伺服主機,仍可使實體不相關的家用電器與偵測裝置產生連動。例如,使用者可透過主控主機進行遠端、彈性、即時的設定,而執行期望的開關與開關邏輯連動操作、開關與偵測(數位或類比)邏輯連動操作、開關與人身(如前述的進離場智慧型自動反應)邏輯連動操作。如上所述,本發明之所有智網裝置不需要預先儲存可程式邏輯處理程序;使用者可依照本發明,透過主控主機以可程式化方式設定智網裝置的可程式邏輯處理程序。就習知需要特定、專用之中央伺服主機的系統而言,當使用者希望變更智慧家居網路內的邏輯反應關係時,必須仰賴此專業領域人士的協助、或特殊專用裝置輔助才可完成邏輯反應關係的設定。 Another feature of the present invention is that it does not require a specific, dedicated central servo host, and can still cause a physical unrelated home appliance to be linked to the detecting device. For example, the user can perform remote, flexible, and instant settings through the master host, and perform the desired switch and switch logic linkage operation, switch and detection (digital or analog) logic linkage operation, switch and person (as mentioned above). Ingress and departure intelligent automatic response) logical linkage operation. As described above, all of the smart network devices of the present invention do not need to store a programmable logic processing program in advance; the user can programmatically set the programmable logic processing program of the smart network device through the master host in accordance with the present invention. For systems that require a specific, dedicated central servo host, when users want to change the logical reaction relationship within the smart home network, they must rely on the assistance of people in this field or special special equipment to complete the logic. The setting of the reaction relationship.

雖然本發明已參考較佳實施例及圖式詳加說明,但熟習本項技藝者可瞭解在不離開本發明之精神與範圍的情況下,可進行各種修改、變化以及等效替代,然而這些修改、變化以及等效替代仍落入本發明之申請專利範圍內。 While the invention has been described herein with reference to the preferred embodiments of the embodiments of the invention Modifications, variations, and equivalent substitutions are still within the scope of the invention.

Claims (12)

一種用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,該遠端可程式化監視控制系統包含複數個智網裝置、一區網路由器、以及與該區網路由器通訊的一主控主機,該方法包含下列步驟:透過該主控主機發送主控主機信標,其中該主控主機信標包含該區網路由器的路由連線資料;所有該智網裝置接收從該主控主機所發送的該主控主機信標,以藉由該路由連線資料登入該區網路由器,其中所有該智網裝置各自具有主控通訊通道與節點通訊通道;任意指定該複數個智網裝置的其中一者作為區域主機,而其餘的該智網裝置作為節點從機,其中該區域主機的主控通訊通道與節點通訊通道設定為開啟,該節點從機的節點通訊通道設定為開啟,該節點從機的主控通訊通道設定為關閉,以及其中在該區域主機與該節點從機之間是透過該節點通訊通道,使用輪詢方式或廣播方式以呼號進行通訊解析;將該主控主機登入該區域主機,以使該主控主機標定該區域主機的位址並將節點從機身分回應命令發送給該區域主機,其中該區域主機透過該主控通訊通道與該主控主機進行通訊;該區域主機接收從該主控主機所發送的該節點從機身分回應命令,繼而將該節點從機身分回應命令發布給所有該節點從機;及該節點從機在接收該節點從機身分回應命令之後,透過該區域主機將節點從機狀態訊息回覆給該主控主機。 An elastic network construction method for a remote programmable touch control system of a smart home, the remote programmable control system comprising a plurality of smart network devices, a regional network router, and communication with the regional router a master host, the method comprising the steps of: sending a master host beacon through the master host, wherein the master host beacon includes routing connection data of the network router; all the smart network devices receive from the The master host beacon sent by the master host to log in to the network router by using the route connection data, wherein each of the smart network devices has a master communication channel and a node communication channel; arbitrarily designating the plurality of wisdom One of the network devices acts as a regional host, and the remaining smart network devices act as node slaves, wherein the master communication channel and the node communication channel of the regional host are set to be enabled, and the node communication channel of the node slave is set to be enabled. The slave communication channel of the node is set to be off, and the communication between the host and the slave in the area is communicated through the node. Using the polling method or the broadcast method to perform communication analysis by using the call sign; the host host is logged into the area host, so that the master host calibrates the address of the area host and sends the node from the body split response command to the area. a host, wherein the host in the area communicates with the master host through the master communication channel; the host in the area receives the node from the host to send a response command from the body, and then the node responds from the body The command is issued to all the slaves of the node; and after receiving the node's response command from the fuselage, the slave slave replies the node slave status message to the master host through the area host. 如申請專利範圍第1項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中該主控通訊通道為TCP通訊協定通道。 The flexible network construction method for the remote programmable touch control system of the smart home, as described in claim 1, wherein the master communication channel is a TCP communication protocol channel. 如申請專利範圍第1項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中該節點通訊通道為UDP通訊協定通道。 The flexible network construction method for the remote programmable touch control system of the smart home as described in claim 1, wherein the communication channel of the node is a UDP communication protocol channel. 如申請專利範圍第1項所述之用於智能家居之遠端可程式化監視控制系 統的彈性網路建置方法,其中任意指定該複數個智網裝置的其中一者作為區域主機的該步驟包含:透過該主控主機,將一指定命令發送給該複數個智網裝置的其中一者,以完成該區域主機的指定。 The remote programmable control system for smart homes as described in claim 1 The method for establishing an elastic network, wherein the step of arbitrarily designating one of the plurality of smart network devices as the regional host includes: sending, by the master host, a specified command to the plurality of smart network devices One to complete the designation of the host in the area. 如申請專利範圍第1項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中所有該智網裝置各自具有一主/從模式手動切換鍵,以及任意指定該複數個智網裝置的其中一者作為區域主機的該步驟包含:藉由手動切換該複數個智網裝置的該主/從模式手動切換鍵,以對該複數個智網裝置的其中一者進行該區域主機的指定。 An elastic network construction method for a remote programmable touch control system for a smart home as described in claim 1, wherein each of the smart network devices has a master/slave mode manual switch key, and any The step of designating one of the plurality of smart network devices as the regional host includes: manually switching the master/slave mode manual switching button of the plurality of smart network devices to one of the plurality of smart network devices The assignment of the host in the area is performed. 如申請專利範圍第1項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中該複數個智網裝置分別連接一或多個家用電器及/或一或多個偵測裝置。 An elastic network construction method for a remote programmable touch control system for a smart home as described in claim 1, wherein the plurality of smart network devices are respectively connected to one or more household appliances and/or one Or multiple detection devices. 如申請專利範圍第6項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,更包含下列步驟:透過該主控主機,以可程式化方式設定該一或多個家用電器及/或該一或多個偵測裝置的連動執行關係。 The flexible network construction method for the remote programmable touch control system of the smart home as described in claim 6 further includes the following steps: setting the one in a programmable manner through the main control host Or a linked execution relationship of the plurality of home appliances and/or the one or more detecting devices. 如申請專利範圍第1到7項其中任一項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,更包含下列步驟:透過該主控主機,將一控制命令發送給該區域主機;該區域主機接收該控制命令,並且將該控制命令發布給所有該節點從機;該區域主機與所有該節點從機依據該控制命令的內容判定該控制命令是否為有效:若判定為無效,則不理會該控制命令,若判定為有效,則進一步依據該控制命令的內容判定該控制命令 是否與自身有關;及當該區域主機與所有該節點從機進一步依據該控制命令的內容判定該控制命令是否與自身有關時:若判定與自身無關,則不理會該控制命令,若判定與自身有關,則執行該控制命令的內容。 The flexible network construction method for the remote programmable touch control system for a smart home according to any one of claims 1 to 7 further includes the following steps: through the master host, The control command is sent to the area host; the area host receives the control command, and issues the control command to all the node slaves; the area host and all the node slaves determine whether the control command is based on the content of the control command Valid: if the determination is invalid, the control command is ignored, and if it is determined to be valid, the control command is further determined according to the content of the control command. Whether it is related to itself; and when the host of the area and all the slaves of the node further determine whether the control command is related to itself according to the content of the control command: if the determination is not related to itself, the control command is ignored, and if it is determined Related to, the content of the control command is executed. 如申請專利範圍第8項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中該主控主機為可移動式主控主機,以及透過該主控主機將該控制命令發送給該區域主機的該步驟包含:當該主控主機切換所處之區域網路時,該主控主機自動將該控制命令發送給該區域主機。 An elastic network construction method for a remote programmable touch control system for a smart home, as described in claim 8, wherein the master host is a mobile master host, and the master host is The step of sending the control command to the regional host includes: when the master host switches the local area network, the master host automatically sends the control command to the regional host. 如申請專利範圍第8項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中該區域主機及/或該節點從機在執行該控制命令之後,將執行狀態訊息回覆給該主控主機。 An elastic network construction method for a remote programmable touch control system for a smart home, as described in claim 8, wherein the area host and/or the slave device after executing the control command The execution status message is replied to the master host. 如申請專利範圍第8項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中該區域主機與所有該節點從機依據該控制命令的內容判定該控制命令是否為有效的該步驟包含:該區域主機與所有該節點從機比對該控制命令中所含的檢查碼及/或裝置授權碼,以判定該控制命令是否為有效。 An elastic network construction method for a remote programmable touch control system for a smart home, as described in claim 8, wherein the area host and all of the node slaves determine the control according to the content of the control command. Whether the command is valid or not includes: the area host compares the check code and/or device authorization code included in the control command with all the slave devices to determine whether the control command is valid. 如申請專利範圍第8項所述之用於智能家居之遠端可程式化監視控制系統的彈性網路建置方法,其中該區域主機與所有該節點從機依據該控制命令的內容判定該控制命令是否與自身有關的該步驟包含:該區域主機與所有該節點從機比對該控制命令中所含的目的IP位址字串,以判定該控制命令是否與自身有關。 An elastic network construction method for a remote programmable touch control system for a smart home, as described in claim 8, wherein the area host and all of the node slaves determine the control according to the content of the control command. The step of whether the command is related to itself includes: the area host compares all the node slaves with the destination IP address string included in the control command to determine whether the control command is related to itself.
TW103108743A 2014-03-12 2014-03-12 Flexible network building method for remote-programmable monitoring and controlling system applied to smart home TWI516887B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW103108743A TWI516887B (en) 2014-03-12 2014-03-12 Flexible network building method for remote-programmable monitoring and controlling system applied to smart home
US15/263,269 US10079751B2 (en) 2014-03-12 2016-09-12 Flexible network building method for remote-programmable monitoring and controlling system applied to smart home

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103108743A TWI516887B (en) 2014-03-12 2014-03-12 Flexible network building method for remote-programmable monitoring and controlling system applied to smart home

Publications (2)

Publication Number Publication Date
TW201535077A TW201535077A (en) 2015-09-16
TWI516887B true TWI516887B (en) 2016-01-11

Family

ID=54695205

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103108743A TWI516887B (en) 2014-03-12 2014-03-12 Flexible network building method for remote-programmable monitoring and controlling system applied to smart home

Country Status (1)

Country Link
TW (1) TWI516887B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI610181B (en) * 2016-11-18 2018-01-01 新唐科技股份有限公司 Expanded system of platform module
TWI657340B (en) * 2018-01-22 2019-04-21 東元電機股份有限公司 Intelligent control system for electrical appliance
TWI776484B (en) * 2021-04-27 2022-09-01 洪宜邦 Event management device and event management method

Also Published As

Publication number Publication date
TW201535077A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
JP6764495B2 (en) How to configure a node and the node to be configured
US9883571B2 (en) Systems and methods of controlling light sources according to location
US9596708B2 (en) Smart-home device facilitating convenient setup of plural instances thereof in the smart home
JP6386101B2 (en) Network system, protocol and method for controlling a target device
KR101762906B1 (en) EFFICIENT NETWORK LAYER FOR IPv6 PROTOCOL
CN105766016B (en) Method and apparatus for inter-profile debugging in a network
WO2014169807A1 (en) Smart home system and control method
EP3679693B1 (en) Commissioning in multi-hop networks by using a single-hop connection
WO2015135462A1 (en) Resilient network construction method for remote programmable supervision and control system
US9961512B2 (en) Method for operating and commissioning devices in a ZigBee network
CN108353457B (en) Commissioning of wireless communication enabled devices
TWI516887B (en) Flexible network building method for remote-programmable monitoring and controlling system applied to smart home
US10079751B2 (en) Flexible network building method for remote-programmable monitoring and controlling system applied to smart home
US11483173B2 (en) Smart adaptation of the functionalities of a remote control in a local area network
US10489055B2 (en) Z-wave controller shift in thermostats
US10469494B2 (en) Home network system using Z-Wave network and home automation device connection method using same
US9979811B2 (en) Controller, control system, and method for controlling control system
JP2022009020A (en) Home appliance remote control method, program, and system
KR101859994B1 (en) Apparatus and method for interworking between devices without configuring, and distributed home network system using the same
EP4097705A1 (en) System and method for determining the location and/or relative environment of a controlling device
WO2016020472A1 (en) Controllable device
JP6376497B2 (en) Control system
WO2020071076A1 (en) Control system and program