TWI505225B - Applied to the context of intelligent life - Google Patents
Applied to the context of intelligent life Download PDFInfo
- Publication number
- TWI505225B TWI505225B TW102129753A TW102129753A TWI505225B TW I505225 B TWI505225 B TW I505225B TW 102129753 A TW102129753 A TW 102129753A TW 102129753 A TW102129753 A TW 102129753A TW I505225 B TWI505225 B TW I505225B
- Authority
- TW
- Taiwan
- Prior art keywords
- control
- terminal device
- message
- context
- situation
- Prior art date
Links
Landscapes
- Telephonic Communication Services (AREA)
Description
本發明係關於一種應用於智慧生活之情境處理方法,特別係指智慧生活服務平台能錄製使用者現場裝置之操控行為,使之自動成為情境設定,並流暢地進行情境控制。The invention relates to a situation processing method applied to smart life, in particular to a smart life service platform capable of recording the manipulation behavior of a user's field device, automatically changing it into a situation setting, and smoothly performing context control.
情境控制是一種在智慧建築與智慧家庭中營造室內氣氛或舒適環境的服務,例如:睡覺情境時燈全關,或劇院情境時布幕降下,燈轉暗,窗簾關閉等。藉由情境的自動化控制,讓生活更加便利與舒適。情境控制通常由一個按鍵即可完成多個設備的控制,目前常見的情境設定中,其設備控制多為固定的配線裝置,然而固定的配線方式有難以改變情境設定的問題,而稍有智慧之情境控制系統則連線至後端管理平台,使用者可以經由管理平台之人機介面彈性地組合設備啟動狀態以設定情境,具有多樣化的情境設定而不呆板,然而當所需控制的裝置設備數量較多時,對使用者而言也是沉重的負擔,因此設定也常有實際情境效果不佳的情形。因上述習知技術均以系統設計角度出發,未充分考量使用者之實際操作便利性,造成設定上的僵化,且只重視設備之開關結果,不重視情境運作中所帶給使用者的感受,使情境效果不盡人意。此外,因情境的營造需要一段時間,若情境設定僅只是靜態的設定哪些設備需要開啟或關閉,常無法達到良好的效果。若透過後端管理平台動態地設定設備,將可獲得較 佳的環境氛圍,然而網路遠端控制室內裝置也常因延遲問題,造成情境運作效果大打折扣,以習知之技術無法針對情境運作效果差之問題做出有效的解決方式。Situational control is a service that creates an indoor atmosphere or a comfortable environment in a smart building and a smart home. For example, when the sleeping situation is full, the curtains are lowered, the lights are dimmed, and the curtains are closed. With the automatic control of the situation, life is more convenient and comfortable. Context control usually controls multiple devices with one button. In the current situation setting, the device control is mostly a fixed wiring device. However, the fixed wiring method has difficulty in changing the situation setting, but a little wisdom. The situation control system is connected to the back-end management platform, and the user can flexibly combine the device startup state to set the situation through the human-machine interface of the management platform, and has diverse situation settings without being dull, but when the device device needs to be controlled When the number is large, it is also a heavy burden for the user, so the setting often has a situation in which the actual situation is not effective. Because the above-mentioned prior art is based on the system design perspective, the user's actual operation convenience is not fully considered, resulting in rigidity in setting, and only paying attention to the switching result of the device, and not paying attention to the feeling brought to the user in the situation operation, Make the situation effect unsatisfactory. In addition, because the situation needs to be created for a period of time, if the situation setting is only static setting which devices need to be turned on or off, often can not achieve good results. If the device is dynamically set through the backend management platform, it will be more Good environmental atmosphere, however, the remote control of indoor devices in the network is often delayed due to delays, resulting in a significant reduction in the operational effects of the situation. The conventional technology cannot effectively solve the problem of poor performance of the situation.
由此可見,上述習用方式仍有系統可用性差,實非一便捷而容易廣泛應用之設計,亟待加以改良。It can be seen that the above-mentioned conventional methods still have poor system availability, which is not a convenient and widely applicable design and needs to be improved.
本案發明人鑑於上述習用方式所衍生的各項缺點,乃亟思加以改良創新,並經多年苦心孤詣潛心研究後,終於成功研發完成本件一種應用於智慧生活之情境處理方法。In view of the shortcomings derived from the above-mentioned conventional methods, the inventor of the present invention has improved and innovated, and after years of painstaking research, he finally succeeded in researching and developing this method for applying contextual treatment to smart life.
本發明之主要目的係在於提供一種應用於智慧生活之情境處理方法,係從使用者手動操控終端裝置過程中,後端管理平台錄製其操作行為,使之自動形成情境設定,使情境控制效果更加符合預期效果。The main object of the present invention is to provide a context processing method for smart life, in which the back-end management platform records its operation behavior during the manual manipulation of the terminal device by the user, so that the situation setting is automatically formed, and the situation control effect is further improved. In line with the expected results.
本發明之次一目的,係在於以串流方式控制終端裝置,使情境運作時能如同影片播放,且能流暢運作,使情境運作開始時即能營造氣氛。The second object of the present invention is to control the terminal device in a streaming manner so that the context can be played like a movie and can operate smoothly, so that the atmosphere can be created when the situation starts.
本發明之再一目的,係在於以訊息佇列作為資料傳輸方式,使後端管理平台與控制主機能選擇特定主題訊息進行處理,提升情境處理效率。A further object of the present invention is to use a message queue as a data transmission mode, so that the back-end management platform and the control host can select a specific topic message for processing, thereby improving the context processing efficiency.
達成上述發明目的之提供一種應用於智慧生活之情境處理方法,係藉由智慧生活、智慧家庭或智慧建築之後端管理平台來發展,其中包括情境學習方法與情境播放方法等兩部分。情境學習方法係指錄製使用者操作終端裝置行為,後端管理平台向訊息佇列訂閱終端裝置之狀態改 變訊息,當進行情境學習時,使用者手動操作終端裝置之過程被發佈到後端管理平台,後端管理平台將此過程之終端裝置狀態改變資料自動轉換為情境設定;情境播放方法係指時間差串流式之情境控制,當情境控制時,後端管理平台向訊息佇列如影片串流般發佈終端裝置之情境控制訊息,控制主機則訂閱情境控制訊息,並在收到情境控制訊息時先處理延遲效果再進行終端裝置控制。由後端管理平台即時進行情境控制可降低室內裝置之硬體成本,並可使用智慧型手機或平板電腦等行動裝置動態設定並控制情境,使情境服務更具智慧,提高商業價值。The invention provides a situational processing method applied to smart life, which is developed by a smart life, a smart home or a smart building back-end management platform, including a situational learning method and a situational playing method. The context learning method refers to recording the behavior of the user operating the terminal device, and the back-end management platform changes the status of the subscription terminal device to the message queue. Changing the message, when the context learning is performed, the process of the user manually operating the terminal device is released to the backend management platform, and the backend management platform automatically converts the terminal device state change data of the process into the context setting; the context playing method refers to the time difference Streaming context control, when context control, the backend management platform issues a context control message of the terminal device to the message queue, such as a video stream, and the control host subscribes to the context control message and receives the context control message first. The delay effect is processed and the terminal device control is performed. Instant situation control by the back-end management platform can reduce the hardware cost of the indoor device, and can dynamically set and control the situation using mobile devices such as smart phones or tablets, so that the situation service is more intelligent and enhances business value.
1‧‧‧智慧生活後端管理平台1‧‧‧Smart Life Backend Management Platform
2‧‧‧訊息佇列2‧‧‧Message queue
21‧‧‧裝置狀態主題訊息21‧‧‧Device Status Subject Message
22‧‧‧情境控制主題訊息22‧‧‧Situational Control Topic Message
3‧‧‧室內裝置3‧‧‧ indoor installation
31‧‧‧控制主機31‧‧‧Control host
32‧‧‧終端裝置群組32‧‧‧Terminal device group
321‧‧‧終端裝置A321‧‧‧Terminal device A
322‧‧‧終端裝置B322‧‧‧Terminal device B
323‧‧‧終端裝置C323‧‧‧Terminal device C
401‧‧‧控制主機平常時不斷向訊息佇列發佈訊息資料401‧‧‧Control host constantly posts message data to the message queue
402‧‧‧智慧生活後端管理平台平時向訊息佇列訂閱該室內裝置之訊息資料402‧‧‧Smart Life Back-end Management Platform usually subscribes to the message data of the indoor device
403‧‧‧智慧生活後端管理平台進入學習模式403‧‧‧Smart Life Backend Management Platform Enters Learning Mode
404‧‧‧使用者手動操作終端裝置404‧‧‧Users manually operate the terminal device
405‧‧‧控制主機發佈封裝好的終端裝置資料至訊息佇列405‧‧‧Control host releases packaged terminal device data to message queue
406‧‧‧訊息佇列傳送終端裝置資料至智慧生活後端管理平台406‧‧‧Messages to distribute terminal device data to the smart life back-end management platform
407‧‧‧智慧生活後端管理平台解析其封包,在學習模式時只處理終端裝置資料407‧‧‧Smart Life Backend Management Platform parses its packets and only processes terminal device data in learning mode
408‧‧‧是否繼續操作終端裝置408‧‧‧Continue to operate the terminal device
409‧‧‧智慧生活後端管理平台終止學習模式409‧‧‧Smart Life Backend Management Platform Terminating Learning Mode
410‧‧‧智慧生活後端管理平台之人機介面上進行情境設定編輯410‧‧‧Scenario setting editing on the human-machine interface of the smart life back-end management platform
411‧‧‧結束End of 411‧‧
5‧‧‧情境設定前5‧‧‧ Before setting the situation
51~54‧‧‧情境設定前之終端裝置控制Terminal control before 51~54‧‧‧ situation setting
6‧‧‧情境設定後6‧‧‧After the situation is set
61~65‧‧‧情境設定後之情境控制Situational control after setting 61~65‧‧‧
701‧‧‧控制主機平常時向訊息佇列訂閱訊息資料701‧‧‧Control host usually subscribes to message queues for message data
702‧‧‧智慧生活後端管理平台平時向訊息佇列發佈訊息資料702‧‧‧Smart Life Back-end Management Platform usually publishes message data to messages
703‧‧‧智慧生活後端管理平台將封裝好的情境控制訊息依順序一筆一筆以串流方式向訊息佇列發佈703‧‧‧Smart Life Backend Management Platform publishes encapsulated context control messages in a streamlined manner to the message queue
704‧‧‧訊息佇列傳送情境控制訊息至控制主機704‧‧‧Message queue to send context control messages to the control panel
705‧‧‧控制主機解析情境控制訊息封包705‧‧‧Control host parsing context control message packet
706‧‧‧控制主機校正情境控制訊息之控制間隔706‧‧‧Control interval for controlling host to correct situation control messages
707‧‧‧控制主機依校正後的控制間隔控制終端裝置707‧‧‧Control host controls the terminal device according to the corrected control interval
708‧‧‧結束End of 708‧‧
8‧‧‧智慧生活後端管理平台情境控制發佈8‧‧‧Smart Life Backend Management Platform Situation Control Release
801‧‧‧情境控制訊息801‧‧‧ Situational Control Message
802‧‧‧情境控制訊息802‧‧‧ Situational Control Message
803‧‧‧情境控制訊息803‧‧‧Scenario Control Message
804‧‧‧情境控制訊息804‧‧‧ Situational Control Message
805‧‧‧情境控制訊息805‧‧‧Context Control Message
9‧‧‧控制主機無校正情境設定9‧‧‧Control host no correction situation setting
901‧‧‧情境控制訊息901‧‧‧ Situational Control Message
902‧‧‧情境控制訊息902‧‧‧ Situational Control Message
903‧‧‧情境控制訊息903‧‧‧Scenario Control Message
904‧‧‧情境控制訊息904‧‧‧ Situational Control Message
10‧‧‧控制主機校正後情境設定10‧‧‧Control host after correction context setting
1001‧‧‧情境控制訊息1001‧‧‧ Situational Control Message
1002‧‧‧情境控制訊息1002‧‧‧ Situational Control Message
1003‧‧‧情境控制訊息1003‧‧‧ Situational Control Message
1004‧‧‧情境控制訊息1004‧‧‧ Situational Control Message
1005‧‧‧情境控制訊息1005‧‧‧ Situational Control Message
第1圖 為本發明之一種應用於智慧生活之情境處理方法之系統架構示意圖;第2圖 為本發明之一種應用於智慧生活之情境式連動系統之情境處理方法之情境學習機制流程圖;第3圖 為本發明之一種應用於智慧生活之情境處理方法之情境設定關係圖;第4圖 為本發明之一種應用於智慧生活之情境處理方法之時間差串流式情境控制流程圖;第5圖 為本發明之一種應用於智慧生活之情境處理方法之時間差串流式情境控制校正關係圖;1 is a schematic diagram of a system architecture of a context processing method applied to smart life according to the present invention; FIG. 2 is a flow chart of a context learning mechanism for a context processing method applied to a smart life context linkage system according to the present invention; 3 is a context setting relationship diagram of a context processing method applied to smart life according to the present invention; FIG. 4 is a flow chart of a time difference stream type context control method applied to a smart life context processing method according to the present invention; A time difference stream type context control correction relationship diagram for a context processing method applied to a smart life of the present invention;
請參閱圖一,為本發明一種應用於智慧生活之情境處理方法之系統架構示意圖,其主要之組成元件包含有:一智慧生活後端管理平台1,係具備資料儲存能力、處理能 力及提供網站服務具網頁人機介面能力之系統,係藉由網路與訊息佇列2介接,而該智慧生活後端管理平台1向訊息佇列2訂閱資料,並在後端管理平台進入情境設定學習時只處理裝置狀態21之訊息資料,當後端管理平台要進行情境控制時,則向訊息佇列2之情境控制22發佈情境控制訊息;一訊息佇列2,係藉由網路提供訊息之訂閱與發佈服務,而該訊息佇列2包含多個主題訊息,其中裝置狀態21表控制主機31所回報的終端裝置狀態資料,依地點或使用者之不同有專屬的裝置狀態21主題訊息,當裝置狀態21收到控制主機31所發佈的訊息時,訊息佇列2立即主動傳送該訊息至智慧生活後端管理平台1,完成智慧生活後端管理平台1之訂閱動作,該情境控制22為後端管理平台遠端控制終端裝置之主題訊息,依地點或使用者之不同有專屬的情境控制22主題訊息,當情境控制22收到智慧生活後端管理平台1所發佈的訊息時,訊息佇列2立即主動傳送該訊息至控制主機31,完成控制主機31之訂閱動作;一室內裝置3,係包括控制主機31及終端裝置32,控制主機31對外透過網路與訊息佇列2介接,對內透過有線或無線方式納管終端裝置,例如:終端裝置A 321,終端裝置B 322及終端裝置C 323等,控制主機向訊息佇列2之情境控制22訂閱訊息,並向裝置狀態21發佈終端裝置資料訊息。Please refer to FIG. 1 , which is a schematic diagram of a system architecture applied to a smart life situation processing method. The main components include: a smart life back-end management platform 1 , which has data storage capability and processing capability. The system of providing web services with web-based human-machine interface capabilities is connected through the Internet and the message queue 2, and the smart life back-end management platform 1 subscribes to the information queue 2 and manages the platform on the back-end. When entering the context setting learning, only the message data of the device state 21 is processed. When the backend management platform is to perform the context control, the context control message is sent to the context control 22 of the message queue 2; a message queue 2 is obtained by the network. The message providing subscription and publishing service, and the message queue 2 includes a plurality of subject messages, wherein the device status 21 table controls the terminal device status data reported by the host 31, and has a unique device status according to the location or the user. The subject message, when the device status 21 receives the message issued by the control host 31, the message queue 2 immediately transmits the message to the smart life backend management platform 1 to complete the subscription action of the smart life backend management platform 1, the situation The control 22 is a theme message of the remote control terminal device of the back-end management platform, and has a unique context control 22 subject message according to the location or the user, when the context control 2 2 When receiving the message issued by the smart life backend management platform 1, the message queue 2 immediately transmits the message to the control host 31 to complete the subscription action of the control host 31; an indoor device 3 includes the control host 31 and the terminal. In the device 32, the control host 31 interfaces with the message queue 2 through the network, and internally controls the host device through wired or wireless mode, such as terminal device A 321, terminal device B 322 and terminal device C 323. The context control 22 of the message queue 2 subscribes to the message and issues the terminal device profile message to the device state 21.
請參閱圖二,為本發明一種應用於智慧生活之情境處理方法之情境學習機制流程圖。由圖中可知,其運作機制步驟為:步驟一、控制主機平常時不斷向訊息佇列發佈訊息資料401,訊息資料包括終端裝置、註冊、校正、定時回報、告警及控制主機資訊 等資料,智慧生活後端管理平台平時向訊息佇列訂閱該室內裝置之訊息資料402,訊息資料包括終端裝置、註冊、校正、定時回報、告警及控制主機資訊等資料;步驟二、使用者經由帳號驗證後,登入智慧生活後端管理平台,點選網頁人機介面之學習模式選項進入學習模式403,;步驟三、使用者手動操作終端裝置,使其開或關或調整其狀態,控制主機將偵測其狀態404;步驟四、控制主機偵測到終端裝置狀態後,發佈封裝好的終端裝置資料至訊息佇列405,封裝方式為將終端裝置資料編排為JSON、XML或自訂文字格式,終端裝置資料包括狀態、時間、電流值等;步驟五、訊息佇列傳送封裝好的終端裝置資料至智慧生活後端管理平台406;步驟六、智慧生活後端管理平台解析其封包,在學習模式時只處理終端裝置資料,並比對資料庫之終端裝置狀態,以暫存狀態不同的終端裝置407;步驟七、若要繼續操作終端裝置則重覆步驟三408,若否,則智慧生活後端管理平台終止學習模式409;步驟八、終止學習模式後,於智慧生活後端管理平台之人機介面上進行情境設定編輯410,編輯完後則結束411。Please refer to FIG. 2, which is a flow chart of a context learning mechanism applied to a contextual processing method of smart life according to the present invention. As can be seen from the figure, the operation mechanism steps are as follows: Step 1: The control host continuously posts the message data 401 to the message queue, and the message data includes the terminal device, registration, correction, timing report, alarm and control host information. And the information, the smart life back-end management platform usually subscribes to the message data 402 of the indoor device to the message queue, the message data includes the terminal device, registration, correction, timing report, alarm and control host information, etc.; After the account is verified, log in to the smart life back-end management platform, and click the learning mode option of the webpage human-machine interface to enter the learning mode 403. Step 3: The user manually operates the terminal device to turn it on or off or adjust its state, and control the host. The status 404 will be detected. Step 4: After the control host detects the status of the terminal device, the packaged terminal device data is sent to the message queue 405, and the package mode is to arrange the terminal device data into JSON, XML or custom text format. The terminal device data includes status, time, current value, etc.; in step 5, the message queue transmits the encapsulated terminal device data to the smart life backend management platform 406; step 6, the smart life backend management platform parses the packet, and learns In the mode, only the terminal device data is processed, and the state of the terminal device of the database is compared to the temporary storage state. Different terminal devices 407; Step 7. If the terminal device is to continue to operate, repeat step 3408. If not, the smart life backend management platform terminates the learning mode 409; Step 8. After terminating the learning mode, the smart life backend management The context setting edit 410 is performed on the human interface of the platform, and the editing ends 411.
請參閱圖三,為本發明一種應用於智慧生活之情境處理方法之情境設定關係圖。由圖中可知,智慧生活後端管理平台終止學習模式時, 手動操作終端裝置時之狀態改變及控制間隔自動顯示於人機介面,如情境設定前5之圖示,使用者可以情境設定前5為基礎進行情境設定編輯,使其變成情境設定後6,此方式可加速情境設定與簡化設定複雜度,此外,也可不編輯直接套用情境設定前5而結束,此方式可重現先前手動操作的情形。如圖三所示,情境設定前5所顯示的終端裝置操作為:開啟終端裝置A(51),隔3秒後調整終端裝置B狀態0%至20%(52),隔3秒後開啟終端裝置C(53),隔3秒後調整終端裝置C狀態25至23(54),此操作情境如一開始先開燈,隔3秒後再開調光燈至20%亮度,隔3秒後開啟冷氣,隔3秒後調整溫度由25度至23度。經由情境設定後變成:開啟終端裝置A(61),隔4秒後開啟終端裝置C(64),隔3後調整終端裝置C狀態25至23(65),隔4秒後調整終端裝置B狀態0%至20%(62),隔3秒後調整終端裝置B狀態20%至80%(63)。情境設定編輯好後,即對每一個終端裝置控制封裝成一筆情境控制訊息,封裝方式為將終端裝置控制編排為JSON、XML或自訂文字格式,其包含終端裝置代碼、終端裝置改變狀態、控制間隔、發佈時間等,發佈時間為開始送出至訊息佇列的時間,例如:(61)之情境控制訊息,其裝置代碼為終端裝置A,終端裝置改變狀態為開,控制間隔為0秒,發佈時間為2013/4/12 18:00:00.123。(64)之情境控制訊息,其裝置代碼為終端裝置C,終端裝置改變狀態為開,控制間隔為4秒,發佈時間為2013/4/12 18:00:01.123。(65)之情境控制訊息,其終端裝置代碼為終端裝置C,終端裝置改變狀態為25至23,控制間隔為3秒,發佈時間為2013/4/12 18:00:02.123。(62)之情境控制訊息,其裝置代碼為終端裝置B,終端裝置改變狀態0%至20%,控制間隔為4秒,發佈時間為2013/4/12 18:00:05.123。(63)之情境控制訊息,其裝置代碼為終端 裝置B,終端裝置改變狀態20%至80%,控制間隔為3秒,發佈時間為2013/4/12 18:00:06.123。Please refer to FIG. 3 , which is a context setting relationship diagram of a context processing method applied to smart life according to the present invention. As can be seen from the figure, when the smart life back-end management platform terminates the learning mode, When the terminal device is manually operated, the status change and control interval are automatically displayed on the human-machine interface. For example, if the situation is set in the top 5 of the situation setting, the user can edit the situation setting based on the top 5 of the situation setting to make it become the situation setting. The method can speed up the situation setting and simplify the setting complexity. In addition, it can also end without editing the first 5 settings of the context setting, which can reproduce the situation of the previous manual operation. As shown in Figure 3, the terminal device shown in the top 5 of the context setting operates as: Turn on the terminal device A (51), adjust the terminal device B state 0% to 20% (52) after 3 seconds, and then open the terminal after 3 seconds. Device C (53), adjust the terminal device C state 25 to 23 (54) after 3 seconds, the operation situation is as follows: first turn on the light, then turn on the dimming lamp to 20% brightness after 3 seconds, turn on the air-conditioning after 3 seconds. The temperature is adjusted from 25 degrees to 23 degrees after every 3 seconds. After setting through the context, it becomes: the terminal device A (61) is turned on, the terminal device C (64) is turned on after 4 seconds, and the terminal device C states 25 to 23 (65) are adjusted after 3, and the terminal device B state is adjusted after 4 seconds. 0% to 20% (62), adjust the terminal device B state by 20% to 80% (63) after every 3 seconds. After the context setting is edited, each terminal device control is packaged into a context control message, and the encapsulation method is to arrange the terminal device control into a JSON, XML or custom text format, which includes the terminal device code, the terminal device change state, and the control. Interval, release time, etc., the release time is the time to start sending to the message queue, for example: (61) context control message, the device code is terminal device A, the terminal device changes state is on, the control interval is 0 seconds, release The time is 2013/4/12 18:00:00.123. (64) The context control message, the device code is the terminal device C, the terminal device changes state to ON, the control interval is 4 seconds, and the release time is 2013/4/12 18:00:01.123. (65) The context control message, the terminal device code is the terminal device C, the terminal device changes state is 25 to 23, the control interval is 3 seconds, and the release time is 2013/4/12 18:00:02.123. (62) The context control message, the device code is the terminal device B, the terminal device changes state 0% to 20%, the control interval is 4 seconds, and the release time is 2013/4/12 18:00:05.123. (63) Situational control message, the device code is the terminal Device B, the terminal device changes state by 20% to 80%, the control interval is 3 seconds, and the release time is 2013/4/12 18:00: 06.123.
請參閱圖四,為本發明一種應用於智慧生活之情境處理方法之時間差串流式情境控制流程圖。由圖中可知,智慧生活後端管理平台進行情境控制之運作機制步驟為:步驟一:控制主機平常時向訊息佇列訂閱訊息資料701,訊息資料包括情境控制、裝置控制、時間校正、定時回報等資料;智慧生活後端管理平台平時向訊息佇列發佈訊息資料702,訊息資料包括情境控制、裝置控制、時間校正、定時回報等資料;步驟二:智慧生活後端管理平台將封裝好的情境控制訊息依順序一筆一筆以串流方式向訊息佇列發佈703,每筆間隔可能因後端管理平台之處理效能不穩定而不一樣;步驟三:訊息佇列傳送情境控制訊息至控制主機704;步驟四:控制主機解析情境控制訊息封包705;步驟五:控制主機校正情境控制訊息之控制間隔706;步驟六:控制主機依校正後的控制間隔控制終端裝置707,而後結束708;請參閱圖五,為本發明一種應用於智慧生活之情境處理方法之時間差串流式情境控制校正關係圖。終端裝置控制之順序與控制間隔為情境中營造氣氛重要的因素,故需確保情境控制時能如預期運作。由圖中可知,智慧生活後端管理平台情境發佈8為傳送至訊息佇列之情境控制訊息,情境控制訊息801對應情境設定後61,情境控制訊息802對應情境設定後64,情境控制訊息803對應情境設定後65,情境控制訊息804對應情境設定後 62,情境控制訊息805對應情境設定後63,其訊息包含終端裝置代碼、終端裝置改變狀態、控制間隔、發佈時間等,圖例之訊息格式為”終端裝置代碼,終端裝置改變狀態,控制間隔”,發佈時間對應至以秒為單位之PSn 時間軸上。控制主機無校正情境設定9為控制主機從訊息佇列接收到情境控制訊息後直接進行終端裝置控制,終端裝置控制時間對應至BSn 時間軸上,由於經過網路傳送難免會遇到延遲的問題,若直接進行終端裝置控制,控制間隔再加上延遲時間會造成不流暢的情形,故經過演算法校正使其變成控制主機校正後情境設定10,其終端裝置控制時間對應至MSn 時間軸上。校正主要是修改控制間隔之時間,當控制主機收到情境控制訊息發現有延遲情形時即縮短控制間隔,使延遲時間加上縮短後控制間隔儘量接近原本間隔時間,可讓校正後的情境運作能減少延遲的影響,使情境運作符合預期中的結果。智慧生活後端管理平台情境發佈8之情境控制訊息在校正上需要的參數組成與說明如下:Please refer to FIG. 4 , which is a flow chart of time difference stream type context control applied to a context processing method of smart life according to the present invention. As can be seen from the figure, the operation steps of the context control platform for the smart life back-end management platform are as follows: Step 1: The control host usually subscribes to the message queue 701 with message information, including message context control, device control, time correction, and timing report. And other information; the smart life back-end management platform usually posts message data 702 to the message queue, the message data includes context control, device control, time correction, timed reward, etc.; Step 2: Smart Life back-end management platform will encapsulate the situation The control message is sent to the message queue 703 in sequence, and each interval may be different due to the unstable processing performance of the backend management platform; Step 3: The message queue transmits the context control message to the control host 704; Step 4: Control the host to parse the situation control message packet 705; Step 5: Control the host to correct the control interval of the context control message 706; Step 6: The control host controls the terminal device 707 according to the corrected control interval, and then ends 708; Is a context processing method applied to smart life of the present invention A time difference correction control diagram streaming context. The order and control interval of the terminal device control is an important factor in creating an atmosphere in the situation, so it is necessary to ensure that the situation control can operate as expected. As can be seen from the figure, the smart life back-end management platform context release 8 is a context control message transmitted to the message queue. The context control message 801 corresponds to the context setting 61, the context control message 802 corresponds to the context setting 64, and the context control message 803 corresponds to After the situation is set 65, the context control message 804 corresponds to the context setting 62, and the context control message 805 corresponds to the context setting 63. The message includes the terminal device code, the terminal device change status, the control interval, the release time, etc., and the message format of the legend is “ The terminal device code, the terminal device changes state, the control interval", and the release time corresponds to the PS n time axis in seconds. Control host no-correction situation setting 9 is that the control host directly controls the terminal device after receiving the situation control message from the message queue. The terminal device control time corresponds to the BS n time axis, and the delay is encountered due to the transmission through the network. If the terminal device control is directly performed, the control interval plus the delay time may cause a non-fluent situation, so the algorithm is corrected to become the control host corrected context setting 10, and the terminal device control time corresponds to the MS n time axis. . The correction is mainly to modify the control interval time. When the control host receives the situation control message and finds that there is a delay condition, the control interval is shortened, so that the delay time plus the shortened control interval is as close as possible to the original interval time, so that the corrected situation can be operated. Reduce the impact of delays and make the situation work as expected. The composition and description of the parameters required for the correction of the context control message of the Smart Life Backend Management Platform Situational Release 8 are as follows:
●PDin :智慧生活後端管理平台傳送第n個情境控制訊息包含之控制間隔,此控制間隔係指控制主機控制終端裝置與上一個終端裝置的間隔時間,例如:情境控制訊息801控制間隔為0秒,情境控制訊息802控制間隔為4秒。PDi0 預設為0秒。● PDi n : The smart life backend management platform transmits the control interval included in the nth context control message, where the control interval refers to the interval between the control host controlling the terminal device and the last terminal device, for example, the context control message 801 is controlled by At 0 seconds, the context control message 802 has a control interval of 4 seconds. PDi 0 is preset to 0 seconds.
●PSn :智慧生活後端管理平台發佈第n個情境控制訊息之發佈時間,格式為yyyy-MM-dd HH:mm:ss.fff,由於智慧生活後端管理平台之處理效能可能突然不穩定,需考慮到發佈時間可能無法如預期時間發佈,例如:傳送情境控制訊息802時之發佈時間為2013/4/12 18:00:01.123,在此簡化以01秒說明表示。PS0 預設為00秒。●PS n : The life-end back-end management platform releases the release time of the nth situation control message in the format of yyyy-MM-dd HH:mm:ss.fff, because the processing performance of the smart life back-end management platform may suddenly become unstable It should be considered that the release time may not be released as expected. For example, the release time of the context control message 802 is 2013/4/12 18:00:01.123, which is indicated by the 01 second description. PS 0 is preset to 00 seconds.
◆控制主機無校正情境設定9之情境控制訊息為控制主機收到該訊息時不進行校正的情形,參數組成與說明如下:◆ Control host no correction situation setting 9 The situation control message is the case where the control host does not perform correction when receiving the message. The parameter composition and description are as follows:
●Dgn :為控制主機收到第n個情境控制訊息之延遲時間,例如:情境控制訊息901延遲時間為2秒,情境控制訊息904延遲時間為7秒。延遲時間視網路速度及訊息佇列處理速度而可能不同。Dg n : The delay time for the control host to receive the nth context control message, for example, the context control message 901 has a delay time of 2 seconds, and the context control message 904 has a delay time of 7 seconds. The delay time may vary depending on the network speed and the processing speed of the message queue.
●BDin :為控制主機收到第n個情境控制訊息無校正之控制間隔,其值等於PDin ,例如:情境控制訊息901控制間隔為0秒,情境控制訊息902控制間隔為4秒。● BDi n : The control interval for which the control host receives the nth context control message without correction, and its value is equal to PDi n . For example, the context control message 901 has a control interval of 0 seconds, and the context control message 902 has a control interval of 4 seconds.
●BSn :為控制主機在無校正下控制第n個終端裝置之控制時間,例如:情境控制訊息902控制時間為2013/4/12 18:00:07.123,在此簡化以07秒說明表示。BS0 =PS0 +Dg0 ,在n大於0情況下,當PSn +Dgn >BSn-1 時,BSn =PSn +Dgn +BDin ,當PSn +Dgn <BSn-1 時,BSn =BSn-1 +BDin ,例如:情境控制訊息904之BS3 ,因5+7>10,故BS3 =5+7+4=16。控制主機校正後情境設定10之情境控制訊息為控制主機收到訊息時進行校正的情形,在校正上需要的參數組成與說明如下:● BS n : The control time of the nth terminal device is controlled by the control host without correction. For example, the control time of the context control message 902 is 2013/4/12 18:00:07.123, which is simplified by the description of 07 seconds. BS 0 = PS 0 + Dg 0 , when n is greater than 0, when PS n + Dg n > BS n-1 , BS n = PS n + Dg n + BDi n , when PS n + Dg n <BS n When -1 , BS n =BS n-1 +BDi n , for example, BS 3 of the context control message 904, since 5+7>10, BS 3 = 5+7+4=16. The situation control message of the control host after the situation setting 10 is used to correct the situation when the control host receives the message. The parameters and the parameters required for the correction are as follows:
●MDin :校正後控制第n個終端裝置之控制間隔。MDi0 =PDi0 ,在n大於0情況下,當PSn +Dgn >MSn-1 時,MDin =PDin -(PSn +Dgn -MSn-1 ),當PSn +Dgn <=MSn-1 時,MDin =PDin ,例如:情境控制訊息1001經校正後控制間隔為0秒,情境控制訊息1002因PS1 +Dg1 =1+2>2,故經校正後控制間隔為PDi1 -(PS1 +Dg1 -MS0 )=4-((1+2-2))=3秒。●MDi n : Controls the control interval of the nth terminal device after correction. MDi 0 = PDi 0 , when n is greater than 0, when PS n + Dg n > MS n-1 , MDi n = PDi n - (PS n + Dg n - MS n-1 ), when PS n + Dg When n <= MS n-1 , MDi n = PDi n , for example, the control interval of the context control message 1001 is 0 seconds after the correction, and the context control message 1002 is corrected because PS 1 + Dg 1 = 1 + 2 > 2 The post-control interval is PDi 1 -(PS 1 +Dg 1 -MS 0 )=4-((1+2-2))=3 seconds.
●MSn :校正後控制第n個終端裝置之控制時間,例如:情境控制訊息1002控制時間為2013/4/12 18:00:06.123,在此簡化以06秒說明表示。MS0 =PS0 +Dg0 ,在n大於0情況下,當PSn +Dgn >MSn-1 時,MSn =MSn-1 +PDin ,當PSn +Dgn <=MSn-1 時,MSn =MSn-1 +MDin ,例如:情境控制訊息1004之MS3 =PS3 +Dg3 =5+7>9,故MS3 =MS2 +PDi3 =9+4=13。● MS n : Controls the control time of the nth terminal device after correction. For example, the situation control message 1002 controls the time to 2013/4/12 18:00: 06.123, which is simplified here with a description of 06 seconds. MS 0 = PS 0 + Dg 0 , when n is greater than 0, when PS n + Dg n > MS n-1 , MS n = MS n-1 + PDi n , when PS n + Dg n <= MS n -1 , MS n = MS n-1 + MDi n , for example: MS 3 of the context control message 1004 = PS 3 + Dg 3 = 5 + 7 > 9, so MS 3 = MS 2 + PDi 3 = 9 + 4 =13.
舉例說明,智慧生活後端管理平台預期於00秒開始,每隔一秒發佈情境控制訊息,故智慧生活後端管理平台於00秒時發佈情境控制訊息801至訊息佇列,此訊息內之裝置名稱為終端裝置A,狀態由關變成開,控制間隔為0秒,因延遲2秒,控制主機在02秒收到此情境控制訊息,若不校 正,因情境控制訊息901控制間隔為0秒,故在02秒時即進行終端裝置控制,若進行校正,情境控制訊息1001之控制間隔仍為0秒,故在02秒時即進行終端裝置控制。智慧生活後端管理平台於01秒時傳送情境控制訊息802,此情境控制訊息內之裝置名稱為終端裝置C,狀態由關變成開,控制間隔為4秒,經延遲2秒後,控制主機03秒收到此訊息,若未進行校正,情境控制訊息902將在07秒才進行終端裝置控制,若進行校正,因情境控制訊息1002之收到時間超過情境控制訊息1001之控制時間1秒,故縮短間隔時間為3秒,情境控制訊息1002之內容變為”終端裝置C,關->開,3”,使情境控制訊息1002在06秒執行,符合控制終端裝置C開啟之情境控制訊息1002與控制終端裝置C狀態由25至23之情境控制訊息1003真正間隔時間相差4秒,同樣地,智慧生活後端管理平台在02秒時傳送情境控制訊息803,經延遲1秒後,控制主機03秒收到此訊息,若未校正,因控制間隔為3秒且需等情境控制訊息902執行結束,故情境控制訊息903將在10秒才進行終端裝置控制,若進行校正,因情境控制訊息1003之收到時間比情境控制訊息1002之控制時間早,故控制間隔不變,情境控制訊息1003等情境控制訊息1002執行完後,於09秒進行執行。智慧生活後端管理平台因突然處理速度變慢,使得在05秒時才傳送情境控制訊息804,經延遲7秒後,控制主機12秒收到此情境控制訊息,若未校正,因控制間隔為4秒且情境控制訊息903早己執行,故情境控制訊息904在16秒進行終端裝置控制,若進行校正,因情境控制訊息1004之收到時間超過情境控制訊息1003之控制時間3秒,故縮短控制間隔為1秒,情境控制訊息1004之內容變為”終端裝置B,0%->20%,1”,使情境控制訊息1004在13秒執行,符合情境控制訊息1003應與情境控制訊息1004相差4秒。智慧生活後端管理平台 在06秒時傳送情境控制訊息805,經延遲3秒後,控制主機09秒收到此情境控制訊息905,若未進行校正,因控制間隔為3秒且需情境控制訊息904先執行結束,將在19秒進行終端裝置控制,若進行校正,因情境控制訊息1005之收到時間比情境控制訊息1004之控制時間早,故控制間隔不變,使情境控制訊息1005在16秒執行。For example, the smart life back-end management platform is expected to start at 00 seconds, and the situation control message is released every second. Therefore, the smart life back-end management platform releases the situation control message 801 to the message queue at 00 seconds, and the device in the message The name is terminal device A, the status changes from off to on, and the control interval is 0 seconds. Because of the delay of 2 seconds, the control host receives this situation control message in 02 seconds. Positive, because the control interval of the context control message 901 is 0 seconds, the terminal device control is performed at 02 seconds. If the correction is performed, the control interval of the context control message 1001 is still 0 seconds, so the terminal device control is performed at 02 seconds. . The smart life back-end management platform transmits the context control message 802 at 01 seconds. The device name in the context control message is the terminal device C, the state is changed from off to on, the control interval is 4 seconds, and after 2 seconds delay, the control host 03 If the message is not received, the context control message 902 will perform the terminal device control in 07 seconds. If the correction is made, the received time of the context control message 1002 exceeds the control time of the context control message 1001 for 1 second. The shortened interval is 3 seconds, and the content of the context control message 1002 becomes "terminal device C, off-> on, 3", and the context control message 1002 is executed in 06 seconds, conforming to the context control message 1002 in which the control terminal device C is turned on. The real-time interval between the situation control device 1003 and the control terminal device C is 25 seconds. Similarly, the smart life back-end management platform transmits the context control message 803 at 02 seconds, and after a delay of 1 second, the host is controlled for 03 seconds. Receiving this message, if not corrected, since the control interval is 3 seconds and the execution of the context control message 902 is required to end, the context control message 903 will be controlled by the terminal device in 10 seconds. If correct, the control message due to context control 1002 1003 Receive time earlier than the context control messages, so the same control interval, situational context, etc. control message control message 1003 1002 executed, execution in 09 seconds. The smart life back-end management platform slows down the processing speed so that the context control message 804 is transmitted at 05 seconds. After a delay of 7 seconds, the control host receives the situation control message for 12 seconds. If not, the control interval is 4 seconds and the context control message 903 has been executed, so the context control message 904 performs terminal device control in 16 seconds. If the correction is performed, the received time of the context control message 1004 exceeds the control time of the context control message 1003 by 3 seconds, so that the shortening is shortened. The control interval is 1 second, and the content of the context control message 1004 becomes "terminal device B, 0% -> 20%, 1", causing the context control message 1004 to be executed in 13 seconds, in accordance with the context control message 1003 and the context control message 1004. The difference is 4 seconds. Smart Life Backend Management Platform The context control message 805 is transmitted at 06 seconds. After a delay of 3 seconds, the control host receives the context control message 905 for 09 seconds. If the correction is not performed, the control interval is 3 seconds and the context control message 904 is executed first. The terminal device control is performed in 19 seconds. If the correction is made, since the reception time of the context control message 1005 is earlier than the control time of the context control message 1004, the control interval is unchanged, and the context control message 1005 is executed in 16 seconds.
控制主機收到情境控制訊息後,若不校正,則會在02、07、10、16、19秒進行終端裝置控制,其控制間隔為5、3、6、3秒,不符合原先4、3、4、3秒之設定,經校正後,可在02、06、09、13、16秒進行終端裝置控制,其間隔為4、3、4、3秒,符合原先的設定。After receiving the situation control message, if the control host does not correct, it will control the terminal device in 02, 07, 10, 16, and 19 seconds. The control interval is 5, 3, 6, and 3 seconds, which does not match the original 4 and 3. After setting for 4 or 3 seconds, the terminal device can be controlled in 02, 06, 09, 13, and 16 seconds after the correction, and the interval is 4, 3, 4, and 3 seconds, which is in accordance with the original setting.
本發明所提供之一種應用於智慧生活之情境處理方法,與其他習用技術相互比較時,更具備下列優點:The method for processing contexts applied to smart life provided by the present invention has the following advantages when compared with other conventional technologies:
1.本發明之一種應用於智慧生活之情境處理方法,其中情境學習機制能從使用者於終端裝置端之操控行為,自動成為後端管理平台之情境設定,簡化設定程序與提高系統智慧化程度。1. A context processing method for smart life according to the present invention, wherein the context learning mechanism can automatically change the setting procedure and improve the system intelligence degree from the user's manipulation behavior on the terminal device side, automatically becomes the context setting of the back-end management platform. .
2.本發明之一種應用於智慧生活之情境處理方法,其中時間差串流式情境控制能在情境運作開始即營造氣氛,也提高終端裝置控制的流暢度。2. A method for processing a situation of smart life according to the present invention, wherein the time difference stream type context control can create an atmosphere at the beginning of the situation operation, and also improve the fluency of the terminal device control.
3.本發明之一種應用於智慧生活之情境處理方法,其中訊息佇列可選擇特定訊息進行處理,提高情境處理效率,且易於擴充與不同服務平台整合。3. A method for processing a situation in a smart life, wherein the message queue can select a specific message for processing, improve context processing efficiency, and is easy to expand and integrate with different service platforms.
上列詳細說明係針對本發明之一可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為 之等效實施或變更,均應包含於本案之專利範圍中。The detailed description above is a detailed description of one of the possible embodiments of the present invention, which is not intended to limit the scope of the invention, which is not Equivalent implementations or changes shall be included in the scope of the patent in this case.
1‧‧‧智慧生活後端管理平台1‧‧‧Smart Life Backend Management Platform
2‧‧‧訊息佇列2‧‧‧Message queue
21‧‧‧裝置狀態主題訊息21‧‧‧Device Status Subject Message
22‧‧‧情境控制主題訊息22‧‧‧Situational Control Topic Message
3‧‧‧室內裝置3‧‧‧ indoor installation
31‧‧‧控制主機31‧‧‧Control host
32‧‧‧終端裝置群組32‧‧‧Terminal device group
321‧‧‧終端裝置A321‧‧‧Terminal device A
322‧‧‧終端裝置B322‧‧‧Terminal device B
323‧‧‧終端裝置C323‧‧‧Terminal device C
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW102129753A TWI505225B (en) | 2013-08-20 | 2013-08-20 | Applied to the context of intelligent life |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW102129753A TWI505225B (en) | 2013-08-20 | 2013-08-20 | Applied to the context of intelligent life |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201508682A TW201508682A (en) | 2015-03-01 |
TWI505225B true TWI505225B (en) | 2015-10-21 |
Family
ID=53186287
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102129753A TWI505225B (en) | 2013-08-20 | 2013-08-20 | Applied to the context of intelligent life |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI505225B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080056530A1 (en) * | 2006-09-04 | 2008-03-06 | Via Technologies, Inc. | Scenario simulation system and method for a multimedia device |
TW200904118A (en) * | 2007-07-04 | 2009-01-16 | Inventec Corp | Automatic setting profile method and system |
TW201007078A (en) * | 2008-08-01 | 2010-02-16 | Shian Yih Electronic Industry Co Ltd | Illumination method and system for scenario creation and media thereof |
TWM442846U (en) * | 2012-06-08 | 2012-12-11 | Univ Vanung | Situational control system |
-
2013
- 2013-08-20 TW TW102129753A patent/TWI505225B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080056530A1 (en) * | 2006-09-04 | 2008-03-06 | Via Technologies, Inc. | Scenario simulation system and method for a multimedia device |
TW200904118A (en) * | 2007-07-04 | 2009-01-16 | Inventec Corp | Automatic setting profile method and system |
TW201007078A (en) * | 2008-08-01 | 2010-02-16 | Shian Yih Electronic Industry Co Ltd | Illumination method and system for scenario creation and media thereof |
TWM442846U (en) * | 2012-06-08 | 2012-12-11 | Univ Vanung | Situational control system |
Also Published As
Publication number | Publication date |
---|---|
TW201508682A (en) | 2015-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11974006B2 (en) | Live and recorded content watch parties | |
US9634880B2 (en) | Method for displaying user interface and display device thereof | |
CN104067593B (en) | packet streaming service capability exchange for enhanced peripheral device support | |
RU2635377C2 (en) | Time-synchronized lights control | |
CN104093077B (en) | Method, Apparatus and system that multiple terminals is interconnected | |
US20240040178A1 (en) | Facilitating WATCH PARTIES | |
KR100989079B1 (en) | System and method for orchestral media service | |
US20130198786A1 (en) | Immersive Environment User Experience | |
WO2008078245A3 (en) | Method and system to select devices of a wireless network, particularly a network of wireless lighting devices | |
WO2020125153A1 (en) | Smooth network video playback control method based on streaming media technology | |
CN107211186A (en) | Method and the device for supporting this method are supported in multiple-view stream media services | |
CN116506667A (en) | Method and system for synchronizing audio content and video content on multiple media devices | |
US20230362461A1 (en) | Interactive Media Events | |
WO2015139547A1 (en) | Method, device and system for setting up application scenario | |
WO2011143867A1 (en) | Method and system for implementing interaction between set-top box (stb) and home gateway | |
US20150081068A1 (en) | Method for synchronizing audio playback of plural playing devices and audio playback system | |
US10925014B2 (en) | Method and apparatus for synchronization in a network | |
US20160192114A1 (en) | Time to play | |
JP2006350919A (en) | Video distribution terminal and video distributing method | |
TWI505225B (en) | Applied to the context of intelligent life | |
CN110413240A (en) | It is a kind of interactive mode conference system and multi-terminal equipment Display on the same screen method | |
US11109209B2 (en) | Bluetooth device, method of operating bluetooth device, and non-transitory computer readable storage medium | |
EP2552112A1 (en) | Method, system and set top box for implementing interactive network television service control | |
WO2015109852A1 (en) | Method and device for sending media data and set-top box | |
US9560105B2 (en) | Server device and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |