TWI684343B - Automatic network connection setting method and internet of things system - Google Patents

Automatic network connection setting method and internet of things system Download PDF

Info

Publication number
TWI684343B
TWI684343B TW108101115A TW108101115A TWI684343B TW I684343 B TWI684343 B TW I684343B TW 108101115 A TW108101115 A TW 108101115A TW 108101115 A TW108101115 A TW 108101115A TW I684343 B TWI684343 B TW I684343B
Authority
TW
Taiwan
Prior art keywords
list
root node
node
setting
devices
Prior art date
Application number
TW108101115A
Other languages
Chinese (zh)
Other versions
TW202027470A (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 TW108101115A priority Critical patent/TWI684343B/en
Application granted granted Critical
Publication of TWI684343B publication Critical patent/TWI684343B/en
Publication of TW202027470A publication Critical patent/TW202027470A/en

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一種自動化網路連線設定方法,包含:多個物聯網裝置其中一個被一屬於樹狀資料結構的設定清單定義為根節點且作為一個根節點裝置的物聯網裝置,根據該設定清單判斷該等物聯網裝置其中一個或多個被該設定清單定義為根節點的子節點且作為一個或多個子節點裝置的物聯網裝置是否為葉節點;及當該根節點裝置判斷該子節點裝置不為葉節點,該根節點裝置擷取部分定義該根節點裝置為根節點的該設定清單,產生一屬於樹狀資料結構且定義該子節點裝置為根節點的設定清單,並將定義該子節點裝置為根節點的該設定清單及一連線設定資料傳送給該子節點裝置。An automatic network connection setting method includes: one of a plurality of Internet of Things devices is defined as a root node by a setting list belonging to a tree-like data structure and serves as a root node device. The Internet of Things device is judged based on the setting list One or more of the IoT devices is defined as a child node of the root node by the setting list and the IoT device as one or more child node devices is a leaf node; and when the root node device determines that the child node device is not a leaf Node, the root node device extracts a part of the configuration list that defines the root node device as the root node, generates a configuration list that belongs to a tree-like data structure and defines the child node device as the root node, and defines the child node device as The setting list of the root node and a connection setting data are sent to the child node device.

Description

自動化網路連線設定方法及物聯網系統Automatic network connection setting method and internet of things system

本發明是有關於一種網路連線設定方法,特別是指一種自動化網路連線設定方法。本發明還有關於一種物聯網系統。The invention relates to a network connection setting method, in particular to an automatic network connection setting method. The invention also relates to an Internet of Things system.

目前一般的物聯網設備設定網路連線的方式是使用者透過手機或電腦將連線存取點(AP)所需的服務設定識別碼(SSID)及密碼傳送給物聯網設備,使物聯網設備能使用服務設定識別碼及密碼連線至存取點。At present, the common way for IoT devices to set up a network connection is that the user sends the service setting identification code (SSID) and password required by the connection access point (AP) to the IoT device through a mobile phone or computer to enable the IoT The device can connect to the access point using the service setting ID and password.

當有多個物聯網設備需要設定網路連線以連線至同一存取點時,使用者只能一台物聯網設備、一台物聯網設備逐一地設定,所需耗費時間與物聯網設備的數量成正比。因此,如何發展出一種自動化網路連線設定方法,能減少使用者設定網路所需花費的時間,遂成為本發明進一步要探討的重點。When multiple IoT devices need to set up a network connection to connect to the same access point, the user can only set one IoT device and one IoT device one by one, which takes time and IoT devices The number is proportional. Therefore, how to develop an automated network connection setting method, which can reduce the time required for the user to set up the network, has become the focus of further discussion in the present invention.

因此,本發明的目的,即在提供一種自動化網路連線設定方法。Therefore, the object of the present invention is to provide an automatic network connection setting method.

本發明的另一目的,在於提供一種物聯網系統。Another object of the present invention is to provide an Internet of Things system.

於是,本發明自動化網路連線設定方法,藉由一物聯網系統實施,該物聯網系統包含多個物聯網裝置,該方法包含:(A)該等物聯網裝置其中一個被一屬於樹狀資料結構的設定清單定義為根節點且作為一個根節點裝置的物聯網裝置,根據該設定清單,判斷該等物聯網裝置其中一個或多個被該設定清單定義為根節點的子節點且作為一個或多個子節點裝置的物聯網裝置,是否為葉節點;(B)當該根節點裝置判斷該子節點裝置為葉節點,該根節點裝置將一相關於一存取點且包含一存取點服務設定識別碼及一連線密碼的連線設定資料,傳送給該子節點裝置;(C)當該根節點裝置判斷該子節點裝置不為葉節點,該根節點裝置擷取部分定義該根節點裝置為根節點的該設定清單,產生一屬於樹狀資料結構且定義該子節點裝置為根節點的設定清單,並將定義該子節點裝置為根節點的該設定清單,及該連線設定資料,傳送給該子節點裝置;及(D)當該根節點裝置傳送該連線設定資料給每一個為葉節點的子節點裝置且傳送該連線設定資料及定義該子節點裝置為根節點的該設定清單給每一個不為葉節點的子節點裝置之後,該根節點裝置根據該連線設定資料連線至該存取點。Therefore, the automatic network connection setting method of the present invention is implemented by an IoT system including a plurality of IoT devices. The method includes: (A) one of the IoT devices is a tree The configuration list of the data structure is defined as the root node and the IoT device as a root node device, and according to the configuration list, one or more of the IoT devices are determined as child nodes of the root node by the configuration list and are used as a Or whether the IoT device of multiple child node devices is a leaf node; (B) when the root node device determines that the child node device is a leaf node, the root node device will associate an access point with an access point The connection setting data of the service setting ID and a connection password is sent to the child node device; (C) When the root node device determines that the child node device is not a leaf node, the root node device extracts a part to define the root The node device is the setting list of the root node, generates a setting list that belongs to a tree-like data structure and defines the child node device as the root node, and the setting list that defines the child node device as the root node, and the connection setting Data to the child node device; and (D) when the root node device sends the connection setting data to each child node device that is a leaf node and sends the connection setting data and defines the child node device as the root node After the setting list is given to each child node device that is not a leaf node, the root node device connects to the access point according to the connection setting data.

在一些實施態樣中,該物聯網系統還包含一終端電子裝置,該方法於步驟(A)之前還包含:(E)該終端電子裝置根據一裝置清單及一指示出該等物聯網裝置其中一個作為一個第一層裝置的物聯網裝置的裝置識別資料,產生一完整樹狀清單,該裝置清單包含一個或多個分別指示該等物聯網裝置其中除了該第一層裝置之外的物聯網裝置的裝置識別資料,該完整樹狀清單包含該等物聯網裝置的裝置識別資料且屬於樹狀資料結構且定義該第一層裝置為根節點;及(F)該終端電子裝置將該完整樹狀清單傳送給該第一層裝置,以供該第一層裝置將該完整樹狀清單當作該設定清單而執行步驟(A)。In some embodiments, the IoT system further includes a terminal electronic device. The method before step (A) further includes: (E) the terminal electronic device displays the IoT devices according to a device list and an indication A device identification data of an IoT device as a first-level device generates a complete tree list, the device list contains one or more IoT devices indicating the IoT devices except the first-level device Device identification data of the device, the complete tree-like list contains the device identification data of the IoT devices and belongs to the tree-like data structure and defines the first-level device as the root node; and (F) the terminal electronic device uses the complete tree The list is sent to the first-level device for the first-level device to perform step (A) using the complete tree list as the setting list.

在一些實施態樣中,該等物聯網裝置的裝置識別資料符合一預定字串格式,該方法於步驟(E)之前還包含:(G)該第一層裝置透過一預定通訊協定掃描鄰近的裝置而獲得鄰近的裝置的裝置識別資料;及(H)該第一層裝置根據該預定字串格式篩選鄰近的裝置的裝置識別資料而產生該裝置清單,並將該裝置清單傳送給該終端電子裝置。In some implementation aspects, the device identification data of the IoT devices conforms to a predetermined string format. The method before step (E) further includes: (G) The first layer device scans neighboring devices through a predetermined communication protocol The device to obtain the device identification data of the neighboring device; and (H) the first layer device filters the device identification data of the neighboring device according to the predetermined string format to generate the device list, and transmits the device list to the terminal electronic Device.

在一些實施態樣中,於步驟(G)之前還包含:(I)該終端電子裝置傳送一清單請求給該第一層裝置,該清單請求使該第一層裝置執行步驟(G)及(H)。In some embodiments, before step (G), the method further includes: (I) the terminal electronic device sends a list request to the first-tier device, and the list request causes the first-tier device to perform steps (G) and ( H).

本發明物聯網系統,包含:多個物聯網裝置,該等物聯網裝置其中一個被一屬於樹狀資料結構的設定清單定義為根節點且作為一個根節點裝置的物聯網裝置,根據該設定清單,判斷該等物聯網裝置其中一個或多個被該設定清單定義為根節點的子節點且作為一個或多個子節點裝置的物聯網裝置,是否為葉節點;當該根節點裝置判斷該子節點裝置為葉節點,該根節點裝置將一相關於一存取點且包含一存取點服務設定識別碼及一連線密碼的連線設定資料,傳送給該子節點裝置;當該根節點裝置判斷該子節點裝置不為葉節點,該根節點裝置擷取部分定義該根節點裝置為根節點的該設定清單,產生一屬於樹狀資料結構且定義該子節點裝置為根節點的設定清單,並將定義該子節點裝置為根節點的該設定清單,及該連線設定資料,傳送給該子節點裝置;當該根節點裝置傳送該連線設定資料給每一個為葉節點的子節點裝置且傳送該連線設定資料及定義該子節點裝置為根節點的該設定清單給每一個不為葉節點的子節點裝置之後,該根節點裝置根據該連線設定資料連線至該存取點。The IoT system of the present invention includes: a plurality of IoT devices, one of which is defined as a root node by a configuration list belonging to a tree-like data structure and serves as a root node device, according to the configuration list To determine whether one or more of the IoT devices is defined as a child node of the root node by the configuration list and is an IoT device that is one or more child node devices; if the root node device determines the child node The device is a leaf node, and the root node device sends a connection setting data related to an access point and including an access point service setting identification code and a connection password to the child node device; when the root node device Judging that the child node device is not a leaf node, the root node device extracts a part of the setting list that defines the root node device as the root node, and generates a setting list that belongs to a tree-like data structure and defines the child node device as the root node, And send the setting list that defines the child node device as the root node, and the connection setting data to the child node device; when the root node device sends the connection setting data to each child node device that is a leaf node And after sending the connection setting data and the setting list that defines the child node device as the root node to each child node device that is not a leaf node, the root node device connects to the access point according to the connection setting data .

本發明的功效在於:藉由樹狀資料結構的該設定清單讓除了該第一層裝置之外的該等物聯網裝置自動設定網路連線,使得使用者僅需花費設定該第一層裝置的時間,就能完成所有物聯網裝置的網路設定,從而改善先前技術耗時的缺點。The effect of the present invention is to allow the Internet of Things devices other than the first-tier device to automatically set up a network connection through the setting list of the tree-like data structure, so that the user only needs to set up the first-tier device. Time can complete the network settings of all IoT devices, thus improving the shortcomings of the previous technology.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same numbers.

參閱圖1,本發明自動化網路連線設定方法的一實施例,藉由一物聯網系統100實施,該物聯網系統100包含多個物聯網裝置1及一終端電子裝置2。該等物聯網裝置1例如是具有連接網路功能的空調裝置、冰箱裝置、洗衣裝置之家電裝置,但不以此為限。該等物聯網裝置1於一存取點模式能廣播其裝置識別資料(例如SSID),該等物聯網裝置1的裝置識別資料符合一預定字串格式,舉例來說,該等物聯網裝置1A、1B、1C、1D、1E的裝置識別資料分別為XXX-IOT-A、XXX-IOT-B、XXX-IOT-C、XXX-IOT-D、XXX-IOT-E,該預定字串格式為「XXX-IOT-」。該終端電子裝置2例如是智慧型手機、桌上型電腦、膝上型電腦、平板電腦之具有連接網路功能且適於安裝預定程式的電子裝置,但不以此為限。在本實施例中,該等物聯網裝置1、該終端電子裝置2及一存取點200位於一同一區域內且能透過Wi-Fi相關協定彼此通訊。Referring to FIG. 1, an embodiment of the automatic network connection setting method of the present invention is implemented by an Internet of Things system 100 that includes a plurality of Internet of Things devices 1 and a terminal electronic device 2. The Internet of Things devices 1 are, for example, home appliance devices such as air-conditioning devices, refrigerator devices, and laundry devices with a network connection function, but not limited thereto. The IoT devices 1 can broadcast their device identification data (eg SSID) in an access point mode. The device identification data of the IoT devices 1 conforms to a predetermined string format, for example, the IoT devices 1A , 1B, 1C, 1D, 1E device identification data are XXX-IOT-A, XXX-IOT-B, XXX-IOT-C, XXX-IOT-D, XXX-IOT-E, the predetermined string format is "XXX-IOT-". The terminal electronic device 2 is, for example, a smart phone, a desktop computer, a laptop computer, or a tablet computer that has a network connection function and is suitable for installing a predetermined program, but it is not limited thereto. In this embodiment, the IoT devices 1, the terminal electronic device 2, and an access point 200 are located in the same area and can communicate with each other through Wi-Fi related protocols.

參閱圖1及圖2,以下說明本實施例的一清單建立程序的流程。首先,如步驟S01所示,該終端電子裝置2傳送一清單請求給該等物聯網裝置1其中一個作為一個第一層裝置的物聯網裝置1。在本實施例中,該終端電子裝置2根據使用者的輸入傳送該清單請求給該第一層裝置,也就是說,是由使用者決定哪一個物聯網裝置1作為該第一層裝置。在本實施例中,以該物聯網裝置1A作為該第一層裝置來舉例說明。Referring to FIGS. 1 and 2, the flow of a list creation procedure in this embodiment is described below. First, as shown in step S01, the terminal electronic device 2 transmits a list request to one of the IoT devices 1 as an IoT device 1 as a first-layer device. In this embodiment, the terminal electronic device 2 transmits the list request to the first layer device according to the user's input, that is, the user determines which Internet of Things device 1 is the first layer device. In this embodiment, the Internet of Things device 1A is used as the first layer device for example.

接著,如步驟S02所示,該第一層裝置透過一預定通訊協定(例如Wi-Fi相關協定)掃描鄰近的裝置而獲得鄰近的裝置的裝置識別資料。Next, as shown in step S02, the first layer device scans the neighboring devices through a predetermined communication protocol (such as a Wi-Fi related protocol) to obtain device identification data of the neighboring devices.

接著,如步驟S03所示,該第一層裝置根據該預定字串格式篩選鄰近的裝置的裝置識別資料而產生一裝置清單。該裝置清單包含一個或多個分別指示該等物聯網裝置1其中除了該第一層裝置之外的物聯網裝置1的裝置識別資料。在本實施例中,該裝置清單包含物聯網裝置1B、1C、1D、1E的裝置識別資料,也就是包含XXX-IOT-B、XXX-IOT-C、XXX-IOT-D、XXX-IOT-E。Next, as shown in step S03, the first-layer device filters device identification data of neighboring devices according to the predetermined string format to generate a device list. The device list includes one or more device identification data indicating the Internet of Things devices 1 of the Internet of Things devices 1 except the first layer device, respectively. In this embodiment, the device list contains device identification data of the Internet of Things devices 1B, 1C, 1D, 1E, that is, contains XXX-IOT-B, XXX-IOT-C, XXX-IOT-D, XXX-IOT- E.

接著,如步驟S04所示,該第一層裝置將該裝置清單傳送給該終端電子裝置2。Next, as shown in step S04, the first-tier device transmits the device list to the terminal electronic device 2.

接著,如步驟S05所示,該終端電子裝置2根據該裝置清單及該第一層裝置的裝置識別資料(也就是XXX-IOT-A),產生一完整樹狀清單(如圖3所示)。該完整樹狀清單包含該等物聯網裝置1的裝置識別資料且屬於樹狀資料結構且定義該第一層裝置為根節點。Next, as shown in step S05, the terminal electronic device 2 generates a complete tree list according to the device list and the device identification data of the first-level device (that is, XXX-IOT-A) (as shown in FIG. 3) . The complete tree list contains device identification data of the IoT devices 1 and belongs to a tree data structure and defines the first layer device as a root node.

接著,如步驟S06所示,該終端電子裝置2將該完整樹狀清單傳送給該第一層裝置,以供該第一層裝置將該完整樹狀清單當作一設定清單。Next, as shown in step S06, the terminal electronic device 2 transmits the complete tree list to the first-level device, so that the first-level device uses the complete tree list as a setting list.

參閱圖4及圖5,以下說明本實施例的一根節點設定程序的流程。首先,如步驟S11所示,該等物聯網裝置1其中一個被一屬於樹狀資料結構的設定清單定義為根節點且作為一個根節點裝置的物聯網裝置1,根據該設定清單,判斷該等物聯網裝置1其中一個被該設定清單定義為根節點的子節點且作為一個子節點裝置的物聯網裝置1,是否為葉節點,若是,則執行步驟S12,若否,則執行步驟S13及S14。Referring to FIGS. 4 and 5, the flow of a node setting procedure of this embodiment is described below. First, as shown in step S11, one of the IoT devices 1 is defined as a root node by a setting list belonging to a tree-like data structure and serves as a root node device. Based on the setting list, the IoT devices 1 are judged Whether one of the IoT devices 1 is defined as a child node of the root node by the setting list and is a child node device, is it a leaf node, if so, step S12 is executed, and if not, steps S13 and S14 are executed .

步驟S12是當該根節點裝置判斷該子節點裝置為葉節點,該根節點裝置將一相關於該存取點200且包含一存取點服務設定識別碼及一連線密碼的連線設定資料,傳送給該子節點裝置。步驟S12完成後接著執行步驟S15。Step S12 is when the root node device determines that the child node device is a leaf node, the root node device associates a connection setting data related to the access point 200 and including an access point service setting identifier and a connection password , Transmitted to the child node device. After step S12 is completed, step S15 is then executed.

另一方面,步驟S13是當該根節點裝置判斷該子節點裝置不為葉節點,該根節點裝置擷取部分定義該根節點裝置為根節點的該設定清單,產生一屬於樹狀資料結構且定義該子節點裝置為根節點的設定清單。On the other hand, step S13 is when the root node device determines that the child node device is not a leaf node, the root node device retrieves a part of the configuration list that defines the root node device as the root node, and generates a tree-like data structure and Define the child node device as the root node configuration list.

步驟S14是該根節點裝置將定義該子節點裝置為根節點的該設定清單,及該連線設定資料,傳送給該子節點裝置。步驟S14完成後接著執行步驟S15。Step S14 is that the root node device sends the setting list that defines the child node device as the root node, and the connection setting data to the child node device. After step S14 is completed, step S15 is then executed.

步驟S15是該根節點裝置根據該設定清單,判斷該根節點裝置是否已傳送該連線設定資料給每一個為葉節點的子節點裝置且傳送該連線設定資料及定義該子節點裝置為根節點的該設定清單給每一個不為葉節點的子節點裝置,若否,則針對尚未傳送過該連線設定資料的子節點裝置,再次執行步驟S11,若是,則接著執行步驟S16。Step S15 is that the root node device determines whether the root node device has sent the connection setting data to each child node device that is a leaf node according to the setting list, and transmits the connection setting data and defines the child node device as the root The setting list of the node is given to each child node device that is not a leaf node. If not, step S11 is executed again for the child node devices that have not transmitted the connection setting data. If yes, step S16 is then executed.

步驟S16是當該根節點裝置傳送該連線設定資料給每一個為葉節點的子節點裝置且傳送該連線設定資料及定義該子節點裝置為根節點的該設定清單給每一個不為葉節點的子節點裝置之後,該根節點裝置根據該連線設定資料連線至該存取點200。Step S16 is when the root node device sends the connection setting data to each child node device that is a leaf node and sends the connection setting data and the setting list that defines the child node device as the root node to each non-leaf After the child node device of the node, the root node device connects to the access point 200 according to the connection setting data.

在本實施例中,該物聯網裝置1A首先執行該根節點設定程序。該物聯網裝置1A將接收自該終端電子裝置2的該完整樹狀清單當作該設定清單,而作為該根節點裝置,並先判斷該物聯網裝置1B是否為葉節點。由於該物聯網裝置1B非為葉節點,因此該物聯網裝置1A擷取部分定義該根節點裝置為根節點的該設定清單(擷取如圖3所示的設定清單),產生一屬於樹狀資料結構且定義該物聯網裝置1B為根節點的設定清單(如圖6所示),並將定義該物聯網裝置1B為根節點的該設定清單,及該連線設定資料,傳送給該物聯網裝置1B。In this embodiment, the Internet of Things device 1A first executes the root node setting procedure. The IoT device 1A uses the complete tree list received from the terminal electronic device 2 as the setting list, and serves as the root node device, and first determines whether the IoT device 1B is a leaf node. Since the Internet of Things device 1B is not a leaf node, the Internet of Things device 1A extracts part of the configuration list that defines the root node device as the root node (retrieves the configuration list shown in FIG. 3), and generates a tree The data structure and the setting list that defines the IoT device 1B as the root node (as shown in FIG. 6), and transmits the setting list that defines the IoT device 1B as the root node and the connection setting data to the object Networked device 1B.

接著,該物聯網裝置1A判斷該物聯網裝置1C是否為葉節點。相似地,由於該物聯網裝置1C非為葉節點,因此該物聯網裝置1A擷取部分定義該根節點裝置為根節點的該設定清單(擷取如圖3所示的設定清單),產生一屬於樹狀資料結構且定義該物聯網裝置1C為根節點的設定清單(如圖7所示),並將定義該物聯網裝置1C為根節點的該設定清單,及該連線設定資料,傳送給該物聯網裝置1C。Next, the IoT device 1A determines whether the IoT device 1C is a leaf node. Similarly, since the Internet of Things device 1C is not a leaf node, the Internet of Things device 1A retrieves part of the configuration list that defines the root node device as the root node (retrieves the configuration list shown in FIG. 3), generating a A tree-like data structure that defines the IoT device 1C as the root node setting list (as shown in FIG. 7), and will define the IoT device 1C as the root node of the setting list, and the connection setting data, send Give this IoT device 1C.

接著,該物聯網裝置1A根據該連線設定資料連線至該存取點200。Then, the Internet of Things device 1A connects to the access point 200 according to the connection setting data.

該物聯網裝置1B於接收到來自該物聯網裝置1A的該設定清單(如圖6所示)之後,根據接收自該物聯網裝置1A的該設定清單執行該根節點設定程序。該物聯網裝置1B判斷該物聯網裝置1D是否為葉節點。由於該物聯網裝置1D為葉節點,因此該物聯網裝置1B將該連線設定資料傳送給該物聯網裝置1D,供該物聯網裝置1D根據該連線設定資料連線至該存取點200。接著,該物聯網裝置1B根據該連線設定資料連線至該存取點200。After receiving the setting list (as shown in FIG. 6) from the Internet of Things device 1A, the Internet of Things device 1B executes the root node setting procedure according to the configuration list received from the Internet of Things device 1A. The Internet of Things device 1B determines whether the Internet of Things device 1D is a leaf node. Since the IoT device 1D is a leaf node, the IoT device 1B transmits the connection setting data to the IoT device 1D for the IoT device 1D to connect to the access point 200 according to the connection setting data . Then, the Internet of Things device 1B connects to the access point 200 according to the connection setting data.

該物聯網裝置1C於接收到來自該物聯網裝置1A的該設定清單(如圖7所示)之後,根據接收自該物聯網裝置1A的該設定清單執行該根節點設定程序。該物聯網裝置1C判斷該物聯網裝置1E是否為葉節點。由於該物聯網裝置1E為葉節點,因此該物聯網裝置1C將該連線設定資料傳送給該物聯網裝置1E,供該物聯網裝置1E根據該連線設定資料連線至該存取點200。接著,該物聯網裝置1C根據該連線設定資料連線至該存取點200。After receiving the setting list (as shown in FIG. 7) from the Internet of Things device 1A, the Internet of Things device 1C executes the root node setting procedure according to the configuration list received from the Internet of Things device 1A. The Internet of Things device 1C determines whether the Internet of Things device 1E is a leaf node. Since the IoT device 1E is a leaf node, the IoT device 1C transmits the connection setting data to the IoT device 1E for the IoT device 1E to connect to the access point 200 according to the connection setting data . Then, the Internet of Things device 1C connects to the access point 200 according to the connection setting data.

該物聯網裝置1D及該物聯網裝置1E於接收到該連線設定資料之後根據該連線設定資料連線至該存取點200。After receiving the connection setting data, the Internet of Things device 1D and the Internet of Things device 1E are connected to the access point 200 according to the connection setting data.

綜上所述,本發明自動化網路連線設定方法的實施例藉由樹狀資料結構的該設定清單讓除了該第一層裝置之外的該等物聯網裝置1自動設定網路連線,使得使用者僅需花費設定該第一層裝置的時間,就能完成所有物聯網裝置1的網路設定,從而改善先前技術耗時的缺點,故確實能達成本發明的目的。In summary, the embodiment of the automatic network connection setting method of the present invention allows the Internet of Things devices 1 other than the first layer device to automatically set the network connection through the setting list of the tree-like data structure, so that The user only needs to spend the time of setting up the first layer device to complete the network setting of all the IoT devices 1, thereby improving the shortcomings of the time-consuming of the prior art, so it can indeed achieve the purpose of the invention.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above are only examples of the present invention, and the scope of implementation of the present invention cannot be limited by this, any simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the patent specification are still classified as Within the scope of the invention patent.

100‧‧‧物聯網系統 1、1A、1B、1C、1D、1E‧‧‧物聯網裝置 2‧‧‧終端電子裝置 200‧‧‧存取點 S01~S06‧‧‧步驟 S11~S16‧‧‧步驟100‧‧‧Internet of things system 1. 1A, 1B, 1C, 1D, 1E 2‧‧‧terminal electronic device 200‧‧‧Access point S01~S06‧‧‧Step S11~S16‧‧‧Step

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是本發明自動化網路連線設定方法的一個實施例的一硬體連接關係示意圖,說明一終端電子裝置與多個物聯網裝置的其中一者的通訊; 圖2是該實施例的一流程圖,說明一清單建立程序; 圖3是該實施例的一資料結構圖,說明一完整樹狀清單; 圖4是該實施例的另一硬體連接關係示意圖,說明該等物聯網裝置之間的通訊; 圖5是該實施例的另一流程圖,說明一根節點設定程序; 圖6是該實施例的另一資料結構圖,說明擷取自該完整樹狀清單的一設定清單;及 圖7是該實施例的另一資料結構圖,說明擷取自該完整樹狀清單的另一設定清單。 Other features and functions of the present invention will be clearly presented in the embodiments with reference to the drawings, in which: 1 is a schematic diagram of a hardware connection relationship according to an embodiment of an automated network connection setting method of the present invention, illustrating communication between a terminal electronic device and one of a plurality of Internet of Things devices; FIG. 2 is a flowchart of the embodiment, illustrating a list creation procedure; FIG. 3 is a data structure diagram of the embodiment, illustrating a complete tree list; 4 is a schematic diagram of another hardware connection relationship of the embodiment, illustrating communication between the Internet of Things devices; FIG. 5 is another flowchart of the embodiment, illustrating a node setting procedure; 6 is another data structure diagram of the embodiment, illustrating a setting list retrieved from the complete tree list; and 7 is another data structure diagram of the embodiment, illustrating another setting list retrieved from the complete tree list.

S11~S16‧‧‧步驟 S11~S16‧‧‧Step

Claims (8)

一種自動化網路連線設定方法,藉由一物聯網系統實施,該物聯網系統包含多個物聯網裝置,該方法包含: (A)該等物聯網裝置其中一個被一屬於樹狀資料結構的設定清單定義為根節點且作為一個根節點裝置的物聯網裝置,根據該設定清單,判斷該等物聯網裝置其中一個或多個被該設定清單定義為根節點的子節點且作為一個或多個子節點裝置的物聯網裝置,是否為葉節點; (B)當該根節點裝置判斷該子節點裝置為葉節點,該根節點裝置將一相關於一存取點且包含一存取點服務設定識別碼及一連線密碼的連線設定資料,傳送給該子節點裝置; (C)當該根節點裝置判斷該子節點裝置不為葉節點,該根節點裝置擷取部分定義該根節點裝置為根節點的該設定清單,產生一屬於樹狀資料結構且定義該子節點裝置為根節點的設定清單,並將定義該子節點裝置為根節點的該設定清單,及該連線設定資料,傳送給該子節點裝置;及 (D)當該根節點裝置傳送該連線設定資料給每一個為葉節點的子節點裝置且傳送該連線設定資料及定義該子節點裝置為根節點的該設定清單給每一個不為葉節點的子節點裝置之後,該根節點裝置根據該連線設定資料連線至該存取點。 An automatic network connection setting method is implemented by an Internet of Things system that includes multiple Internet of Things devices. The method includes: (A) One of the IoT devices is defined as a root node by a setting list belonging to a tree-like data structure and serves as a root node device. According to the setting list, one or more of the IoT devices are determined Whether an IoT device defined as a child node of the root node by the setting list and serving as one or more child node devices is a leaf node; (B) When the root node device determines that the child node device is a leaf node, the root node device associates a connection setting data related to an access point and includes an access point service setting identification code and a connection password, Transmitted to the child node device; (C) When the root node device determines that the child node device is not a leaf node, the root node device retrieves a part of the setting list that defines the root node device as the root node, generates a tree-like data structure and defines the child node The device is a configuration list of the root node, and the configuration list that defines the child node device as the root node, and the connection setting data are sent to the child node device; and (D) When the root node device sends the connection setting data to each child node device that is a leaf node and sends the connection setting data and the setting list that defines the child node device as the root node to each non-leaf After the child node device of the node, the root node device connects to the access point according to the connection setting data. 如請求項1所述的自動化網路連線設定方法,其中,該物聯網系統還包含一終端電子裝置,該方法於步驟(A)之前還包含: (E)該終端電子裝置根據一裝置清單及一指示出該等物聯網裝置其中一個作為一個第一層裝置的物聯網裝置的裝置識別資料,產生一完整樹狀清單,該裝置清單包含一個或多個分別指示該等物聯網裝置其中除了該第一層裝置之外的物聯網裝置的裝置識別資料,該完整樹狀清單包含該等物聯網裝置的裝置識別資料且屬於樹狀資料結構且定義該第一層裝置為根節點;及 (F)該終端電子裝置將該完整樹狀清單傳送給該第一層裝置,以供該第一層裝置將該完整樹狀清單當作該設定清單而執行步驟(A)。 The automatic network connection setting method according to claim 1, wherein the IoT system further includes a terminal electronic device, and the method before step (A) further includes: (E) The terminal electronic device generates a complete tree list based on a device list and a device identification data indicating that one of the IoT devices is a first-level device, and the device list includes one or A plurality of device identification data indicating the Internet of Things devices of the Internet of Things devices other than the first layer device respectively, the complete tree-like list includes the device identification data of the Internet of Things devices and belongs to a tree-like data structure and definition The first level device is the root node; and (F) The terminal electronic device transmits the complete tree list to the first layer device, so that the first layer device uses the complete tree list as the setting list and performs step (A). 如請求項2所述的自動化網路連線設定方法,其中,該等物聯網裝置的裝置識別資料符合一預定字串格式,該方法於步驟(E)之前還包含: (G)該第一層裝置透過一預定通訊協定掃描鄰近的裝置而獲得鄰近的裝置的裝置識別資料;及 (H)該第一層裝置根據該預定字串格式篩選鄰近的裝置的裝置識別資料而產生該裝置清單,並將該裝置清單傳送給該終端電子裝置。 The automatic network connection setting method according to claim 2, wherein the device identification data of the IoT devices conforms to a predetermined string format, and the method further includes before step (E): (G) The first layer device scans the neighboring device through a predetermined communication protocol to obtain the device identification data of the neighboring device; and (H) The first-layer device filters the device identification data of neighboring devices according to the predetermined string format to generate the device list, and transmits the device list to the terminal electronic device. 如請求項3所述的自動化網路連線設定方法,於步驟(G)之前還包含: (I)該終端電子裝置傳送一清單請求給該第一層裝置,該清單請求使該第一層裝置執行步驟(G)及(H)。 The automatic network connection setting method described in claim 3, before step (G), further includes: (I) The terminal electronic device sends a list request to the first layer device. The list request causes the first layer device to perform steps (G) and (H). 一種物聯網系統,包含: 多個物聯網裝置,該等物聯網裝置其中一個被一屬於樹狀資料結構的設定清單定義為根節點且作為一個根節點裝置的物聯網裝置,根據該設定清單,判斷該等物聯網裝置其中一個或多個被該設定清單定義為根節點的子節點且作為一個或多個子節點裝置的物聯網裝置,是否為葉節點; 當該根節點裝置判斷該子節點裝置為葉節點,該根節點裝置將一相關於一存取點且包含一存取點服務設定識別碼及一連線密碼的連線設定資料,傳送給該子節點裝置; 當該根節點裝置判斷該子節點裝置不為葉節點,該根節點裝置擷取部分定義該根節點裝置為根節點的該設定清單,產生一屬於樹狀資料結構且定義該子節點裝置為根節點的設定清單,並將定義該子節點裝置為根節點的該設定清單,及該連線設定資料,傳送給該子節點裝置; 當該根節點裝置傳送該連線設定資料給每一個為葉節點的子節點裝置且傳送該連線設定資料及定義該子節點裝置為根節點的該設定清單給每一個不為葉節點的子節點裝置之後,該根節點裝置根據該連線設定資料連線至該存取點。 An Internet of Things system, including: A plurality of IoT devices, one of the IoT devices is defined as a root node and an IoT device as a root node device by a setting list belonging to a tree-like data structure, and the IoT devices are judged based on the setting list Whether one or more IoT devices defined as child nodes of the root node by the setting list and serving as one or more child node devices are leaf nodes; When the root node device determines that the child node device is a leaf node, the root node device sends a connection setting data related to an access point and including an access point service setting identification code and a connection password to the Child node device; When the root node device determines that the child node device is not a leaf node, the root node device retrieves a part of the configuration list that defines the root node device as the root node, generates a tree-like data structure and defines the child node device as the root The setting list of the node, and the setting list that defines the child node device as the root node, and the connection setting data are sent to the child node device; When the root node device sends the connection setting data to each child node device that is a leaf node and sends the connection setting data and the setting list that defines the child node device as the root node to each child that is not a leaf node After the node device, the root node device connects to the access point according to the connection setting data. 如請求項5所述的物聯網系統,還包含一終端電子裝置,其中,該終端電子裝置根據一裝置清單及一指示出該等物聯網裝置其中一個作為一個第一層裝置的物聯網裝置的裝置識別資料,產生一完整樹狀清單,該裝置清單包含一個或多個分別指示該等物聯網裝置其中除了該第一層裝置之外的物聯網裝置的裝置識別資料,該完整樹狀清單包含該等物聯網裝置的裝置識別資料且屬於樹狀資料結構且定義該第一層裝置為根節點; 該終端電子裝置將該完整樹狀清單傳送給該第一層裝置,以供該第一層裝置將該完整樹狀清單當作該設定清單。 The IoT system according to claim 5, further comprising a terminal electronic device, wherein the terminal electronic device indicates one of the IoT devices as a first-tier device based on a device list and an indication The device identification data generates a complete tree list, the device list includes one or more device identification data indicating the IoT devices except the first-level device respectively, and the complete tree list includes The device identification data of these IoT devices belongs to a tree-like data structure and defines the first layer device as the root node; The terminal electronic device transmits the complete tree list to the first layer device, so that the first layer device uses the complete tree list as the setting list. 如請求項6所述的物聯網系統,其中,該等物聯網裝置的裝置識別資料符合一預定字串格式; 該第一層裝置透過一預定通訊協定掃描鄰近的裝置而獲得鄰近的裝置的裝置識別資料; 該第一層裝置根據該預定字串格式篩選鄰近的裝置的裝置識別資料而產生該裝置清單,並將該裝置清單傳送給該終端電子裝置。 The IoT system according to claim 6, wherein the device identification data of the IoT devices conform to a predetermined string format; The first layer device scans neighboring devices through a predetermined communication protocol to obtain device identification data of the neighboring devices; The first layer device filters device identification data of neighboring devices according to the predetermined string format to generate the device list, and transmits the device list to the terminal electronic device. 如請求項7所述的物聯網系統,其中,該終端電子裝置傳送一清單請求給該第一層裝置,該清單請求使該第一層裝置掃描鄰近的裝置、產生該裝置清單及將該裝置清單傳送給該終端電子裝置。The Internet of Things system of claim 7, wherein the terminal electronic device sends a list request to the first-tier device, the list request causes the first-tier device to scan neighboring devices, generate the device list, and the device The list is transmitted to the terminal electronic device.
TW108101115A 2019-01-11 2019-01-11 Automatic network connection setting method and internet of things system TWI684343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108101115A TWI684343B (en) 2019-01-11 2019-01-11 Automatic network connection setting method and internet of things system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108101115A TWI684343B (en) 2019-01-11 2019-01-11 Automatic network connection setting method and internet of things system

Publications (2)

Publication Number Publication Date
TWI684343B true TWI684343B (en) 2020-02-01
TW202027470A TW202027470A (en) 2020-07-16

Family

ID=70413244

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108101115A TWI684343B (en) 2019-01-11 2019-01-11 Automatic network connection setting method and internet of things system

Country Status (1)

Country Link
TW (1) TWI684343B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103619045A (en) * 2013-11-21 2014-03-05 中国科学院信息工程研究所 Route establishing method and system of low-consumption lossy network
TWI514902B (en) * 2013-11-15 2015-12-21 環旭電子股份有限公司 Wireless network configuration method and system for a smart appliance
TW201615054A (en) * 2014-10-15 2016-04-16 Matsushita Electric Tw Co Ltd Control method of intelligent home appliance system and control method of mobile communication device
TWI538442B (en) * 2014-11-18 2016-06-11 Matsushita Electric Tw Co Ltd Intelligent appliance control method and system
US9451462B2 (en) * 2014-08-10 2016-09-20 Belkin International Inc. Setup of multiple IoT network devices
CN107241784A (en) * 2017-06-16 2017-10-10 深圳市盛路物联通讯技术有限公司 The method and device of Internet of Things access
TWI619403B (en) * 2016-07-18 2018-03-21 智易科技股份有限公司 Mobile management system, method for managing a local area network, and computer-readable storage device
TW201822012A (en) * 2016-12-08 2018-06-16 聯順聯網股份有限公司 Internet of things system and connection method thereof wherein one internet of things device can connect with a central control terminal and an user terminal at the same time without interruption
TWI641956B (en) * 2015-01-29 2018-11-21 宏達國際電子股份有限公司 Internet of things system and control method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI514902B (en) * 2013-11-15 2015-12-21 環旭電子股份有限公司 Wireless network configuration method and system for a smart appliance
CN103619045A (en) * 2013-11-21 2014-03-05 中国科学院信息工程研究所 Route establishing method and system of low-consumption lossy network
US9451462B2 (en) * 2014-08-10 2016-09-20 Belkin International Inc. Setup of multiple IoT network devices
TW201615054A (en) * 2014-10-15 2016-04-16 Matsushita Electric Tw Co Ltd Control method of intelligent home appliance system and control method of mobile communication device
TWI538442B (en) * 2014-11-18 2016-06-11 Matsushita Electric Tw Co Ltd Intelligent appliance control method and system
TWI641956B (en) * 2015-01-29 2018-11-21 宏達國際電子股份有限公司 Internet of things system and control method
TWI619403B (en) * 2016-07-18 2018-03-21 智易科技股份有限公司 Mobile management system, method for managing a local area network, and computer-readable storage device
TW201822012A (en) * 2016-12-08 2018-06-16 聯順聯網股份有限公司 Internet of things system and connection method thereof wherein one internet of things device can connect with a central control terminal and an user terminal at the same time without interruption
CN107241784A (en) * 2017-06-16 2017-10-10 深圳市盛路物联通讯技术有限公司 The method and device of Internet of Things access

Also Published As

Publication number Publication date
TW202027470A (en) 2020-07-16

Similar Documents

Publication Publication Date Title
US20210136653A1 (en) Internet of Things Service Routing Method
KR102478442B1 (en) Method for setting pdu type, method for setting ue policy, and related entities
US20200296142A1 (en) User Group Establishment Method and Apparatus
WO2020224463A1 (en) Data analysis method and apparatus
WO2017148308A1 (en) Method, apparatus and system for accessing network by internet-of-things device
JP5534623B2 (en) Terminal remote management method and apparatus
WO2019011203A1 (en) Device access method, device and system
US20210337463A1 (en) Systems and methods for prioritizing service set identifiers on a wireless access point
CN109644522A (en) For passing through the method and system of wireless network secure loading equipemtn
CN107864053B (en) Zookeeper-based dynamic configuration method and device
US11246174B2 (en) Methods and systems for connecting a wireless device to a wireless network
WO2018024121A1 (en) Network function (nf) management method and nf management device
JP7535022B2 (en) Apparatus, method and program for remotely managing devices
WO2022002244A1 (en) Online subscription method, apparatus and system
US20230269577A1 (en) Slice isolation method, apparatus, and system
CN107113615A (en) A kind of authentication method, system and relevant device to access point AP
TWI684343B (en) Automatic network connection setting method and internet of things system
CN109981462B (en) Message processing method and device
CN105208679A (en) Equipment and method for realizing wireless network intercommunication
US20240097901A1 (en) Method and apparatus for setting registration between iot controller and iot controlee on basis of c2c connection in wireless lan system of smart home environment
KR20200068101A (en) Apparatus and method for detecting abnormal IoT terminal
CN109600265A (en) A kind of access circuit AC configuration information delivery method, device and server
CN111147269B (en) Access point configuration method, networking system, access point and storage medium
WO2019192439A1 (en) Communication capability reporting method, device and system
JP2020123875A5 (en)