TWI567682B - Real-time changes in the state of intelligent equipment and intelligent equipment - Google Patents
Real-time changes in the state of intelligent equipment and intelligent equipment Download PDFInfo
- Publication number
- TWI567682B TWI567682B TW105104002A TW105104002A TWI567682B TW I567682 B TWI567682 B TW I567682B TW 105104002 A TW105104002 A TW 105104002A TW 105104002 A TW105104002 A TW 105104002A TW I567682 B TWI567682 B TW I567682B
- Authority
- TW
- Taiwan
- Prior art keywords
- power
- smart device
- time
- preset
- corresponding action
- Prior art date
Links
- 238000000034 method Methods 0.000 claims description 50
- 230000000875 corresponding effect Effects 0.000 claims description 38
- 230000008859 change Effects 0.000 claims description 25
- 230000009471 action Effects 0.000 claims description 22
- 230000008569 process Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 10
- 238000005286 illumination Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 230000007704 transition Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
- G05B19/4185—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- General Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Telephone Function (AREA)
- Selective Calling Equipment (AREA)
- Power Sources (AREA)
Description
本發明涉及智慧家居領域,尤其涉及實現智慧設備狀態即時變化的方法以及能夠實現狀態即時變化的智慧設備。 The present invention relates to the field of smart homes, and in particular, to a method for realizing an instant change of a state of a smart device and a smart device capable of realizing an instantaneous change of state.
對於智慧家居領域的智慧設備來說,通過外界因素變化或達到內部預先設定條件,便能自動完成某些預設動作,這是必須具備的一項功能。傳統地,在智慧設備上設置有按鍵,通過長按此按鍵來改變智慧設備的狀態。然而,這種方式僅能夠將智慧設備的狀態改變到僅另外一種狀態。此外,對於某些不適合增加按鍵的設備而言,這種方式是並不適用。 For smart devices 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. Conventionally, a button is provided on a smart device, and the state of the smart device is changed by long pressing the button. However, this approach can only change the state of the smart device to only one other state. In addition, this method is not applicable for some devices that are not suitable for adding buttons.
根據本發明的一個方面,提供了一種實現智慧設備狀態即時變化的方法。該實現智慧設備狀態即時變化的方法包括:使智慧設備反復上下電;統計智慧設備每次上下電之間的時間,其中,每次上下電之間的時間滿足預設時間條件;在智慧設備每次上電時,確定先前已執行的上下電次數,並根據先前已執行的上下電次數使智慧設備執行相應的動作。 According to one aspect of the invention, a method of enabling instant changes in the state of a smart device is provided. The method for realizing the instantaneous change of the state of the smart device includes: repeatedly powering on and off the smart device; and counting the time between the power-on and power-off of the smart device, wherein the time between power-on and power-off meets the preset time condition; At the time of power-on, the number of previous power-on and power-offs is determined, and the smart device performs the corresponding action according to the number of previous power-offs that have been performed.
根據本發明的另一個方面,提供了一種智慧設備,該智慧設備包括:計數器,該計數器統計智慧設備上下電的次數;記憶體,該記憶體存儲智慧設備上下電的次數;計時器,該計時器執行定時,其中,每次上下電之間的時間滿足預設時間條件;以及處理器,該處理器在智慧設備每次上電時,確定先前已執行的上下電次數,並根據先前已執行的上 下電次數使智慧設備執行相應的動作。根據本發明,智慧設備能夠根據具體情形而改變到不同的狀態,從而實現其狀態的即時變化。 According to another aspect of the present invention, a smart device is provided, the smart device includes: a counter that counts the number of times the smart device is powered on and off; a memory that stores the number of times the smart device is powered on and off; a timer, the timer Execution timing, wherein the time between each power-on and power meets a preset time condition; and a processor that determines the number of previous power-on and power-off times each time the smart device powers up, and according to the previous execution On The number of power-offs causes the smart device to perform the corresponding action. According to the present invention, the smart device can be changed to a different state depending on the specific situation, thereby realizing an immediate change of its state.
100‧‧‧星型網路 100‧‧‧ star network
200‧‧‧樹型網路 200‧‧‧ Tree Network
300‧‧‧無線網格網路 300‧‧‧Wireless mesh network
Nn‧‧‧最大計數器值 Nn‧‧‧ maximum counter value
600‧‧‧掉電感測過程 600‧‧‧Down inductance measurement process
700‧‧‧智慧設備 700‧‧‧Smart devices
N1‧‧‧第一預設值 N1‧‧‧ first preset value
N2‧‧‧第二預設值 N2‧‧‧ second preset value
Nn-1‧‧‧第n-1預設值 Nn-1‧‧‧n-1 preset value
701‧‧‧計數器 701‧‧‧ counter
702‧‧‧記憶體 702‧‧‧ memory
703‧‧‧計時器 703‧‧‧Timer
T‧‧‧預設定時 T‧‧‧Preset timing
A‧‧‧節點(主控制點) A‧‧‧ node (master control point)
704‧‧‧處理器 704‧‧‧ processor
X、Y、Z‧‧‧相應動作 X, Y, Z‧‧‧ corresponding action
B、C、D、E、F、G‧‧‧節點(受控制點) B, C, D, E, F, G‧‧‧ nodes (controlled points)
400、500‧‧‧實現智慧設備狀態即時變化的方法 400, 500‧‧‧ Ways to achieve immediate changes in the state of smart devices
401、402、403、501、502、503、504、505、506、507、508、509、510、511、512、513、514、515、601、602、603、604、605‧‧‧步驟 401, 402, 403, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 601, 602, 603, 604, 605 ‧ ‧ steps
以下將結合附圖對本發明的實施例進行更詳細的說明,以使本領域普通技術人員更加清楚地理解本發明,其中:第1圖示出了根據本發明的一個實施例的智慧設備可以接入的星型網路的示意圖;第2圖示出了根據本發明的一個實施例的智慧設備可以接入的樹型網路的示意圖;第3圖示出了根據本發明的一個實施例的智慧設備可以接入的無線網格網路的示意圖;第4圖示出了根據本發明一個實施例的實現智慧設備狀態即時變化的方法的流程圖;第5圖示出了根據本發明一個實施例的實現智慧設備狀態即時變化的方法的細節的流程圖;第6圖示出了根據本發明一個實施例的掉電感測過程的流程圖;以及第7圖示出了根據本發明一個實施例的智慧設備的結構示意圖。 The embodiments of the present invention will be described in more detail below with reference to the accompanying drawings, in which FIG. 1 FIG. Schematic diagram of an incoming star network; FIG. 2 is a schematic diagram showing a tree network accessible by a smart device according to an embodiment of the present invention; FIG. 3 is a view showing an embodiment of the present invention Schematic diagram of a wireless mesh network to which a smart device can access; FIG. 4 is a flow chart showing a method for realizing immediate change of state of a smart device according to an embodiment of the present invention; FIG. 5 is a view showing an implementation according to the present invention A flowchart of details of a method for realizing an instantaneous change in state of a smart device; FIG. 6 is a flow chart showing a process of dropping the inductance measurement according to an embodiment of the present invention; and FIG. 7 is a view showing an embodiment of the present invention according to an embodiment of the present invention Schematic diagram of the smart device.
下面將詳細描述本發明各個方面的特徵和示例性實施例。下面的描述涵蓋了許多具體細節,以便提供對本發明的全面理解。但是,對於本領域技術人員來說顯而易見的是,本發明可以在不需要這些具體細節中的一些細節的情況下實施。下面對實施例的描述僅僅是為了通過示出本發明的示例來提供對本發明更清楚的理解。本發明絕不限於下面所提出的任何具體配置,而是在不脫離本發明的精神的前提下覆蓋了相關特徵、結構、操作的任何修改、替換和改進。 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 as set forth below, but without departing from the spirit and scope of the invention.
首先,下面簡單介紹根據本公開的智慧設備的應用場景。更具體地,根據本公開的智慧設備可以接入各種網路,例如,星型網路、樹型網路、無線網格網路等。下面參照第1圖、第2圖和第3圖分別對星型網路、樹型網路以及無線網格網路進行描述。 First, the application scenario of the smart device according to the present disclosure will be briefly described below. More specifically, the smart device according to the present disclosure can access 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 that a smart device can access 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 controlled nodes B, C, D, E, F, G may have the same status in the network, but they may receive the same or different control commands from the master node A. Thereby performing 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 that a smart device can access 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, C, respectively, they may be indirectly controlled by 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 that a smart device can access in accordance with one embodiment of the present invention. A wireless mesh network is a wireless multi-hop network. As shown in Figure 3, node A is the central node of the wireless mesh network and can serve as the master node. Nodes B, C, and G can communicate directly with the master node A. Therefore, the master node A Nodes B, C, and G can be directly controlled; nodes D, E, and F can communicate with master node A indirectly through nodes B, C, and G. Thus, master node A can indirectly control 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圖中所示的數目,本發明可以適用於具有任意合適的節點數目的任何網路。另外,根據本公開的智慧設備可以實現為上述第1圖至第3圖中的受控節點。 It should be noted that the above FIG. 1 to FIG. 3 are only 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 number of access nodes is not limited to those shown in FIG. 1, FIG. 2, and FIG. The number can be applied to any network with any suitable number of nodes. In addition, the smart device according to the present disclosure can be implemented as the controlled node in FIGS. 1 to 3 described above.
下面將具體描述根據本公開的實現智慧設備的即時狀態變換的方法和使能這種即時狀態變換的智慧設備。 A method of implementing an instant state transition of a smart device and a smart device enabling such instant state transition according to the present disclosure will be specifically described below.
第4圖示出了根據本發明一個實施例的實現智慧設備狀態即時變化的方法400的流程圖。如第4圖所示,該方法400包括:在步驟401,對智慧設備反復上下電。 Figure 4 illustrates a flow diagram of a method 400 of implementing an instant change in state of a smart device in accordance with one embodiment of the present invention. As shown in FIG. 4, the method 400 includes: in step 401, repeatedly powering on and off the smart device.
在步驟402,統計每次上下電的時間,其中,每次上下電之間的時間需滿足預設時間條件。 In step 402, the time of each power-on and power-off is counted, wherein the time between power-on and power-off needs to meet the preset time condition.
在步驟403,在智慧設備每次上電時,確定先前已執行的上下電次數,並根據該先前已執行的上下電次數使智慧設備執行相應的動作。 In step 403, each time the smart device is powered on, the number of previous power-on and power-off times is determined, and the smart device performs a corresponding action according to the previously executed power-on and power-off times.
在本公開中,智慧設備首先上電,然後經過滿足預設時間條件的時間後,智慧設備下電(即,掉電),這樣一次上電和下電被稱 為一次上下電。應理解,雖然在本公開中每次上下電以上電為先,但是本領域普通技術人員應理解,在智慧設備上電後,也可以以下電為先來統計每次上下電的次數。 In the present disclosure, the smart device is powered on first, and then after the time that meets the preset time condition, the smart device is powered off (ie, powered down), so that the power-on and power-off are called once. Power up and down once. It should be understood that although the power is turned on and off each time in the present disclosure, those skilled in the art should understand that after the smart device is powered on, the number of times of powering up and down each time can be counted first.
在本公開中,從智慧設備上電到智慧設備到下電之間的時間需滿足預設時間條件。在一個實施例,預設時間條件可以是每次上下電之間的時間小於預設時間閾值,例如小於T1秒。在另一個實施例,預設時間條件可以是每次上下電之間的時間大於預設時間閾值,例如大於T2秒。在又一個實施例,預設時間條件可以是每次上下電之間的時間在預設時間閾值範圍內,例如在T3秒到T4秒之間。應理解,雖然在此使用了T1-T4來表示時間,但是這僅僅是示例說明,並且T1-T4可以是適當設置的任何時間,並且除了T4>T3外,T1-T4可以相同也可以不同。 In the present disclosure, the time between powering up the smart device and the smart device to powering down needs to meet the preset time condition. In one embodiment, the preset time condition may be that the time between each power-on and power-off is less than a preset time threshold, such as less than T1 seconds. In another embodiment, the preset time condition may be that the time between each power-on and power-off is greater than a preset time threshold, for example, greater than T2 seconds. In still another embodiment, the preset time condition may be that the time between each power-on and power-off is within a preset time threshold range, for example, between T3 seconds and T4 seconds. It should be understood that although T1-T4 is used herein to represent time, this is merely an example, and T1-T4 may be any time set as appropriate, and T1-T4 may be the same or different except T4>T3.
在本公開中,智慧設備在每次上電時,根據先前已執行的上下電次數來執行相應的動作。也就是說,不同的上下電次數對應於不同的動作。例如,上下電次數N1對應於動作A;上下電次數N2對應於動作B,……,上下電次數Nn-1對應於動作C。應理解,根據需要,可以對智慧設備進行程式設計以實現對應於多個不同次數的多種動作。在一個實施例中,要執行的動作可以是智慧設備退出網路。應理解,“退出網路”可以包括退出諸如第1圖至第3圖所示的各種不同拓撲的網路以及其他情形。在另一個實施例中,要執行的動作可以是智慧設備回復出廠設置狀態。在又一個實施例中,當智慧設備包含有照明裝置時,要執行的動作可以是改變智慧照明裝置的亮度、顏色或色溫等。 In the present disclosure, the smart device performs a corresponding action according to the number of power-on and power-offs that have been performed each time the power is turned on. That is to say, different power-on and power-off times correspond to different actions. For example, the number of times of power-on and power-off N1 corresponds to action A; the number of times of power-on and power-off N2 corresponds to action B, ..., and the number of times of power-on and power-off Nn-1 corresponds to action C. It should be understood that the smart device can be programmed to implement multiple actions corresponding to multiple different times, as desired. In one embodiment, the action to be performed may be that the smart device exits the network. It should be understood that "exiting the network" may include exiting networks of various different topologies such as those shown in Figures 1 through 3, among other things. In another embodiment, the action to be performed may be that the smart device returns to the factory setting state. In still another embodiment, when the smart device includes a lighting device, the action to be performed may be changing the brightness, color or color temperature of the smart lighting device, and the like.
在一個實施例中,在相應的動作被執行後,若預設定時尚未期滿,則所述智慧設備下電,並且上下電次數遞增。 In one embodiment, after the corresponding action is performed, if the preset timing has not expired, the smart device is powered off, and the number of power-on and power-off is increased.
在一個實施例中,所述方法還可以包括在智慧設備上電期間感測智慧設備的供電電壓,並且在相應的動作被執行後,若在預設定時尚未期滿時所述供電電壓掉至低於閾值電壓,則在智慧設備不被下電的情況下使所述上下電次數遞增。 In an embodiment, the method may further include sensing a power supply voltage of the smart device during power-on of the smart device, and after the corresponding action is performed, if the preset voltage is not expired, the power supply voltage is dropped to Below the threshold voltage, the number of power-on and power-off times is increased without the smart device being powered off.
在一個實施例中,所述方法還包括:在相應的動作被執行後,若預設定時期滿,上下電次數被恢復到初始值。在一個實施例中,初始值可以是計數器的最小值。 In one embodiment, the method further includes: after the corresponding action is performed, if the preset time period is full, the power-on and power-off times are restored to the initial value. In one embodiment, the initial value can be the minimum value of the counter.
根據上述實現智慧設備狀態即時變化的方法400,能夠簡單、即時地實現智慧設備的狀態變化,並且根據上下電次數的不同,可以使得智慧設備執行不同的動作。 According to the foregoing method 400 for realizing the instantaneous change of the state of the smart device, the state change of the smart device can be implemented simply and instantaneously, and the smart device can be caused to perform different actions according to the number of times of power-on and power-off.
下面將參考第5圖來更加詳細地說明本公開中實現智慧設備狀態即時變化的方法的具體過程。 The specific process of the method for realizing the instantaneous change of the state of the smart device in the present disclosure will be described in more detail below with reference to FIG.
第5圖示出了根據本發明的一個實施例的實現智慧設備狀態即時變化的方法500的流程圖。如第5圖所示,該實現智慧設備狀態即時變化的方法500包括步驟501-515。具體地,在步驟501,使智慧設備上電。應理解,當智慧設備已處於通電狀態時,此步驟可以省略。 Figure 5 illustrates a flow diagram of a method 500 of implementing an instant change in state of a smart device in accordance with one embodiment of the present invention. As shown in FIG. 5, the method 500 for implementing an immediate change in state of a smart device includes steps 501-515. Specifically, in step 501, the smart device is powered on. It should be understood that this step can be omitted when the smart device is already powered.
接下來,在步驟502,當智慧設備上電後,從記憶體讀取表示先前上下電次數的計數器值。應理解,記憶體可以與智慧設備相集成,也可以通過有線或無線連接等方式與智慧設備相連接。之後,在步驟503,啟動計時器以開始計時。 Next, in step 502, after the smart device is powered on, a counter value indicating the number of previous power-on and power-off times is read from the memory. It should be understood that the memory can be integrated with the smart device or connected to the smart device through a wired or wireless connection. Thereafter, at step 503, a timer is started to begin timing.
接下來,在步驟504-509,判斷所讀取的計數器值等於哪個預設值,並根據判斷結果來執行與預設值相對應的動作。例如,如第5圖所示,首先判斷計數器值是否等於第一預設值(N1)(步驟504)。在一個實施例中,第一預設值N1可以是計數器的初始值,即最小值。如果計數器值等於第一預設值N1,則過程進行到步驟505,以執行相應動作X。如果計數器值不等於第一預設值N1,則過程進行到步驟506,以判斷計數器值是否等於第二預設值(N2)。類似地,如果計數器值等於第二預設值N2,則過程進行到步驟507,以執行相應動作Y。如果計數器值不等於第二預設值,則過程進行到步驟508,以判斷計數器值是否等於第n-1預設值(Nn-1)。同樣類似地,如果計數器值等於第n-1預設值Nn-1,則過程進行到步驟509,以執行相應動作Z。 Next, in steps 504-509, it is judged which preset value the read counter value is equal to, and an action corresponding to the preset value is performed according to the judgment result. For example, as shown in Fig. 5, it is first determined whether the counter value is equal to the first preset value (N1) (step 504). In one embodiment, the first preset value N1 may be the initial value of the counter, ie the minimum value. If the counter value is equal to the first preset value N1, the process proceeds to step 505 to perform the corresponding action X. If the counter value is not equal to the first preset value N1, the process proceeds to step 506 to determine whether the counter value is equal to the second preset value (N2). Similarly, if the counter value is equal to the second preset value N2, the process proceeds to step 507 to perform the corresponding action Y. If the counter value is not equal to the second preset value, the process proceeds to step 508 to determine whether the counter value is equal to the n-1th preset value (Nn-1). Similarly, if the counter value is equal to the n-1th preset value Nn-1, the process proceeds to step 509 to perform the corresponding action Z.
在上文中,僅描述三個預設值(N1、N2和Nn-1)和相對應的動作(X、Y、Z),但是應理解,可以設定更少或更多的預設閾值和相對應的動作,以根據實際需要來賦予智慧設備進行狀態變化的不同的能力。還應理解,這些預設閾值可以被預先固化在智慧設備的程式中,也可以被預先存儲在記憶體中,或者也可以由協力廠商通過通信等方式預先對智慧設備進行設置。還應理解,雖然上文中針對各預設值的判斷是按順序的,但是也可以針對各預設值執行並行判斷。 In the above, only three preset values (N1, N2, and Nn-1) and corresponding actions (X, Y, Z) are described, but it should be understood that fewer or more preset thresholds and phases can be set. The corresponding action is to give the smart device different ability to change state according to actual needs. It should also be understood that these preset thresholds may be pre-cured in the program of the smart device, or may be pre-stored in the memory, or may be pre-set by the third party through communication or the like. It should also be understood that although the above determinations for the respective preset values are sequential, parallel determinations may also be performed for each of the preset values.
在一個實施例中,要執行的動作(X、Y、Z)可以是智慧設備退出網路或智慧設備回復出廠設置狀態。在又一個實施例中,當智慧設備包含有照明裝置時,要執行的動作(X、Y、Z)可以是改變智慧照明裝置的亮度、顏色或色溫等。例如,動作X將使照明裝置改變為紅色,動作Y將使照明裝置改變為綠色,動作Z將使照明裝置改變為藍色。 In one embodiment, the action (X, Y, Z) to be performed may be that the smart device exits the network or the smart device returns to the factory setting state. In still another embodiment, when the smart device includes a lighting device, the action (X, Y, Z) to be performed may be changing the brightness, color or color temperature of the smart lighting device, and the like. For example, action X will change the illumination device to red, action Y will cause the illumination device to change to green, and action Z will cause the illumination device to change to blue.
當執行了某動作後或者當計數器值被確定為與任何預設值都不相等時,過程進行到步驟510。在步驟510,判斷計時器是否達到預設定時T。如果計時器已到達預設定時T,則過程進行到步驟514。在步驟514,將計數器值恢復到初始值。如上所述,在一個實施例中,計數器的初始值可以等於第一預設值N1。然後,在步驟515,計數器恢復的初始值被更新到存儲裝置,然後過程結束。 When an action is performed or when the counter value is determined to be not equal to any of the preset values, the process proceeds to step 510. At step 510, it is determined whether the timer has reached the preset timing T. If the timer has reached the preset timing T, the process proceeds to step 514. At step 514, the counter value is restored to the initial value. As described above, in one embodiment, the initial value of the counter may be equal to the first preset value N1. Then, at step 515, the initial value of the counter recovery is updated to the storage device, and then the process ends.
另一方面,當在步驟510判斷計時器尚未達到預設定時T,則過程進行到步驟511,此時此智慧設備下電,並且接下來在步驟512中計數器值遞增1以表示一次上下電被執行。然後在步驟513,判斷遞增後的計數器值是否達到預設的最大計數器值Nn。如果遞增後的計數器值等於Nn,則過程進行到步驟514以將計數器值恢復到初始值,然後過程進行到步驟515。如果遞增後的計數器值尚未達到最大計數器值Nn,則過程直接進行到步驟515以將該計數器值更新到記憶體。然後,過程結束。應理解,上述過程結束後,智慧設備可以被再次上電以重複上述過程,從而根據更新的計數器值來執行相對應的動作。 On the other hand, when it is determined in step 510 that the timer has not reached the preset timing T, the process proceeds to step 511, at which time the smart device is powered off, and then in step 512 the counter value is incremented by one to indicate that the power is turned on and off. carried out. Then at step 513, it is determined whether the incremented counter value has reached the preset maximum counter value Nn. If the incremented counter value is equal to Nn, the process proceeds to step 514 to restore the counter value to the initial value, and then the process proceeds to step 515. If the incremented counter value has not reached the maximum counter value Nn, the process proceeds directly to step 515 to update the counter value to the memory. Then the process ends. It should be understood that after the above process is completed, the smart device can be powered up again to repeat the above process, thereby performing the corresponding action according to the updated counter value.
如上所述,根據上述實現智慧設備狀態即時變化的方法500,能夠通過控制智慧設備的供電條件對智慧設備在特定時間內反復上下電並在上下電次數符合特定要求時,使得智慧設備切換到某個預設狀態,從而實現對智慧設備的狀態的改變。 As described above, according to the foregoing method 500 for realizing the state change of the smart device, the smart device can be switched to the certain device by controlling the power supply condition of the smart device to repeatedly power on and off the smart device for a specific time and when the number of times of powering on and off meets a specific requirement. A preset state to achieve a change in the state of the smart device.
在上述實現智慧設備狀態即時變化的方法500中,在計時器的預設定時尚未期滿時,在步驟511智慧設備被下電,以完成一次上下電。 In the foregoing method 500 for realizing the instantaneous change of the state of the smart device, when the preset timing of the timer has not expired, the smart device is powered off at step 511 to complete the power-on and power-off.
在其他實施例中,此時智慧設備可以並不被下電,而是當智慧設備的供電電壓掉至低於預定閾值時,表示上下電次數的計數器值直接遞增。具體地,第6圖示出了根據本發明一個實施例的掉電感測過程600的流程圖。如第6圖所示,在智慧設備上電期間並且在計時器到達預設定時T之前,感測供電電壓是否掉至低於閾值電壓(步驟601)。如果供電壓掉至低於閾值電壓,則在步驟602計數器值遞增1,而智慧設備並不被下電。然後,在步驟603-605,如第5圖中步驟513-515那樣進行,然後過程可以跳轉到第5圖中的步驟502以重複上述的流程。根據在該實施例提供的方法,能夠有效地改善因為智慧設備電容值較大而上下電時間較長,從而導致觸發切換狀態慢的缺點,從而在設備快速上下電情況下,也能進行正常切換設備狀態。 In other embodiments, the smart device may not be powered off at this time, but when the power supply voltage of the smart device falls below a predetermined threshold, the counter value indicating the number of power-on and power-off is directly incremented. In particular, FIG. 6 illustrates a flow chart of a drop-out measurement process 600 in accordance with one embodiment of the present invention. As shown in FIG. 6, during the power-on of the smart device and before the timer reaches the preset timing T, it is sensed whether the supply voltage drops below the threshold voltage (step 601). If the supply voltage drops below the threshold voltage, then at step 602 the counter value is incremented by one and the smart device is not powered down. Then, in steps 603-605, as in steps 513-515 in FIG. 5, the process can then jump to step 502 in FIG. 5 to repeat the above-described flow. According to the method provided in this embodiment, it is possible to effectively improve the short circuit of the smart device due to the large capacitance value of the smart device, thereby causing the trigger switching state to be slow, so that the device can also perform normal switching when the device is powered on and off quickly. equipment status.
上面描述了實現智慧設備的即時狀態變化的方法。下面描述能夠實現這種即時狀態變化的智慧設備的結構。 The method of implementing an immediate state change of a smart device is described above. The structure of a smart device capable of realizing such a change in the immediate state will be described below.
第7圖示出了根據本發明一個實施例的智慧設備700的結構示意圖。如第7圖所示,智慧設備700包括:計數器701,該計數器701統計智慧設備上下電的次數;記憶體702,該記憶體702存儲智慧設備上下電的次數;計時器703,計時器703執行定時,其中,每次上下電之間的時間滿足預設定時條件;以及處理器704,該處理器704在智慧設備每次上電時,確定先前已執行 的上下電次數,並根據先前已執行的上下電次數使智慧設備執行相應的動作。 FIG. 7 is a block diagram showing the structure of a smart device 700 according to an embodiment of the present invention. As shown in FIG. 7, the smart device 700 includes a counter 701 that counts the number of times the smart device is powered on and off, a memory 702 that stores the number of times the smart device is powered on and off, and a timer 703 that executes the timer 703. Timing, wherein the time between each power-on and power meets a preset timing condition; and the processor 704 determines that the smart device is powered on each time it is powered on The number of power-on and power-off times, and the smart device performs corresponding actions according to the number of previous power-offs that have been performed.
在一個實施例中,所述預設定時條件選自如下項中的一項:每次上下電之間的時間小於預設時間閾值、每次上下電之間的時間大於預設時間閾值、每次上下電之間的時間在預設時間閾值範圍內。 In one embodiment, the preset timing condition is selected from one of the following items: the time between each power-on and power-off is less than a preset time threshold, and the time between each power-on and power-off is greater than a preset time threshold, and each time The time between power-on and power-off is within a preset time threshold.
在一個實施例中,使智慧設備執行相應的動作包括使能所述智慧設備執行如下動作之一:退出網路、恢復出廠設置狀態。 In one embodiment, causing the smart device to perform a corresponding action includes enabling the smart device to perform one of the following actions: exiting the network, and restoring the factory settings.
在一個實施例中,智慧設備包括智慧照明裝置,並且其中,使智慧設備執行相應的動作包括改變該智慧照明裝置的亮度、顏色或色溫。 In one embodiment, the smart device includes a smart lighting device, and wherein causing the smart device to perform a corresponding action includes changing the brightness, color, or color temperature of the smart lighting device.
在一個實施例中,在相應的動作被執行後,若預設定時尚未期滿,則智慧設備下電,並且上下電次數遞增。 In one embodiment, after the corresponding action is performed, if the preset timing has not expired, the smart device is powered off, and the number of power-on and power-off is increased.
在又一個實施例中,智慧設備還可以包括:感測器(未示出),該感測器在智慧設備上電期間感測智慧設備的供電電壓,並且在相應的動作被執行後,若在預設定時尚未期滿時感測器感測到智慧設備的供電電壓掉至低於閾值電壓,則計數器701所統計的上下電次數遞增,而智慧設備並不被下電。 In still another embodiment, the smart device may further include: a sensor (not shown) that senses a power supply voltage of the smart device during power-on of the smart device, and after the corresponding action is performed, if When the preset timing has not expired, the sensor senses that the power supply voltage of the smart device falls below the threshold voltage, and the number of power-offs counted by the counter 701 is increased, and the smart device is not powered off.
在一個實施例中,在相應的動作被執行後,若所述預設定時期滿,計數器701所統計的上下電次數被恢復到初始值。 In one embodiment, after the corresponding action is performed, if the preset time period is full, the number of power-ups counted by the counter 701 is restored to the initial value.
如上所述,根據本實施例的智慧設備700能夠在特定時間內反復上下電並在上下電次數符合特定要求時切換到某個預設狀態,從而實現智慧設備的狀態的改變。 As described above, the smart device 700 according to the embodiment can repeatedly power on and off in a specific time and switch to a certain preset state when the number of power-on and power-off times meets a specific requirement, thereby realizing the change of the state of the smart device.
在以上描述的實施例中,智慧設備下電時計數器值被遞增並更新到記憶體,也就是說,以智慧設備下電來統計上下電次數。然而應理解,在其他實施例中,也可以在設備上電時遞增計數器值,即以智慧設備上電來統計上下電次數,從而根據所統計的計數器值執行對應的動作。 In the above-described embodiment, when the smart device is powered off, the counter value is incremented and updated to the memory, that is, the smart device is powered off to count the number of power-offs. It should be understood, however, that in other embodiments, the counter value may be incremented when the device is powered on, that is, the number of power-on and power-off times is counted by the smart device power-on, so that the corresponding action is performed according to the counted counter value.
根據本發明的實施例的實現智慧設備狀態即時變化的方法可以以軟體、固件和/或硬體或其組合來實施。在軟體和固件實施方式中,方法步驟可以通過存儲在至少一個非暫態電腦可讀介質或機器可讀介質(諸如光、磁或半導體存儲裝置)上的電腦可執行指令實施。 A method of implementing an instant change in state of a smart device in accordance with an embodiment of the present invention may be implemented in software, firmware, and/or hardware, or a combination thereof. In a software and firmware implementation, method steps may be implemented by computer executable instructions stored on at least one non-transitory computer readable medium or machine readable medium, such as an optical, magnetic or semiconductor storage device.
據本發明的智慧設備能夠進行自我恢復或自動完成某些預設動作,並且其狀態即時變化的方法也非常簡單、高效,非常適用於低成本設備。 The smart device according to the present invention is capable of self-recovering or automatically performing certain preset actions, and the method of instantly changing its state is also very simple and efficient, and is very suitable for low-cost devices.
上文中雖然以計數器值遞增1作為示例來對本公開實施例進行說明,但是應理解計數器值可以以其它任何數值遞增。 Although the embodiments of the present disclosure have been described above with the counter value incremented by one as an example, it should be understood that the counter value may be incremented by any other value.
上文中提到了“一個實施例”、“其他實施例”,然而應理解,在各個實施例中提及的特徵並不一定只能應用於該實施例,而是可能用於其他實施例或與其他實施例組合使用。 "One embodiment" and "other embodiments" are 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 with Other embodiments are used in combination.
上文中提到了“第一”、“第二”、“第n-1”等序數詞,然而應理解,這些表述僅是為了敘述和引用的方便,所限定的物件可以不存在次序上的先後關係。 The above mentioned "first", "second", "n-1" and other ordinal numbers, however, it should be understood that these expressions are only for convenience of description and citation, and the defined objects may not have sequential order. 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 or the equivalents thereof range.
401、402、403‧‧‧步驟 401, 402, 403‧‧ steps
Claims (12)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510867929.9A CN105511428A (en) | 2015-11-30 | 2015-11-30 | Method for implementing real-time change of state of intelligent equipment, and intelligent equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI567682B true TWI567682B (en) | 2017-01-21 |
TW201719548A TW201719548A (en) | 2017-06-01 |
Family
ID=55719492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW105104002A TWI567682B (en) | 2015-11-30 | 2016-02-05 | Real-time changes in the state of intelligent equipment and intelligent equipment |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN105511428A (en) |
TW (1) | TWI567682B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669360A (en) * | 2018-12-19 | 2019-04-23 | 南京遍宇联动科技有限公司 | The working method and device of smart home |
CN110764830A (en) * | 2019-10-24 | 2020-02-07 | 歌尔股份有限公司 | Method, device and equipment for controlling exit of application program and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW495706B (en) * | 1997-07-22 | 2002-07-21 | Tlv Co Ltd | System for restricting use of measuring apparatus |
US20090068984A1 (en) * | 2007-09-06 | 2009-03-12 | Burnett R Alan | Method, apparatus, and system for controlling mobile device use |
TW201447569A (en) * | 2013-06-09 | 2014-12-16 | Inventec Appliances Corp | Monitoring system and method thereof |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DD218865A1 (en) * | 1983-07-06 | 1985-02-20 | Fortschritt Veb K | GLOWING TIME LIMITING AND PROGRESSING IN ENGINE INDEPENDENT VEHICLE HEATERS WITH PROGRAMMABLE TIMING CIRCUIT |
CN2919265Y (en) * | 2006-04-14 | 2007-07-04 | 华为技术有限公司 | Veneer upper and lower electricity controlling device |
CN101621878A (en) * | 2008-07-03 | 2010-01-06 | 林焕博 | Light-adjusting driving device and method |
CN101478855B (en) * | 2009-01-10 | 2011-12-07 | 吴广毅 | Lamp light brightness regulating apparatus and method thereof |
CN101847934B (en) * | 2010-05-07 | 2013-01-23 | Bcd半导体制造有限公司 | Switching power supply |
CN102647172A (en) * | 2012-04-17 | 2012-08-22 | 陶雨 | Control device, method and system for multistate switch |
CN103068017B (en) * | 2012-12-24 | 2016-09-14 | 华为技术有限公司 | Device energy conservation control method and system |
CN103532532B (en) * | 2013-08-27 | 2016-12-28 | 陕西中科天地航空模块有限公司 | Power-up/down time sequence control circuit |
CN103533705B (en) * | 2013-09-18 | 2015-12-02 | 浙江生辉照明有限公司 | LED drives light adjusting circuit |
CN104077250B (en) * | 2014-06-27 | 2019-02-01 | Tcl集团股份有限公司 | A kind of connection processing method and device of intelligent terminal and storage equipment |
CN104503565B (en) * | 2015-01-04 | 2017-12-22 | 华为技术有限公司 | Power consumption management method, device and the mobile device of mobile device |
CN105049266B (en) * | 2015-08-25 | 2019-06-07 | 广州昂宝电子有限公司 | The method for realizing network node control |
-
2015
- 2015-11-30 CN CN201510867929.9A patent/CN105511428A/en active Pending
- 2015-11-30 CN CN201910877196.5A patent/CN110609483A/en active Pending
-
2016
- 2016-02-05 TW TW105104002A patent/TWI567682B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW495706B (en) * | 1997-07-22 | 2002-07-21 | Tlv Co Ltd | System for restricting use of measuring apparatus |
US20090068984A1 (en) * | 2007-09-06 | 2009-03-12 | Burnett R Alan | Method, apparatus, and system for controlling mobile device use |
TW201447569A (en) * | 2013-06-09 | 2014-12-16 | Inventec Appliances Corp | Monitoring system and method thereof |
Also Published As
Publication number | Publication date |
---|---|
TW201719548A (en) | 2017-06-01 |
CN105511428A (en) | 2016-04-20 |
CN110609483A (en) | 2019-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI567682B (en) | Real-time changes in the state of intelligent equipment and intelligent equipment | |
US10659374B2 (en) | Method and apparatus for controlling frame transmission | |
CN103200733B (en) | A kind of method and device of automatic control terminal device state indicator lamp | |
EP2883334A1 (en) | Techniques for flooding optimization for link state protocols in a network topology | |
US10567195B2 (en) | Network nodes in a ring network | |
JP2017534235A5 (en) | ||
JP2016511629A5 (en) | ||
CN107370644A (en) | Inter-linked controlling method, device, computer-readable recording medium and computer equipment | |
JP2020502988A5 (en) | ||
TWI599200B (en) | A method of implementing network node control | |
US10938202B2 (en) | System and method for minimizing inrush current | |
WO2016165372A1 (en) | Method and device for controlling hot plug operation of cpu in mobile terminal | |
US20140293805A1 (en) | Method for turning off routers in a communications network and router implementing this method | |
TWI532330B (en) | Home controller and information updating method thereof | |
WO2015149535A1 (en) | Control method for plug-and-play device | |
US20230014396A1 (en) | System and method for facilitating autonomous operation of a smart energy device | |
US10694604B2 (en) | Lighting controller, lighting system and configuration method | |
US8988008B2 (en) | Light control circuit and method | |
JP6994610B1 (en) | Control system for configuring the lighting system and how to configure it | |
JP2021503166A5 (en) | ||
JP6395571B2 (en) | Power line communication device | |
CN113900386B (en) | Self-adaptive linkage control method and system for Internet of things equipment | |
KR20160062493A (en) | Battery management apparatus | |
JP5885695B2 (en) | Integrated circuit and clock setting changing method | |
EP4008164A1 (en) | A device and method for implementing a connected lighting system |