TWI599200B - A method of implementing network node control - Google Patents

A method of implementing network node control Download PDF

Info

Publication number
TWI599200B
TWI599200B TW105104001A TW105104001A TWI599200B TW I599200 B TWI599200 B TW I599200B TW 105104001 A TW105104001 A TW 105104001A TW 105104001 A TW105104001 A TW 105104001A TW I599200 B TWI599200 B TW I599200B
Authority
TW
Taiwan
Prior art keywords
node
counter value
controlled
master node
network
Prior art date
Application number
TW105104001A
Other languages
Chinese (zh)
Other versions
TW201709696A (en
Inventor
qi-xing Liu
Kan Lou
Original Assignee
Guangzhou On-Bright Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou On-Bright Electronics Co Ltd filed Critical Guangzhou On-Bright Electronics Co Ltd
Publication of TW201709696A publication Critical patent/TW201709696A/en
Application granted granted Critical
Publication of TWI599200B publication Critical patent/TWI599200B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

一種實現網路節點控制的方法 Method for realizing network node control

本發明總體涉及通信領域和物聯網領域,並且更具體地,涉及一種實現網路節點控制的方法。 The present invention generally relates to the field of communications and the field of Internet of Things, and more particularly to a method of implementing network node control.

對於智慧家居領域的產品來說,通過外界因素變化或達到內部預先設定條件,便能自動完成某些預設動作,這是必須具備的一項功能。然而,傳統上,這一功能在許多場景中不能預期完成。例如,當受控節點斷電後,主控節點執行釋放設備(清碼)操作,受控節點此時因為無法收到主控節點釋放設備(清碼)操作的相應消息而導致無法正常退網(被清碼),因而導致受控節點之後難以重新入網等。此外,各企業為了搶奪市場,在智慧家居產品中往往會儘量考慮低成本的硬體,所以,如何在此類硬體資源上簡單高效地完成預設動作,是擺在廣大開發者面前的一個難題。 For products in the smart home field, certain preset actions can be automatically completed by external factors or internal pre-set conditions, which is a necessary function. However, traditionally, this feature was not expected to be completed in many scenarios. For example, when the controlled node is powered off, the master node performs the release device (clearing code) operation, and the controlled node cannot receive the corresponding message due to the operation of the master node to release the device (clear code). (cleared), thus making it difficult to re-enter the network after the controlled node. In addition, in order to seize the market, companies tend to consider low-cost hardware in smart home products. Therefore, how to easily and efficiently complete preset actions on such hardware resources is a problem for developers. problem.

根據本發明的一方面,提供了一種實現網路節點控制的方法,該方法包括:主控節點在當受控節點接入主控節點的網路時將第一計數器值發送給受控節點,第一計數器值指示直到受控節點接入主控節點的網路時預設動作被執行的次數;受控節點接收從主控節點發送的第一計數器值;主控節點以預定時間間隔向受控節點發送根據預設動作的執行而更新的計數器值;受控節點接收從主控節點發送的更新的計數器值;受控節點將接收到的第一計數器值與更新的計數器值進行比較,並根據比較結果執行相應動作。 According to an aspect of the present invention, a method for implementing network node control is provided, the method comprising: the master node transmitting a first counter value to the controlled node when the controlled node accesses the network of the master node, The first counter value indicates the number of times the preset action is performed until the controlled node accesses the network of the master node; the controlled node receives the first counter value sent from the master node; the master node receives the predetermined time interval The control node sends a counter value updated according to the execution of the preset action; the controlled node receives the updated counter value sent from the master node; the controlled node compares the received first counter value with the updated counter value, and Perform the corresponding action based on the comparison result.

根據本發明的另一方面,提供了一種實現網路節點控制的方法,該方法包括:主控節點在當受控節點接入主控節點的網路時將第一計 數器值發送給受控節點,第一計數器值指示直到受控節點接入主控節點的網路時預設動作被執行的次數;主控節點以預定時間間隔向受控節點發送根據預設動作的執行而更新的計數器值,其中受控節點將從主控節點接收的第一計數器值與更新的計數器值進行比較,從而根據比較結果執行相應動作。 According to another aspect of the present invention, a method for implementing network node control is provided, the method comprising: the master node is to be the first one when the controlled node accesses the network of the master node The value of the counter is sent to the controlled node, and the first counter value indicates the number of times the preset action is executed until the controlled node accesses the network of the master node; the master node sends the preset node to the controlled node according to the preset time interval. A counter value updated by execution of the action, wherein the controlled node compares the first counter value received from the master node with the updated counter value, thereby performing a corresponding action based on the comparison result.

根據本發明的另一方面,提供了一種實現網路節點控制的方法,該方法包括:受控節點在接入主控節點的網路時從主控節點接收第一計數器值,其中,第一計數器值指示直到受控節點接入主控節點的網路時預設動作被執行的次數;受控節點以預定時間間隔從主控節點接收根據預設動作的執行而更新的計數器值;以及受控節點將從主控節點接收的第一計數器值與更新的計數器值進行比較,從而根據比較結果執行相應動作。 According to another aspect of the present invention, a method for implementing network node control is provided, the method comprising: receiving, by a controlled node, a first counter value from a master node when accessing a network of a master node, wherein The counter value indicates the number of times the preset action is performed until the controlled node accesses the network of the master node; the controlled node receives the counter value updated according to the execution of the preset action from the master node at predetermined time intervals; The control node compares the first counter value received from the master node with the updated counter value, thereby performing a corresponding action according to the comparison result.

本發明所提出的方法簡單、高效,因而特別適合於低成本的設備。此外,本發明所提出的方法能夠實現網路節點控制,例如,使得網路節點進行自我恢復或自動完成某些預設動作,因此具有智慧化的特點。在如下附圖和說明中闡述了本發明的一個或多個實施方式的細節。本發明的其它特徵、目的和優點可由本說明書、附圖和權利要求明顯獲得。 The method proposed by the present invention is simple and efficient, and thus is particularly suitable for low cost equipment. In addition, the method proposed by the present invention can implement network node control, for example, enabling a network node to self-recover or automatically perform certain preset actions, and thus has an intelligent feature. Details of one or more embodiments of the invention are set forth in the accompanying drawings and description. Other features, objects, and advantages of the invention will be apparent from the description and appended claims.

A‧‧‧節點(主控節點) A‧‧‧ node (master node)

N1‧‧‧第一計數器值 N1‧‧‧ first counter value

B、C、D、E、F、G‧‧‧節點(受控節點) B, C, D, E, F, G‧‧‧ nodes (controlled nodes)

N2‧‧‧第二計數器值 N2‧‧‧ second counter value

100‧‧‧星型網路 100‧‧‧ star network

200‧‧‧樹型網路 200‧‧‧ Tree Network

300‧‧‧無線網格網路 300‧‧‧Wireless mesh network

400、700、800‧‧‧實現網路節點控制的方法 400, 700, 800‧‧‧ methods for implementing network node control

401、402、403、404、405、501、502、601、602、603、604、605、606、607、608、609、610、611、701、702、703、801、802、803、804、805‧‧‧步驟 401, 402, 403, 404, 405, 501, 502, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 701, 702, 703, 801, 802, 803, 804, 805‧‧‧Steps

結合以下附圖,根據本發明的實施例的描述可以更好地理解本發明,其中:第1圖示出了根據本發明的一個實施例的可以在其中實現本發明的星型網路的示意圖;第2圖示出了根據本發明的一個實施例的可以在其中實現本發明的樹型網路的示意圖;第3圖示出了根據本發明的一個實施例的可以在其中實現本發明的無線網格網路的示意圖;第4圖示出了根據本發明的一個實施例的用於實現網路節點控制的方法的流程圖;第5圖示出了根據本發明的一個實施例的在主控節點側用於實現網路 節點控制的方法的流程圖;第6圖示出了根據本發明的一個實施例的在主控節點側用於實現網路節點控制的方法的流程圖;第7圖示出了根據本發明的一個實施例的在受控節點側用於實現網路節點控制的方法的流程圖;以及第8圖示出了根據本發明的一個實施例的在受控節點側用於實現網路節點控制的方法的流程圖。 The present invention can be better understood by the following description of embodiments of the invention, in which: FIG. 1 shows a schematic diagram of a star network in which the present invention may be implemented in accordance with an embodiment of the present invention. 2 is a schematic diagram showing a tree network in which the present invention can be implemented according to an embodiment of the present invention; and FIG. 3 is a view showing an embodiment in which the present invention can be implemented according to an embodiment of the present invention. Schematic diagram of a wireless mesh network; FIG. 4 is a flow chart showing a method for implementing network node control according to an embodiment of the present invention; FIG. 5 is a view showing an embodiment of the present invention The master node side is used to implement the network A flowchart of a method of node control; FIG. 6 is a flow chart showing a method for implementing network node control on a master node side according to an embodiment of the present invention; and FIG. 7 is a view showing a method according to the present invention. A flowchart of a method for implementing network node control on a controlled node side of an embodiment; and FIG. 8 illustrates a network node control for implementing network node control on a controlled node side according to an embodiment of the present invention Flow chart of the method.

下面將詳細描述本發明各個方面的特徵和示例性實施例。下面的描述涵蓋了許多具體細節,以便提供對本發明的全面理解。但是,對於本領域技術人員來說顯而易見的是,本發明可以在不需要這些具體細節中的一些細節的情況下實施。下面對實施例的描述僅僅是為了通過示出本發明的示例來提供對本發明更清楚的理解。本發明絕不限於下面所提出的任何具體配置,而是在不脫離本發明的精神的前提下覆蓋了相關特徵、結構、操作等的任何修改、替換和改進。 Features and exemplary embodiments of various aspects of the invention are described in detail below. The following description covers many specific details in order to provide a However, it will be apparent to those skilled in the art that the present invention may be practiced without some of these details. The following description of the embodiments is merely intended to provide a further understanding of the invention. The present invention is in no way limited to any specific configuration, which is set forth below, but without departing from the spirit and scope of the invention.

本發明可適用於各種網路,例如,星型網路、樹型網路、無線網格網路等。下麵參照第1圖、第2圖和第3圖分別對星型網路、樹型網路以及無線網格網路進行描述。 The present invention is applicable to various networks such as a star network, a tree network, a wireless mesh network, and the like. The star network, the tree network, and the wireless mesh network are described below with reference to FIG. 1, FIG. 2, and FIG. 3, respectively.

本發明可適用於各種網路,例如,星型網路、樹型網路、無線網格網路等。下麵參照第1圖、第2圖和第3圖分別對星型網路、樹型網路以及無線網格網路進行描述。 The present invention is applicable to various networks such as a star network, a tree network, a wireless mesh network, and the like. The star network, the tree network, and the wireless mesh network are described below with reference to FIG. 1, FIG. 2, and FIG. 3, respectively.

第1圖示出了根據本發明的一個實施例的可以在其中實現本發明的星型網路100的示意圖。星型網路是集中式控制網路。如第1圖所示,節點A是該星型網路的中心節點並作為主控節點,節點B、C、D、E、F、G均為受控節點。主控節點A可以直接對受控節點B、C、D、E、F、G進行控制,而受控節點B、C、D、E、F、G可以根據主控節點A的控制執行相應動作。在該星型網路100中,受控節點B、C、D、E、F、G在網路中的地位可 以是相同的,但它們可以從主控節點A接收相同或不同的控制指令,從而執行相同或不同的動作。 Figure 1 shows a schematic diagram of a star network 100 in which the present invention may be implemented in accordance with one embodiment of the present invention. A star network is a centralized control network. As shown in Figure 1, node A is the central node of the star network and acts as the master node. Nodes B, C, D, E, F, and G are all controlled nodes. The master node A can directly control the controlled nodes B, C, D, E, F, G, and the controlled nodes B, C, D, E, F, G can perform corresponding actions according to the control of the master node A. . In the star network 100, the status of the controlled nodes B, C, D, E, F, G in the network can be The same is true, but they can receive the same or different control commands from the master node A to perform the same or different actions.

第2圖示出了根據本發明的一個實施例的可以在其中實現本發明的樹型網路200的示意圖。樹型網路是分級的集中式控制網路。如第2圖所示,節點A是該樹型網路的中心節點,可以作為主控節點,節點B、C與節點D、E、F、G處於不同的層級。在一方面中,如第2圖所示,節點B、C相對於節點A可以作為受控節點,而在另一方面中,節點B、C相對於下一級節點D、E、F、G可以作為主控節點。因此,在第2圖中,主控節點A可以直接對節點B、C進行控制,節點B、C可以根據主控節點A的控制執行相應動作。另外,節點B、C可以分別對節點D、E和F、G進行控制,節點D、E和F、G可以分別根據節點B、C的控制執行相應動作。應當注意,在第2圖中,儘管節點D、E、F、G分別受節點B、C的控制,但它們都間接地受主控節點A控制。 Figure 2 shows a schematic diagram of a tree network 200 in which the present invention may be implemented in accordance with one embodiment of the present invention. A tree network is a hierarchical centralized control network. As shown in Fig. 2, node A is the central node of the tree network and can be used as the master node. Nodes B and C are at different levels from nodes D, E, F, and G. In one aspect, as shown in FIG. 2, nodes B, C may act as controlled nodes with respect to node A, while in another aspect, nodes B, C may be relative to lower-level nodes D, E, F, G. As the master node. Therefore, in FIG. 2, the master node A can directly control the nodes B and C, and the nodes B and C can perform corresponding actions according to the control of the master node A. In addition, the nodes B and C can respectively control the nodes D, E, F, and G, and the nodes D, E, and F, and G can perform corresponding actions according to the control of the nodes B and C, respectively. It should be noted that in FIG. 2, although nodes D, E, F, and G are controlled by nodes B and C, respectively, they are all indirectly controlled by the master node A.

第3圖示出了根據本發明的一個實施例的可以在其中實現本發明的無線網格網路300的示意圖。無線網格網路是一種無線多跳網路。如圖3所示,節點A是該無線網格網路的中心節點,可以作為主控節點。節點B、C和G可以直接與主控節點A進行通信,因而,主控節點A可以直接地控制節點B、C和G;節點D、E和F可以通過節點B、C和G間接地與主控節點A進行通信,因而,主控節點A可以間接地控制節點D、E和F。此外,如第3圖所示,該無線網格網路中的所有節點可以直接或間接地進行通信,一個節點對另一節點的控制可以通過一種以上方式來實現,並且在某節點發生故障的情況下,可以利用替代路徑來實現控制。例如,對於節點E,主控節點A可以經由節點C來直接控制該節點,或者,主控節點A可以經由節點G和F或者G和C(A→G→F→E;A→G→C→E)來控制節點E,又或者,主控節點A可以經由節點G、C、B和D來(A→G→C→B→D→E)來控制節點E。因而,即使節點C出現故障,則主控節點A可以通過例如A→G→F→E來控制節點E。 Figure 3 shows a schematic diagram of a wireless mesh network 300 in which the present invention may be implemented in accordance with one embodiment of the present invention. A wireless mesh network is a wireless multi-hop network. As shown in FIG. 3, node A is the central node of the wireless mesh network and can be used as a master node. Nodes B, C, and G can communicate directly with the master node A. Thus, the master node A can directly control the nodes B, C, and G; the nodes D, E, and F can indirectly communicate with the nodes B, C, and G. The master node A communicates, and thus, the master node A can indirectly control the nodes D, E, and F. In addition, as shown in FIG. 3, all nodes in the wireless mesh network can communicate directly or indirectly, and control of one node to another node can be implemented in one or more manners, and a fault occurs in a certain node. In this case, an alternative path can be used to achieve control. For example, for node E, master node A can directly control the node via node C, or master node A can pass nodes G and F or G and C (A→G→F→E; A→G→C →E) to control node E, or alternatively, master node A can control node E via nodes G, C, B, and D (A→G→C→B→D→E). Thus, even if the node C fails, the master node A can control the node E by, for example, A→G→F→E.

上述第1圖-第3圖僅為本發明的應用場景示例。本發明的應用場景不限於上述第1圖、第2圖和第3圖所示的網路拓撲結構,並且接入節 點數目也不限於第1圖、第2圖和第3圖中所示的數目,本發明可以適用於具有任意合適的節點數目的任何網路。 The above first to third figures are merely examples of application scenarios of the present invention. The application scenario of the present invention is not limited to the network topology shown in the above FIG. 1, FIG. 2, and FIG. 3, and the access section The number of points is also not limited to the numbers shown in Figs. 1, 2, and 3, and the present invention can be applied to any network having any suitable number of nodes.

第4圖示出了根據本發明的一個實施例的用於實現網路節點控制的方法400的流程圖。 Figure 4 illustrates a flow diagram of a method 400 for implementing network node control in accordance with one embodiment of the present invention.

如第4圖所示,用於實現網路節點控制的方法400可以包括如下步驟:步驟401:主控節點在當受控節點接入主控節點的網路時將第一計數器值發送給受控節點,第一計數器值指示直到受控節點接入主控節點的網路時預設動作被執行的次數;步驟402:受控節點接收從主控節點發送的第一計數器值;步驟403:主控節點以預定時間間隔向受控節點發送根據預設動作的執行而更新的計數器值;步驟404:受控節點接收從主控節點發送的更新的計數器值;步驟405:受控節點將接收到的第一計數器值與更新的計數器值進行比較,從而根據比較結果執行相應動作。 As shown in FIG. 4, the method 400 for implementing network node control may include the following steps: Step 401: The master node sends a first counter value to the received node when the controlled node accesses the network of the master node. The control node, the first counter value indicates the number of times the preset action is performed until the controlled node accesses the network of the master node; step 402: the controlled node receives the first counter value sent from the master node; step 403: The master node transmits the counter value updated according to the execution of the preset action to the controlled node at a predetermined time interval; step 404: the controlled node receives the updated counter value sent from the master node; step 405: the controlled node will receive The first counter value that is reached is compared with the updated counter value, thereby performing a corresponding action based on the comparison result.

在一個實施例中,主控節點可以通過向受控節點發送包含更新的計數器值的資料包來向受控節點發送更新的計數器值。 In one embodiment, the master node may send the updated counter value to the controlled node by sending a packet containing the updated counter value to the controlled node.

在一個實施例中,受控節點的數量可以為多個,並且其中,主控節點可以通過單播方式分別向受控節點發送相關聯的更新的計數器值。 In one embodiment, the number of controlled nodes may be multiple, and wherein the master node may separately send the associated updated counter value to the controlled node by unicast.

在一個實施例中,受控節點的數量可以為多個,並且其中,主控節點可以通過廣播方式向這多個受控節點發送相關聯的更新的計數器值。 In one embodiment, the number of controlled nodes may be multiple, and wherein the master node may send the associated updated counter value to the plurality of controlled nodes by broadcast.

在一個實施例中,受控節點的數量可以為多個,並且其中,主控節點可以通過組播方式向這多個受控節點發送相關聯的更新的計數器值。 In one embodiment, the number of controlled nodes may be multiple, and wherein the master node may send the associated updated counter value to the plurality of controlled nodes in a multicast manner.

在一個實施例中,預設動作可以包括釋放受控節點的網路位址和連接的操作。 In one embodiment, the preset action may include releasing the network address of the controlled node and the operation of the connection.

在一個實施例中,預設動作可以包括使受控節點上電或斷電 的操作。 In one embodiment, the preset action may include powering up or powering down the controlled node Operation.

根據第4圖所述的方法,能夠實現網路節點控制,例如,使得網路節點進行自我恢復或自動完成某些預設動作。此外,上述方法簡單、高效,因而特別適合於低成本的設備。 According to the method described in FIG. 4, network node control can be implemented, for example, such that the network node performs self-recovery or automatically performs certain preset actions. In addition, the above method is simple and efficient, and thus is particularly suitable for low-cost devices.

下面將參照第5圖-第8圖分別從主控節點和受控節點側來更詳細地說明根據本發明的用於實現網路節點控制的方法。 The method for implementing network node control according to the present invention will be described in more detail below with reference to Figures 5-8, respectively, from the master node and the controlled node side.

第5圖示出了根據本發明的一個實施例的在主控節點側用於實現網路節點控制的方法500的流程圖。 Figure 5 illustrates a flow diagram of a method 500 for implementing network node control on a master node side, in accordance with one embodiment of the present invention.

如第5圖所示,根據本發明的一個實施例的在主控節點側用於實現網路節點控制的方法500可以包括如下步驟:如第5圖所示,根據本發明的一個實施例的在主控節點側用於實現網路節點控制的方法500可以包括如下步驟:步驟501:主控節點在當受控節點接入所述主控節點的網路時將第一計數器值發送給所述受控節點,所述第一計數器值指示直到所述受控節點接入所述主控節點的網路時預設動作被執行的次數;步驟502:所述主控節點以預定時間間隔向所述受控節點發送根據預設動作的執行而更新的計數器值。 As shown in FIG. 5, the method 500 for implementing network node control on the master node side according to an embodiment of the present invention may include the following steps: As shown in FIG. 5, according to an embodiment of the present invention, The method 500 for implementing network node control on the master node side may include the following steps: Step 501: The master node sends the first counter value to the network when the controlled node accesses the network of the master node a controlled node, the first counter value indicating a number of times the preset action is performed until the controlled node accesses the network of the master node; step 502: the master node is at a predetermined time interval The controlled node transmits a counter value that is updated according to execution of a preset action.

如此,由於主控節點將受控節點接入主控節點的網路時的計數器值以及以預定時間間隔發送的更新的計數器值提供給了受控節點,受控節點將能夠根據對這些計數器值的比較結果來執行相應動作。 Thus, since the master node provides the controlled node with the counter value when the controlled node accesses the network of the master node and the updated counter value sent at the predetermined time interval, the controlled node will be able to Compare the results to perform the corresponding action.

下面將參照第6圖來對在主控節點側用於實現網路節點控制的方法進行更詳細地描述。 The method for implementing network node control on the master node side will be described in more detail below with reference to FIG.

第6圖示出了根據本發明的一個實施例的在主控節點側用於實現網路節點控制的方法600的流程圖。 Figure 6 shows a flow diagram of a method 600 for implementing network node control on the master node side, in accordance with one embodiment of the present invention.

如第6圖所示,在步驟601中,主控節點上電。在步驟602中,主控節點獲取初始計數器值,該初始計數器值可以指示主控節點上次掉電前預設動作被執行的次數。在一個實施例中,初始計數器值可以被存儲在主控節點的存儲裝置中。在一個實施例中,存儲裝置可以為非易失性儲存介質,例如快閃記憶體。在一個實施例中,預設動作可以是釋放受控節點 的網路位址和連接的操作,即清碼操作。然而,本領域技術入員可以預想到此處的預設動作可以是物聯網中任何可能的操作,例如,使能設備上電的操作或使能設備斷電的操作等。應理解,對計數器值進行計數的計數器可以與主控節點相集成或與主控節點相獨立,並且每當預設動作被執行時,對計數器值進行算數運算,例如,使計數器值遞增或遞減。 As shown in FIG. 6, in step 601, the master node is powered on. In step 602, the master node obtains an initial counter value, which may indicate the number of times the preset action is performed before the master node was powered down. In one embodiment, the initial counter value may be stored in a storage device of the master node. In one embodiment, the storage device can be a non-volatile storage medium such as a flash memory. In one embodiment, the preset action may be to release the controlled node The network address and the operation of the connection, that is, the clearing operation. However, those skilled in the art can envision that the preset action here may be any possible operation in the Internet of Things, for example, an operation to enable the device to be powered on or an operation to enable the device to be powered down. It should be understood that the counter that counts the counter value may be integrated with the master node or independent of the master node, and each time the preset action is performed, the counter value is arithmetically operated, for example, the counter value is incremented or decremented. .

接下來,在步驟603中,主控節點啟動計時器,設置定時T。計時器可以被主控節點用來計時,以便隨後以預定時間間隔向受控節點發送更新的計數器值,下文對此將會進行詳細描述。之後,方法繼續進行,一旦預設動作被執行,計數器值就被變化,並且計數器值相應地被更新到主控節點的記憶體,如步驟604-606所示。當然,如果沒有預設動作被執行,計數器值不發生變化和更新。之後,當主控節點發現受控節點接入主控節點的網路時,即步驟607的判定為“是”的情況,主控節點將指示受控節點接入主控節點的網路時的計數器值,即第一計數器值N1,發送給受控節點,如步驟608所示。 Next, in step 603, the master node starts a timer and sets the timing T. The timer can be used by the master node for timing to subsequently send updated counter values to the controlled node at predetermined time intervals, as will be described in more detail below. Thereafter, the method continues, once the preset action is performed, the counter value is changed, and the counter value is updated accordingly to the memory of the master node, as shown in steps 604-606. Of course, if no preset action is performed, the counter value does not change and update. After that, when the master node finds that the controlled node accesses the network of the master node, that is, the determination in step 607 is “YES”, the master node will indicate that the controlled node accesses the network of the master node. The counter value, the first counter value N1, is sent to the controlled node as shown in step 608.

接下來,主控節點在步驟609判斷定時T是否到期。如果定時T尚未到期,則主控節點仍根據預設動作的執行來更新計數器值,並在定時T到期時,在步驟610中將最新更新的計數器值,即第二計數器值N2,發送給受控節點。如果在步驟609中主控節點判定定時T已到期,則主控節點直接將目前最新更新的計數器值,即第二計數器值N2,發送給受控節點。在一個實施例中,主控節點可以通過將計數器值包括在例如心跳資料包的資料包中來將計數器值通知給受控節點。在一個實施例中,當受控節點的數量可以為多個時,主控節點可以通過單播方式分別向受控節點發送相關聯的計數器值。在一個實施例中,當受控節點的數量可以為多個時,主控節點可以通過廣播方式向這多個受控節點發送相關聯的計數器值。在一個實施例中,當受控節點的數量可以為多個時,主控節點可以通過組播方式向這多個受控節點發送相關聯的計數器值。 Next, the master node determines in step 609 whether the timing T has expired. If the timing T has not expired, the master node still updates the counter value according to the execution of the preset action, and when the timing T expires, the latest updated counter value, ie the second counter value N2, is sent in step 610. Give the controlled node. If the master node determines in step 609 that the timing T has expired, the master node directly transmits the currently updated counter value, that is, the second counter value N2, to the controlled node. In one embodiment, the master node may notify the controlled node of the counter value by including the counter value in a data packet such as a heartbeat packet. In one embodiment, when the number of controlled nodes may be multiple, the master node may separately send the associated counter value to the controlled node by unicast. In one embodiment, when the number of controlled nodes may be multiple, the master node may send the associated counter value to the plurality of controlled nodes by broadcast. In one embodiment, when the number of controlled nodes may be multiple, the master node may send an associated counter value to the plurality of controlled nodes in a multicast manner.

在一個實施例中,由於不同的受控節點接入主控節點的網路時預設動作被執行的次數可能有所不同,因此針對不同的受控節點的第一計數器值也可不同。在又一個實施例中,針對不同的受控節點的第二計數 器值可以不同。例如,在單播方式中,主控節點執行釋放其中某個受控節點的網路位址和連接的動作,那麼,針對該受控節點的第二計數器值將會變化,而其他受控節點的第二計數器值可能不會發生變化。組播和廣播的情形類似于單播的情形。 In one embodiment, the number of times the preset action is performed may be different when different controlled nodes access the network of the master node, so the first counter value for different controlled nodes may also be different. In yet another embodiment, the second count for different controlled nodes The values can be different. For example, in the unicast mode, the master node performs an action of releasing the network address and connection of one of the controlled nodes, then the second counter value for the controlled node will change, and other controlled nodes The second counter value may not change. The situation of multicast and broadcast is similar to the case of unicast.

接下來,在步驟611中,主控節點重置定時T,以用於在下一時間間隔根據預設動作的執行來更新計數器值以及向受控節點發送計數器值。 Next, in step 611, the master node resets the timing T for updating the counter value according to the execution of the preset action and transmitting the counter value to the controlled node at the next time interval.

根據第6圖所述的方法,主動節點將受控節點接入主控節點的網路時對預設動作執行的計數器值發送給受控節點,並且以預定時間間隔向受控節點發送最新更新的計數器值,從而受控節點根據這些計數器值的比較來採取相應的動作。另外,如上所述,針對受控節點的更新的計數器值與之前的計數器值相比可能不發生變化,此時受控節點則不執行任何動作。 According to the method described in FIG. 6, the active node sends the counter value of the preset action to the controlled node when the controlled node accesses the network of the master node, and sends the latest update to the controlled node at predetermined time intervals. The counter value, so that the controlled node takes the corresponding action based on the comparison of these counter values. In addition, as described above, the updated counter value for the controlled node may not change compared to the previous counter value, at which point the controlled node does not perform any action.

第7圖示出了根據本發明的一個實施例的在受控節點側用於實現網路節點控制的方法700的流程圖。 Figure 7 shows a flow diagram of a method 700 for implementing network node control on a controlled node side, in accordance with one embodiment of the present invention.

如第7圖所示,在受控節點側用於實現網路節點控制的方法700包括如下步驟:步驟701:受控節點在接入所述主控節點的網路時從所述主控節點接收第一計數器值,其中,所述第一計數器值指示直到所述受控節點接入所述主控節點的網路時預設動作被執行的次數;步驟702:所述受控節點以預定時間間隔從所述主控節點接收根據預設動作的執行而更新的計數器值;以及步驟703:所述受控節點將從所述主控節點接收的所述第一計數器值與所述更新的計數器值進行比較,從而根據比較結果執行相應動作。 As shown in FIG. 7, the method 700 for implementing network node control on the controlled node side includes the following steps: Step 701: The controlled node accesses the network of the master node from the master node. Receiving a first counter value, wherein the first counter value indicates a number of times a preset action is performed until the controlled node accesses a network of the master node; step 702: the controlled node is scheduled a time interval from the master node receiving a counter value updated according to execution of a preset action; and step 703: the controlled node receiving the first counter value from the master node and the updated The counter values are compared to perform the corresponding action based on the comparison result.

如此,受控節點通過從主控節點接收其在接入主控節點的網路時指示預設動作被執行的次數的計數器值以及在預定時間間隔間隔接收的最新更新的計數器值,受控節點能夠根據這些計數器值的比較來採取相應的動作。 As such, the controlled node receives the counter value indicating the number of times the preset action is performed when accessing the network of the master node from the master node, and the latest updated counter value received at the predetermined time interval interval, the controlled node The corresponding action can be taken based on the comparison of these counter values.

下面將參照第8圖來對在受控節點側用於實現網路節點控制的方法進行更詳細地描述。 The method for implementing network node control on the controlled node side will be described in more detail below with reference to FIG.

第8圖示出了根據本發明的一個實施例的在受控節點側用於實現網路節點控制的方法800的流程圖。 Figure 8 illustrates a flow diagram of a method 800 for implementing network node control on a controlled node side, in accordance with one embodiment of the present invention.

在步驟801中,受控節點上電,進而接入主控節點的網路。在步驟802中,受控節點在上電之後可以接收到主控節點此時發送的指示預設動作被執行的次數的第一計數器值N1。在一個實施例中,該第一計數器值N1可以被保存到受控節點自身的存儲裝置中。在一個實施例中,該第一計數器值N1也可以被保存在與受控節點分離的獨立的存儲裝置中。 In step 801, the controlled node is powered on, and then accesses the network of the master node. In step 802, the controlled node may receive the first counter value N1 sent by the master node at this time indicating the number of times the preset action is performed after power-on. In one embodiment, the first counter value N1 may be saved to the storage device of the controlled node itself. In one embodiment, the first counter value N1 may also be stored in a separate storage device separate from the controlled node.

之後,在步驟803中,受控節點以預定時間間隔接收從主控節點發送的更新的計數器值,即第二計數器值N2。同樣的,該第二計數器值N2也可以被保存到受控節點自身的存儲裝置中,或被保存在與受控節點分離的獨立的存儲裝置中。應理解,第二計數器值N2在不同時間間隔總是被更新的。 Thereafter, in step 803, the controlled node receives the updated counter value transmitted from the master node at a predetermined time interval, that is, the second counter value N2. Similarly, the second counter value N2 can also be saved to the storage device of the controlled node itself or stored in a separate storage device separate from the controlled node. It should be understood that the second counter value N2 is always updated at different time intervals.

接著,在步驟804中,受控節點將接收的計數器值N1與計數器值N2進行比較,從而根據比較結果執行相應動作。 Next, in step 804, the controlled node compares the received counter value N1 with the counter value N2 to perform a corresponding action based on the comparison result.

在一個實施例中,如果計數器值N1與計數器值N2相等,則受控節點執行第一動作,否則,受控節點執行第二動作,分別如步驟805和806所示。在一個實施例中,第一動作可以是受控節點不執行任何動作。在一個實施例中,第二動作可以是受控節點退出主控節點的網路。在另一個實施例中,第二動作可以是受控節點退出主控節點的網路並恢復出廠設置。在又一個實施例中,第二動作可以是受控節點改變其操作狀態,例如當受控節點為LED燈(Light Emitting Diode,LED)之類的照明裝置或含有這樣的照明裝置時,照明裝置此時可以切換其照明顏色或者調整其照明亮度。 In one embodiment, if the counter value N1 is equal to the counter value N2, the controlled node performs the first action, otherwise the controlled node performs the second action, as shown in steps 805 and 806, respectively. In one embodiment, the first action may be that the controlled node does not perform any action. In one embodiment, the second action may be a network in which the controlled node exits the master node. In another embodiment, the second action may be that the controlled node exits the network of the master node and restores the factory settings. In still another embodiment, the second action may be that the controlled node changes its operating state, for example, when the controlled node is a lighting device such as a Light Emitting Diode (LED) or contains such a lighting device, the lighting device At this point you can switch its lighting color or adjust its lighting brightness.

在一個實施例中,受控節點還可以根據接收的第一計數器值N1與第二計數器值N2的差值大小來執行不同的動作。在如上提及的LED燈的示例中,如果差值在第一差值範圍內時,則LED燈可以切換到第一顏色,例如,紅色,而當差值在第二差值範圍內時,LED燈可以切換到第二顏色,例如,綠色。然而,應理解,可以針對差值設置更多的範圍,以便於例如 更精細地調節諸如照明裝置的顏色和亮度。 In an embodiment, the controlled node may also perform different actions according to the magnitude of the difference between the received first counter value N1 and the second counter value N2. In the example of the LED lamp mentioned above, if the difference is within the first difference range, the LED light can be switched to the first color, for example, red, and when the difference is within the second difference range, The LED light can be switched to a second color, for example, green. However, it should be understood that more ranges can be set for the difference to facilitate, for example, Finer adjustment of the color and brightness of the lighting device, for example.

如此,受控節點通過從主控節點接收其在接入主控節點的網路時指示預設動作被執行的次數的計數器值以及在預定時間間隔間隔接收的最新更新的計數器值,受控節點能夠根據這些計數器值的比較來採取相應的動作。應當注意,受控節點接收更新的計數器值的預定時間間隔實際上依賴於主控節點向受控節點發送更新的計數器值的預定時間間隔。應理解,該預定時間間隔並不受具體限制,而是本領域普通技術入員能夠根據本發明的教導來設置適當的特定預定時間間隔。 As such, the controlled node receives the counter value indicating the number of times the preset action is performed when accessing the network of the master node from the master node, and the latest updated counter value received at the predetermined time interval interval, the controlled node The corresponding action can be taken based on the comparison of these counter values. It should be noted that the predetermined time interval at which the controlled node receives the updated counter value actually depends on the predetermined time interval at which the master node sends the updated counter value to the controlled node. It should be understood that the predetermined time interval is not specifically limited, but that a person of ordinary skill in the art can set an appropriate specific predetermined time interval in accordance with the teachings of the present invention.

如上所述,描述了根據本發明的用於實現網路節點控制的方法。根據本發明的發明,能夠使得網路節點進行自我恢復或自動完成某些預設動作。此外,本發明所提出的方法簡單、高效,因而特別適合於低成本的設備。應理解,在上面的說明中,“受控節點接入主控節點的網路”可以包括組網和入網以及其他情形。 As described above, a method for implementing network node control in accordance with the present invention is described. According to the invention of the present invention, it is possible to cause the network node to self-recover or automatically perform some preset actions. Furthermore, the method proposed by the present invention is simple and efficient, and thus is particularly suitable for low cost equipment. It should be understood that in the above description, "the network in which the controlled node accesses the master node" may include networking and network access and other situations.

上文中提到了“一個實施例”,然而應理解,在各個實施例中提及的特徵並不一定只能應用於該實施例,而是可能用於其他實施例或與其他實施例組合使用。 "One embodiment" is mentioned above, however, it should be understood that the features mentioned in the various embodiments are not necessarily applicable to the embodiment, but may be used in other embodiments or in combination with other embodiments.

上文中提到了“第一”、“第二”等序數詞,然而應理解,這些表述僅是為了敘述和引用的方便,所限定的物件並不存在次序上的先後關係。 The above-mentioned "first", "second" and other ordinal numbers are mentioned, however, it should be understood that these expressions are merely for convenience of description and citation, and the defined objects do not have a sequential relationship.

以上參考本發明的具體實施例對本發明進行了描述,但是本領域技術人員均瞭解,本文中所提到的實現方法均為本發明聲明,所列的具體實施例僅為本發明的應用舉例,並不代表本發明僅限於此類應用示例,並且可以對這些具體實施例進行各種修改、組合和變更,而不會脫離由所附權利要求或其等同物限定的本發明的精神和範圍。 The present invention has been described above with reference to the specific embodiments of the present invention, but those skilled in the art understand that the implementation methods mentioned herein are all claims of the present invention, and the specific embodiments listed are only the application examples of the present invention. The present invention is not limited to such an application example, and various modifications, combinations and changes may be made to the specific embodiments without departing from the spirit and scope of the invention as defined by the appended claims.

401、402、403、404、405‧‧‧步驟 401, 402, 403, 404, 405 ‧ ‧ steps

Claims (12)

一種實現網路節點控制的方法,所述方法包括:主控節點在當受控節點接入所述主控節點的網路時將第一計數器值發送給所述受控節點,所述第一計數器值指示直到所述受控節點接入所述主控節點的網路時預設動作被執行的次數;所述受控節點接收從所述主控節點發送的所述第一計數器值;所述主控節點以預定時間間隔向所述受控節點發送根據所述預設動作的執行而更新的計數器值;所述受控節點接收從所述主控節點發送的所述更新的計數器值;所述受控節點將接收到的所述第一計數器值與所述更新的計數器值進行比較,從而根據比較結果執行相應動作;所述預設動作包括釋放所述受控節點的網路位址和連接的操作。 A method for implementing network node control, the method comprising: a master node transmitting a first counter value to the controlled node when the controlled node accesses a network of the master node, the first The counter value indicates the number of times the preset action is performed until the controlled node accesses the network of the master node; the controlled node receives the first counter value sent from the master node; Depressing, by the master node, a counter value updated according to execution of the preset action to the controlled node at a predetermined time interval; the controlled node receiving the updated counter value sent from the master node; The controlled node compares the received first counter value with the updated counter value to perform a corresponding action according to the comparison result; the preset action includes releasing a network address of the controlled node And the operation of the connection. 如申請專利範圍第1項所述的方法,其中,所述主控節點通過向所述受控節點發送包含所述更新的計數器值的資料包來向所述受控節點發送所述更新的計數器值。 The method of claim 1, wherein the master node transmits the updated counter value to the controlled node by transmitting a data packet including the updated counter value to the controlled node. . 如申請專利範圍第1項所述的方法,其中,所述受控節點的數量為多個,並且其中,所述主控節點通過如下方式中的一種方式來向所述受控節點發送相關聯的更新的計數器值:單播方式、組播方式、或廣播方式。 The method of claim 1, wherein the number of the controlled nodes is plural, and wherein the master node sends the associated node to the controlled node in one of the following manners. Updated counter value: unicast mode, multicast mode, or broadcast mode. 如申請專利範圍第1項所述的方法,其中,所述預設動作包括使所述受控設備上電或斷電的操作。 The method of claim 1, wherein the preset action comprises an operation of powering on or off the controlled device. 一種實現網路節點控制的方法,所述方法包括:主控節點在當受控節點接入所述主控節點的網路時將第一計數器值發送給所述受控節點,所述第一計數器值指示直到所述受控節點接入所述主控節點的網路時預設動作被執行的次數;所述主控節點以預定時間間隔向所述受控節點發送根據所述預設動作的執行而更新的計數器值,其中所述受控節點將從所述主控節點接收的所述第一計數器值與更新的計數器值進行比較,從而根據比較結果執行相應動作;所述預設動作包括釋放所述受控節點的網路位址和連接的操作。 A method for implementing network node control, the method comprising: a master node transmitting a first counter value to the controlled node when the controlled node accesses a network of the master node, the first The counter value indicates the number of times the preset action is performed until the controlled node accesses the network of the master node; the master node sends the preset node according to the preset action at a predetermined time interval And a counter value updated, wherein the controlled node compares the first counter value received from the master node with an updated counter value, thereby performing a corresponding action according to the comparison result; the preset action This includes the operation of releasing the network address and connection of the controlled node. 如申請專利範圍第5項所述的方法,其中,所述主控節點通過向所述受控節點發送包含所述更新的計數器值的資料包來向所述受控節點發送所述更新的計數器值。 The method of claim 5, wherein the master node transmits the updated counter value to the controlled node by transmitting a data packet including the updated counter value to the controlled node. . 如申請專利範圍第5項所述的方法,其中,所述受控節點的數量為多個,並且其中,所述主控節點通過如下方式中的一種方式來向所述受控節點發送相關聯的更新的計數器值:單播方式、組播方式、或廣播方式。 The method of claim 5, wherein the number of the controlled nodes is plural, and wherein the master node sends the associated node to the controlled node in one of the following manners. Updated counter value: unicast mode, multicast mode, or broadcast mode. 如申請專利範圍第5項所述的方法,其中,所述預設動作包括使所述受控節點上電或斷電的操作。 The method of claim 5, wherein the preset action comprises an operation of powering on or off the controlled node. 一種實現網路節點控制的方法,所述方法包括:受控節點在接入所述主控節點的網路時從所述主控節點接收第一計數器值,其中,所述第一計數器值指示直到所述受控節點接入所述主控節點的網路時預設動作被執行的次數;所述受控節點以預定時間間隔從所述主控節點接收根據所述預設動作的執行而更新的計數器值;以及所述受控節點將從所述主控節點接收的所述第一計數器值與所述更新的計數器值進行比較,從而根據比較結果執行相應動作;所述預設動作包括釋放所述受控節點的網路位址和連接的操作。 A method for implementing network node control, the method comprising: receiving, by a controlled node, a first counter value from the master node when accessing a network of the master node, wherein the first counter value indication a number of times the preset action is performed until the controlled node accesses the network of the master node; the controlled node receives from the master node at a predetermined time interval according to execution of the preset action An updated counter value; and the controlled node compares the first counter value received from the master node with the updated counter value to perform a corresponding action according to the comparison result; the preset action includes The operation of releasing the network address and connection of the controlled node. 如申請專利範圍第9項所述的方法,其中,所述受控節點通過從所述主控節點發送的包含所述更新的計數器值的資料包來接收所述更新的計數器值。 The method of claim 9, wherein the controlled node receives the updated counter value by a data packet from the master node that includes the updated counter value. 如申請專利範圍第9項所述的方法,其中,所述受控節點是多個受控節點之一,並且其中,所述更新的計數器值是按照如下方式中的一種方式從所述主控節點發送給所述受控節點的:單播方式、組播方式、或廣播方式。 The method of claim 9, wherein the controlled node is one of a plurality of controlled nodes, and wherein the updated counter value is from the master in one of the following manners The node sends to the controlled node: unicast mode, multicast mode, or broadcast mode. 如申請專利範圍第9項所述的方法,其中,所述預設動作包括使所述受控設備上電或斷電的操作。 The method of claim 9, wherein the preset action comprises an operation of powering on or off the controlled device.
TW105104001A 2015-08-25 2016-02-05 A method of implementing network node control TWI599200B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510528187.7A CN105049266B (en) 2015-08-25 2015-08-25 The method for realizing network node control

Publications (2)

Publication Number Publication Date
TW201709696A TW201709696A (en) 2017-03-01
TWI599200B true TWI599200B (en) 2017-09-11

Family

ID=54455488

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105104001A TWI599200B (en) 2015-08-25 2016-02-05 A method of implementing network node control

Country Status (2)

Country Link
CN (1) CN105049266B (en)
TW (1) TWI599200B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609483A (en) * 2015-11-30 2019-12-24 广州昂宝电子有限公司 Method for realizing real-time change of state of intelligent equipment and intelligent equipment
CN109862680B (en) * 2019-04-17 2021-03-19 京东方科技集团股份有限公司 Lighting control device, system and method
CN114094209B (en) * 2021-10-18 2023-10-20 华人运通(江苏)技术有限公司 Battery management system, communication control method and device thereof and vehicle

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7602753B2 (en) * 2003-03-12 2009-10-13 Lg Electronics Inc. Apparatus and method for tracing GPRS tunnel protocol resource
CA2766340C (en) * 2009-06-25 2018-07-24 Koninklijke Philips Electronics N.V. Home automation system and method for controlling the same
CN102694707A (en) * 2012-05-31 2012-09-26 李英祥 Bluetooth and android technology-based household information system and monitoring control method
CN103619010A (en) * 2013-11-08 2014-03-05 南京物联传感技术有限公司 Wireless reset equipment and reset method
CN104168645A (en) * 2014-08-18 2014-11-26 南京物联传感技术有限公司 Gateway equipment and node equipment networking quitting method

Also Published As

Publication number Publication date
CN105049266A (en) 2015-11-11
CN105049266B (en) 2019-06-07
TW201709696A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
US11146483B2 (en) Data forwarding method and node device for mesh network
JP5408771B2 (en) Illumination system having an illumination unit using optical communication
US20210378002A1 (en) Scheduler for power-efficient time slotted protocol
JP6367459B2 (en) Traffic announcement and scheduling in neighbor aware network data links
TWI599200B (en) A method of implementing network node control
JP2017521946A (en) Traffic announcement and scheduling in neighbor aware network data links
JP2017522809A (en) Traffic announcement and scheduling in neighbor aware network data links
US20140126426A1 (en) Mintree-based routing in highly constrained networks
US9418340B2 (en) Fast learning to train learning machines using shadow joining
US11575603B2 (en) Route optimization using star-mesh hybrid topology in localized dense ad-hoc networks
US20150200870A1 (en) Data rate adaptation based on time-based events
US9629225B2 (en) Apparatus and method for interpreting received control commands
US10448335B2 (en) Communicating timing information for a next DIO transmission
JP2015050634A (en) Radio communication system and sensor device
US10251246B2 (en) Connected lighting network architecture
US20130003550A1 (en) System and Method for Priority Based Flow Control Between Nodes
EP3578010A1 (en) Distributed control of a lighting network
US20230188466A1 (en) Route optimization using star-mesh hybrid topology in localized dense ad-hoc networks
US10045274B2 (en) Method and apparatus for propagating and maintaining update information
TWI567682B (en) Real-time changes in the state of intelligent equipment and intelligent equipment
Nguyen et al. Behavioral models and scenario selection for testing IoT Trickle-based lossy multicast networks
JP6696351B2 (en) Data transmission method, device and node
US10736197B2 (en) Lighting state synchronization
Ceriotti et al. Reins-MAC: Firefly Inspired Communication Scheduling for Reliable Low-Power Wireless
US20230010865A1 (en) A networked system, having a controlling device and a plurality of controlled devices, and devices and methods used by the system